[2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:05] Production.INFO: next invoice date [2025-02-23 00:00:05] Production.INFO: 2025-03-23 [2025-02-23 00:00:05] Production.INFO: getdaysdiff [2025-02-23 00:00:05] Production.INFO: +28 [2025-02-23 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,28,28,'RMScheduler',2025-02-23 00:00:04,1,0,,,0) [2025-02-23 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:00:07 [end_date_ymd] => 2025-02-23 00:00:07 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:00:07' and `end` < '2025-02-23 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-02-23 00:00:19] Production.INFO: count ==899 [2025-02-23 00:00:20] Production.ERROR: pbx CDR StartTime 2025-02-22 21:00:07 - End Time 2025-02-23 00:00:07 [2025-02-23 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535939', 'tblTempUsageDetail_20' ) start [2025-02-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535939', 'tblTempUsageDetail_20' ) end [2025-02-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535939', 'tblTempVendorCDR_20' ) start [2025-02-23 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535939', 'tblTempVendorCDR_20' ) end [2025-02-23 00:00:20] Production.INFO: ProcessCDR(1,14535939,1,1,2) [2025-02-23 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535939', 'tblTempUsageDetail_20' ) start [2025-02-23 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535939', 'tblTempUsageDetail_20' ) end [2025-02-23 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:00:25] Production.INFO: ==22097== Releasing lock... [2025-02-23 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:00:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:01:05 [end_date_ymd] => 2025-02-23 00:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:01:05' and `end` < '2025-02-23 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-02-23 00:01:17] Production.INFO: count ==903 [2025-02-23 00:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:01:05 - End Time 2025-02-23 00:01:05 [2025-02-23 00:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535944', 'tblTempUsageDetail_20' ) start [2025-02-23 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535944', 'tblTempUsageDetail_20' ) end [2025-02-23 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535944', 'tblTempVendorCDR_20' ) start [2025-02-23 00:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535944', 'tblTempVendorCDR_20' ) end [2025-02-23 00:01:17] Production.INFO: ProcessCDR(1,14535944,1,1,2) [2025-02-23 00:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535944', 'tblTempUsageDetail_20' ) start [2025-02-23 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535944', 'tblTempUsageDetail_20' ) end [2025-02-23 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:01:21] Production.INFO: ==22190== Releasing lock... [2025-02-23 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:01:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:02:05 [end_date_ymd] => 2025-02-23 00:02:05 [RateCDR] => 1 ) [2025-02-23 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:02:05' and `end` < '2025-02-23 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:02:17] Production.INFO: count ==331 [2025-02-23 00:02:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:02:05 - End Time 2025-02-23 00:02:05 [2025-02-23 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535949', 'tblTempUsageDetail_20' ) start [2025-02-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535949', 'tblTempUsageDetail_20' ) end [2025-02-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535949', 'tblTempVendorCDR_20' ) start [2025-02-23 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535949', 'tblTempVendorCDR_20' ) end [2025-02-23 00:02:17] Production.INFO: ProcessCDR(1,14535949,1,1,2) [2025-02-23 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535949', 'tblTempUsageDetail_20' ) start [2025-02-23 00:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535949', 'tblTempUsageDetail_20' ) end [2025-02-23 00:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:02:20] Production.INFO: ==22262== Releasing lock... [2025-02-23 00:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:02:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:03:05 [end_date_ymd] => 2025-02-23 00:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:03:05' and `end` < '2025-02-23 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-02-23 00:03:17] Production.INFO: count ==331 [2025-02-23 00:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:03:05 - End Time 2025-02-23 00:03:05 [2025-02-23 00:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535954', 'tblTempUsageDetail_20' ) start [2025-02-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535954', 'tblTempUsageDetail_20' ) end [2025-02-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535954', 'tblTempVendorCDR_20' ) start [2025-02-23 00:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535954', 'tblTempVendorCDR_20' ) end [2025-02-23 00:03:17] Production.INFO: ProcessCDR(1,14535954,1,1,2) [2025-02-23 00:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535954', 'tblTempUsageDetail_20' ) start [2025-02-23 00:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535954', 'tblTempUsageDetail_20' ) end [2025-02-23 00:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:03:20] Production.INFO: ==22375== Releasing lock... [2025-02-23 00:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:03:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:04:05 [end_date_ymd] => 2025-02-23 00:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:04:05' and `end` < '2025-02-23 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-02-23 00:04:17] Production.INFO: count ==331 [2025-02-23 00:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:04:05 - End Time 2025-02-23 00:04:05 [2025-02-23 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535959', 'tblTempUsageDetail_20' ) start [2025-02-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535959', 'tblTempUsageDetail_20' ) end [2025-02-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535959', 'tblTempVendorCDR_20' ) start [2025-02-23 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535959', 'tblTempVendorCDR_20' ) end [2025-02-23 00:04:17] Production.INFO: ProcessCDR(1,14535959,1,1,2) [2025-02-23 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535959', 'tblTempUsageDetail_20' ) start [2025-02-23 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535959', 'tblTempUsageDetail_20' ) end [2025-02-23 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:04:21] Production.INFO: ==22447== Releasing lock... [2025-02-23 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:04:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:05:05 [end_date_ymd] => 2025-02-23 00:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:05:05' and `end` < '2025-02-23 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-02-23 00:05:17] Production.INFO: count ==331 [2025-02-23 00:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:05:05 - End Time 2025-02-23 00:05:05 [2025-02-23 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535964', 'tblTempUsageDetail_20' ) start [2025-02-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535964', 'tblTempUsageDetail_20' ) end [2025-02-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535964', 'tblTempVendorCDR_20' ) start [2025-02-23 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535964', 'tblTempVendorCDR_20' ) end [2025-02-23 00:05:17] Production.INFO: ProcessCDR(1,14535964,1,1,2) [2025-02-23 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535964', 'tblTempUsageDetail_20' ) start [2025-02-23 00:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535964', 'tblTempUsageDetail_20' ) end [2025-02-23 00:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:05:20] Production.INFO: ==22520== Releasing lock... [2025-02-23 00:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:05:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:06:05 [end_date_ymd] => 2025-02-23 00:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:06:05' and `end` < '2025-02-23 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-02-23 00:06:17] Production.INFO: count ==335 [2025-02-23 00:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:06:05 - End Time 2025-02-23 00:06:05 [2025-02-23 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535969', 'tblTempUsageDetail_20' ) start [2025-02-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535969', 'tblTempUsageDetail_20' ) end [2025-02-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535969', 'tblTempVendorCDR_20' ) start [2025-02-23 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535969', 'tblTempVendorCDR_20' ) end [2025-02-23 00:06:17] Production.INFO: ProcessCDR(1,14535969,1,1,2) [2025-02-23 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535969', 'tblTempUsageDetail_20' ) start [2025-02-23 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535969', 'tblTempUsageDetail_20' ) end [2025-02-23 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:06:20] Production.INFO: ==22591== Releasing lock... [2025-02-23 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:06:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:07:06 [end_date_ymd] => 2025-02-23 00:07:06 [RateCDR] => 1 ) [2025-02-23 00:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:07:06' and `end` < '2025-02-23 00:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:07:18] Production.INFO: count ==363 [2025-02-23 00:07:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:07:06 - End Time 2025-02-23 00:07:06 [2025-02-23 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535974', 'tblTempUsageDetail_20' ) start [2025-02-23 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535974', 'tblTempUsageDetail_20' ) end [2025-02-23 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535974', 'tblTempVendorCDR_20' ) start [2025-02-23 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535974', 'tblTempVendorCDR_20' ) end [2025-02-23 00:07:18] Production.INFO: ProcessCDR(1,14535974,1,1,2) [2025-02-23 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535974', 'tblTempUsageDetail_20' ) start [2025-02-23 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535974', 'tblTempUsageDetail_20' ) end [2025-02-23 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:07:21] Production.INFO: ==22664== Releasing lock... [2025-02-23 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:08:05 [end_date_ymd] => 2025-02-23 00:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:08:05' and `end` < '2025-02-23 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-02-23 00:08:17] Production.INFO: count ==366 [2025-02-23 00:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:08:05 - End Time 2025-02-23 00:08:05 [2025-02-23 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535979', 'tblTempUsageDetail_20' ) start [2025-02-23 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535979', 'tblTempUsageDetail_20' ) end [2025-02-23 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535979', 'tblTempVendorCDR_20' ) start [2025-02-23 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535979', 'tblTempVendorCDR_20' ) end [2025-02-23 00:08:18] Production.INFO: ProcessCDR(1,14535979,1,1,2) [2025-02-23 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535979', 'tblTempUsageDetail_20' ) start [2025-02-23 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535979', 'tblTempUsageDetail_20' ) end [2025-02-23 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:08:21] Production.INFO: ==22745== Releasing lock... [2025-02-23 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:09:05 [end_date_ymd] => 2025-02-23 00:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:09:05' and `end` < '2025-02-23 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-02-23 00:09:17] Production.INFO: count ==369 [2025-02-23 00:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:09:05 - End Time 2025-02-23 00:09:05 [2025-02-23 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535984', 'tblTempUsageDetail_20' ) start [2025-02-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535984', 'tblTempUsageDetail_20' ) end [2025-02-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535984', 'tblTempVendorCDR_20' ) start [2025-02-23 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535984', 'tblTempVendorCDR_20' ) end [2025-02-23 00:09:17] Production.INFO: ProcessCDR(1,14535984,1,1,2) [2025-02-23 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535984', 'tblTempUsageDetail_20' ) start [2025-02-23 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535984', 'tblTempUsageDetail_20' ) end [2025-02-23 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:09:21] Production.INFO: ==22818== Releasing lock... [2025-02-23 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:10:06 [end_date_ymd] => 2025-02-23 00:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:10:06' and `end` < '2025-02-23 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-02-23 00:10:18] Production.INFO: count ==396 [2025-02-23 00:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:10:06 - End Time 2025-02-23 00:10:06 [2025-02-23 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535990', 'tblTempUsageDetail_20' ) start [2025-02-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535990', 'tblTempUsageDetail_20' ) end [2025-02-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535990', 'tblTempVendorCDR_20' ) start [2025-02-23 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535990', 'tblTempVendorCDR_20' ) end [2025-02-23 00:10:18] Production.INFO: ProcessCDR(1,14535990,1,1,2) [2025-02-23 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535990', 'tblTempUsageDetail_20' ) start [2025-02-23 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535990', 'tblTempUsageDetail_20' ) end [2025-02-23 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:10:21] Production.INFO: ==22892== Releasing lock... [2025-02-23 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:10:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:11:05 [end_date_ymd] => 2025-02-23 00:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:11:05' and `end` < '2025-02-23 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-02-23 00:11:25] Production.INFO: count ==405 [2025-02-23 00:11:26] Production.ERROR: pbx CDR StartTime 2025-02-22 21:11:05 - End Time 2025-02-23 00:11:05 [2025-02-23 00:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535995', 'tblTempUsageDetail_20' ) start [2025-02-23 00:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14535995', 'tblTempUsageDetail_20' ) end [2025-02-23 00:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535995', 'tblTempVendorCDR_20' ) start [2025-02-23 00:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14535995', 'tblTempVendorCDR_20' ) end [2025-02-23 00:11:26] Production.INFO: ProcessCDR(1,14535995,1,1,2) [2025-02-23 00:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14535995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14535995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14535995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14535995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535995', 'tblTempUsageDetail_20' ) start [2025-02-23 00:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14535995', 'tblTempUsageDetail_20' ) end [2025-02-23 00:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:11:29] Production.INFO: ==22968== Releasing lock... [2025-02-23 00:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:11:29] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:12:06 [end_date_ymd] => 2025-02-23 00:12:06 [RateCDR] => 1 ) [2025-02-23 00: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-02-22 21:12:06' and `end` < '2025-02-23 00: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-02-23 00:12:21] Production.INFO: count ==437 [2025-02-23 00:12:21] Production.ERROR: pbx CDR StartTime 2025-02-22 21:12:06 - End Time 2025-02-23 00:12:06 [2025-02-23 00:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536000', 'tblTempUsageDetail_20' ) start [2025-02-23 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536000', 'tblTempUsageDetail_20' ) end [2025-02-23 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536000', 'tblTempVendorCDR_20' ) start [2025-02-23 00:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536000', 'tblTempVendorCDR_20' ) end [2025-02-23 00:12:21] Production.INFO: ProcessCDR(1,14536000,1,1,2) [2025-02-23 00:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536000', 'tblTempUsageDetail_20' ) start [2025-02-23 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536000', 'tblTempUsageDetail_20' ) end [2025-02-23 00:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:12:24] Production.INFO: ==23040== Releasing lock... [2025-02-23 00:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:12:24] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:13:05 [end_date_ymd] => 2025-02-23 00:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:13:05' and `end` < '2025-02-23 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-02-23 00:13:17] Production.INFO: count ==437 [2025-02-23 00:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:13:05 - End Time 2025-02-23 00:13:05 [2025-02-23 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536005', 'tblTempUsageDetail_20' ) start [2025-02-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536005', 'tblTempUsageDetail_20' ) end [2025-02-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536005', 'tblTempVendorCDR_20' ) start [2025-02-23 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536005', 'tblTempVendorCDR_20' ) end [2025-02-23 00:13:17] Production.INFO: ProcessCDR(1,14536005,1,1,2) [2025-02-23 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536005', 'tblTempUsageDetail_20' ) start [2025-02-23 00:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536005', 'tblTempUsageDetail_20' ) end [2025-02-23 00:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:13:20] Production.INFO: ==23109== Releasing lock... [2025-02-23 00:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:13:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:14:05 [end_date_ymd] => 2025-02-23 00:14:05 [RateCDR] => 1 ) [2025-02-23 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:14:05' and `end` < '2025-02-23 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:14:17] Production.INFO: count ==435 [2025-02-23 00:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:14:05 - End Time 2025-02-23 00:14:05 [2025-02-23 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536010', 'tblTempUsageDetail_20' ) start [2025-02-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536010', 'tblTempUsageDetail_20' ) end [2025-02-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536010', 'tblTempVendorCDR_20' ) start [2025-02-23 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536010', 'tblTempVendorCDR_20' ) end [2025-02-23 00:14:17] Production.INFO: ProcessCDR(1,14536010,1,1,2) [2025-02-23 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536010', 'tblTempUsageDetail_20' ) start [2025-02-23 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536010', 'tblTempUsageDetail_20' ) end [2025-02-23 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:14:21] Production.INFO: ==23182== Releasing lock... [2025-02-23 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:14:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:15:05 [end_date_ymd] => 2025-02-23 00:15:05 [RateCDR] => 1 ) [2025-02-23 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:15:05' and `end` < '2025-02-23 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:15:17] Production.INFO: count ==431 [2025-02-23 00:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:15:05 - End Time 2025-02-23 00:15:05 [2025-02-23 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536015', 'tblTempUsageDetail_20' ) start [2025-02-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536015', 'tblTempUsageDetail_20' ) end [2025-02-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536015', 'tblTempVendorCDR_20' ) start [2025-02-23 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536015', 'tblTempVendorCDR_20' ) end [2025-02-23 00:15:17] Production.INFO: ProcessCDR(1,14536015,1,1,2) [2025-02-23 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536015', 'tblTempUsageDetail_20' ) start [2025-02-23 00:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536015', 'tblTempUsageDetail_20' ) end [2025-02-23 00:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:15:20] Production.INFO: ==23255== Releasing lock... [2025-02-23 00:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:15:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:16:06 [end_date_ymd] => 2025-02-23 00:16:06 [RateCDR] => 1 ) [2025-02-23 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:16:06' and `end` < '2025-02-23 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:16:18] Production.INFO: count ==420 [2025-02-23 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:16:06 - End Time 2025-02-23 00:16:06 [2025-02-23 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536020', 'tblTempUsageDetail_20' ) start [2025-02-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536020', 'tblTempUsageDetail_20' ) end [2025-02-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536020', 'tblTempVendorCDR_20' ) start [2025-02-23 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536020', 'tblTempVendorCDR_20' ) end [2025-02-23 00:16:18] Production.INFO: ProcessCDR(1,14536020,1,1,2) [2025-02-23 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536020', 'tblTempUsageDetail_20' ) start [2025-02-23 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536020', 'tblTempUsageDetail_20' ) end [2025-02-23 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:16:21] Production.INFO: ==23327== Releasing lock... [2025-02-23 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:17:05 [end_date_ymd] => 2025-02-23 00:17:05 [RateCDR] => 1 ) [2025-02-23 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:17:05' and `end` < '2025-02-23 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:17:17] Production.INFO: count ==419 [2025-02-23 00:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:17:05 - End Time 2025-02-23 00:17:05 [2025-02-23 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536025', 'tblTempUsageDetail_20' ) start [2025-02-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536025', 'tblTempUsageDetail_20' ) end [2025-02-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536025', 'tblTempVendorCDR_20' ) start [2025-02-23 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536025', 'tblTempVendorCDR_20' ) end [2025-02-23 00:17:17] Production.INFO: ProcessCDR(1,14536025,1,1,2) [2025-02-23 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536025', 'tblTempUsageDetail_20' ) start [2025-02-23 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536025', 'tblTempUsageDetail_20' ) end [2025-02-23 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:17:20] Production.INFO: ==23396== Releasing lock... [2025-02-23 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:17:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:18:06 [end_date_ymd] => 2025-02-23 00:18:06 [RateCDR] => 1 ) [2025-02-23 00:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:18:06' and `end` < '2025-02-23 00:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:18:18] Production.INFO: count ==407 [2025-02-23 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:18:06 - End Time 2025-02-23 00:18:06 [2025-02-23 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536030', 'tblTempUsageDetail_20' ) start [2025-02-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536030', 'tblTempUsageDetail_20' ) end [2025-02-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536030', 'tblTempVendorCDR_20' ) start [2025-02-23 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536030', 'tblTempVendorCDR_20' ) end [2025-02-23 00:18:18] Production.INFO: ProcessCDR(1,14536030,1,1,2) [2025-02-23 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536030', 'tblTempUsageDetail_20' ) start [2025-02-23 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536030', 'tblTempUsageDetail_20' ) end [2025-02-23 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:18:21] Production.INFO: ==23517== Releasing lock... [2025-02-23 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:19:05 [end_date_ymd] => 2025-02-23 00:19:05 [RateCDR] => 1 ) [2025-02-23 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:19:05' and `end` < '2025-02-23 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:19:17] Production.INFO: count ==395 [2025-02-23 00:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:19:05 - End Time 2025-02-23 00:19:05 [2025-02-23 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536035', 'tblTempUsageDetail_20' ) start [2025-02-23 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536035', 'tblTempUsageDetail_20' ) end [2025-02-23 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536035', 'tblTempVendorCDR_20' ) start [2025-02-23 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536035', 'tblTempVendorCDR_20' ) end [2025-02-23 00:19:17] Production.INFO: ProcessCDR(1,14536035,1,1,2) [2025-02-23 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536035', 'tblTempUsageDetail_20' ) start [2025-02-23 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536035', 'tblTempUsageDetail_20' ) end [2025-02-23 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:19:22] Production.INFO: ==23587== Releasing lock... [2025-02-23 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:19:22] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:20:06 [end_date_ymd] => 2025-02-23 00:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:20:06' and `end` < '2025-02-23 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-02-23 00:20:18] Production.INFO: count ==394 [2025-02-23 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:20:06 - End Time 2025-02-23 00:20:06 [2025-02-23 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536041', 'tblTempUsageDetail_20' ) start [2025-02-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536041', 'tblTempUsageDetail_20' ) end [2025-02-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536041', 'tblTempVendorCDR_20' ) start [2025-02-23 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536041', 'tblTempVendorCDR_20' ) end [2025-02-23 00:20:18] Production.INFO: ProcessCDR(1,14536041,1,1,2) [2025-02-23 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536041', 'tblTempUsageDetail_20' ) start [2025-02-23 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536041', 'tblTempUsageDetail_20' ) end [2025-02-23 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:20:22] Production.INFO: ==23675== Releasing lock... [2025-02-23 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:21:05 [end_date_ymd] => 2025-02-23 00:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:21:05' and `end` < '2025-02-23 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-02-23 00:21:17] Production.INFO: count ==385 [2025-02-23 00:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:21:05 - End Time 2025-02-23 00:21:05 [2025-02-23 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536046', 'tblTempUsageDetail_20' ) start [2025-02-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536046', 'tblTempUsageDetail_20' ) end [2025-02-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536046', 'tblTempVendorCDR_20' ) start [2025-02-23 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536046', 'tblTempVendorCDR_20' ) end [2025-02-23 00:21:17] Production.INFO: ProcessCDR(1,14536046,1,1,2) [2025-02-23 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536046', 'tblTempUsageDetail_20' ) start [2025-02-23 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536046', 'tblTempUsageDetail_20' ) end [2025-02-23 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:21:21] Production.INFO: ==23752== Releasing lock... [2025-02-23 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:21:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:22:05 [end_date_ymd] => 2025-02-23 00:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:22:05' and `end` < '2025-02-23 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-02-23 00:22:17] Production.INFO: count ==375 [2025-02-23 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:22:05 - End Time 2025-02-23 00:22:05 [2025-02-23 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536051', 'tblTempUsageDetail_20' ) start [2025-02-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536051', 'tblTempUsageDetail_20' ) end [2025-02-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536051', 'tblTempVendorCDR_20' ) start [2025-02-23 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536051', 'tblTempVendorCDR_20' ) end [2025-02-23 00:22:17] Production.INFO: ProcessCDR(1,14536051,1,1,2) [2025-02-23 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536051', 'tblTempUsageDetail_20' ) start [2025-02-23 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536051', 'tblTempUsageDetail_20' ) end [2025-02-23 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:22:20] Production.INFO: ==23822== Releasing lock... [2025-02-23 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:22:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:23:06 [end_date_ymd] => 2025-02-23 00:23:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:23:06' and `end` < '2025-02-23 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-02-23 00:23:18] Production.INFO: count ==362 [2025-02-23 00:23:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:23:06 - End Time 2025-02-23 00:23:06 [2025-02-23 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536056', 'tblTempUsageDetail_20' ) start [2025-02-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536056', 'tblTempUsageDetail_20' ) end [2025-02-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536056', 'tblTempVendorCDR_20' ) start [2025-02-23 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536056', 'tblTempVendorCDR_20' ) end [2025-02-23 00:23:18] Production.INFO: ProcessCDR(1,14536056,1,1,2) [2025-02-23 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536056', 'tblTempUsageDetail_20' ) start [2025-02-23 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536056', 'tblTempUsageDetail_20' ) end [2025-02-23 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:23:21] Production.INFO: ==23896== Releasing lock... [2025-02-23 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:23:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:24:06 [end_date_ymd] => 2025-02-23 00:24:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:24:06' and `end` < '2025-02-23 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-02-23 00:24:17] Production.INFO: count ==352 [2025-02-23 00:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:24:06 - End Time 2025-02-23 00:24:06 [2025-02-23 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536061', 'tblTempUsageDetail_20' ) start [2025-02-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536061', 'tblTempUsageDetail_20' ) end [2025-02-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536061', 'tblTempVendorCDR_20' ) start [2025-02-23 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536061', 'tblTempVendorCDR_20' ) end [2025-02-23 00:24:18] Production.INFO: ProcessCDR(1,14536061,1,1,2) [2025-02-23 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536061', 'tblTempUsageDetail_20' ) start [2025-02-23 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536061', 'tblTempUsageDetail_20' ) end [2025-02-23 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:24:21] Production.INFO: ==23966== Releasing lock... [2025-02-23 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:25:05 [end_date_ymd] => 2025-02-23 00:25:05 [RateCDR] => 1 ) [2025-02-23 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:25:05' and `end` < '2025-02-23 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:25:17] Production.INFO: count ==351 [2025-02-23 00:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:25:05 - End Time 2025-02-23 00:25:05 [2025-02-23 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536066', 'tblTempUsageDetail_20' ) start [2025-02-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536066', 'tblTempUsageDetail_20' ) end [2025-02-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536066', 'tblTempVendorCDR_20' ) start [2025-02-23 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536066', 'tblTempVendorCDR_20' ) end [2025-02-23 00:25:17] Production.INFO: ProcessCDR(1,14536066,1,1,2) [2025-02-23 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536066', 'tblTempUsageDetail_20' ) start [2025-02-23 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536066', 'tblTempUsageDetail_20' ) end [2025-02-23 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:25:20] Production.INFO: ==24036== Releasing lock... [2025-02-23 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:25:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:26:05 [end_date_ymd] => 2025-02-23 00:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:26:05' and `end` < '2025-02-23 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-02-23 00:26:17] Production.INFO: count ==352 [2025-02-23 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:26:05 - End Time 2025-02-23 00:26:05 [2025-02-23 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536071', 'tblTempUsageDetail_20' ) start [2025-02-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536071', 'tblTempUsageDetail_20' ) end [2025-02-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536071', 'tblTempVendorCDR_20' ) start [2025-02-23 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536071', 'tblTempVendorCDR_20' ) end [2025-02-23 00:26:17] Production.INFO: ProcessCDR(1,14536071,1,1,2) [2025-02-23 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536071', 'tblTempUsageDetail_20' ) start [2025-02-23 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536071', 'tblTempUsageDetail_20' ) end [2025-02-23 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:26:22] Production.INFO: ==24106== Releasing lock... [2025-02-23 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:27:04 [end_date_ymd] => 2025-02-23 00:27:04 [RateCDR] => 1 ) [2025-02-23 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:27:04' and `end` < '2025-02-23 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:27:16] Production.INFO: count ==353 [2025-02-23 00:27:16] Production.ERROR: pbx CDR StartTime 2025-02-22 21:27:04 - End Time 2025-02-23 00:27:04 [2025-02-23 00:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536076', 'tblTempUsageDetail_20' ) start [2025-02-23 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536076', 'tblTempUsageDetail_20' ) end [2025-02-23 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536076', 'tblTempVendorCDR_20' ) start [2025-02-23 00:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536076', 'tblTempVendorCDR_20' ) end [2025-02-23 00:27:16] Production.INFO: ProcessCDR(1,14536076,1,1,2) [2025-02-23 00:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536076', 'tblTempUsageDetail_20' ) start [2025-02-23 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536076', 'tblTempUsageDetail_20' ) end [2025-02-23 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:27:21] Production.INFO: ==24176== Releasing lock... [2025-02-23 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:28:05 [end_date_ymd] => 2025-02-23 00:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:28:05' and `end` < '2025-02-23 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-02-23 00:28:17] Production.INFO: count ==353 [2025-02-23 00:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:28:05 - End Time 2025-02-23 00:28:05 [2025-02-23 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536081', 'tblTempUsageDetail_20' ) start [2025-02-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536081', 'tblTempUsageDetail_20' ) end [2025-02-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536081', 'tblTempVendorCDR_20' ) start [2025-02-23 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536081', 'tblTempVendorCDR_20' ) end [2025-02-23 00:28:17] Production.INFO: ProcessCDR(1,14536081,1,1,2) [2025-02-23 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536081', 'tblTempUsageDetail_20' ) start [2025-02-23 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536081', 'tblTempUsageDetail_20' ) end [2025-02-23 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:28:20] Production.INFO: ==24249== Releasing lock... [2025-02-23 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:28:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:29:05 [end_date_ymd] => 2025-02-23 00:29:05 [RateCDR] => 1 ) [2025-02-23 00:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:29:05' and `end` < '2025-02-23 00:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:29:16] Production.INFO: count ==352 [2025-02-23 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:29:05 - End Time 2025-02-23 00:29:05 [2025-02-23 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536086', 'tblTempUsageDetail_20' ) start [2025-02-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536086', 'tblTempUsageDetail_20' ) end [2025-02-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536086', 'tblTempVendorCDR_20' ) start [2025-02-23 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536086', 'tblTempVendorCDR_20' ) end [2025-02-23 00:29:17] Production.INFO: ProcessCDR(1,14536086,1,1,2) [2025-02-23 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536086', 'tblTempUsageDetail_20' ) start [2025-02-23 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536086', 'tblTempUsageDetail_20' ) end [2025-02-23 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:29:20] Production.INFO: ==24319== Releasing lock... [2025-02-23 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:29:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:30:06 [end_date_ymd] => 2025-02-23 00:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:30:06' and `end` < '2025-02-23 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-02-23 00:30:18] Production.INFO: count ==361 [2025-02-23 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:30:06 - End Time 2025-02-23 00:30:06 [2025-02-23 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536091', 'tblTempUsageDetail_20' ) start [2025-02-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536091', 'tblTempUsageDetail_20' ) end [2025-02-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536091', 'tblTempVendorCDR_20' ) start [2025-02-23 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536091', 'tblTempVendorCDR_20' ) end [2025-02-23 00:30:18] Production.INFO: ProcessCDR(1,14536091,1,1,2) [2025-02-23 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536091', 'tblTempUsageDetail_20' ) start [2025-02-23 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536091', 'tblTempUsageDetail_20' ) end [2025-02-23 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:30:21] Production.INFO: ==24393== Releasing lock... [2025-02-23 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:31:05 [end_date_ymd] => 2025-02-23 00:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:31:05' and `end` < '2025-02-23 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-02-23 00:31:16] Production.INFO: count ==369 [2025-02-23 00:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:31:05 - End Time 2025-02-23 00:31:05 [2025-02-23 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536097', 'tblTempUsageDetail_20' ) start [2025-02-23 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536097', 'tblTempUsageDetail_20' ) end [2025-02-23 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536097', 'tblTempVendorCDR_20' ) start [2025-02-23 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536097', 'tblTempVendorCDR_20' ) end [2025-02-23 00:31:17] Production.INFO: ProcessCDR(1,14536097,1,1,2) [2025-02-23 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536097', 'tblTempUsageDetail_20' ) start [2025-02-23 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536097', 'tblTempUsageDetail_20' ) end [2025-02-23 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:31:20] Production.INFO: ==24466== Releasing lock... [2025-02-23 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:31:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:32:05 [end_date_ymd] => 2025-02-23 00:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:32:05' and `end` < '2025-02-23 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-02-23 00:32:17] Production.INFO: count ==368 [2025-02-23 00:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:32:05 - End Time 2025-02-23 00:32:05 [2025-02-23 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536102', 'tblTempUsageDetail_20' ) start [2025-02-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536102', 'tblTempUsageDetail_20' ) end [2025-02-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536102', 'tblTempVendorCDR_20' ) start [2025-02-23 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536102', 'tblTempVendorCDR_20' ) end [2025-02-23 00:32:17] Production.INFO: ProcessCDR(1,14536102,1,1,2) [2025-02-23 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536102', 'tblTempUsageDetail_20' ) start [2025-02-23 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536102', 'tblTempUsageDetail_20' ) end [2025-02-23 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:32:21] Production.INFO: ==24537== Releasing lock... [2025-02-23 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:32:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:33:05 [end_date_ymd] => 2025-02-23 00:33:05 [RateCDR] => 1 ) [2025-02-23 00: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-02-22 21:33:05' and `end` < '2025-02-23 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-02-23 00:33:17] Production.INFO: count ==364 [2025-02-23 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:33:05 - End Time 2025-02-23 00:33:05 [2025-02-23 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536107', 'tblTempUsageDetail_20' ) start [2025-02-23 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536107', 'tblTempUsageDetail_20' ) end [2025-02-23 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536107', 'tblTempVendorCDR_20' ) start [2025-02-23 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536107', 'tblTempVendorCDR_20' ) end [2025-02-23 00:33:17] Production.INFO: ProcessCDR(1,14536107,1,1,2) [2025-02-23 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536107', 'tblTempUsageDetail_20' ) start [2025-02-23 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536107', 'tblTempUsageDetail_20' ) end [2025-02-23 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:33:20] Production.INFO: ==24609== Releasing lock... [2025-02-23 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:33:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:34:05 [end_date_ymd] => 2025-02-23 00:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:34:05' and `end` < '2025-02-23 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-02-23 00:34:16] Production.INFO: count ==364 [2025-02-23 00:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:34:05 - End Time 2025-02-23 00:34:05 [2025-02-23 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536112', 'tblTempUsageDetail_20' ) start [2025-02-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536112', 'tblTempUsageDetail_20' ) end [2025-02-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536112', 'tblTempVendorCDR_20' ) start [2025-02-23 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536112', 'tblTempVendorCDR_20' ) end [2025-02-23 00:34:17] Production.INFO: ProcessCDR(1,14536112,1,1,2) [2025-02-23 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536112', 'tblTempUsageDetail_20' ) start [2025-02-23 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536112', 'tblTempUsageDetail_20' ) end [2025-02-23 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:34:20] Production.INFO: ==24721== Releasing lock... [2025-02-23 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:34:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:35:05 [end_date_ymd] => 2025-02-23 00:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:35:05' and `end` < '2025-02-23 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-02-23 00:35:17] Production.INFO: count ==362 [2025-02-23 00:35:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:35:05 - End Time 2025-02-23 00:35:05 [2025-02-23 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536117', 'tblTempUsageDetail_20' ) start [2025-02-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536117', 'tblTempUsageDetail_20' ) end [2025-02-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536117', 'tblTempVendorCDR_20' ) start [2025-02-23 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536117', 'tblTempVendorCDR_20' ) end [2025-02-23 00:35:17] Production.INFO: ProcessCDR(1,14536117,1,1,2) [2025-02-23 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536117', 'tblTempUsageDetail_20' ) start [2025-02-23 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536117', 'tblTempUsageDetail_20' ) end [2025-02-23 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:35:21] Production.INFO: ==24793== Releasing lock... [2025-02-23 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:36:05 [end_date_ymd] => 2025-02-23 00:36:05 [RateCDR] => 1 ) [2025-02-23 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:36:05' and `end` < '2025-02-23 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:36:17] Production.INFO: count ==361 [2025-02-23 00:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:36:05 - End Time 2025-02-23 00:36:05 [2025-02-23 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536122', 'tblTempUsageDetail_20' ) start [2025-02-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536122', 'tblTempUsageDetail_20' ) end [2025-02-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536122', 'tblTempVendorCDR_20' ) start [2025-02-23 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536122', 'tblTempVendorCDR_20' ) end [2025-02-23 00:36:17] Production.INFO: ProcessCDR(1,14536122,1,1,2) [2025-02-23 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536122', 'tblTempUsageDetail_20' ) start [2025-02-23 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536122', 'tblTempUsageDetail_20' ) end [2025-02-23 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:36:21] Production.INFO: ==24864== Releasing lock... [2025-02-23 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:37:05 [end_date_ymd] => 2025-02-23 00:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:37:05' and `end` < '2025-02-23 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-02-23 00:37:17] Production.INFO: count ==360 [2025-02-23 00:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:37:05 - End Time 2025-02-23 00:37:05 [2025-02-23 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536127', 'tblTempUsageDetail_20' ) start [2025-02-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536127', 'tblTempUsageDetail_20' ) end [2025-02-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536127', 'tblTempVendorCDR_20' ) start [2025-02-23 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536127', 'tblTempVendorCDR_20' ) end [2025-02-23 00:37:17] Production.INFO: ProcessCDR(1,14536127,1,1,2) [2025-02-23 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536127', 'tblTempUsageDetail_20' ) start [2025-02-23 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536127', 'tblTempUsageDetail_20' ) end [2025-02-23 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:37:20] Production.INFO: ==24934== Releasing lock... [2025-02-23 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:37:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:38:04 [end_date_ymd] => 2025-02-23 00:38:04 [RateCDR] => 1 ) [2025-02-23 00:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:38:04' and `end` < '2025-02-23 00:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:38:16] Production.INFO: count ==360 [2025-02-23 00:38:16] Production.ERROR: pbx CDR StartTime 2025-02-22 21:38:04 - End Time 2025-02-23 00:38:04 [2025-02-23 00:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536132', 'tblTempUsageDetail_20' ) start [2025-02-23 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536132', 'tblTempUsageDetail_20' ) end [2025-02-23 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536132', 'tblTempVendorCDR_20' ) start [2025-02-23 00:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536132', 'tblTempVendorCDR_20' ) end [2025-02-23 00:38:16] Production.INFO: ProcessCDR(1,14536132,1,1,2) [2025-02-23 00:38:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:38:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536132', 'tblTempUsageDetail_20' ) start [2025-02-23 00:38:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536132', 'tblTempUsageDetail_20' ) end [2025-02-23 00:38:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:38:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:38:19] Production.INFO: ==25006== Releasing lock... [2025-02-23 00:38:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:38:19] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:39:05 [end_date_ymd] => 2025-02-23 00:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:39:05' and `end` < '2025-02-23 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-02-23 00:39:17] Production.INFO: count ==360 [2025-02-23 00:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:39:05 - End Time 2025-02-23 00:39:05 [2025-02-23 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536137', 'tblTempUsageDetail_20' ) start [2025-02-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536137', 'tblTempUsageDetail_20' ) end [2025-02-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536137', 'tblTempVendorCDR_20' ) start [2025-02-23 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536137', 'tblTempVendorCDR_20' ) end [2025-02-23 00:39:17] Production.INFO: ProcessCDR(1,14536137,1,1,2) [2025-02-23 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536137', 'tblTempUsageDetail_20' ) start [2025-02-23 00:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536137', 'tblTempUsageDetail_20' ) end [2025-02-23 00:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:39:20] Production.INFO: ==25075== Releasing lock... [2025-02-23 00:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:39:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:40:06 [end_date_ymd] => 2025-02-23 00:40:06 [RateCDR] => 1 ) [2025-02-23 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:40:06' and `end` < '2025-02-23 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:40:17] Production.INFO: count ==370 [2025-02-23 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:40:06 - End Time 2025-02-23 00:40:06 [2025-02-23 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536143', 'tblTempUsageDetail_20' ) start [2025-02-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536143', 'tblTempUsageDetail_20' ) end [2025-02-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536143', 'tblTempVendorCDR_20' ) start [2025-02-23 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536143', 'tblTempVendorCDR_20' ) end [2025-02-23 00:40:18] Production.INFO: ProcessCDR(1,14536143,1,1,2) [2025-02-23 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536143', 'tblTempUsageDetail_20' ) start [2025-02-23 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536143', 'tblTempUsageDetail_20' ) end [2025-02-23 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:40:21] Production.INFO: ==25152== Releasing lock... [2025-02-23 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:40:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:41:05 [end_date_ymd] => 2025-02-23 00:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:41:05' and `end` < '2025-02-23 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-02-23 00:41:17] Production.INFO: count ==378 [2025-02-23 00:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:41:05 - End Time 2025-02-23 00:41:05 [2025-02-23 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536148', 'tblTempUsageDetail_20' ) start [2025-02-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536148', 'tblTempUsageDetail_20' ) end [2025-02-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536148', 'tblTempVendorCDR_20' ) start [2025-02-23 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536148', 'tblTempVendorCDR_20' ) end [2025-02-23 00:41:17] Production.INFO: ProcessCDR(1,14536148,1,1,2) [2025-02-23 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536148', 'tblTempUsageDetail_20' ) start [2025-02-23 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536148', 'tblTempUsageDetail_20' ) end [2025-02-23 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:41:20] Production.INFO: ==25227== Releasing lock... [2025-02-23 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:41:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:42:05 [end_date_ymd] => 2025-02-23 00:42:05 [RateCDR] => 1 ) [2025-02-23 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:42:05' and `end` < '2025-02-23 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:42:17] Production.INFO: count ==378 [2025-02-23 00:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:42:05 - End Time 2025-02-23 00:42:05 [2025-02-23 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536153', 'tblTempUsageDetail_20' ) start [2025-02-23 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536153', 'tblTempUsageDetail_20' ) end [2025-02-23 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536153', 'tblTempVendorCDR_20' ) start [2025-02-23 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536153', 'tblTempVendorCDR_20' ) end [2025-02-23 00:42:17] Production.INFO: ProcessCDR(1,14536153,1,1,2) [2025-02-23 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536153', 'tblTempUsageDetail_20' ) start [2025-02-23 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536153', 'tblTempUsageDetail_20' ) end [2025-02-23 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:42:20] Production.INFO: ==25298== Releasing lock... [2025-02-23 00:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:42:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:43:06 [end_date_ymd] => 2025-02-23 00:43:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:43:06' and `end` < '2025-02-23 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-02-23 00:43:18] Production.INFO: count ==382 [2025-02-23 00:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:43:06 - End Time 2025-02-23 00:43:06 [2025-02-23 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536158', 'tblTempUsageDetail_20' ) start [2025-02-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536158', 'tblTempUsageDetail_20' ) end [2025-02-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536158', 'tblTempVendorCDR_20' ) start [2025-02-23 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536158', 'tblTempVendorCDR_20' ) end [2025-02-23 00:43:18] Production.INFO: ProcessCDR(1,14536158,1,1,2) [2025-02-23 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536158', 'tblTempUsageDetail_20' ) start [2025-02-23 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536158', 'tblTempUsageDetail_20' ) end [2025-02-23 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:43:21] Production.INFO: ==25369== Releasing lock... [2025-02-23 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:43:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:44:05 [end_date_ymd] => 2025-02-23 00:44:05 [RateCDR] => 1 ) [2025-02-23 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:44:05' and `end` < '2025-02-23 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:44:17] Production.INFO: count ==388 [2025-02-23 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:44:05 - End Time 2025-02-23 00:44:05 [2025-02-23 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536163', 'tblTempUsageDetail_20' ) start [2025-02-23 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536163', 'tblTempUsageDetail_20' ) end [2025-02-23 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536163', 'tblTempVendorCDR_20' ) start [2025-02-23 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536163', 'tblTempVendorCDR_20' ) end [2025-02-23 00:44:17] Production.INFO: ProcessCDR(1,14536163,1,1,2) [2025-02-23 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536163', 'tblTempUsageDetail_20' ) start [2025-02-23 00:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536163', 'tblTempUsageDetail_20' ) end [2025-02-23 00:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:44:20] Production.INFO: ==25439== Releasing lock... [2025-02-23 00:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:44:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:45:05 [end_date_ymd] => 2025-02-23 00:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:45:05' and `end` < '2025-02-23 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-02-23 00:45:17] Production.INFO: count ==392 [2025-02-23 00:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:45:05 - End Time 2025-02-23 00:45:05 [2025-02-23 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536168', 'tblTempUsageDetail_20' ) start [2025-02-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536168', 'tblTempUsageDetail_20' ) end [2025-02-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536168', 'tblTempVendorCDR_20' ) start [2025-02-23 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536168', 'tblTempVendorCDR_20' ) end [2025-02-23 00:45:17] Production.INFO: ProcessCDR(1,14536168,1,1,2) [2025-02-23 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536168', 'tblTempUsageDetail_20' ) start [2025-02-23 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536168', 'tblTempUsageDetail_20' ) end [2025-02-23 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:45:21] Production.INFO: ==25511== Releasing lock... [2025-02-23 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:45:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:46:05 [end_date_ymd] => 2025-02-23 00:46:05 [RateCDR] => 1 ) [2025-02-23 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:46:05' and `end` < '2025-02-23 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:46:17] Production.INFO: count ==392 [2025-02-23 00:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:46:05 - End Time 2025-02-23 00:46:05 [2025-02-23 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536173', 'tblTempUsageDetail_20' ) start [2025-02-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536173', 'tblTempUsageDetail_20' ) end [2025-02-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536173', 'tblTempVendorCDR_20' ) start [2025-02-23 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536173', 'tblTempVendorCDR_20' ) end [2025-02-23 00:46:17] Production.INFO: ProcessCDR(1,14536173,1,1,2) [2025-02-23 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536173', 'tblTempUsageDetail_20' ) start [2025-02-23 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536173', 'tblTempUsageDetail_20' ) end [2025-02-23 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:46:21] Production.INFO: ==25582== Releasing lock... [2025-02-23 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:47:05 [end_date_ymd] => 2025-02-23 00:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:47:05' and `end` < '2025-02-23 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-02-23 00:47:17] Production.INFO: count ==392 [2025-02-23 00:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:47:05 - End Time 2025-02-23 00:47:05 [2025-02-23 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536178', 'tblTempUsageDetail_20' ) start [2025-02-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536178', 'tblTempUsageDetail_20' ) end [2025-02-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536178', 'tblTempVendorCDR_20' ) start [2025-02-23 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536178', 'tblTempVendorCDR_20' ) end [2025-02-23 00:47:17] Production.INFO: ProcessCDR(1,14536178,1,1,2) [2025-02-23 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536178', 'tblTempUsageDetail_20' ) start [2025-02-23 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536178', 'tblTempUsageDetail_20' ) end [2025-02-23 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:47:20] Production.INFO: ==25658== Releasing lock... [2025-02-23 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:47:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:48:04 [end_date_ymd] => 2025-02-23 00:48:04 [RateCDR] => 1 ) [2025-02-23 00:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:48:04' and `end` < '2025-02-23 00:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:48:16] Production.INFO: count ==394 [2025-02-23 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:48:04 - End Time 2025-02-23 00:48:04 [2025-02-23 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536183', 'tblTempUsageDetail_20' ) start [2025-02-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536183', 'tblTempUsageDetail_20' ) end [2025-02-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536183', 'tblTempVendorCDR_20' ) start [2025-02-23 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536183', 'tblTempVendorCDR_20' ) end [2025-02-23 00:48:17] Production.INFO: ProcessCDR(1,14536183,1,1,2) [2025-02-23 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536183', 'tblTempUsageDetail_20' ) start [2025-02-23 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536183', 'tblTempUsageDetail_20' ) end [2025-02-23 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:48:20] Production.INFO: ==25729== Releasing lock... [2025-02-23 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:48:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:49:06 [end_date_ymd] => 2025-02-23 00:49:06 [RateCDR] => 1 ) [2025-02-23 00: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-02-22 21:49:06' and `end` < '2025-02-23 00: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-02-23 00:49:17] Production.INFO: count ==398 [2025-02-23 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:49:06 - End Time 2025-02-23 00:49:06 [2025-02-23 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536188', 'tblTempUsageDetail_20' ) start [2025-02-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536188', 'tblTempUsageDetail_20' ) end [2025-02-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536188', 'tblTempVendorCDR_20' ) start [2025-02-23 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536188', 'tblTempVendorCDR_20' ) end [2025-02-23 00:49:18] Production.INFO: ProcessCDR(1,14536188,1,1,2) [2025-02-23 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536188', 'tblTempUsageDetail_20' ) start [2025-02-23 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536188', 'tblTempUsageDetail_20' ) end [2025-02-23 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:49:21] Production.INFO: ==25839== Releasing lock... [2025-02-23 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:50:06 [end_date_ymd] => 2025-02-23 00:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:50:06' and `end` < '2025-02-23 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-02-23 00:50:18] Production.INFO: count ==404 [2025-02-23 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:50:06 - End Time 2025-02-23 00:50:06 [2025-02-23 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536194', 'tblTempUsageDetail_20' ) start [2025-02-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536194', 'tblTempUsageDetail_20' ) end [2025-02-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536194', 'tblTempVendorCDR_20' ) start [2025-02-23 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536194', 'tblTempVendorCDR_20' ) end [2025-02-23 00:50:18] Production.INFO: ProcessCDR(1,14536194,1,1,2) [2025-02-23 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536194', 'tblTempUsageDetail_20' ) start [2025-02-23 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536194', 'tblTempUsageDetail_20' ) end [2025-02-23 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:50:21] Production.INFO: ==25913== Releasing lock... [2025-02-23 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:50:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:51:05 [end_date_ymd] => 2025-02-23 00:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:51:05' and `end` < '2025-02-23 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-02-23 00:51:17] Production.INFO: count ==406 [2025-02-23 00:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:51:05 - End Time 2025-02-23 00:51:05 [2025-02-23 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536199', 'tblTempUsageDetail_20' ) start [2025-02-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536199', 'tblTempUsageDetail_20' ) end [2025-02-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536199', 'tblTempVendorCDR_20' ) start [2025-02-23 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536199', 'tblTempVendorCDR_20' ) end [2025-02-23 00:51:17] Production.INFO: ProcessCDR(1,14536199,1,1,2) [2025-02-23 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536199', 'tblTempUsageDetail_20' ) start [2025-02-23 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536199', 'tblTempUsageDetail_20' ) end [2025-02-23 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:51:21] Production.INFO: ==25984== Releasing lock... [2025-02-23 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:52:05 [end_date_ymd] => 2025-02-23 00:52:05 [RateCDR] => 1 ) [2025-02-23 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:52:05' and `end` < '2025-02-23 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:52:17] Production.INFO: count ==445 [2025-02-23 00:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:52:05 - End Time 2025-02-23 00:52:05 [2025-02-23 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536204', 'tblTempUsageDetail_20' ) start [2025-02-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536204', 'tblTempUsageDetail_20' ) end [2025-02-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536204', 'tblTempVendorCDR_20' ) start [2025-02-23 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536204', 'tblTempVendorCDR_20' ) end [2025-02-23 00:52:17] Production.INFO: ProcessCDR(1,14536204,1,1,2) [2025-02-23 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536204', 'tblTempUsageDetail_20' ) start [2025-02-23 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536204', 'tblTempUsageDetail_20' ) end [2025-02-23 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:52:20] Production.INFO: ==26054== Releasing lock... [2025-02-23 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:52:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:53:05 [end_date_ymd] => 2025-02-23 00:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:53:05' and `end` < '2025-02-23 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-02-23 00:53:17] Production.INFO: count ==449 [2025-02-23 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:53:05 - End Time 2025-02-23 00:53:05 [2025-02-23 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536209', 'tblTempUsageDetail_20' ) start [2025-02-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536209', 'tblTempUsageDetail_20' ) end [2025-02-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536209', 'tblTempVendorCDR_20' ) start [2025-02-23 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536209', 'tblTempVendorCDR_20' ) end [2025-02-23 00:53:17] Production.INFO: ProcessCDR(1,14536209,1,1,2) [2025-02-23 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536209', 'tblTempUsageDetail_20' ) start [2025-02-23 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536209', 'tblTempUsageDetail_20' ) end [2025-02-23 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:53:21] Production.INFO: ==26129== Releasing lock... [2025-02-23 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:54:05 [end_date_ymd] => 2025-02-23 00:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:54:05' and `end` < '2025-02-23 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-02-23 00:54:17] Production.INFO: count ==452 [2025-02-23 00:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:54:05 - End Time 2025-02-23 00:54:05 [2025-02-23 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536214', 'tblTempUsageDetail_20' ) start [2025-02-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536214', 'tblTempUsageDetail_20' ) end [2025-02-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536214', 'tblTempVendorCDR_20' ) start [2025-02-23 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536214', 'tblTempVendorCDR_20' ) end [2025-02-23 00:54:17] Production.INFO: ProcessCDR(1,14536214,1,1,2) [2025-02-23 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536214', 'tblTempUsageDetail_20' ) start [2025-02-23 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536214', 'tblTempUsageDetail_20' ) end [2025-02-23 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:54:20] Production.INFO: ==26199== Releasing lock... [2025-02-23 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:54:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:55:06 [end_date_ymd] => 2025-02-23 00:55:06 [RateCDR] => 1 ) [2025-02-23 00:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:55:06' and `end` < '2025-02-23 00:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:55:17] Production.INFO: count ==452 [2025-02-23 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-22 21:55:06 - End Time 2025-02-23 00:55:06 [2025-02-23 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536219', 'tblTempUsageDetail_20' ) start [2025-02-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536219', 'tblTempUsageDetail_20' ) end [2025-02-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536219', 'tblTempVendorCDR_20' ) start [2025-02-23 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536219', 'tblTempVendorCDR_20' ) end [2025-02-23 00:55:18] Production.INFO: ProcessCDR(1,14536219,1,1,2) [2025-02-23 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536219', 'tblTempUsageDetail_20' ) start [2025-02-23 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536219', 'tblTempUsageDetail_20' ) end [2025-02-23 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:55:21] Production.INFO: ==26270== Releasing lock... [2025-02-23 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 00:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:56:04 [end_date_ymd] => 2025-02-23 00:56:04 [RateCDR] => 1 ) [2025-02-23 00:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:56:04' and `end` < '2025-02-23 00:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:56:16] Production.INFO: count ==453 [2025-02-23 00:56:16] Production.ERROR: pbx CDR StartTime 2025-02-22 21:56:04 - End Time 2025-02-23 00:56:04 [2025-02-23 00:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536223', 'tblTempUsageDetail_20' ) start [2025-02-23 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536223', 'tblTempUsageDetail_20' ) end [2025-02-23 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536223', 'tblTempVendorCDR_20' ) start [2025-02-23 00:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536223', 'tblTempVendorCDR_20' ) end [2025-02-23 00:56:16] Production.INFO: ProcessCDR(1,14536223,1,1,2) [2025-02-23 00:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536223', 'tblTempUsageDetail_20' ) start [2025-02-23 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536223', 'tblTempUsageDetail_20' ) end [2025-02-23 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:56:21] Production.INFO: ==26343== Releasing lock... [2025-02-23 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:57:05 [end_date_ymd] => 2025-02-23 00:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 21:57:05' and `end` < '2025-02-23 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-02-23 00:57:17] Production.INFO: count ==456 [2025-02-23 00:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:57:05 - End Time 2025-02-23 00:57:05 [2025-02-23 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536229', 'tblTempUsageDetail_20' ) start [2025-02-23 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536229', 'tblTempUsageDetail_20' ) end [2025-02-23 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536229', 'tblTempVendorCDR_20' ) start [2025-02-23 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536229', 'tblTempVendorCDR_20' ) end [2025-02-23 00:57:17] Production.INFO: ProcessCDR(1,14536229,1,1,2) [2025-02-23 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536229', 'tblTempUsageDetail_20' ) start [2025-02-23 00:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536229', 'tblTempUsageDetail_20' ) end [2025-02-23 00:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:57:20] Production.INFO: ==26413== Releasing lock... [2025-02-23 00:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:57:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 00:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:58:06 [end_date_ymd] => 2025-02-23 00:58:06 [RateCDR] => 1 ) [2025-02-23 00:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:58:06' and `end` < '2025-02-23 00:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:58:17] Production.INFO: count ==459 [2025-02-23 00:58:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:58:06 - End Time 2025-02-23 00:58:06 [2025-02-23 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536234', 'tblTempUsageDetail_20' ) start [2025-02-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536234', 'tblTempUsageDetail_20' ) end [2025-02-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536234', 'tblTempVendorCDR_20' ) start [2025-02-23 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536234', 'tblTempVendorCDR_20' ) end [2025-02-23 00:58:18] Production.INFO: ProcessCDR(1,14536234,1,1,2) [2025-02-23 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536234', 'tblTempUsageDetail_20' ) start [2025-02-23 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536234', 'tblTempUsageDetail_20' ) end [2025-02-23 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:58:21] Production.INFO: ==26487== Releasing lock... [2025-02-23 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 21:59:05 [end_date_ymd] => 2025-02-23 00:59:05 [RateCDR] => 1 ) [2025-02-23 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 21:59:05' and `end` < '2025-02-23 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 00:59:17] Production.INFO: count ==459 [2025-02-23 00:59:17] Production.ERROR: pbx CDR StartTime 2025-02-22 21:59:05 - End Time 2025-02-23 00:59:05 [2025-02-23 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536239', 'tblTempUsageDetail_20' ) start [2025-02-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536239', 'tblTempUsageDetail_20' ) end [2025-02-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536239', 'tblTempVendorCDR_20' ) start [2025-02-23 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536239', 'tblTempVendorCDR_20' ) end [2025-02-23 00:59:17] Production.INFO: ProcessCDR(1,14536239,1,1,2) [2025-02-23 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536239', 'tblTempUsageDetail_20' ) start [2025-02-23 00:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536239', 'tblTempUsageDetail_20' ) end [2025-02-23 00:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 00:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 00:59:20] Production.INFO: ==26557== Releasing lock... [2025-02-23 00:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 00:59:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:00:07 [end_date_ymd] => 2025-02-23 01:00:07 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:00:07' and `end` < '2025-02-23 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-02-23 01:00:18] Production.INFO: count ==471 [2025-02-23 01:00:19] Production.ERROR: pbx CDR StartTime 2025-02-22 22:00:07 - End Time 2025-02-23 01:00:07 [2025-02-23 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536244', 'tblTempUsageDetail_20' ) start [2025-02-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536244', 'tblTempUsageDetail_20' ) end [2025-02-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536244', 'tblTempVendorCDR_20' ) start [2025-02-23 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536244', 'tblTempVendorCDR_20' ) end [2025-02-23 01:00:19] Production.INFO: ProcessCDR(1,14536244,1,1,2) [2025-02-23 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536244', 'tblTempUsageDetail_20' ) start [2025-02-23 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536244', 'tblTempUsageDetail_20' ) end [2025-02-23 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:00:22] Production.INFO: ==26636== Releasing lock... [2025-02-23 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:01:05 [end_date_ymd] => 2025-02-23 01:01:05 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:01:05' and `end` < '2025-02-23 01: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-02-23 01:01:17] Production.INFO: count ==481 [2025-02-23 01:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:01:05 - End Time 2025-02-23 01:01:05 [2025-02-23 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536250', 'tblTempUsageDetail_20' ) start [2025-02-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536250', 'tblTempUsageDetail_20' ) end [2025-02-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536250', 'tblTempVendorCDR_20' ) start [2025-02-23 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536250', 'tblTempVendorCDR_20' ) end [2025-02-23 01:01:17] Production.INFO: ProcessCDR(1,14536250,1,1,2) [2025-02-23 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536250', 'tblTempUsageDetail_20' ) start [2025-02-23 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536250', 'tblTempUsageDetail_20' ) end [2025-02-23 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:01:21] Production.INFO: ==26722== Releasing lock... [2025-02-23 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:02:06 [end_date_ymd] => 2025-02-23 01:02:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:02:06' and `end` < '2025-02-23 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-02-23 01:02:18] Production.INFO: count ==476 [2025-02-23 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:02:06 - End Time 2025-02-23 01:02:06 [2025-02-23 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536255', 'tblTempUsageDetail_20' ) start [2025-02-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536255', 'tblTempUsageDetail_20' ) end [2025-02-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536255', 'tblTempVendorCDR_20' ) start [2025-02-23 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536255', 'tblTempVendorCDR_20' ) end [2025-02-23 01:02:18] Production.INFO: ProcessCDR(1,14536255,1,1,2) [2025-02-23 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536255', 'tblTempUsageDetail_20' ) start [2025-02-23 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536255', 'tblTempUsageDetail_20' ) end [2025-02-23 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:02:21] Production.INFO: ==26793== Releasing lock... [2025-02-23 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:02:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:03:05 [end_date_ymd] => 2025-02-23 01:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:03:05' and `end` < '2025-02-23 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-02-23 01:03:17] Production.INFO: count ==475 [2025-02-23 01:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:03:05 - End Time 2025-02-23 01:03:05 [2025-02-23 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536260', 'tblTempUsageDetail_20' ) start [2025-02-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536260', 'tblTempUsageDetail_20' ) end [2025-02-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536260', 'tblTempVendorCDR_20' ) start [2025-02-23 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536260', 'tblTempVendorCDR_20' ) end [2025-02-23 01:03:17] Production.INFO: ProcessCDR(1,14536260,1,1,2) [2025-02-23 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536260', 'tblTempUsageDetail_20' ) start [2025-02-23 01:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536260', 'tblTempUsageDetail_20' ) end [2025-02-23 01:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:03:20] Production.INFO: ==26864== Releasing lock... [2025-02-23 01:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:03:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:04:06 [end_date_ymd] => 2025-02-23 01:04:06 [RateCDR] => 1 ) [2025-02-23 01:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:04:06' and `end` < '2025-02-23 01:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:04:17] Production.INFO: count ==475 [2025-02-23 01:04:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:04:06 - End Time 2025-02-23 01:04:06 [2025-02-23 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536265', 'tblTempUsageDetail_20' ) start [2025-02-23 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536265', 'tblTempUsageDetail_20' ) end [2025-02-23 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536265', 'tblTempVendorCDR_20' ) start [2025-02-23 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536265', 'tblTempVendorCDR_20' ) end [2025-02-23 01:04:17] Production.INFO: ProcessCDR(1,14536265,1,1,2) [2025-02-23 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536265', 'tblTempUsageDetail_20' ) start [2025-02-23 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536265', 'tblTempUsageDetail_20' ) end [2025-02-23 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:04:21] Production.INFO: ==26936== Releasing lock... [2025-02-23 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:04:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:05:05 [end_date_ymd] => 2025-02-23 01:05:05 [RateCDR] => 1 ) [2025-02-23 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:05:05' and `end` < '2025-02-23 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:05:16] Production.INFO: count ==471 [2025-02-23 01:05:16] Production.ERROR: pbx CDR StartTime 2025-02-22 22:05:05 - End Time 2025-02-23 01:05:05 [2025-02-23 01:05:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536270', 'tblTempUsageDetail_20' ) start [2025-02-23 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536270', 'tblTempUsageDetail_20' ) end [2025-02-23 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536270', 'tblTempVendorCDR_20' ) start [2025-02-23 01:05:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536270', 'tblTempVendorCDR_20' ) end [2025-02-23 01:05:16] Production.INFO: ProcessCDR(1,14536270,1,1,2) [2025-02-23 01:05:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:05:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:05:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536270', 'tblTempUsageDetail_20' ) start [2025-02-23 01:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536270', 'tblTempUsageDetail_20' ) end [2025-02-23 01:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:05:20] Production.INFO: ==27047== Releasing lock... [2025-02-23 01:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:05:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:06:05 [end_date_ymd] => 2025-02-23 01:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:06:05' and `end` < '2025-02-23 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-02-23 01:06:17] Production.INFO: count ==475 [2025-02-23 01:06:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:06:05 - End Time 2025-02-23 01:06:05 [2025-02-23 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536275', 'tblTempUsageDetail_20' ) start [2025-02-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536275', 'tblTempUsageDetail_20' ) end [2025-02-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536275', 'tblTempVendorCDR_20' ) start [2025-02-23 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536275', 'tblTempVendorCDR_20' ) end [2025-02-23 01:06:17] Production.INFO: ProcessCDR(1,14536275,1,1,2) [2025-02-23 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536275', 'tblTempUsageDetail_20' ) start [2025-02-23 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536275', 'tblTempUsageDetail_20' ) end [2025-02-23 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:06:20] Production.INFO: ==27118== Releasing lock... [2025-02-23 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:06:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:07:06 [end_date_ymd] => 2025-02-23 01:07:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:07:06' and `end` < '2025-02-23 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-02-23 01:07:18] Production.INFO: count ==473 [2025-02-23 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:07:06 - End Time 2025-02-23 01:07:06 [2025-02-23 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536280', 'tblTempUsageDetail_20' ) start [2025-02-23 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536280', 'tblTempUsageDetail_20' ) end [2025-02-23 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536280', 'tblTempVendorCDR_20' ) start [2025-02-23 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536280', 'tblTempVendorCDR_20' ) end [2025-02-23 01:07:18] Production.INFO: ProcessCDR(1,14536280,1,1,2) [2025-02-23 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536280', 'tblTempUsageDetail_20' ) start [2025-02-23 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536280', 'tblTempUsageDetail_20' ) end [2025-02-23 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:07:21] Production.INFO: ==27189== Releasing lock... [2025-02-23 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:08:05 [end_date_ymd] => 2025-02-23 01:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:08:05' and `end` < '2025-02-23 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-02-23 01:08:17] Production.INFO: count ==475 [2025-02-23 01:08:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:08:05 - End Time 2025-02-23 01:08:05 [2025-02-23 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536285', 'tblTempUsageDetail_20' ) start [2025-02-23 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536285', 'tblTempUsageDetail_20' ) end [2025-02-23 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536285', 'tblTempVendorCDR_20' ) start [2025-02-23 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536285', 'tblTempVendorCDR_20' ) end [2025-02-23 01:08:17] Production.INFO: ProcessCDR(1,14536285,1,1,2) [2025-02-23 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536285', 'tblTempUsageDetail_20' ) start [2025-02-23 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536285', 'tblTempUsageDetail_20' ) end [2025-02-23 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:08:20] Production.INFO: ==27259== Releasing lock... [2025-02-23 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:08:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:09:05 [end_date_ymd] => 2025-02-23 01:09:05 [RateCDR] => 1 ) [2025-02-23 01:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:09:05' and `end` < '2025-02-23 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-02-23 01:09:17] Production.INFO: count ==479 [2025-02-23 01:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:09:05 - End Time 2025-02-23 01:09:05 [2025-02-23 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536290', 'tblTempUsageDetail_20' ) start [2025-02-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536290', 'tblTempUsageDetail_20' ) end [2025-02-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536290', 'tblTempVendorCDR_20' ) start [2025-02-23 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536290', 'tblTempVendorCDR_20' ) end [2025-02-23 01:09:17] Production.INFO: ProcessCDR(1,14536290,1,1,2) [2025-02-23 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536290', 'tblTempUsageDetail_20' ) start [2025-02-23 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536290', 'tblTempUsageDetail_20' ) end [2025-02-23 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:09:21] Production.INFO: ==27329== Releasing lock... [2025-02-23 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:10:06 [end_date_ymd] => 2025-02-23 01:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:10:06' and `end` < '2025-02-23 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-02-23 01:10:18] Production.INFO: count ==482 [2025-02-23 01:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:10:06 - End Time 2025-02-23 01:10:06 [2025-02-23 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536295', 'tblTempUsageDetail_20' ) start [2025-02-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536295', 'tblTempUsageDetail_20' ) end [2025-02-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536295', 'tblTempVendorCDR_20' ) start [2025-02-23 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536295', 'tblTempVendorCDR_20' ) end [2025-02-23 01:10:18] Production.INFO: ProcessCDR(1,14536295,1,1,2) [2025-02-23 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536295', 'tblTempUsageDetail_20' ) start [2025-02-23 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536295', 'tblTempUsageDetail_20' ) end [2025-02-23 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:10:21] Production.INFO: ==27402== Releasing lock... [2025-02-23 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:10:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:11:05 [end_date_ymd] => 2025-02-23 01:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:11:05' and `end` < '2025-02-23 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-02-23 01:11:17] Production.INFO: count ==482 [2025-02-23 01:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:11:05 - End Time 2025-02-23 01:11:05 [2025-02-23 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536301', 'tblTempUsageDetail_20' ) start [2025-02-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536301', 'tblTempUsageDetail_20' ) end [2025-02-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536301', 'tblTempVendorCDR_20' ) start [2025-02-23 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536301', 'tblTempVendorCDR_20' ) end [2025-02-23 01:11:17] Production.INFO: ProcessCDR(1,14536301,1,1,2) [2025-02-23 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536301', 'tblTempUsageDetail_20' ) start [2025-02-23 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536301', 'tblTempUsageDetail_20' ) end [2025-02-23 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:11:20] Production.INFO: ==27476== Releasing lock... [2025-02-23 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:11:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:12:05 [end_date_ymd] => 2025-02-23 01:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:12:05' and `end` < '2025-02-23 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-02-23 01:12:17] Production.INFO: count ==479 [2025-02-23 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:12:05 - End Time 2025-02-23 01:12:05 [2025-02-23 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536306', 'tblTempUsageDetail_20' ) start [2025-02-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536306', 'tblTempUsageDetail_20' ) end [2025-02-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536306', 'tblTempVendorCDR_20' ) start [2025-02-23 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536306', 'tblTempVendorCDR_20' ) end [2025-02-23 01:12:17] Production.INFO: ProcessCDR(1,14536306,1,1,2) [2025-02-23 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536306', 'tblTempUsageDetail_20' ) start [2025-02-23 01:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536306', 'tblTempUsageDetail_20' ) end [2025-02-23 01:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:12:20] Production.INFO: ==27545== Releasing lock... [2025-02-23 01:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:12:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:13:05 [end_date_ymd] => 2025-02-23 01:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:13:05' and `end` < '2025-02-23 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-02-23 01:13:17] Production.INFO: count ==478 [2025-02-23 01:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:13:05 - End Time 2025-02-23 01:13:05 [2025-02-23 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536311', 'tblTempUsageDetail_20' ) start [2025-02-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536311', 'tblTempUsageDetail_20' ) end [2025-02-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536311', 'tblTempVendorCDR_20' ) start [2025-02-23 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536311', 'tblTempVendorCDR_20' ) end [2025-02-23 01:13:17] Production.INFO: ProcessCDR(1,14536311,1,1,2) [2025-02-23 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536311', 'tblTempUsageDetail_20' ) start [2025-02-23 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536311', 'tblTempUsageDetail_20' ) end [2025-02-23 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:13:20] Production.INFO: ==27617== Releasing lock... [2025-02-23 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:13:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:14:05 [end_date_ymd] => 2025-02-23 01:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:14:05' and `end` < '2025-02-23 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-02-23 01:14:16] Production.INFO: count ==477 [2025-02-23 01:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:14:05 - End Time 2025-02-23 01:14:05 [2025-02-23 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536316', 'tblTempUsageDetail_20' ) start [2025-02-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536316', 'tblTempUsageDetail_20' ) end [2025-02-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536316', 'tblTempVendorCDR_20' ) start [2025-02-23 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536316', 'tblTempVendorCDR_20' ) end [2025-02-23 01:14:17] Production.INFO: ProcessCDR(1,14536316,1,1,2) [2025-02-23 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536316', 'tblTempUsageDetail_20' ) start [2025-02-23 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536316', 'tblTempUsageDetail_20' ) end [2025-02-23 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:14:20] Production.INFO: ==27688== Releasing lock... [2025-02-23 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:14:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:15:05 [end_date_ymd] => 2025-02-23 01:15:05 [RateCDR] => 1 ) [2025-02-23 01:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:15:05' and `end` < '2025-02-23 01:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:15:17] Production.INFO: count ==467 [2025-02-23 01:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:15:05 - End Time 2025-02-23 01:15:05 [2025-02-23 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536321', 'tblTempUsageDetail_20' ) start [2025-02-23 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536321', 'tblTempUsageDetail_20' ) end [2025-02-23 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536321', 'tblTempVendorCDR_20' ) start [2025-02-23 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536321', 'tblTempVendorCDR_20' ) end [2025-02-23 01:15:17] Production.INFO: ProcessCDR(1,14536321,1,1,2) [2025-02-23 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536321', 'tblTempUsageDetail_20' ) start [2025-02-23 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536321', 'tblTempUsageDetail_20' ) end [2025-02-23 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:15:20] Production.INFO: ==27767== Releasing lock... [2025-02-23 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:15:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:16:05 [end_date_ymd] => 2025-02-23 01:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:16:05' and `end` < '2025-02-23 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-02-23 01:16:17] Production.INFO: count ==463 [2025-02-23 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:16:05 - End Time 2025-02-23 01:16:05 [2025-02-23 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536326', 'tblTempUsageDetail_20' ) start [2025-02-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536326', 'tblTempUsageDetail_20' ) end [2025-02-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536326', 'tblTempVendorCDR_20' ) start [2025-02-23 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536326', 'tblTempVendorCDR_20' ) end [2025-02-23 01:16:17] Production.INFO: ProcessCDR(1,14536326,1,1,2) [2025-02-23 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536326', 'tblTempUsageDetail_20' ) start [2025-02-23 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536326', 'tblTempUsageDetail_20' ) end [2025-02-23 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:16:20] Production.INFO: ==27839== Releasing lock... [2025-02-23 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:16:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:17:05 [end_date_ymd] => 2025-02-23 01:17:05 [RateCDR] => 1 ) [2025-02-23 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:17:05' and `end` < '2025-02-23 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:17:17] Production.INFO: count ==467 [2025-02-23 01:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:17:05 - End Time 2025-02-23 01:17:05 [2025-02-23 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536331', 'tblTempUsageDetail_20' ) start [2025-02-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536331', 'tblTempUsageDetail_20' ) end [2025-02-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536331', 'tblTempVendorCDR_20' ) start [2025-02-23 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536331', 'tblTempVendorCDR_20' ) end [2025-02-23 01:17:17] Production.INFO: ProcessCDR(1,14536331,1,1,2) [2025-02-23 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536331', 'tblTempUsageDetail_20' ) start [2025-02-23 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536331', 'tblTempUsageDetail_20' ) end [2025-02-23 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:17:21] Production.INFO: ==27913== Releasing lock... [2025-02-23 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:18:05 [end_date_ymd] => 2025-02-23 01:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:18:05' and `end` < '2025-02-23 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-02-23 01:18:17] Production.INFO: count ==467 [2025-02-23 01:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:18:05 - End Time 2025-02-23 01:18:05 [2025-02-23 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536336', 'tblTempUsageDetail_20' ) start [2025-02-23 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536336', 'tblTempUsageDetail_20' ) end [2025-02-23 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536336', 'tblTempVendorCDR_20' ) start [2025-02-23 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536336', 'tblTempVendorCDR_20' ) end [2025-02-23 01:18:17] Production.INFO: ProcessCDR(1,14536336,1,1,2) [2025-02-23 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536336', 'tblTempUsageDetail_20' ) start [2025-02-23 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536336', 'tblTempUsageDetail_20' ) end [2025-02-23 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:18:20] Production.INFO: ==27989== Releasing lock... [2025-02-23 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:18:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:19:05 [end_date_ymd] => 2025-02-23 01:19:05 [RateCDR] => 1 ) [2025-02-23 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:19:05' and `end` < '2025-02-23 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:19:16] Production.INFO: count ==463 [2025-02-23 01:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:19:05 - End Time 2025-02-23 01:19:05 [2025-02-23 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536341', 'tblTempUsageDetail_20' ) start [2025-02-23 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536341', 'tblTempUsageDetail_20' ) end [2025-02-23 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536341', 'tblTempVendorCDR_20' ) start [2025-02-23 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536341', 'tblTempVendorCDR_20' ) end [2025-02-23 01:19:17] Production.INFO: ProcessCDR(1,14536341,1,1,2) [2025-02-23 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536341', 'tblTempUsageDetail_20' ) start [2025-02-23 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536341', 'tblTempUsageDetail_20' ) end [2025-02-23 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:19:20] Production.INFO: ==28068== Releasing lock... [2025-02-23 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:19:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:20:06 [end_date_ymd] => 2025-02-23 01:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:20:06' and `end` < '2025-02-23 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-02-23 01:20:18] Production.INFO: count ==473 [2025-02-23 01:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:20:06 - End Time 2025-02-23 01:20:06 [2025-02-23 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536347', 'tblTempUsageDetail_20' ) start [2025-02-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536347', 'tblTempUsageDetail_20' ) end [2025-02-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536347', 'tblTempVendorCDR_20' ) start [2025-02-23 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536347', 'tblTempVendorCDR_20' ) end [2025-02-23 01:20:19] Production.INFO: ProcessCDR(1,14536347,1,1,2) [2025-02-23 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536347', 'tblTempUsageDetail_20' ) start [2025-02-23 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536347', 'tblTempUsageDetail_20' ) end [2025-02-23 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:20:22] Production.INFO: ==28187== Releasing lock... [2025-02-23 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:20:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:21:05 [end_date_ymd] => 2025-02-23 01:21:05 [RateCDR] => 1 ) [2025-02-23 01:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:21:05' and `end` < '2025-02-23 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:21:17] Production.INFO: count ==490 [2025-02-23 01:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:21:05 - End Time 2025-02-23 01:21:05 [2025-02-23 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536352', 'tblTempUsageDetail_20' ) start [2025-02-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536352', 'tblTempUsageDetail_20' ) end [2025-02-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536352', 'tblTempVendorCDR_20' ) start [2025-02-23 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536352', 'tblTempVendorCDR_20' ) end [2025-02-23 01:21:17] Production.INFO: ProcessCDR(1,14536352,1,1,2) [2025-02-23 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536352', 'tblTempUsageDetail_20' ) start [2025-02-23 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536352', 'tblTempUsageDetail_20' ) end [2025-02-23 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:21:21] Production.INFO: ==28266== Releasing lock... [2025-02-23 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:22:05 [end_date_ymd] => 2025-02-23 01:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:22:05' and `end` < '2025-02-23 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-02-23 01:22:17] Production.INFO: count ==495 [2025-02-23 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:22:05 - End Time 2025-02-23 01:22:05 [2025-02-23 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536357', 'tblTempUsageDetail_20' ) start [2025-02-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536357', 'tblTempUsageDetail_20' ) end [2025-02-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536357', 'tblTempVendorCDR_20' ) start [2025-02-23 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536357', 'tblTempVendorCDR_20' ) end [2025-02-23 01:22:17] Production.INFO: ProcessCDR(1,14536357,1,1,2) [2025-02-23 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536357', 'tblTempUsageDetail_20' ) start [2025-02-23 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536357', 'tblTempUsageDetail_20' ) end [2025-02-23 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:22:20] Production.INFO: ==28339== Releasing lock... [2025-02-23 01:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:22:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:23:05 [end_date_ymd] => 2025-02-23 01:23:05 [RateCDR] => 1 ) [2025-02-23 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:23:05' and `end` < '2025-02-23 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:23:17] Production.INFO: count ==498 [2025-02-23 01:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:23:05 - End Time 2025-02-23 01:23:05 [2025-02-23 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536362', 'tblTempUsageDetail_20' ) start [2025-02-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536362', 'tblTempUsageDetail_20' ) end [2025-02-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536362', 'tblTempVendorCDR_20' ) start [2025-02-23 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536362', 'tblTempVendorCDR_20' ) end [2025-02-23 01:23:17] Production.INFO: ProcessCDR(1,14536362,1,1,2) [2025-02-23 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536362', 'tblTempUsageDetail_20' ) start [2025-02-23 01:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536362', 'tblTempUsageDetail_20' ) end [2025-02-23 01:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:23:20] Production.INFO: ==28415== Releasing lock... [2025-02-23 01:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:23:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:24:06 [end_date_ymd] => 2025-02-23 01:24:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:24:06' and `end` < '2025-02-23 01: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-02-23 01:24:18] Production.INFO: count ==502 [2025-02-23 01:24:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:24:06 - End Time 2025-02-23 01:24:06 [2025-02-23 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536367', 'tblTempUsageDetail_20' ) start [2025-02-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536367', 'tblTempUsageDetail_20' ) end [2025-02-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536367', 'tblTempVendorCDR_20' ) start [2025-02-23 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536367', 'tblTempVendorCDR_20' ) end [2025-02-23 01:24:18] Production.INFO: ProcessCDR(1,14536367,1,1,2) [2025-02-23 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536367', 'tblTempUsageDetail_20' ) start [2025-02-23 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536367', 'tblTempUsageDetail_20' ) end [2025-02-23 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:24:21] Production.INFO: ==28490== Releasing lock... [2025-02-23 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:25:05 [end_date_ymd] => 2025-02-23 01:25:05 [RateCDR] => 1 ) [2025-02-23 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:25:05' and `end` < '2025-02-23 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:25:17] Production.INFO: count ==502 [2025-02-23 01:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:25:05 - End Time 2025-02-23 01:25:05 [2025-02-23 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536372', 'tblTempUsageDetail_20' ) start [2025-02-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536372', 'tblTempUsageDetail_20' ) end [2025-02-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536372', 'tblTempVendorCDR_20' ) start [2025-02-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536372', 'tblTempVendorCDR_20' ) end [2025-02-23 01:25:17] Production.INFO: ProcessCDR(1,14536372,1,1,2) [2025-02-23 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536372', 'tblTempUsageDetail_20' ) start [2025-02-23 01:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536372', 'tblTempUsageDetail_20' ) end [2025-02-23 01:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:25:20] Production.INFO: ==28562== Releasing lock... [2025-02-23 01:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:25:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:26:05 [end_date_ymd] => 2025-02-23 01:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:26:05' and `end` < '2025-02-23 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-02-23 01:26:17] Production.INFO: count ==506 [2025-02-23 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:26:05 - End Time 2025-02-23 01:26:05 [2025-02-23 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536377', 'tblTempUsageDetail_20' ) start [2025-02-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536377', 'tblTempUsageDetail_20' ) end [2025-02-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536377', 'tblTempVendorCDR_20' ) start [2025-02-23 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536377', 'tblTempVendorCDR_20' ) end [2025-02-23 01:26:17] Production.INFO: ProcessCDR(1,14536377,1,1,2) [2025-02-23 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536377', 'tblTempUsageDetail_20' ) start [2025-02-23 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536377', 'tblTempUsageDetail_20' ) end [2025-02-23 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:26:21] Production.INFO: ==28637== Releasing lock... [2025-02-23 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:27:05 [end_date_ymd] => 2025-02-23 01:27:05 [RateCDR] => 1 ) [2025-02-23 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:27:05' and `end` < '2025-02-23 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:27:16] Production.INFO: count ==507 [2025-02-23 01:27:16] Production.ERROR: pbx CDR StartTime 2025-02-22 22:27:05 - End Time 2025-02-23 01:27:05 [2025-02-23 01:27:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536382', 'tblTempUsageDetail_20' ) start [2025-02-23 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536382', 'tblTempUsageDetail_20' ) end [2025-02-23 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536382', 'tblTempVendorCDR_20' ) start [2025-02-23 01:27:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536382', 'tblTempVendorCDR_20' ) end [2025-02-23 01:27:16] Production.INFO: ProcessCDR(1,14536382,1,1,2) [2025-02-23 01:27:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536382', 'tblTempUsageDetail_20' ) start [2025-02-23 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536382', 'tblTempUsageDetail_20' ) end [2025-02-23 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:27:21] Production.INFO: ==28708== Releasing lock... [2025-02-23 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:28:05 [end_date_ymd] => 2025-02-23 01:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:28:05' and `end` < '2025-02-23 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-02-23 01:28:17] Production.INFO: count ==511 [2025-02-23 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:28:05 - End Time 2025-02-23 01:28:05 [2025-02-23 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536387', 'tblTempUsageDetail_20' ) start [2025-02-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536387', 'tblTempUsageDetail_20' ) end [2025-02-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536387', 'tblTempVendorCDR_20' ) start [2025-02-23 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536387', 'tblTempVendorCDR_20' ) end [2025-02-23 01:28:17] Production.INFO: ProcessCDR(1,14536387,1,1,2) [2025-02-23 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536387', 'tblTempUsageDetail_20' ) start [2025-02-23 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536387', 'tblTempUsageDetail_20' ) end [2025-02-23 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:28:21] Production.INFO: ==28780== Releasing lock... [2025-02-23 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:28:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:29:05 [end_date_ymd] => 2025-02-23 01:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:29:05' and `end` < '2025-02-23 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-02-23 01:29:17] Production.INFO: count ==512 [2025-02-23 01:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:29:05 - End Time 2025-02-23 01:29:05 [2025-02-23 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536392', 'tblTempUsageDetail_20' ) start [2025-02-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536392', 'tblTempUsageDetail_20' ) end [2025-02-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536392', 'tblTempVendorCDR_20' ) start [2025-02-23 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536392', 'tblTempVendorCDR_20' ) end [2025-02-23 01:29:17] Production.INFO: ProcessCDR(1,14536392,1,1,2) [2025-02-23 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536392', 'tblTempUsageDetail_20' ) start [2025-02-23 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536392', 'tblTempUsageDetail_20' ) end [2025-02-23 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:29:22] Production.INFO: ==28851== Releasing lock... [2025-02-23 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:30:06 [end_date_ymd] => 2025-02-23 01:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:30:06' and `end` < '2025-02-23 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-02-23 01:30:18] Production.INFO: count ==522 [2025-02-23 01:30:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:30:06 - End Time 2025-02-23 01:30:06 [2025-02-23 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536398', 'tblTempUsageDetail_20' ) start [2025-02-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536398', 'tblTempUsageDetail_20' ) end [2025-02-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536398', 'tblTempVendorCDR_20' ) start [2025-02-23 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536398', 'tblTempVendorCDR_20' ) end [2025-02-23 01:30:18] Production.INFO: ProcessCDR(1,14536398,1,1,2) [2025-02-23 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536398', 'tblTempUsageDetail_20' ) start [2025-02-23 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536398', 'tblTempUsageDetail_20' ) end [2025-02-23 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:30:21] Production.INFO: ==28924== Releasing lock... [2025-02-23 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:30:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:31:04 [end_date_ymd] => 2025-02-23 01:31:04 [RateCDR] => 1 ) [2025-02-23 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:31:04' and `end` < '2025-02-23 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:31:16] Production.INFO: count ==540 [2025-02-23 01:31:16] Production.ERROR: pbx CDR StartTime 2025-02-22 22:31:04 - End Time 2025-02-23 01:31:04 [2025-02-23 01:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536403', 'tblTempUsageDetail_20' ) start [2025-02-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536403', 'tblTempUsageDetail_20' ) end [2025-02-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536403', 'tblTempVendorCDR_20' ) start [2025-02-23 01:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536403', 'tblTempVendorCDR_20' ) end [2025-02-23 01:31:16] Production.INFO: ProcessCDR(1,14536403,1,1,2) [2025-02-23 01:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536403', 'tblTempUsageDetail_20' ) start [2025-02-23 01:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536403', 'tblTempUsageDetail_20' ) end [2025-02-23 01:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:31:20] Production.INFO: ==28995== Releasing lock... [2025-02-23 01:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:31:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:32:05 [end_date_ymd] => 2025-02-23 01:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:32:05' and `end` < '2025-02-23 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-02-23 01:32:17] Production.INFO: count ==536 [2025-02-23 01:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:32:05 - End Time 2025-02-23 01:32:05 [2025-02-23 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536408', 'tblTempUsageDetail_20' ) start [2025-02-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536408', 'tblTempUsageDetail_20' ) end [2025-02-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536408', 'tblTempVendorCDR_20' ) start [2025-02-23 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536408', 'tblTempVendorCDR_20' ) end [2025-02-23 01:32:17] Production.INFO: ProcessCDR(1,14536408,1,1,2) [2025-02-23 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536408', 'tblTempUsageDetail_20' ) start [2025-02-23 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536408', 'tblTempUsageDetail_20' ) end [2025-02-23 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:32:21] Production.INFO: ==29069== Releasing lock... [2025-02-23 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:32:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:33:06 [end_date_ymd] => 2025-02-23 01:33:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:33:06' and `end` < '2025-02-23 01: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-02-23 01:33:18] Production.INFO: count ==535 [2025-02-23 01:33:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:33:06 - End Time 2025-02-23 01:33:06 [2025-02-23 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536413', 'tblTempUsageDetail_20' ) start [2025-02-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536413', 'tblTempUsageDetail_20' ) end [2025-02-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536413', 'tblTempVendorCDR_20' ) start [2025-02-23 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536413', 'tblTempVendorCDR_20' ) end [2025-02-23 01:33:18] Production.INFO: ProcessCDR(1,14536413,1,1,2) [2025-02-23 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536413', 'tblTempUsageDetail_20' ) start [2025-02-23 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536413', 'tblTempUsageDetail_20' ) end [2025-02-23 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:33:21] Production.INFO: ==29142== Releasing lock... [2025-02-23 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:34:06 [end_date_ymd] => 2025-02-23 01:34:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:34:06' and `end` < '2025-02-23 01: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-02-23 01:34:17] Production.INFO: count ==524 [2025-02-23 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:34:06 - End Time 2025-02-23 01:34:06 [2025-02-23 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536418', 'tblTempUsageDetail_20' ) start [2025-02-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536418', 'tblTempUsageDetail_20' ) end [2025-02-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536418', 'tblTempVendorCDR_20' ) start [2025-02-23 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536418', 'tblTempVendorCDR_20' ) end [2025-02-23 01:34:18] Production.INFO: ProcessCDR(1,14536418,1,1,2) [2025-02-23 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536418', 'tblTempUsageDetail_20' ) start [2025-02-23 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536418', 'tblTempUsageDetail_20' ) end [2025-02-23 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:34:21] Production.INFO: ==29213== Releasing lock... [2025-02-23 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:34:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:35:06 [end_date_ymd] => 2025-02-23 01:35:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:35:06' and `end` < '2025-02-23 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-02-23 01:35:18] Production.INFO: count ==514 [2025-02-23 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:35:06 - End Time 2025-02-23 01:35:06 [2025-02-23 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536423', 'tblTempUsageDetail_20' ) start [2025-02-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536423', 'tblTempUsageDetail_20' ) end [2025-02-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536423', 'tblTempVendorCDR_20' ) start [2025-02-23 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536423', 'tblTempVendorCDR_20' ) end [2025-02-23 01:35:18] Production.INFO: ProcessCDR(1,14536423,1,1,2) [2025-02-23 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536423', 'tblTempUsageDetail_20' ) start [2025-02-23 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536423', 'tblTempUsageDetail_20' ) end [2025-02-23 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:35:22] Production.INFO: ==29283== Releasing lock... [2025-02-23 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:35:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:36:06 [end_date_ymd] => 2025-02-23 01:36:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:36:06' and `end` < '2025-02-23 01: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-02-23 01:36:18] Production.INFO: count ==512 [2025-02-23 01:36:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:36:06 - End Time 2025-02-23 01:36:06 [2025-02-23 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536428', 'tblTempUsageDetail_20' ) start [2025-02-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536428', 'tblTempUsageDetail_20' ) end [2025-02-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536428', 'tblTempVendorCDR_20' ) start [2025-02-23 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536428', 'tblTempVendorCDR_20' ) end [2025-02-23 01:36:18] Production.INFO: ProcessCDR(1,14536428,1,1,2) [2025-02-23 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536428', 'tblTempUsageDetail_20' ) start [2025-02-23 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536428', 'tblTempUsageDetail_20' ) end [2025-02-23 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:36:22] Production.INFO: ==29397== Releasing lock... [2025-02-23 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:37:05 [end_date_ymd] => 2025-02-23 01:37:05 [RateCDR] => 1 ) [2025-02-23 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:37:05' and `end` < '2025-02-23 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:37:17] Production.INFO: count ==511 [2025-02-23 01:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:37:05 - End Time 2025-02-23 01:37:05 [2025-02-23 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536433', 'tblTempUsageDetail_20' ) start [2025-02-23 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536433', 'tblTempUsageDetail_20' ) end [2025-02-23 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536433', 'tblTempVendorCDR_20' ) start [2025-02-23 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536433', 'tblTempVendorCDR_20' ) end [2025-02-23 01:37:17] Production.INFO: ProcessCDR(1,14536433,1,1,2) [2025-02-23 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536433', 'tblTempUsageDetail_20' ) start [2025-02-23 01:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536433', 'tblTempUsageDetail_20' ) end [2025-02-23 01:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:37:21] Production.INFO: ==29476== Releasing lock... [2025-02-23 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:38:06 [end_date_ymd] => 2025-02-23 01:38:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:38:06' and `end` < '2025-02-23 01: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-02-23 01:38:18] Production.INFO: count ==507 [2025-02-23 01:38:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:38:06 - End Time 2025-02-23 01:38:06 [2025-02-23 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536438', 'tblTempUsageDetail_20' ) start [2025-02-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536438', 'tblTempUsageDetail_20' ) end [2025-02-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536438', 'tblTempVendorCDR_20' ) start [2025-02-23 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536438', 'tblTempVendorCDR_20' ) end [2025-02-23 01:38:18] Production.INFO: ProcessCDR(1,14536438,1,1,2) [2025-02-23 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536438', 'tblTempUsageDetail_20' ) start [2025-02-23 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536438', 'tblTempUsageDetail_20' ) end [2025-02-23 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:38:22] Production.INFO: ==29562== Releasing lock... [2025-02-23 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:38:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:39:05 [end_date_ymd] => 2025-02-23 01:39:05 [RateCDR] => 1 ) [2025-02-23 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:39:05' and `end` < '2025-02-23 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:39:17] Production.INFO: count ==502 [2025-02-23 01:39:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:39:05 - End Time 2025-02-23 01:39:05 [2025-02-23 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536443', 'tblTempUsageDetail_20' ) start [2025-02-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536443', 'tblTempUsageDetail_20' ) end [2025-02-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536443', 'tblTempVendorCDR_20' ) start [2025-02-23 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536443', 'tblTempVendorCDR_20' ) end [2025-02-23 01:39:17] Production.INFO: ProcessCDR(1,14536443,1,1,2) [2025-02-23 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536443', 'tblTempUsageDetail_20' ) start [2025-02-23 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536443', 'tblTempUsageDetail_20' ) end [2025-02-23 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:39:21] Production.INFO: ==29642== Releasing lock... [2025-02-23 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:40:06 [end_date_ymd] => 2025-02-23 01:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:40:06' and `end` < '2025-02-23 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-02-23 01:40:18] Production.INFO: count ==508 [2025-02-23 01:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:40:06 - End Time 2025-02-23 01:40:06 [2025-02-23 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536449', 'tblTempUsageDetail_20' ) start [2025-02-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536449', 'tblTempUsageDetail_20' ) end [2025-02-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536449', 'tblTempVendorCDR_20' ) start [2025-02-23 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536449', 'tblTempVendorCDR_20' ) end [2025-02-23 01:40:18] Production.INFO: ProcessCDR(1,14536449,1,1,2) [2025-02-23 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536449', 'tblTempUsageDetail_20' ) start [2025-02-23 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536449', 'tblTempUsageDetail_20' ) end [2025-02-23 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:40:22] Production.INFO: ==29724== Releasing lock... [2025-02-23 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:40:22] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:41:05 [end_date_ymd] => 2025-02-23 01:41:05 [RateCDR] => 1 ) [2025-02-23 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:41:05' and `end` < '2025-02-23 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:41:17] Production.INFO: count ==508 [2025-02-23 01:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:41:05 - End Time 2025-02-23 01:41:05 [2025-02-23 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536454', 'tblTempUsageDetail_20' ) start [2025-02-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536454', 'tblTempUsageDetail_20' ) end [2025-02-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536454', 'tblTempVendorCDR_20' ) start [2025-02-23 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536454', 'tblTempVendorCDR_20' ) end [2025-02-23 01:41:17] Production.INFO: ProcessCDR(1,14536454,1,1,2) [2025-02-23 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536454', 'tblTempUsageDetail_20' ) start [2025-02-23 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536454', 'tblTempUsageDetail_20' ) end [2025-02-23 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:41:21] Production.INFO: ==29808== Releasing lock... [2025-02-23 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:41:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:42:05 [end_date_ymd] => 2025-02-23 01:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:42:05' and `end` < '2025-02-23 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-02-23 01:42:17] Production.INFO: count ==508 [2025-02-23 01:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:42:05 - End Time 2025-02-23 01:42:05 [2025-02-23 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536459', 'tblTempUsageDetail_20' ) start [2025-02-23 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536459', 'tblTempUsageDetail_20' ) end [2025-02-23 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536459', 'tblTempVendorCDR_20' ) start [2025-02-23 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536459', 'tblTempVendorCDR_20' ) end [2025-02-23 01:42:17] Production.INFO: ProcessCDR(1,14536459,1,1,2) [2025-02-23 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536459', 'tblTempUsageDetail_20' ) start [2025-02-23 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536459', 'tblTempUsageDetail_20' ) end [2025-02-23 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:42:21] Production.INFO: ==29887== Releasing lock... [2025-02-23 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:42:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:43:06 [end_date_ymd] => 2025-02-23 01:43:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:43:06' and `end` < '2025-02-23 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-02-23 01:43:17] Production.INFO: count ==508 [2025-02-23 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:43:06 - End Time 2025-02-23 01:43:06 [2025-02-23 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536464', 'tblTempUsageDetail_20' ) start [2025-02-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536464', 'tblTempUsageDetail_20' ) end [2025-02-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536464', 'tblTempVendorCDR_20' ) start [2025-02-23 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536464', 'tblTempVendorCDR_20' ) end [2025-02-23 01:43:18] Production.INFO: ProcessCDR(1,14536464,1,1,2) [2025-02-23 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536464', 'tblTempUsageDetail_20' ) start [2025-02-23 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536464', 'tblTempUsageDetail_20' ) end [2025-02-23 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:43:21] Production.INFO: ==29963== Releasing lock... [2025-02-23 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:43:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:44:06 [end_date_ymd] => 2025-02-23 01:44:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:44:06' and `end` < '2025-02-23 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-02-23 01:44:18] Production.INFO: count ==508 [2025-02-23 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:44:06 - End Time 2025-02-23 01:44:06 [2025-02-23 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536469', 'tblTempUsageDetail_20' ) start [2025-02-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536469', 'tblTempUsageDetail_20' ) end [2025-02-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536469', 'tblTempVendorCDR_20' ) start [2025-02-23 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536469', 'tblTempVendorCDR_20' ) end [2025-02-23 01:44:18] Production.INFO: ProcessCDR(1,14536469,1,1,2) [2025-02-23 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536469', 'tblTempUsageDetail_20' ) start [2025-02-23 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536469', 'tblTempUsageDetail_20' ) end [2025-02-23 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:44:21] Production.INFO: ==30040== Releasing lock... [2025-02-23 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:44:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:45:05 [end_date_ymd] => 2025-02-23 01:45:05 [RateCDR] => 1 ) [2025-02-23 01:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:45:05' and `end` < '2025-02-23 01:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:45:17] Production.INFO: count ==508 [2025-02-23 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:45:05 - End Time 2025-02-23 01:45:05 [2025-02-23 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536474', 'tblTempUsageDetail_20' ) start [2025-02-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536474', 'tblTempUsageDetail_20' ) end [2025-02-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536474', 'tblTempVendorCDR_20' ) start [2025-02-23 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536474', 'tblTempVendorCDR_20' ) end [2025-02-23 01:45:17] Production.INFO: ProcessCDR(1,14536474,1,1,2) [2025-02-23 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536474', 'tblTempUsageDetail_20' ) start [2025-02-23 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536474', 'tblTempUsageDetail_20' ) end [2025-02-23 01:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:45:20] Production.INFO: ==30112== Releasing lock... [2025-02-23 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:45:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:46:05 [end_date_ymd] => 2025-02-23 01:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:46:05' and `end` < '2025-02-23 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-02-23 01:46:17] Production.INFO: count ==508 [2025-02-23 01:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:46:05 - End Time 2025-02-23 01:46:05 [2025-02-23 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536479', 'tblTempUsageDetail_20' ) start [2025-02-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536479', 'tblTempUsageDetail_20' ) end [2025-02-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536479', 'tblTempVendorCDR_20' ) start [2025-02-23 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536479', 'tblTempVendorCDR_20' ) end [2025-02-23 01:46:17] Production.INFO: ProcessCDR(1,14536479,1,1,2) [2025-02-23 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536479', 'tblTempUsageDetail_20' ) start [2025-02-23 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536479', 'tblTempUsageDetail_20' ) end [2025-02-23 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:46:21] Production.INFO: ==30182== Releasing lock... [2025-02-23 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:46:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:47:05 [end_date_ymd] => 2025-02-23 01:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:47:05' and `end` < '2025-02-23 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-02-23 01:47:17] Production.INFO: count ==507 [2025-02-23 01:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:47:05 - End Time 2025-02-23 01:47:05 [2025-02-23 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536484', 'tblTempUsageDetail_20' ) start [2025-02-23 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536484', 'tblTempUsageDetail_20' ) end [2025-02-23 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536484', 'tblTempVendorCDR_20' ) start [2025-02-23 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536484', 'tblTempVendorCDR_20' ) end [2025-02-23 01:47:17] Production.INFO: ProcessCDR(1,14536484,1,1,2) [2025-02-23 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536484', 'tblTempUsageDetail_20' ) start [2025-02-23 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536484', 'tblTempUsageDetail_20' ) end [2025-02-23 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:47:21] Production.INFO: ==30254== Releasing lock... [2025-02-23 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:48:06 [end_date_ymd] => 2025-02-23 01:48:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:48:06' and `end` < '2025-02-23 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-02-23 01:48:18] Production.INFO: count ==507 [2025-02-23 01:48:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:48:06 - End Time 2025-02-23 01:48:06 [2025-02-23 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536489', 'tblTempUsageDetail_20' ) start [2025-02-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536489', 'tblTempUsageDetail_20' ) end [2025-02-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536489', 'tblTempVendorCDR_20' ) start [2025-02-23 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536489', 'tblTempVendorCDR_20' ) end [2025-02-23 01:48:18] Production.INFO: ProcessCDR(1,14536489,1,1,2) [2025-02-23 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536489', 'tblTempUsageDetail_20' ) start [2025-02-23 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536489', 'tblTempUsageDetail_20' ) end [2025-02-23 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:48:22] Production.INFO: ==30328== Releasing lock... [2025-02-23 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:49:05 [end_date_ymd] => 2025-02-23 01:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:49:05' and `end` < '2025-02-23 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-02-23 01:49:17] Production.INFO: count ==507 [2025-02-23 01:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:49:05 - End Time 2025-02-23 01:49:05 [2025-02-23 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536494', 'tblTempUsageDetail_20' ) start [2025-02-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536494', 'tblTempUsageDetail_20' ) end [2025-02-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536494', 'tblTempVendorCDR_20' ) start [2025-02-23 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536494', 'tblTempVendorCDR_20' ) end [2025-02-23 01:49:17] Production.INFO: ProcessCDR(1,14536494,1,1,2) [2025-02-23 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536494', 'tblTempUsageDetail_20' ) start [2025-02-23 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536494', 'tblTempUsageDetail_20' ) end [2025-02-23 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:49:21] Production.INFO: ==30397== Releasing lock... [2025-02-23 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:50:07 [end_date_ymd] => 2025-02-23 01:50:07 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:50:07' and `end` < '2025-02-23 01: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-02-23 01:50:19] Production.INFO: count ==515 [2025-02-23 01:50:19] Production.ERROR: pbx CDR StartTime 2025-02-22 22:50:07 - End Time 2025-02-23 01:50:07 [2025-02-23 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536499', 'tblTempUsageDetail_20' ) start [2025-02-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536499', 'tblTempUsageDetail_20' ) end [2025-02-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536499', 'tblTempVendorCDR_20' ) start [2025-02-23 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536499', 'tblTempVendorCDR_20' ) end [2025-02-23 01:50:19] Production.INFO: ProcessCDR(1,14536499,1,1,2) [2025-02-23 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536499', 'tblTempUsageDetail_20' ) start [2025-02-23 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536499', 'tblTempUsageDetail_20' ) end [2025-02-23 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:50:23] Production.INFO: ==30469== Releasing lock... [2025-02-23 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:51:06 [end_date_ymd] => 2025-02-23 01:51:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:51:06' and `end` < '2025-02-23 01: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-02-23 01:51:18] Production.INFO: count ==514 [2025-02-23 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:51:06 - End Time 2025-02-23 01:51:06 [2025-02-23 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536505', 'tblTempUsageDetail_20' ) start [2025-02-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536505', 'tblTempUsageDetail_20' ) end [2025-02-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536505', 'tblTempVendorCDR_20' ) start [2025-02-23 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536505', 'tblTempVendorCDR_20' ) end [2025-02-23 01:51:18] Production.INFO: ProcessCDR(1,14536505,1,1,2) [2025-02-23 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536505', 'tblTempUsageDetail_20' ) start [2025-02-23 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536505', 'tblTempUsageDetail_20' ) end [2025-02-23 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:51:21] Production.INFO: ==30582== Releasing lock... [2025-02-23 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:51:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:52:06 [end_date_ymd] => 2025-02-23 01:52:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:52:06' and `end` < '2025-02-23 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-02-23 01:52:18] Production.INFO: count ==514 [2025-02-23 01:52:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:52:06 - End Time 2025-02-23 01:52:06 [2025-02-23 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536510', 'tblTempUsageDetail_20' ) start [2025-02-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536510', 'tblTempUsageDetail_20' ) end [2025-02-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536510', 'tblTempVendorCDR_20' ) start [2025-02-23 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536510', 'tblTempVendorCDR_20' ) end [2025-02-23 01:52:18] Production.INFO: ProcessCDR(1,14536510,1,1,2) [2025-02-23 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536510', 'tblTempUsageDetail_20' ) start [2025-02-23 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536510', 'tblTempUsageDetail_20' ) end [2025-02-23 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:52:21] Production.INFO: ==30653== Releasing lock... [2025-02-23 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:52:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:53:06 [end_date_ymd] => 2025-02-23 01:53:06 [RateCDR] => 1 ) [2025-02-23 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 22:53:06' and `end` < '2025-02-23 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 01:53:18] Production.INFO: count ==513 [2025-02-23 01:53:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:53:06 - End Time 2025-02-23 01:53:06 [2025-02-23 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536515', 'tblTempUsageDetail_20' ) start [2025-02-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536515', 'tblTempUsageDetail_20' ) end [2025-02-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536515', 'tblTempVendorCDR_20' ) start [2025-02-23 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536515', 'tblTempVendorCDR_20' ) end [2025-02-23 01:53:18] Production.INFO: ProcessCDR(1,14536515,1,1,2) [2025-02-23 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536515', 'tblTempUsageDetail_20' ) start [2025-02-23 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536515', 'tblTempUsageDetail_20' ) end [2025-02-23 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:53:21] Production.INFO: ==30723== Releasing lock... [2025-02-23 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:54:05 [end_date_ymd] => 2025-02-23 01:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:54:05' and `end` < '2025-02-23 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-02-23 01:54:17] Production.INFO: count ==513 [2025-02-23 01:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:54:05 - End Time 2025-02-23 01:54:05 [2025-02-23 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536520', 'tblTempUsageDetail_20' ) start [2025-02-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536520', 'tblTempUsageDetail_20' ) end [2025-02-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536520', 'tblTempVendorCDR_20' ) start [2025-02-23 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536520', 'tblTempVendorCDR_20' ) end [2025-02-23 01:54:17] Production.INFO: ProcessCDR(1,14536520,1,1,2) [2025-02-23 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536520', 'tblTempUsageDetail_20' ) start [2025-02-23 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536520', 'tblTempUsageDetail_20' ) end [2025-02-23 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:54:21] Production.INFO: ==30794== Releasing lock... [2025-02-23 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:54:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:55:05 [end_date_ymd] => 2025-02-23 01:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:55:05' and `end` < '2025-02-23 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-02-23 01:55:17] Production.INFO: count ==512 [2025-02-23 01:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:55:05 - End Time 2025-02-23 01:55:05 [2025-02-23 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536525', 'tblTempUsageDetail_20' ) start [2025-02-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536525', 'tblTempUsageDetail_20' ) end [2025-02-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536525', 'tblTempVendorCDR_20' ) start [2025-02-23 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536525', 'tblTempVendorCDR_20' ) end [2025-02-23 01:55:17] Production.INFO: ProcessCDR(1,14536525,1,1,2) [2025-02-23 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536525', 'tblTempUsageDetail_20' ) start [2025-02-23 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536525', 'tblTempUsageDetail_20' ) end [2025-02-23 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:55:21] Production.INFO: ==30864== Releasing lock... [2025-02-23 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:55:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:56:06 [end_date_ymd] => 2025-02-23 01:56:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:56:06' and `end` < '2025-02-23 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-02-23 01:56:17] Production.INFO: count ==512 [2025-02-23 01:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:56:06 - End Time 2025-02-23 01:56:06 [2025-02-23 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536530', 'tblTempUsageDetail_20' ) start [2025-02-23 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536530', 'tblTempUsageDetail_20' ) end [2025-02-23 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536530', 'tblTempVendorCDR_20' ) start [2025-02-23 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536530', 'tblTempVendorCDR_20' ) end [2025-02-23 01:56:17] Production.INFO: ProcessCDR(1,14536530,1,1,2) [2025-02-23 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536530', 'tblTempUsageDetail_20' ) start [2025-02-23 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536530', 'tblTempUsageDetail_20' ) end [2025-02-23 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:56:21] Production.INFO: ==30937== Releasing lock... [2025-02-23 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:57:05 [end_date_ymd] => 2025-02-23 01:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:57:05' and `end` < '2025-02-23 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-02-23 01:57:17] Production.INFO: count ==510 [2025-02-23 01:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 22:57:05 - End Time 2025-02-23 01:57:05 [2025-02-23 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536535', 'tblTempUsageDetail_20' ) start [2025-02-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536535', 'tblTempUsageDetail_20' ) end [2025-02-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536535', 'tblTempVendorCDR_20' ) start [2025-02-23 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536535', 'tblTempVendorCDR_20' ) end [2025-02-23 01:57:17] Production.INFO: ProcessCDR(1,14536535,1,1,2) [2025-02-23 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536535', 'tblTempUsageDetail_20' ) start [2025-02-23 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536535', 'tblTempUsageDetail_20' ) end [2025-02-23 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:57:21] Production.INFO: ==31008== Releasing lock... [2025-02-23 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:58:06 [end_date_ymd] => 2025-02-23 01:58:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 22:58:06' and `end` < '2025-02-23 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-02-23 01:58:18] Production.INFO: count ==510 [2025-02-23 01:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:58:06 - End Time 2025-02-23 01:58:06 [2025-02-23 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536540', 'tblTempUsageDetail_20' ) start [2025-02-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536540', 'tblTempUsageDetail_20' ) end [2025-02-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536540', 'tblTempVendorCDR_20' ) start [2025-02-23 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536540', 'tblTempVendorCDR_20' ) end [2025-02-23 01:58:18] Production.INFO: ProcessCDR(1,14536540,1,1,2) [2025-02-23 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536540', 'tblTempUsageDetail_20' ) start [2025-02-23 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536540', 'tblTempUsageDetail_20' ) end [2025-02-23 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:58:21] Production.INFO: ==31083== Releasing lock... [2025-02-23 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 22:59:06 [end_date_ymd] => 2025-02-23 01:59:06 [RateCDR] => 1 ) [2025-02-23 01: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-02-22 22:59:06' and `end` < '2025-02-23 01: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-02-23 01:59:17] Production.INFO: count ==508 [2025-02-23 01:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 22:59:06 - End Time 2025-02-23 01:59:06 [2025-02-23 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536545', 'tblTempUsageDetail_20' ) start [2025-02-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536545', 'tblTempUsageDetail_20' ) end [2025-02-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536545', 'tblTempVendorCDR_20' ) start [2025-02-23 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536545', 'tblTempVendorCDR_20' ) end [2025-02-23 01:59:18] Production.INFO: ProcessCDR(1,14536545,1,1,2) [2025-02-23 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536545', 'tblTempUsageDetail_20' ) start [2025-02-23 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536545', 'tblTempUsageDetail_20' ) end [2025-02-23 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 01:59:21] Production.INFO: ==31151== Releasing lock... [2025-02-23 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 01:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:00:07 [end_date_ymd] => 2025-02-23 02:00:07 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:00:07' and `end` < '2025-02-23 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-02-23 02:00:19] Production.INFO: count ==519 [2025-02-23 02:00:20] Production.ERROR: pbx CDR StartTime 2025-02-22 23:00:07 - End Time 2025-02-23 02:00:07 [2025-02-23 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536550', 'tblTempUsageDetail_20' ) start [2025-02-23 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536550', 'tblTempUsageDetail_20' ) end [2025-02-23 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536550', 'tblTempVendorCDR_20' ) start [2025-02-23 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536550', 'tblTempVendorCDR_20' ) end [2025-02-23 02:00:20] Production.INFO: ProcessCDR(1,14536550,1,1,2) [2025-02-23 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536550', 'tblTempUsageDetail_20' ) start [2025-02-23 02:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536550', 'tblTempUsageDetail_20' ) end [2025-02-23 02:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:00:26] Production.INFO: ==31229== Releasing lock... [2025-02-23 02:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:00:26] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:01:05 [end_date_ymd] => 2025-02-23 02:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:01:05' and `end` < '2025-02-23 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-02-23 02:01:17] Production.INFO: count ==526 [2025-02-23 02:01:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:01:05 - End Time 2025-02-23 02:01:05 [2025-02-23 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536556', 'tblTempUsageDetail_20' ) start [2025-02-23 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536556', 'tblTempUsageDetail_20' ) end [2025-02-23 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536556', 'tblTempVendorCDR_20' ) start [2025-02-23 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536556', 'tblTempVendorCDR_20' ) end [2025-02-23 02:01:17] Production.INFO: ProcessCDR(1,14536556,1,1,2) [2025-02-23 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536556', 'tblTempUsageDetail_20' ) start [2025-02-23 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536556', 'tblTempUsageDetail_20' ) end [2025-02-23 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:01:22] Production.INFO: ==31401== Releasing lock... [2025-02-23 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:02:06 [end_date_ymd] => 2025-02-23 02:02:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:02:06' and `end` < '2025-02-23 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-02-23 02:02:18] Production.INFO: count ==527 [2025-02-23 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:02:06 - End Time 2025-02-23 02:02:06 [2025-02-23 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536561', 'tblTempUsageDetail_20' ) start [2025-02-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536561', 'tblTempUsageDetail_20' ) end [2025-02-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536561', 'tblTempVendorCDR_20' ) start [2025-02-23 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536561', 'tblTempVendorCDR_20' ) end [2025-02-23 02:02:18] Production.INFO: ProcessCDR(1,14536561,1,1,2) [2025-02-23 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536561', 'tblTempUsageDetail_20' ) start [2025-02-23 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536561', 'tblTempUsageDetail_20' ) end [2025-02-23 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:02:23] Production.INFO: ==31479== Releasing lock... [2025-02-23 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:02:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:03:05 [end_date_ymd] => 2025-02-23 02:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:03:05' and `end` < '2025-02-23 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-02-23 02:03:17] Production.INFO: count ==527 [2025-02-23 02:03:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:03:05 - End Time 2025-02-23 02:03:05 [2025-02-23 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536566', 'tblTempUsageDetail_20' ) start [2025-02-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536566', 'tblTempUsageDetail_20' ) end [2025-02-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536566', 'tblTempVendorCDR_20' ) start [2025-02-23 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536566', 'tblTempVendorCDR_20' ) end [2025-02-23 02:03:17] Production.INFO: ProcessCDR(1,14536566,1,1,2) [2025-02-23 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536566', 'tblTempUsageDetail_20' ) start [2025-02-23 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536566', 'tblTempUsageDetail_20' ) end [2025-02-23 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:03:21] Production.INFO: ==31555== Releasing lock... [2025-02-23 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:04:05 [end_date_ymd] => 2025-02-23 02:04:05 [RateCDR] => 1 ) [2025-02-23 02: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-02-22 23:04:05' and `end` < '2025-02-23 02: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-02-23 02:04:17] Production.INFO: count ==527 [2025-02-23 02:04:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:04:05 - End Time 2025-02-23 02:04:05 [2025-02-23 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536571', 'tblTempUsageDetail_20' ) start [2025-02-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536571', 'tblTempUsageDetail_20' ) end [2025-02-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536571', 'tblTempVendorCDR_20' ) start [2025-02-23 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536571', 'tblTempVendorCDR_20' ) end [2025-02-23 02:04:18] Production.INFO: ProcessCDR(1,14536571,1,1,2) [2025-02-23 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536571', 'tblTempUsageDetail_20' ) start [2025-02-23 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536571', 'tblTempUsageDetail_20' ) end [2025-02-23 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:04:21] Production.INFO: ==31630== Releasing lock... [2025-02-23 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:04:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:05:05 [end_date_ymd] => 2025-02-23 02:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:05:05' and `end` < '2025-02-23 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-02-23 02:05:17] Production.INFO: count ==527 [2025-02-23 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:05:05 - End Time 2025-02-23 02:05:05 [2025-02-23 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536576', 'tblTempUsageDetail_20' ) start [2025-02-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536576', 'tblTempUsageDetail_20' ) end [2025-02-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536576', 'tblTempVendorCDR_20' ) start [2025-02-23 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536576', 'tblTempVendorCDR_20' ) end [2025-02-23 02:05:17] Production.INFO: ProcessCDR(1,14536576,1,1,2) [2025-02-23 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536576', 'tblTempUsageDetail_20' ) start [2025-02-23 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536576', 'tblTempUsageDetail_20' ) end [2025-02-23 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:05:21] Production.INFO: ==31701== Releasing lock... [2025-02-23 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:06:06 [end_date_ymd] => 2025-02-23 02:06:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:06:06' and `end` < '2025-02-23 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-02-23 02:06:18] Production.INFO: count ==522 [2025-02-23 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:06:06 - End Time 2025-02-23 02:06:06 [2025-02-23 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536581', 'tblTempUsageDetail_20' ) start [2025-02-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536581', 'tblTempUsageDetail_20' ) end [2025-02-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536581', 'tblTempVendorCDR_20' ) start [2025-02-23 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536581', 'tblTempVendorCDR_20' ) end [2025-02-23 02:06:18] Production.INFO: ProcessCDR(1,14536581,1,1,2) [2025-02-23 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536581', 'tblTempUsageDetail_20' ) start [2025-02-23 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536581', 'tblTempUsageDetail_20' ) end [2025-02-23 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:06:22] Production.INFO: ==31772== Releasing lock... [2025-02-23 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:06:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:07:05 [end_date_ymd] => 2025-02-23 02:07:05 [RateCDR] => 1 ) [2025-02-23 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:07:05' and `end` < '2025-02-23 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:07:17] Production.INFO: count ==522 [2025-02-23 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:07:05 - End Time 2025-02-23 02:07:05 [2025-02-23 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536585', 'tblTempUsageDetail_20' ) start [2025-02-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536585', 'tblTempUsageDetail_20' ) end [2025-02-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536585', 'tblTempVendorCDR_20' ) start [2025-02-23 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536585', 'tblTempVendorCDR_20' ) end [2025-02-23 02:07:17] Production.INFO: ProcessCDR(1,14536585,1,1,2) [2025-02-23 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536585', 'tblTempUsageDetail_20' ) start [2025-02-23 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536585', 'tblTempUsageDetail_20' ) end [2025-02-23 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:07:22] Production.INFO: ==31882== Releasing lock... [2025-02-23 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:07:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:08:06 [end_date_ymd] => 2025-02-23 02:08:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:08:06' and `end` < '2025-02-23 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-02-23 02:08:18] Production.INFO: count ==531 [2025-02-23 02:08:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:08:06 - End Time 2025-02-23 02:08:06 [2025-02-23 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536591', 'tblTempUsageDetail_20' ) start [2025-02-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536591', 'tblTempUsageDetail_20' ) end [2025-02-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536591', 'tblTempVendorCDR_20' ) start [2025-02-23 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536591', 'tblTempVendorCDR_20' ) end [2025-02-23 02:08:18] Production.INFO: ProcessCDR(1,14536591,1,1,2) [2025-02-23 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536591', 'tblTempUsageDetail_20' ) start [2025-02-23 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536591', 'tblTempUsageDetail_20' ) end [2025-02-23 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:08:21] Production.INFO: ==31954== Releasing lock... [2025-02-23 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:08:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:09:05 [end_date_ymd] => 2025-02-23 02:09:05 [RateCDR] => 1 ) [2025-02-23 02:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:09:05' and `end` < '2025-02-23 02:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:09:17] Production.INFO: count ==534 [2025-02-23 02:09:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:09:05 - End Time 2025-02-23 02:09:05 [2025-02-23 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536596', 'tblTempUsageDetail_20' ) start [2025-02-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536596', 'tblTempUsageDetail_20' ) end [2025-02-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536596', 'tblTempVendorCDR_20' ) start [2025-02-23 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536596', 'tblTempVendorCDR_20' ) end [2025-02-23 02:09:17] Production.INFO: ProcessCDR(1,14536596,1,1,2) [2025-02-23 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536596', 'tblTempUsageDetail_20' ) start [2025-02-23 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536596', 'tblTempUsageDetail_20' ) end [2025-02-23 02:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:09:20] Production.INFO: ==32024== Releasing lock... [2025-02-23 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:09:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:10:06 [end_date_ymd] => 2025-02-23 02:10:06 [RateCDR] => 1 ) [2025-02-23 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:10:06' and `end` < '2025-02-23 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:10:18] Production.INFO: count ==542 [2025-02-23 02:10:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:10:06 - End Time 2025-02-23 02:10:06 [2025-02-23 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536602', 'tblTempUsageDetail_20' ) start [2025-02-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536602', 'tblTempUsageDetail_20' ) end [2025-02-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536602', 'tblTempVendorCDR_20' ) start [2025-02-23 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536602', 'tblTempVendorCDR_20' ) end [2025-02-23 02:10:18] Production.INFO: ProcessCDR(1,14536602,1,1,2) [2025-02-23 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536602', 'tblTempUsageDetail_20' ) start [2025-02-23 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536602', 'tblTempUsageDetail_20' ) end [2025-02-23 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:10:21] Production.INFO: ==32099== Releasing lock... [2025-02-23 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:11:05 [end_date_ymd] => 2025-02-23 02:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:11:05' and `end` < '2025-02-23 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-02-23 02:11:17] Production.INFO: count ==548 [2025-02-23 02:11:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:11:05 - End Time 2025-02-23 02:11:05 [2025-02-23 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536607', 'tblTempUsageDetail_20' ) start [2025-02-23 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536607', 'tblTempUsageDetail_20' ) end [2025-02-23 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536607', 'tblTempVendorCDR_20' ) start [2025-02-23 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536607', 'tblTempVendorCDR_20' ) end [2025-02-23 02:11:17] Production.INFO: ProcessCDR(1,14536607,1,1,2) [2025-02-23 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536607', 'tblTempUsageDetail_20' ) start [2025-02-23 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536607', 'tblTempUsageDetail_20' ) end [2025-02-23 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:11:20] Production.INFO: ==32175== Releasing lock... [2025-02-23 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:11:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:12:06 [end_date_ymd] => 2025-02-23 02:12:06 [RateCDR] => 1 ) [2025-02-23 02: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-02-22 23:12:06' and `end` < '2025-02-23 02: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-02-23 02:12:18] Production.INFO: count ==548 [2025-02-23 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:12:06 - End Time 2025-02-23 02:12:06 [2025-02-23 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536612', 'tblTempUsageDetail_20' ) start [2025-02-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536612', 'tblTempUsageDetail_20' ) end [2025-02-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536612', 'tblTempVendorCDR_20' ) start [2025-02-23 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536612', 'tblTempVendorCDR_20' ) end [2025-02-23 02:12:18] Production.INFO: ProcessCDR(1,14536612,1,1,2) [2025-02-23 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536612', 'tblTempUsageDetail_20' ) start [2025-02-23 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536612', 'tblTempUsageDetail_20' ) end [2025-02-23 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:12:21] Production.INFO: ==32245== Releasing lock... [2025-02-23 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:12:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:13:05 [end_date_ymd] => 2025-02-23 02:13:05 [RateCDR] => 1 ) [2025-02-23 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:13:05' and `end` < '2025-02-23 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:13:16] Production.INFO: count ==546 [2025-02-23 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:13:05 - End Time 2025-02-23 02:13:05 [2025-02-23 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536617', 'tblTempUsageDetail_20' ) start [2025-02-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536617', 'tblTempUsageDetail_20' ) end [2025-02-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536617', 'tblTempVendorCDR_20' ) start [2025-02-23 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536617', 'tblTempVendorCDR_20' ) end [2025-02-23 02:13:17] Production.INFO: ProcessCDR(1,14536617,1,1,2) [2025-02-23 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536617', 'tblTempUsageDetail_20' ) start [2025-02-23 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536617', 'tblTempUsageDetail_20' ) end [2025-02-23 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:13:20] Production.INFO: ==32315== Releasing lock... [2025-02-23 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:13:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:14:05 [end_date_ymd] => 2025-02-23 02:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:14:05' and `end` < '2025-02-23 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-02-23 02:14:17] Production.INFO: count ==545 [2025-02-23 02:14:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:14:05 - End Time 2025-02-23 02:14:05 [2025-02-23 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536622', 'tblTempUsageDetail_20' ) start [2025-02-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536622', 'tblTempUsageDetail_20' ) end [2025-02-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536622', 'tblTempVendorCDR_20' ) start [2025-02-23 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536622', 'tblTempVendorCDR_20' ) end [2025-02-23 02:14:17] Production.INFO: ProcessCDR(1,14536622,1,1,2) [2025-02-23 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536622', 'tblTempUsageDetail_20' ) start [2025-02-23 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536622', 'tblTempUsageDetail_20' ) end [2025-02-23 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:14:21] Production.INFO: ==32387== Releasing lock... [2025-02-23 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:14:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:15:05 [end_date_ymd] => 2025-02-23 02:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:15:05' and `end` < '2025-02-23 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-02-23 02:15:17] Production.INFO: count ==548 [2025-02-23 02:15:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:15:05 - End Time 2025-02-23 02:15:05 [2025-02-23 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536627', 'tblTempUsageDetail_20' ) start [2025-02-23 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536627', 'tblTempUsageDetail_20' ) end [2025-02-23 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536627', 'tblTempVendorCDR_20' ) start [2025-02-23 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536627', 'tblTempVendorCDR_20' ) end [2025-02-23 02:15:17] Production.INFO: ProcessCDR(1,14536627,1,1,2) [2025-02-23 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536627', 'tblTempUsageDetail_20' ) start [2025-02-23 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536627', 'tblTempUsageDetail_20' ) end [2025-02-23 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:15:20] Production.INFO: ==32463== Releasing lock... [2025-02-23 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:15:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:16:05 [end_date_ymd] => 2025-02-23 02:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:16:05' and `end` < '2025-02-23 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-02-23 02:16:17] Production.INFO: count ==547 [2025-02-23 02:16:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:16:05 - End Time 2025-02-23 02:16:05 [2025-02-23 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536632', 'tblTempUsageDetail_20' ) start [2025-02-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536632', 'tblTempUsageDetail_20' ) end [2025-02-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536632', 'tblTempVendorCDR_20' ) start [2025-02-23 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536632', 'tblTempVendorCDR_20' ) end [2025-02-23 02:16:17] Production.INFO: ProcessCDR(1,14536632,1,1,2) [2025-02-23 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536632', 'tblTempUsageDetail_20' ) start [2025-02-23 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536632', 'tblTempUsageDetail_20' ) end [2025-02-23 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:16:20] Production.INFO: ==32537== Releasing lock... [2025-02-23 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:16:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:17:05 [end_date_ymd] => 2025-02-23 02:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:17:05' and `end` < '2025-02-23 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-02-23 02:17:17] Production.INFO: count ==547 [2025-02-23 02:17:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:17:05 - End Time 2025-02-23 02:17:05 [2025-02-23 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536637', 'tblTempUsageDetail_20' ) start [2025-02-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536637', 'tblTempUsageDetail_20' ) end [2025-02-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536637', 'tblTempVendorCDR_20' ) start [2025-02-23 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536637', 'tblTempVendorCDR_20' ) end [2025-02-23 02:17:17] Production.INFO: ProcessCDR(1,14536637,1,1,2) [2025-02-23 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536637', 'tblTempUsageDetail_20' ) start [2025-02-23 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536637', 'tblTempUsageDetail_20' ) end [2025-02-23 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:17:21] Production.INFO: ==32614== Releasing lock... [2025-02-23 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:18:05 [end_date_ymd] => 2025-02-23 02:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:18:05' and `end` < '2025-02-23 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-02-23 02:18:17] Production.INFO: count ==547 [2025-02-23 02:18:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:18:05 - End Time 2025-02-23 02:18:05 [2025-02-23 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536642', 'tblTempUsageDetail_20' ) start [2025-02-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536642', 'tblTempUsageDetail_20' ) end [2025-02-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536642', 'tblTempVendorCDR_20' ) start [2025-02-23 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536642', 'tblTempVendorCDR_20' ) end [2025-02-23 02:18:17] Production.INFO: ProcessCDR(1,14536642,1,1,2) [2025-02-23 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536642', 'tblTempUsageDetail_20' ) start [2025-02-23 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536642', 'tblTempUsageDetail_20' ) end [2025-02-23 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:18:20] Production.INFO: ==32685== Releasing lock... [2025-02-23 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:18:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:19:06 [end_date_ymd] => 2025-02-23 02:19:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:19:06' and `end` < '2025-02-23 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-02-23 02:19:17] Production.INFO: count ==545 [2025-02-23 02:19:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:19:06 - End Time 2025-02-23 02:19:06 [2025-02-23 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536647', 'tblTempUsageDetail_20' ) start [2025-02-23 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536647', 'tblTempUsageDetail_20' ) end [2025-02-23 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536647', 'tblTempVendorCDR_20' ) start [2025-02-23 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536647', 'tblTempVendorCDR_20' ) end [2025-02-23 02:19:17] Production.INFO: ProcessCDR(1,14536647,1,1,2) [2025-02-23 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536647', 'tblTempUsageDetail_20' ) start [2025-02-23 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536647', 'tblTempUsageDetail_20' ) end [2025-02-23 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:19:21] Production.INFO: ==32760== Releasing lock... [2025-02-23 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:19:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:20:06 [end_date_ymd] => 2025-02-23 02:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:20:06' and `end` < '2025-02-23 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-02-23 02:20:17] Production.INFO: count ==547 [2025-02-23 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:20:06 - End Time 2025-02-23 02:20:06 [2025-02-23 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536652', 'tblTempUsageDetail_20' ) start [2025-02-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536652', 'tblTempUsageDetail_20' ) end [2025-02-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536652', 'tblTempVendorCDR_20' ) start [2025-02-23 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536652', 'tblTempVendorCDR_20' ) end [2025-02-23 02:20:18] Production.INFO: ProcessCDR(1,14536652,1,1,2) [2025-02-23 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536652', 'tblTempUsageDetail_20' ) start [2025-02-23 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536652', 'tblTempUsageDetail_20' ) end [2025-02-23 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:20:21] Production.INFO: ==389== Releasing lock... [2025-02-23 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:20:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:21:05 [end_date_ymd] => 2025-02-23 02:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:21:05' and `end` < '2025-02-23 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-02-23 02:21:17] Production.INFO: count ==542 [2025-02-23 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:21:05 - End Time 2025-02-23 02:21:05 [2025-02-23 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536658', 'tblTempUsageDetail_20' ) start [2025-02-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536658', 'tblTempUsageDetail_20' ) end [2025-02-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536658', 'tblTempVendorCDR_20' ) start [2025-02-23 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536658', 'tblTempVendorCDR_20' ) end [2025-02-23 02:21:17] Production.INFO: ProcessCDR(1,14536658,1,1,2) [2025-02-23 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536658', 'tblTempUsageDetail_20' ) start [2025-02-23 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536658', 'tblTempUsageDetail_20' ) end [2025-02-23 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:21:20] Production.INFO: ==469== Releasing lock... [2025-02-23 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:21:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:22:05 [end_date_ymd] => 2025-02-23 02:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:22:05' and `end` < '2025-02-23 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-02-23 02:22:17] Production.INFO: count ==535 [2025-02-23 02:22:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:22:05 - End Time 2025-02-23 02:22:05 [2025-02-23 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536663', 'tblTempUsageDetail_20' ) start [2025-02-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536663', 'tblTempUsageDetail_20' ) end [2025-02-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536663', 'tblTempVendorCDR_20' ) start [2025-02-23 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536663', 'tblTempVendorCDR_20' ) end [2025-02-23 02:22:17] Production.INFO: ProcessCDR(1,14536663,1,1,2) [2025-02-23 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536663', 'tblTempUsageDetail_20' ) start [2025-02-23 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536663', 'tblTempUsageDetail_20' ) end [2025-02-23 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:22:20] Production.INFO: ==595== Releasing lock... [2025-02-23 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:22:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:23:05 [end_date_ymd] => 2025-02-23 02:23:05 [RateCDR] => 1 ) [2025-02-23 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:23:05' and `end` < '2025-02-23 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:23:17] Production.INFO: count ==529 [2025-02-23 02:23:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:23:05 - End Time 2025-02-23 02:23:05 [2025-02-23 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536668', 'tblTempUsageDetail_20' ) start [2025-02-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536668', 'tblTempUsageDetail_20' ) end [2025-02-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536668', 'tblTempVendorCDR_20' ) start [2025-02-23 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536668', 'tblTempVendorCDR_20' ) end [2025-02-23 02:23:17] Production.INFO: ProcessCDR(1,14536668,1,1,2) [2025-02-23 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536668', 'tblTempUsageDetail_20' ) start [2025-02-23 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536668', 'tblTempUsageDetail_20' ) end [2025-02-23 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:23:20] Production.INFO: ==708== Releasing lock... [2025-02-23 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:23:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:24:05 [end_date_ymd] => 2025-02-23 02:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:24:05' and `end` < '2025-02-23 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-02-23 02:24:17] Production.INFO: count ==529 [2025-02-23 02:24:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:24:05 - End Time 2025-02-23 02:24:05 [2025-02-23 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536673', 'tblTempUsageDetail_20' ) start [2025-02-23 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536673', 'tblTempUsageDetail_20' ) end [2025-02-23 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536673', 'tblTempVendorCDR_20' ) start [2025-02-23 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536673', 'tblTempVendorCDR_20' ) end [2025-02-23 02:24:17] Production.INFO: ProcessCDR(1,14536673,1,1,2) [2025-02-23 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536673', 'tblTempUsageDetail_20' ) start [2025-02-23 02:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536673', 'tblTempUsageDetail_20' ) end [2025-02-23 02:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:24:20] Production.INFO: ==794== Releasing lock... [2025-02-23 02:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:24:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:25:05 [end_date_ymd] => 2025-02-23 02:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:25:05' and `end` < '2025-02-23 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-02-23 02:25:17] Production.INFO: count ==529 [2025-02-23 02:25:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:25:05 - End Time 2025-02-23 02:25:05 [2025-02-23 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536678', 'tblTempUsageDetail_20' ) start [2025-02-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536678', 'tblTempUsageDetail_20' ) end [2025-02-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536678', 'tblTempVendorCDR_20' ) start [2025-02-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536678', 'tblTempVendorCDR_20' ) end [2025-02-23 02:25:17] Production.INFO: ProcessCDR(1,14536678,1,1,2) [2025-02-23 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536678', 'tblTempUsageDetail_20' ) start [2025-02-23 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536678', 'tblTempUsageDetail_20' ) end [2025-02-23 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:25:20] Production.INFO: ==877== Releasing lock... [2025-02-23 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:25:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:26:05 [end_date_ymd] => 2025-02-23 02:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:26:05' and `end` < '2025-02-23 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-02-23 02:26:17] Production.INFO: count ==529 [2025-02-23 02:26:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:26:05 - End Time 2025-02-23 02:26:05 [2025-02-23 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536683', 'tblTempUsageDetail_20' ) start [2025-02-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536683', 'tblTempUsageDetail_20' ) end [2025-02-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536683', 'tblTempVendorCDR_20' ) start [2025-02-23 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536683', 'tblTempVendorCDR_20' ) end [2025-02-23 02:26:17] Production.INFO: ProcessCDR(1,14536683,1,1,2) [2025-02-23 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536683', 'tblTempUsageDetail_20' ) start [2025-02-23 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536683', 'tblTempUsageDetail_20' ) end [2025-02-23 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:26:20] Production.INFO: ==974== Releasing lock... [2025-02-23 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:26:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:27:05 [end_date_ymd] => 2025-02-23 02:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:27:05' and `end` < '2025-02-23 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-02-23 02:27:17] Production.INFO: count ==532 [2025-02-23 02:27:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:27:05 - End Time 2025-02-23 02:27:05 [2025-02-23 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536688', 'tblTempUsageDetail_20' ) start [2025-02-23 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536688', 'tblTempUsageDetail_20' ) end [2025-02-23 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536688', 'tblTempVendorCDR_20' ) start [2025-02-23 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536688', 'tblTempVendorCDR_20' ) end [2025-02-23 02:27:17] Production.INFO: ProcessCDR(1,14536688,1,1,2) [2025-02-23 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536688', 'tblTempUsageDetail_20' ) start [2025-02-23 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536688', 'tblTempUsageDetail_20' ) end [2025-02-23 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:27:21] Production.INFO: ==1053== Releasing lock... [2025-02-23 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:28:05 [end_date_ymd] => 2025-02-23 02:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:28:05' and `end` < '2025-02-23 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-02-23 02:28:17] Production.INFO: count ==533 [2025-02-23 02:28:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:28:05 - End Time 2025-02-23 02:28:05 [2025-02-23 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536693', 'tblTempUsageDetail_20' ) start [2025-02-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536693', 'tblTempUsageDetail_20' ) end [2025-02-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536693', 'tblTempVendorCDR_20' ) start [2025-02-23 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536693', 'tblTempVendorCDR_20' ) end [2025-02-23 02:28:17] Production.INFO: ProcessCDR(1,14536693,1,1,2) [2025-02-23 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536693', 'tblTempUsageDetail_20' ) start [2025-02-23 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536693', 'tblTempUsageDetail_20' ) end [2025-02-23 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:28:20] Production.INFO: ==1127== Releasing lock... [2025-02-23 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:28:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:29:05 [end_date_ymd] => 2025-02-23 02:29:05 [RateCDR] => 1 ) [2025-02-23 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:29:05' and `end` < '2025-02-23 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:29:17] Production.INFO: count ==576 [2025-02-23 02:29:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:29:05 - End Time 2025-02-23 02:29:05 [2025-02-23 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536698', 'tblTempUsageDetail_20' ) start [2025-02-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536698', 'tblTempUsageDetail_20' ) end [2025-02-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536698', 'tblTempVendorCDR_20' ) start [2025-02-23 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536698', 'tblTempVendorCDR_20' ) end [2025-02-23 02:29:17] Production.INFO: ProcessCDR(1,14536698,1,1,2) [2025-02-23 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536698', 'tblTempUsageDetail_20' ) start [2025-02-23 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536698', 'tblTempUsageDetail_20' ) end [2025-02-23 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:29:20] Production.INFO: ==1208== Releasing lock... [2025-02-23 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:29:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:30:07 [end_date_ymd] => 2025-02-23 02:30:07 [RateCDR] => 1 ) [2025-02-23 02: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-02-22 23:30:07' and `end` < '2025-02-23 02: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-02-23 02:30:18] Production.INFO: count ==586 [2025-02-23 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-22 23:30:07 - End Time 2025-02-23 02:30:07 [2025-02-23 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536704', 'tblTempUsageDetail_20' ) start [2025-02-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536704', 'tblTempUsageDetail_20' ) end [2025-02-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536704', 'tblTempVendorCDR_20' ) start [2025-02-23 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536704', 'tblTempVendorCDR_20' ) end [2025-02-23 02:30:19] Production.INFO: ProcessCDR(1,14536704,1,1,2) [2025-02-23 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536704', 'tblTempUsageDetail_20' ) start [2025-02-23 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536704', 'tblTempUsageDetail_20' ) end [2025-02-23 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:30:22] Production.INFO: ==1296== Releasing lock... [2025-02-23 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:31:05 [end_date_ymd] => 2025-02-23 02:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:31:05' and `end` < '2025-02-23 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-02-23 02:31:16] Production.INFO: count ==593 [2025-02-23 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:31:05 - End Time 2025-02-23 02:31:05 [2025-02-23 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536709', 'tblTempUsageDetail_20' ) start [2025-02-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536709', 'tblTempUsageDetail_20' ) end [2025-02-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536709', 'tblTempVendorCDR_20' ) start [2025-02-23 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536709', 'tblTempVendorCDR_20' ) end [2025-02-23 02:31:17] Production.INFO: ProcessCDR(1,14536709,1,1,2) [2025-02-23 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536709', 'tblTempUsageDetail_20' ) start [2025-02-23 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536709', 'tblTempUsageDetail_20' ) end [2025-02-23 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:31:20] Production.INFO: ==1371== Releasing lock... [2025-02-23 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:31:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:32:05 [end_date_ymd] => 2025-02-23 02:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:32:05' and `end` < '2025-02-23 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-02-23 02:32:17] Production.INFO: count ==593 [2025-02-23 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:32:05 - End Time 2025-02-23 02:32:05 [2025-02-23 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536714', 'tblTempUsageDetail_20' ) start [2025-02-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536714', 'tblTempUsageDetail_20' ) end [2025-02-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536714', 'tblTempVendorCDR_20' ) start [2025-02-23 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536714', 'tblTempVendorCDR_20' ) end [2025-02-23 02:32:17] Production.INFO: ProcessCDR(1,14536714,1,1,2) [2025-02-23 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536714', 'tblTempUsageDetail_20' ) start [2025-02-23 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536714', 'tblTempUsageDetail_20' ) end [2025-02-23 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:32:20] Production.INFO: ==1446== Releasing lock... [2025-02-23 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:32:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:33:05 [end_date_ymd] => 2025-02-23 02:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:33:05' and `end` < '2025-02-23 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-02-23 02:33:17] Production.INFO: count ==592 [2025-02-23 02:33:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:33:05 - End Time 2025-02-23 02:33:05 [2025-02-23 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536719', 'tblTempUsageDetail_20' ) start [2025-02-23 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536719', 'tblTempUsageDetail_20' ) end [2025-02-23 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536719', 'tblTempVendorCDR_20' ) start [2025-02-23 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536719', 'tblTempVendorCDR_20' ) end [2025-02-23 02:33:17] Production.INFO: ProcessCDR(1,14536719,1,1,2) [2025-02-23 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536719', 'tblTempUsageDetail_20' ) start [2025-02-23 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536719', 'tblTempUsageDetail_20' ) end [2025-02-23 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:33:20] Production.INFO: ==1547== Releasing lock... [2025-02-23 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:33:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:34:05 [end_date_ymd] => 2025-02-23 02:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:34:05' and `end` < '2025-02-23 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-02-23 02:34:17] Production.INFO: count ==591 [2025-02-23 02:34:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:34:05 - End Time 2025-02-23 02:34:05 [2025-02-23 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536724', 'tblTempUsageDetail_20' ) start [2025-02-23 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536724', 'tblTempUsageDetail_20' ) end [2025-02-23 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536724', 'tblTempVendorCDR_20' ) start [2025-02-23 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536724', 'tblTempVendorCDR_20' ) end [2025-02-23 02:34:17] Production.INFO: ProcessCDR(1,14536724,1,1,2) [2025-02-23 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536724', 'tblTempUsageDetail_20' ) start [2025-02-23 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536724', 'tblTempUsageDetail_20' ) end [2025-02-23 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:34:20] Production.INFO: ==1626== Releasing lock... [2025-02-23 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:34:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:35:04 [end_date_ymd] => 2025-02-23 02:35:04 [RateCDR] => 1 ) [2025-02-23 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:35:04' and `end` < '2025-02-23 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:35:16] Production.INFO: count ==590 [2025-02-23 02:35:16] Production.ERROR: pbx CDR StartTime 2025-02-22 23:35:04 - End Time 2025-02-23 02:35:04 [2025-02-23 02:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536729', 'tblTempUsageDetail_20' ) start [2025-02-23 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536729', 'tblTempUsageDetail_20' ) end [2025-02-23 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536729', 'tblTempVendorCDR_20' ) start [2025-02-23 02:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536729', 'tblTempVendorCDR_20' ) end [2025-02-23 02:35:16] Production.INFO: ProcessCDR(1,14536729,1,1,2) [2025-02-23 02:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536729', 'tblTempUsageDetail_20' ) start [2025-02-23 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536729', 'tblTempUsageDetail_20' ) end [2025-02-23 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:35:20] Production.INFO: ==1699== Releasing lock... [2025-02-23 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:35:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:36:05 [end_date_ymd] => 2025-02-23 02:36:05 [RateCDR] => 1 ) [2025-02-23 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:36:05' and `end` < '2025-02-23 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:36:17] Production.INFO: count ==590 [2025-02-23 02:36:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:36:05 - End Time 2025-02-23 02:36:05 [2025-02-23 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536734', 'tblTempUsageDetail_20' ) start [2025-02-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536734', 'tblTempUsageDetail_20' ) end [2025-02-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536734', 'tblTempVendorCDR_20' ) start [2025-02-23 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536734', 'tblTempVendorCDR_20' ) end [2025-02-23 02:36:17] Production.INFO: ProcessCDR(1,14536734,1,1,2) [2025-02-23 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536734', 'tblTempUsageDetail_20' ) start [2025-02-23 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536734', 'tblTempUsageDetail_20' ) end [2025-02-23 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:36:21] Production.INFO: ==1776== Releasing lock... [2025-02-23 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:36:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:37:05 [end_date_ymd] => 2025-02-23 02:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:37:05' and `end` < '2025-02-23 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-02-23 02:37:16] Production.INFO: count ==590 [2025-02-23 02:37:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:37:05 - End Time 2025-02-23 02:37:05 [2025-02-23 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536739', 'tblTempUsageDetail_20' ) start [2025-02-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536739', 'tblTempUsageDetail_20' ) end [2025-02-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536739', 'tblTempVendorCDR_20' ) start [2025-02-23 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536739', 'tblTempVendorCDR_20' ) end [2025-02-23 02:37:17] Production.INFO: ProcessCDR(1,14536739,1,1,2) [2025-02-23 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536739', 'tblTempUsageDetail_20' ) start [2025-02-23 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536739', 'tblTempUsageDetail_20' ) end [2025-02-23 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:37:20] Production.INFO: ==1893== Releasing lock... [2025-02-23 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:37:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:38:05 [end_date_ymd] => 2025-02-23 02:38:05 [RateCDR] => 1 ) [2025-02-23 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:38:05' and `end` < '2025-02-23 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:38:17] Production.INFO: count ==590 [2025-02-23 02:38:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:38:05 - End Time 2025-02-23 02:38:05 [2025-02-23 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536744', 'tblTempUsageDetail_20' ) start [2025-02-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536744', 'tblTempUsageDetail_20' ) end [2025-02-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536744', 'tblTempVendorCDR_20' ) start [2025-02-23 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536744', 'tblTempVendorCDR_20' ) end [2025-02-23 02:38:17] Production.INFO: ProcessCDR(1,14536744,1,1,2) [2025-02-23 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536744', 'tblTempUsageDetail_20' ) start [2025-02-23 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536744', 'tblTempUsageDetail_20' ) end [2025-02-23 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:38:20] Production.INFO: ==1967== Releasing lock... [2025-02-23 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:38:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:39:06 [end_date_ymd] => 2025-02-23 02:39:06 [RateCDR] => 1 ) [2025-02-23 02:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:39:06' and `end` < '2025-02-23 02:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:39:17] Production.INFO: count ==587 [2025-02-23 02:39:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:39:06 - End Time 2025-02-23 02:39:06 [2025-02-23 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536749', 'tblTempUsageDetail_20' ) start [2025-02-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536749', 'tblTempUsageDetail_20' ) end [2025-02-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536749', 'tblTempVendorCDR_20' ) start [2025-02-23 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536749', 'tblTempVendorCDR_20' ) end [2025-02-23 02:39:18] Production.INFO: ProcessCDR(1,14536749,1,1,2) [2025-02-23 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536749', 'tblTempUsageDetail_20' ) start [2025-02-23 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536749', 'tblTempUsageDetail_20' ) end [2025-02-23 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:39:21] Production.INFO: ==2040== Releasing lock... [2025-02-23 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:40:06 [end_date_ymd] => 2025-02-23 02:40:06 [RateCDR] => 1 ) [2025-02-23 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:40:06' and `end` < '2025-02-23 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:40:18] Production.INFO: count ==592 [2025-02-23 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:40:06 - End Time 2025-02-23 02:40:06 [2025-02-23 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536754', 'tblTempUsageDetail_20' ) start [2025-02-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536754', 'tblTempUsageDetail_20' ) end [2025-02-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536754', 'tblTempVendorCDR_20' ) start [2025-02-23 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536754', 'tblTempVendorCDR_20' ) end [2025-02-23 02:40:18] Production.INFO: ProcessCDR(1,14536754,1,1,2) [2025-02-23 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536754', 'tblTempUsageDetail_20' ) start [2025-02-23 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536754', 'tblTempUsageDetail_20' ) end [2025-02-23 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:40:21] Production.INFO: ==2115== Releasing lock... [2025-02-23 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:40:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:41:05 [end_date_ymd] => 2025-02-23 02:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:41:05' and `end` < '2025-02-23 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-02-23 02:41:17] Production.INFO: count ==595 [2025-02-23 02:41:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:41:05 - End Time 2025-02-23 02:41:05 [2025-02-23 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536760', 'tblTempUsageDetail_20' ) start [2025-02-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536760', 'tblTempUsageDetail_20' ) end [2025-02-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536760', 'tblTempVendorCDR_20' ) start [2025-02-23 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536760', 'tblTempVendorCDR_20' ) end [2025-02-23 02:41:17] Production.INFO: ProcessCDR(1,14536760,1,1,2) [2025-02-23 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536760', 'tblTempUsageDetail_20' ) start [2025-02-23 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536760', 'tblTempUsageDetail_20' ) end [2025-02-23 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:41:21] Production.INFO: ==2191== Releasing lock... [2025-02-23 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:41:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:42:05 [end_date_ymd] => 2025-02-23 02:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:42:05' and `end` < '2025-02-23 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-02-23 02:42:17] Production.INFO: count ==595 [2025-02-23 02:42:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:42:05 - End Time 2025-02-23 02:42:05 [2025-02-23 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536765', 'tblTempUsageDetail_20' ) start [2025-02-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536765', 'tblTempUsageDetail_20' ) end [2025-02-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536765', 'tblTempVendorCDR_20' ) start [2025-02-23 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536765', 'tblTempVendorCDR_20' ) end [2025-02-23 02:42:17] Production.INFO: ProcessCDR(1,14536765,1,1,2) [2025-02-23 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536765', 'tblTempUsageDetail_20' ) start [2025-02-23 02:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536765', 'tblTempUsageDetail_20' ) end [2025-02-23 02:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:42:20] Production.INFO: ==2264== Releasing lock... [2025-02-23 02:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:42:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:43:06 [end_date_ymd] => 2025-02-23 02:43:06 [RateCDR] => 1 ) [2025-02-23 02: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-02-22 23:43:06' and `end` < '2025-02-23 02: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-02-23 02:43:17] Production.INFO: count ==589 [2025-02-23 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:43:06 - End Time 2025-02-23 02:43:06 [2025-02-23 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536770', 'tblTempUsageDetail_20' ) start [2025-02-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536770', 'tblTempUsageDetail_20' ) end [2025-02-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536770', 'tblTempVendorCDR_20' ) start [2025-02-23 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536770', 'tblTempVendorCDR_20' ) end [2025-02-23 02:43:18] Production.INFO: ProcessCDR(1,14536770,1,1,2) [2025-02-23 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536770', 'tblTempUsageDetail_20' ) start [2025-02-23 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536770', 'tblTempUsageDetail_20' ) end [2025-02-23 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:43:21] Production.INFO: ==2337== Releasing lock... [2025-02-23 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:43:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:44:05 [end_date_ymd] => 2025-02-23 02:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:44:05' and `end` < '2025-02-23 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-02-23 02:44:17] Production.INFO: count ==589 [2025-02-23 02:44:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:44:05 - End Time 2025-02-23 02:44:05 [2025-02-23 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536775', 'tblTempUsageDetail_20' ) start [2025-02-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536775', 'tblTempUsageDetail_20' ) end [2025-02-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536775', 'tblTempVendorCDR_20' ) start [2025-02-23 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536775', 'tblTempVendorCDR_20' ) end [2025-02-23 02:44:17] Production.INFO: ProcessCDR(1,14536775,1,1,2) [2025-02-23 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536775', 'tblTempUsageDetail_20' ) start [2025-02-23 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536775', 'tblTempUsageDetail_20' ) end [2025-02-23 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:44:20] Production.INFO: ==2410== Releasing lock... [2025-02-23 02:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:44:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:45:05 [end_date_ymd] => 2025-02-23 02:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:45:05' and `end` < '2025-02-23 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-02-23 02:45:17] Production.INFO: count ==586 [2025-02-23 02:45:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:45:05 - End Time 2025-02-23 02:45:05 [2025-02-23 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536780', 'tblTempUsageDetail_20' ) start [2025-02-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536780', 'tblTempUsageDetail_20' ) end [2025-02-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536780', 'tblTempVendorCDR_20' ) start [2025-02-23 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536780', 'tblTempVendorCDR_20' ) end [2025-02-23 02:45:17] Production.INFO: ProcessCDR(1,14536780,1,1,2) [2025-02-23 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536780', 'tblTempUsageDetail_20' ) start [2025-02-23 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536780', 'tblTempUsageDetail_20' ) end [2025-02-23 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:45:20] Production.INFO: ==2483== Releasing lock... [2025-02-23 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:45:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:46:05 [end_date_ymd] => 2025-02-23 02:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:46:05' and `end` < '2025-02-23 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-02-23 02:46:17] Production.INFO: count ==576 [2025-02-23 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:46:05 - End Time 2025-02-23 02:46:05 [2025-02-23 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536785', 'tblTempUsageDetail_20' ) start [2025-02-23 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536785', 'tblTempUsageDetail_20' ) end [2025-02-23 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536785', 'tblTempVendorCDR_20' ) start [2025-02-23 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536785', 'tblTempVendorCDR_20' ) end [2025-02-23 02:46:17] Production.INFO: ProcessCDR(1,14536785,1,1,2) [2025-02-23 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536785', 'tblTempUsageDetail_20' ) start [2025-02-23 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536785', 'tblTempUsageDetail_20' ) end [2025-02-23 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:46:20] Production.INFO: ==2557== Releasing lock... [2025-02-23 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:46:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:47:05 [end_date_ymd] => 2025-02-23 02:47:05 [RateCDR] => 1 ) [2025-02-23 02:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:47:05' and `end` < '2025-02-23 02:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:47:17] Production.INFO: count ==576 [2025-02-23 02:47:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:47:05 - End Time 2025-02-23 02:47:05 [2025-02-23 02:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536790', 'tblTempUsageDetail_20' ) start [2025-02-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536790', 'tblTempUsageDetail_20' ) end [2025-02-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536790', 'tblTempVendorCDR_20' ) start [2025-02-23 02:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536790', 'tblTempVendorCDR_20' ) end [2025-02-23 02:47:17] Production.INFO: ProcessCDR(1,14536790,1,1,2) [2025-02-23 02:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536790', 'tblTempUsageDetail_20' ) start [2025-02-23 02:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536790', 'tblTempUsageDetail_20' ) end [2025-02-23 02:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:47:20] Production.INFO: ==2629== Releasing lock... [2025-02-23 02:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:47:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:48:05 [end_date_ymd] => 2025-02-23 02:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:48:05' and `end` < '2025-02-23 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-02-23 02:48:16] Production.INFO: count ==576 [2025-02-23 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:48:05 - End Time 2025-02-23 02:48:05 [2025-02-23 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536795', 'tblTempUsageDetail_20' ) start [2025-02-23 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536795', 'tblTempUsageDetail_20' ) end [2025-02-23 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536795', 'tblTempVendorCDR_20' ) start [2025-02-23 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536795', 'tblTempVendorCDR_20' ) end [2025-02-23 02:48:17] Production.INFO: ProcessCDR(1,14536795,1,1,2) [2025-02-23 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536795', 'tblTempUsageDetail_20' ) start [2025-02-23 02:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536795', 'tblTempUsageDetail_20' ) end [2025-02-23 02:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:48:20] Production.INFO: ==2701== Releasing lock... [2025-02-23 02:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:48:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:49:05 [end_date_ymd] => 2025-02-23 02:49:05 [RateCDR] => 1 ) [2025-02-23 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:49:05' and `end` < '2025-02-23 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:49:17] Production.INFO: count ==577 [2025-02-23 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:49:05 - End Time 2025-02-23 02:49:05 [2025-02-23 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536800', 'tblTempUsageDetail_20' ) start [2025-02-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536800', 'tblTempUsageDetail_20' ) end [2025-02-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536800', 'tblTempVendorCDR_20' ) start [2025-02-23 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536800', 'tblTempVendorCDR_20' ) end [2025-02-23 02:49:17] Production.INFO: ProcessCDR(1,14536800,1,1,2) [2025-02-23 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536800', 'tblTempUsageDetail_20' ) start [2025-02-23 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536800', 'tblTempUsageDetail_20' ) end [2025-02-23 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:49:20] Production.INFO: ==2775== Releasing lock... [2025-02-23 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:49:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:50:05 [end_date_ymd] => 2025-02-23 02:50:05 [RateCDR] => 1 ) [2025-02-23 02: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-02-22 23:50:05' and `end` < '2025-02-23 02: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-02-23 02:50:17] Production.INFO: count ==582 [2025-02-23 02:50:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:50:05 - End Time 2025-02-23 02:50:05 [2025-02-23 02:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536805', 'tblTempUsageDetail_20' ) start [2025-02-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536805', 'tblTempUsageDetail_20' ) end [2025-02-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536805', 'tblTempVendorCDR_20' ) start [2025-02-23 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536805', 'tblTempVendorCDR_20' ) end [2025-02-23 02:50:18] Production.INFO: ProcessCDR(1,14536805,1,1,2) [2025-02-23 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536805', 'tblTempUsageDetail_20' ) start [2025-02-23 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536805', 'tblTempUsageDetail_20' ) end [2025-02-23 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:50:21] Production.INFO: ==2852== Releasing lock... [2025-02-23 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:50:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:51:05 [end_date_ymd] => 2025-02-23 02:51:05 [RateCDR] => 1 ) [2025-02-23 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:51:05' and `end` < '2025-02-23 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-02-23 02:51:17] Production.INFO: count ==584 [2025-02-23 02:51:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:51:05 - End Time 2025-02-23 02:51:05 [2025-02-23 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536811', 'tblTempUsageDetail_20' ) start [2025-02-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536811', 'tblTempUsageDetail_20' ) end [2025-02-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536811', 'tblTempVendorCDR_20' ) start [2025-02-23 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536811', 'tblTempVendorCDR_20' ) end [2025-02-23 02:51:17] Production.INFO: ProcessCDR(1,14536811,1,1,2) [2025-02-23 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536811', 'tblTempUsageDetail_20' ) start [2025-02-23 02:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536811', 'tblTempUsageDetail_20' ) end [2025-02-23 02:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:51:20] Production.INFO: ==2925== Releasing lock... [2025-02-23 02:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:51:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:52:05 [end_date_ymd] => 2025-02-23 02:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:52:05' and `end` < '2025-02-23 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-02-23 02:52:17] Production.INFO: count ==580 [2025-02-23 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:52:05 - End Time 2025-02-23 02:52:05 [2025-02-23 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536816', 'tblTempUsageDetail_20' ) start [2025-02-23 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536816', 'tblTempUsageDetail_20' ) end [2025-02-23 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536816', 'tblTempVendorCDR_20' ) start [2025-02-23 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536816', 'tblTempVendorCDR_20' ) end [2025-02-23 02:52:17] Production.INFO: ProcessCDR(1,14536816,1,1,2) [2025-02-23 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536816', 'tblTempUsageDetail_20' ) start [2025-02-23 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536816', 'tblTempUsageDetail_20' ) end [2025-02-23 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:52:20] Production.INFO: ==2998== Releasing lock... [2025-02-23 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:52:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:53:05 [end_date_ymd] => 2025-02-23 02:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:53:05' and `end` < '2025-02-23 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-02-23 02:53:17] Production.INFO: count ==583 [2025-02-23 02:53:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:53:05 - End Time 2025-02-23 02:53:05 [2025-02-23 02:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536821', 'tblTempUsageDetail_20' ) start [2025-02-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536821', 'tblTempUsageDetail_20' ) end [2025-02-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536821', 'tblTempVendorCDR_20' ) start [2025-02-23 02:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536821', 'tblTempVendorCDR_20' ) end [2025-02-23 02:53:17] Production.INFO: ProcessCDR(1,14536821,1,1,2) [2025-02-23 02:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536821', 'tblTempUsageDetail_20' ) start [2025-02-23 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536821', 'tblTempUsageDetail_20' ) end [2025-02-23 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:53:21] Production.INFO: ==3113== Releasing lock... [2025-02-23 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:53:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:54:05 [end_date_ymd] => 2025-02-23 02:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:54:05' and `end` < '2025-02-23 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-02-23 02:54:17] Production.INFO: count ==588 [2025-02-23 02:54:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:54:05 - End Time 2025-02-23 02:54:05 [2025-02-23 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536826', 'tblTempUsageDetail_20' ) start [2025-02-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536826', 'tblTempUsageDetail_20' ) end [2025-02-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536826', 'tblTempVendorCDR_20' ) start [2025-02-23 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536826', 'tblTempVendorCDR_20' ) end [2025-02-23 02:54:17] Production.INFO: ProcessCDR(1,14536826,1,1,2) [2025-02-23 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536826', 'tblTempUsageDetail_20' ) start [2025-02-23 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536826', 'tblTempUsageDetail_20' ) end [2025-02-23 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:54:21] Production.INFO: ==3190== Releasing lock... [2025-02-23 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-23 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:55:05 [end_date_ymd] => 2025-02-23 02:55:05 [RateCDR] => 1 ) [2025-02-23 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-22 23:55:05' and `end` < '2025-02-23 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 02:55:17] Production.INFO: count ==586 [2025-02-23 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:55:05 - End Time 2025-02-23 02:55:05 [2025-02-23 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536831', 'tblTempUsageDetail_20' ) start [2025-02-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536831', 'tblTempUsageDetail_20' ) end [2025-02-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536831', 'tblTempVendorCDR_20' ) start [2025-02-23 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536831', 'tblTempVendorCDR_20' ) end [2025-02-23 02:55:17] Production.INFO: ProcessCDR(1,14536831,1,1,2) [2025-02-23 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536831', 'tblTempUsageDetail_20' ) start [2025-02-23 02:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536831', 'tblTempUsageDetail_20' ) end [2025-02-23 02:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:55:20] Production.INFO: ==3262== Releasing lock... [2025-02-23 02:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:55:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:56:05 [end_date_ymd] => 2025-02-23 02:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:56:05' and `end` < '2025-02-23 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-02-23 02:56:17] Production.INFO: count ==586 [2025-02-23 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:56:05 - End Time 2025-02-23 02:56:05 [2025-02-23 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536836', 'tblTempUsageDetail_20' ) start [2025-02-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536836', 'tblTempUsageDetail_20' ) end [2025-02-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536836', 'tblTempVendorCDR_20' ) start [2025-02-23 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536836', 'tblTempVendorCDR_20' ) end [2025-02-23 02:56:17] Production.INFO: ProcessCDR(1,14536836,1,1,2) [2025-02-23 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536836', 'tblTempUsageDetail_20' ) start [2025-02-23 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536836', 'tblTempUsageDetail_20' ) end [2025-02-23 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:56:21] Production.INFO: ==3341== Releasing lock... [2025-02-23 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:56:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:57:05 [end_date_ymd] => 2025-02-23 02:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:57:05' and `end` < '2025-02-23 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-02-23 02:57:17] Production.INFO: count ==588 [2025-02-23 02:57:17] Production.ERROR: pbx CDR StartTime 2025-02-22 23:57:05 - End Time 2025-02-23 02:57:05 [2025-02-23 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536841', 'tblTempUsageDetail_20' ) start [2025-02-23 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536841', 'tblTempUsageDetail_20' ) end [2025-02-23 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536841', 'tblTempVendorCDR_20' ) start [2025-02-23 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536841', 'tblTempVendorCDR_20' ) end [2025-02-23 02:57:17] Production.INFO: ProcessCDR(1,14536841,1,1,2) [2025-02-23 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536841', 'tblTempUsageDetail_20' ) start [2025-02-23 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536841', 'tblTempUsageDetail_20' ) end [2025-02-23 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:57:20] Production.INFO: ==3413== Releasing lock... [2025-02-23 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:57:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:58:06 [end_date_ymd] => 2025-02-23 02:58:06 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:58:06' and `end` < '2025-02-23 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-02-23 02:58:17] Production.INFO: count ==588 [2025-02-23 02:58:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:58:06 - End Time 2025-02-23 02:58:06 [2025-02-23 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536846', 'tblTempUsageDetail_20' ) start [2025-02-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536846', 'tblTempUsageDetail_20' ) end [2025-02-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536846', 'tblTempVendorCDR_20' ) start [2025-02-23 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536846', 'tblTempVendorCDR_20' ) end [2025-02-23 02:58:18] Production.INFO: ProcessCDR(1,14536846,1,1,2) [2025-02-23 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536846', 'tblTempUsageDetail_20' ) start [2025-02-23 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536846', 'tblTempUsageDetail_20' ) end [2025-02-23 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:58:21] Production.INFO: ==3484== Releasing lock... [2025-02-23 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:58:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-22 23:59:05 [end_date_ymd] => 2025-02-23 02:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-22 23:59:05' and `end` < '2025-02-23 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-02-23 02:59:17] Production.INFO: count ==589 [2025-02-23 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-22 23:59:05 - End Time 2025-02-23 02:59:05 [2025-02-23 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536851', 'tblTempUsageDetail_20' ) start [2025-02-23 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536851', 'tblTempUsageDetail_20' ) end [2025-02-23 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536851', 'tblTempVendorCDR_20' ) start [2025-02-23 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536851', 'tblTempVendorCDR_20' ) end [2025-02-23 02:59:18] Production.INFO: ProcessCDR(1,14536851,1,1,2) [2025-02-23 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536851', 'tblTempUsageDetail_20' ) start [2025-02-23 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536851', 'tblTempUsageDetail_20' ) end [2025-02-23 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 02:59:23] Production.INFO: ==3557== Releasing lock... [2025-02-23 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 02:59:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:00:06 [end_date_ymd] => 2025-02-23 03:00:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:00:06' and `end` < '2025-02-23 03: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-02-23 03:00:19] Production.INFO: count ==597 [2025-02-23 03:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 00:00:06 - End Time 2025-02-23 03:00:06 [2025-02-23 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536857', 'tblTempUsageDetail_20' ) start [2025-02-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536857', 'tblTempUsageDetail_20' ) end [2025-02-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536857', 'tblTempVendorCDR_20' ) start [2025-02-23 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536857', 'tblTempVendorCDR_20' ) end [2025-02-23 03:00:19] Production.INFO: ProcessCDR(1,14536857,1,1,2) [2025-02-23 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536857', 'tblTempUsageDetail_20' ) start [2025-02-23 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536857', 'tblTempUsageDetail_20' ) end [2025-02-23 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:00:22] Production.INFO: ==3630== Releasing lock... [2025-02-23 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:00:22] Production.INFO: 33 MB #Memory Used# [2025-02-23 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:01:05 [end_date_ymd] => 2025-02-23 03:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:01:05' and `end` < '2025-02-23 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-02-23 03:01:17] Production.INFO: count ==596 [2025-02-23 03:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:01:05 - End Time 2025-02-23 03:01:05 [2025-02-23 03:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536862', 'tblTempUsageDetail_20' ) start [2025-02-23 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536862', 'tblTempUsageDetail_20' ) end [2025-02-23 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536862', 'tblTempVendorCDR_20' ) start [2025-02-23 03:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536862', 'tblTempVendorCDR_20' ) end [2025-02-23 03:01:17] Production.INFO: ProcessCDR(1,14536862,1,1,2) [2025-02-23 03:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536862', 'tblTempUsageDetail_20' ) start [2025-02-23 03:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536862', 'tblTempUsageDetail_20' ) end [2025-02-23 03:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:01:20] Production.INFO: ==3718== Releasing lock... [2025-02-23 03:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:01:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:02:05 [end_date_ymd] => 2025-02-23 03:02:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:02:05' and `end` < '2025-02-23 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-02-23 03:02:17] Production.INFO: count ==596 [2025-02-23 03:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:02:05 - End Time 2025-02-23 03:02:05 [2025-02-23 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536867', 'tblTempUsageDetail_20' ) start [2025-02-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536867', 'tblTempUsageDetail_20' ) end [2025-02-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536867', 'tblTempVendorCDR_20' ) start [2025-02-23 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536867', 'tblTempVendorCDR_20' ) end [2025-02-23 03:02:17] Production.INFO: ProcessCDR(1,14536867,1,1,2) [2025-02-23 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536867', 'tblTempUsageDetail_20' ) start [2025-02-23 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536867', 'tblTempUsageDetail_20' ) end [2025-02-23 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:02:21] Production.INFO: ==3866== Releasing lock... [2025-02-23 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:02:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:03:05 [end_date_ymd] => 2025-02-23 03:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:03:05' and `end` < '2025-02-23 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-02-23 03:03:17] Production.INFO: count ==599 [2025-02-23 03:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:03:05 - End Time 2025-02-23 03:03:05 [2025-02-23 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536872', 'tblTempUsageDetail_20' ) start [2025-02-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536872', 'tblTempUsageDetail_20' ) end [2025-02-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536872', 'tblTempVendorCDR_20' ) start [2025-02-23 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536872', 'tblTempVendorCDR_20' ) end [2025-02-23 03:03:17] Production.INFO: ProcessCDR(1,14536872,1,1,2) [2025-02-23 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536872', 'tblTempUsageDetail_20' ) start [2025-02-23 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536872', 'tblTempUsageDetail_20' ) end [2025-02-23 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:03:20] Production.INFO: ==3934== Releasing lock... [2025-02-23 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:03:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:04:06 [end_date_ymd] => 2025-02-23 03:04:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:04:06' and `end` < '2025-02-23 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-02-23 03:04:18] Production.INFO: count ==599 [2025-02-23 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:04:06 - End Time 2025-02-23 03:04:06 [2025-02-23 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536877', 'tblTempUsageDetail_20' ) start [2025-02-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536877', 'tblTempUsageDetail_20' ) end [2025-02-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536877', 'tblTempVendorCDR_20' ) start [2025-02-23 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536877', 'tblTempVendorCDR_20' ) end [2025-02-23 03:04:18] Production.INFO: ProcessCDR(1,14536877,1,1,2) [2025-02-23 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536877', 'tblTempUsageDetail_20' ) start [2025-02-23 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536877', 'tblTempUsageDetail_20' ) end [2025-02-23 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:04:21] Production.INFO: ==4004== Releasing lock... [2025-02-23 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:05:05 [end_date_ymd] => 2025-02-23 03:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:05:05' and `end` < '2025-02-23 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-02-23 03:05:17] Production.INFO: count ==588 [2025-02-23 03:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:05:05 - End Time 2025-02-23 03:05:05 [2025-02-23 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536882', 'tblTempUsageDetail_20' ) start [2025-02-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536882', 'tblTempUsageDetail_20' ) end [2025-02-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536882', 'tblTempVendorCDR_20' ) start [2025-02-23 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536882', 'tblTempVendorCDR_20' ) end [2025-02-23 03:05:17] Production.INFO: ProcessCDR(1,14536882,1,1,2) [2025-02-23 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536882', 'tblTempUsageDetail_20' ) start [2025-02-23 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536882', 'tblTempUsageDetail_20' ) end [2025-02-23 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:05:20] Production.INFO: ==4075== Releasing lock... [2025-02-23 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:05:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:06:05 [end_date_ymd] => 2025-02-23 03:06:05 [RateCDR] => 1 ) [2025-02-23 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:06:05' and `end` < '2025-02-23 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:06:17] Production.INFO: count ==574 [2025-02-23 03:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:06:05 - End Time 2025-02-23 03:06:05 [2025-02-23 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536887', 'tblTempUsageDetail_20' ) start [2025-02-23 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536887', 'tblTempUsageDetail_20' ) end [2025-02-23 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536887', 'tblTempVendorCDR_20' ) start [2025-02-23 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536887', 'tblTempVendorCDR_20' ) end [2025-02-23 03:06:17] Production.INFO: ProcessCDR(1,14536887,1,1,2) [2025-02-23 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536887', 'tblTempUsageDetail_20' ) start [2025-02-23 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536887', 'tblTempUsageDetail_20' ) end [2025-02-23 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:06:21] Production.INFO: ==4255== Releasing lock... [2025-02-23 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:06:21] Production.INFO: 33 MB #Memory Used# [2025-02-23 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:07:05 [end_date_ymd] => 2025-02-23 03:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:07:05' and `end` < '2025-02-23 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-02-23 03:07:17] Production.INFO: count ==569 [2025-02-23 03:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:07:05 - End Time 2025-02-23 03:07:05 [2025-02-23 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536892', 'tblTempUsageDetail_20' ) start [2025-02-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536892', 'tblTempUsageDetail_20' ) end [2025-02-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536892', 'tblTempVendorCDR_20' ) start [2025-02-23 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536892', 'tblTempVendorCDR_20' ) end [2025-02-23 03:07:17] Production.INFO: ProcessCDR(1,14536892,1,1,2) [2025-02-23 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536892', 'tblTempUsageDetail_20' ) start [2025-02-23 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536892', 'tblTempUsageDetail_20' ) end [2025-02-23 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:07:20] Production.INFO: ==4351== Releasing lock... [2025-02-23 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:07:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:08:05 [end_date_ymd] => 2025-02-23 03:08:05 [RateCDR] => 1 ) [2025-02-23 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:08:05' and `end` < '2025-02-23 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:08:17] Production.INFO: count ==561 [2025-02-23 03:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:08:05 - End Time 2025-02-23 03:08:05 [2025-02-23 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536897', 'tblTempUsageDetail_20' ) start [2025-02-23 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536897', 'tblTempUsageDetail_20' ) end [2025-02-23 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536897', 'tblTempVendorCDR_20' ) start [2025-02-23 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536897', 'tblTempVendorCDR_20' ) end [2025-02-23 03:08:17] Production.INFO: ProcessCDR(1,14536897,1,1,2) [2025-02-23 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536897', 'tblTempUsageDetail_20' ) start [2025-02-23 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536897', 'tblTempUsageDetail_20' ) end [2025-02-23 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:08:20] Production.INFO: ==4485== Releasing lock... [2025-02-23 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:08:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:09:05 [end_date_ymd] => 2025-02-23 03:09:05 [RateCDR] => 1 ) [2025-02-23 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:09:05' and `end` < '2025-02-23 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:09:17] Production.INFO: count ==542 [2025-02-23 03:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:09:05 - End Time 2025-02-23 03:09:05 [2025-02-23 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536902', 'tblTempUsageDetail_20' ) start [2025-02-23 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536902', 'tblTempUsageDetail_20' ) end [2025-02-23 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536902', 'tblTempVendorCDR_20' ) start [2025-02-23 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536902', 'tblTempVendorCDR_20' ) end [2025-02-23 03:09:17] Production.INFO: ProcessCDR(1,14536902,1,1,2) [2025-02-23 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536902', 'tblTempUsageDetail_20' ) start [2025-02-23 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536902', 'tblTempUsageDetail_20' ) end [2025-02-23 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:09:20] Production.INFO: ==4680== Releasing lock... [2025-02-23 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:09:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:10:06 [end_date_ymd] => 2025-02-23 03:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:10:06' and `end` < '2025-02-23 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-02-23 03:10:18] Production.INFO: count ==529 [2025-02-23 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:10:06 - End Time 2025-02-23 03:10:06 [2025-02-23 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536908', 'tblTempUsageDetail_20' ) start [2025-02-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536908', 'tblTempUsageDetail_20' ) end [2025-02-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536908', 'tblTempVendorCDR_20' ) start [2025-02-23 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536908', 'tblTempVendorCDR_20' ) end [2025-02-23 03:10:18] Production.INFO: ProcessCDR(1,14536908,1,1,2) [2025-02-23 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536908', 'tblTempUsageDetail_20' ) start [2025-02-23 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536908', 'tblTempUsageDetail_20' ) end [2025-02-23 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:10:21] Production.INFO: ==4771== Releasing lock... [2025-02-23 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:10:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:11:05 [end_date_ymd] => 2025-02-23 03:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:11:05' and `end` < '2025-02-23 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-02-23 03:11:17] Production.INFO: count ==506 [2025-02-23 03:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:11:05 - End Time 2025-02-23 03:11:05 [2025-02-23 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536913', 'tblTempUsageDetail_20' ) start [2025-02-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536913', 'tblTempUsageDetail_20' ) end [2025-02-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536913', 'tblTempVendorCDR_20' ) start [2025-02-23 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536913', 'tblTempVendorCDR_20' ) end [2025-02-23 03:11:17] Production.INFO: ProcessCDR(1,14536913,1,1,2) [2025-02-23 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536913', 'tblTempUsageDetail_20' ) start [2025-02-23 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536913', 'tblTempUsageDetail_20' ) end [2025-02-23 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:11:20] Production.INFO: ==4842== Releasing lock... [2025-02-23 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:11:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:12:05 [end_date_ymd] => 2025-02-23 03:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:12:05' and `end` < '2025-02-23 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-02-23 03:12:17] Production.INFO: count ==504 [2025-02-23 03:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:12:05 - End Time 2025-02-23 03:12:05 [2025-02-23 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536918', 'tblTempUsageDetail_20' ) start [2025-02-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536918', 'tblTempUsageDetail_20' ) end [2025-02-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536918', 'tblTempVendorCDR_20' ) start [2025-02-23 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536918', 'tblTempVendorCDR_20' ) end [2025-02-23 03:12:17] Production.INFO: ProcessCDR(1,14536918,1,1,2) [2025-02-23 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536918', 'tblTempUsageDetail_20' ) start [2025-02-23 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536918', 'tblTempUsageDetail_20' ) end [2025-02-23 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:12:20] Production.INFO: ==4920== Releasing lock... [2025-02-23 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:12:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:13:05 [end_date_ymd] => 2025-02-23 03:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:13:05' and `end` < '2025-02-23 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-02-23 03:13:16] Production.INFO: count ==504 [2025-02-23 03:13:16] Production.ERROR: pbx CDR StartTime 2025-02-23 00:13:05 - End Time 2025-02-23 03:13:05 [2025-02-23 03:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536923', 'tblTempUsageDetail_20' ) start [2025-02-23 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536923', 'tblTempUsageDetail_20' ) end [2025-02-23 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536923', 'tblTempVendorCDR_20' ) start [2025-02-23 03:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536923', 'tblTempVendorCDR_20' ) end [2025-02-23 03:13:16] Production.INFO: ProcessCDR(1,14536923,1,1,2) [2025-02-23 03:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536923', 'tblTempUsageDetail_20' ) start [2025-02-23 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536923', 'tblTempUsageDetail_20' ) end [2025-02-23 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:13:20] Production.INFO: ==5068== Releasing lock... [2025-02-23 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:13:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:14:05 [end_date_ymd] => 2025-02-23 03:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:14:05' and `end` < '2025-02-23 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-02-23 03:14:17] Production.INFO: count ==504 [2025-02-23 03:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:14:05 - End Time 2025-02-23 03:14:05 [2025-02-23 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536928', 'tblTempUsageDetail_20' ) start [2025-02-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536928', 'tblTempUsageDetail_20' ) end [2025-02-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536928', 'tblTempVendorCDR_20' ) start [2025-02-23 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536928', 'tblTempVendorCDR_20' ) end [2025-02-23 03:14:17] Production.INFO: ProcessCDR(1,14536928,1,1,2) [2025-02-23 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536928', 'tblTempUsageDetail_20' ) start [2025-02-23 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536928', 'tblTempUsageDetail_20' ) end [2025-02-23 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:14:20] Production.INFO: ==5142== Releasing lock... [2025-02-23 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:14:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:15:06 [end_date_ymd] => 2025-02-23 03:15:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:15:06' and `end` < '2025-02-23 03: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-02-23 03:15:18] Production.INFO: count ==504 [2025-02-23 03:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:15:06 - End Time 2025-02-23 03:15:06 [2025-02-23 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536933', 'tblTempUsageDetail_20' ) start [2025-02-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536933', 'tblTempUsageDetail_20' ) end [2025-02-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536933', 'tblTempVendorCDR_20' ) start [2025-02-23 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536933', 'tblTempVendorCDR_20' ) end [2025-02-23 03:15:18] Production.INFO: ProcessCDR(1,14536933,1,1,2) [2025-02-23 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536933', 'tblTempUsageDetail_20' ) start [2025-02-23 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536933', 'tblTempUsageDetail_20' ) end [2025-02-23 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:15:21] Production.INFO: ==5221== Releasing lock... [2025-02-23 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:15:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:16:05 [end_date_ymd] => 2025-02-23 03:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:16:05' and `end` < '2025-02-23 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-02-23 03:16:17] Production.INFO: count ==494 [2025-02-23 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:16:05 - End Time 2025-02-23 03:16:05 [2025-02-23 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536938', 'tblTempUsageDetail_20' ) start [2025-02-23 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536938', 'tblTempUsageDetail_20' ) end [2025-02-23 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536938', 'tblTempVendorCDR_20' ) start [2025-02-23 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536938', 'tblTempVendorCDR_20' ) end [2025-02-23 03:16:17] Production.INFO: ProcessCDR(1,14536938,1,1,2) [2025-02-23 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536938', 'tblTempUsageDetail_20' ) start [2025-02-23 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536938', 'tblTempUsageDetail_20' ) end [2025-02-23 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:16:20] Production.INFO: ==5290== Releasing lock... [2025-02-23 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:16:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:17:06 [end_date_ymd] => 2025-02-23 03:17:06 [RateCDR] => 1 ) [2025-02-23 03:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:17:06' and `end` < '2025-02-23 03:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:17:17] Production.INFO: count ==491 [2025-02-23 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:17:06 - End Time 2025-02-23 03:17:06 [2025-02-23 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536943', 'tblTempUsageDetail_20' ) start [2025-02-23 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536943', 'tblTempUsageDetail_20' ) end [2025-02-23 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536943', 'tblTempVendorCDR_20' ) start [2025-02-23 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536943', 'tblTempVendorCDR_20' ) end [2025-02-23 03:17:17] Production.INFO: ProcessCDR(1,14536943,1,1,2) [2025-02-23 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536943', 'tblTempUsageDetail_20' ) start [2025-02-23 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536943', 'tblTempUsageDetail_20' ) end [2025-02-23 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:17:20] Production.INFO: ==5441== Releasing lock... [2025-02-23 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:17:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:18:05 [end_date_ymd] => 2025-02-23 03:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:18:05' and `end` < '2025-02-23 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-02-23 03:18:17] Production.INFO: count ==491 [2025-02-23 03:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:18:05 - End Time 2025-02-23 03:18:05 [2025-02-23 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536948', 'tblTempUsageDetail_20' ) start [2025-02-23 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536948', 'tblTempUsageDetail_20' ) end [2025-02-23 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536948', 'tblTempVendorCDR_20' ) start [2025-02-23 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536948', 'tblTempVendorCDR_20' ) end [2025-02-23 03:18:17] Production.INFO: ProcessCDR(1,14536948,1,1,2) [2025-02-23 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536948', 'tblTempUsageDetail_20' ) start [2025-02-23 03:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536948', 'tblTempUsageDetail_20' ) end [2025-02-23 03:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:18:20] Production.INFO: ==5510== Releasing lock... [2025-02-23 03:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:18:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:19:05 [end_date_ymd] => 2025-02-23 03:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:19:05' and `end` < '2025-02-23 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-02-23 03:19:17] Production.INFO: count ==490 [2025-02-23 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:19:05 - End Time 2025-02-23 03:19:05 [2025-02-23 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536953', 'tblTempUsageDetail_20' ) start [2025-02-23 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536953', 'tblTempUsageDetail_20' ) end [2025-02-23 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536953', 'tblTempVendorCDR_20' ) start [2025-02-23 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536953', 'tblTempVendorCDR_20' ) end [2025-02-23 03:19:17] Production.INFO: ProcessCDR(1,14536953,1,1,2) [2025-02-23 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536953', 'tblTempUsageDetail_20' ) start [2025-02-23 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536953', 'tblTempUsageDetail_20' ) end [2025-02-23 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:19:21] Production.INFO: ==5581== Releasing lock... [2025-02-23 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:20:06 [end_date_ymd] => 2025-02-23 03:20:06 [RateCDR] => 1 ) [2025-02-23 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:20:06' and `end` < '2025-02-23 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:20:18] Production.INFO: count ==480 [2025-02-23 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:20:06 - End Time 2025-02-23 03:20:06 [2025-02-23 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536959', 'tblTempUsageDetail_20' ) start [2025-02-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536959', 'tblTempUsageDetail_20' ) end [2025-02-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536959', 'tblTempVendorCDR_20' ) start [2025-02-23 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536959', 'tblTempVendorCDR_20' ) end [2025-02-23 03:20:18] Production.INFO: ProcessCDR(1,14536959,1,1,2) [2025-02-23 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536959', 'tblTempUsageDetail_20' ) start [2025-02-23 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536959', 'tblTempUsageDetail_20' ) end [2025-02-23 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:20:21] Production.INFO: ==5677== Releasing lock... [2025-02-23 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:20:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:21:05 [end_date_ymd] => 2025-02-23 03:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:21:05' and `end` < '2025-02-23 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-02-23 03:21:17] Production.INFO: count ==478 [2025-02-23 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:21:05 - End Time 2025-02-23 03:21:05 [2025-02-23 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536964', 'tblTempUsageDetail_20' ) start [2025-02-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536964', 'tblTempUsageDetail_20' ) end [2025-02-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536964', 'tblTempVendorCDR_20' ) start [2025-02-23 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536964', 'tblTempVendorCDR_20' ) end [2025-02-23 03:21:17] Production.INFO: ProcessCDR(1,14536964,1,1,2) [2025-02-23 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536964', 'tblTempUsageDetail_20' ) start [2025-02-23 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536964', 'tblTempUsageDetail_20' ) end [2025-02-23 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:21:21] Production.INFO: ==5750== Releasing lock... [2025-02-23 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:22:05 [end_date_ymd] => 2025-02-23 03:22:05 [RateCDR] => 1 ) [2025-02-23 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:22:05' and `end` < '2025-02-23 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:22:16] Production.INFO: count ==479 [2025-02-23 03:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:22:05 - End Time 2025-02-23 03:22:05 [2025-02-23 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536969', 'tblTempUsageDetail_20' ) start [2025-02-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536969', 'tblTempUsageDetail_20' ) end [2025-02-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536969', 'tblTempVendorCDR_20' ) start [2025-02-23 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536969', 'tblTempVendorCDR_20' ) end [2025-02-23 03:22:17] Production.INFO: ProcessCDR(1,14536969,1,1,2) [2025-02-23 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536969', 'tblTempUsageDetail_20' ) start [2025-02-23 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536969', 'tblTempUsageDetail_20' ) end [2025-02-23 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:22:21] Production.INFO: ==5821== Releasing lock... [2025-02-23 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:22:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:23:06 [end_date_ymd] => 2025-02-23 03:23:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:23:06' and `end` < '2025-02-23 03: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-02-23 03:23:17] Production.INFO: count ==479 [2025-02-23 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:23:06 - End Time 2025-02-23 03:23:06 [2025-02-23 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536974', 'tblTempUsageDetail_20' ) start [2025-02-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536974', 'tblTempUsageDetail_20' ) end [2025-02-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536974', 'tblTempVendorCDR_20' ) start [2025-02-23 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536974', 'tblTempVendorCDR_20' ) end [2025-02-23 03:23:18] Production.INFO: ProcessCDR(1,14536974,1,1,2) [2025-02-23 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536974', 'tblTempUsageDetail_20' ) start [2025-02-23 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536974', 'tblTempUsageDetail_20' ) end [2025-02-23 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:23:21] Production.INFO: ==5894== Releasing lock... [2025-02-23 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:23:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:24:05 [end_date_ymd] => 2025-02-23 03:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:24:05' and `end` < '2025-02-23 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-02-23 03:24:17] Production.INFO: count ==479 [2025-02-23 03:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:24:05 - End Time 2025-02-23 03:24:05 [2025-02-23 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536978', 'tblTempUsageDetail_20' ) start [2025-02-23 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536978', 'tblTempUsageDetail_20' ) end [2025-02-23 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536978', 'tblTempVendorCDR_20' ) start [2025-02-23 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536978', 'tblTempVendorCDR_20' ) end [2025-02-23 03:24:17] Production.INFO: ProcessCDR(1,14536978,1,1,2) [2025-02-23 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536978', 'tblTempUsageDetail_20' ) start [2025-02-23 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536978', 'tblTempUsageDetail_20' ) end [2025-02-23 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:24:20] Production.INFO: ==5964== Releasing lock... [2025-02-23 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:24:20] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:25:06 [end_date_ymd] => 2025-02-23 03:25:06 [RateCDR] => 1 ) [2025-02-23 03:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:25:06' and `end` < '2025-02-23 03: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-02-23 03:25:17] Production.INFO: count ==479 [2025-02-23 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:25:06 - End Time 2025-02-23 03:25:06 [2025-02-23 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536984', 'tblTempUsageDetail_20' ) start [2025-02-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536984', 'tblTempUsageDetail_20' ) end [2025-02-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536984', 'tblTempVendorCDR_20' ) start [2025-02-23 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536984', 'tblTempVendorCDR_20' ) end [2025-02-23 03:25:18] Production.INFO: ProcessCDR(1,14536984,1,1,2) [2025-02-23 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536984', 'tblTempUsageDetail_20' ) start [2025-02-23 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536984', 'tblTempUsageDetail_20' ) end [2025-02-23 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:25:21] Production.INFO: ==6075== Releasing lock... [2025-02-23 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:25:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:26:05 [end_date_ymd] => 2025-02-23 03:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:26:05' and `end` < '2025-02-23 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-02-23 03:26:17] Production.INFO: count ==474 [2025-02-23 03:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:26:05 - End Time 2025-02-23 03:26:05 [2025-02-23 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536989', 'tblTempUsageDetail_20' ) start [2025-02-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536989', 'tblTempUsageDetail_20' ) end [2025-02-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536989', 'tblTempVendorCDR_20' ) start [2025-02-23 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536989', 'tblTempVendorCDR_20' ) end [2025-02-23 03:26:17] Production.INFO: ProcessCDR(1,14536989,1,1,2) [2025-02-23 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536989', 'tblTempUsageDetail_20' ) start [2025-02-23 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536989', 'tblTempUsageDetail_20' ) end [2025-02-23 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:26:20] Production.INFO: ==6146== Releasing lock... [2025-02-23 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:26:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:27:05 [end_date_ymd] => 2025-02-23 03:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:27:05' and `end` < '2025-02-23 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-02-23 03:27:17] Production.INFO: count ==473 [2025-02-23 03:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:27:05 - End Time 2025-02-23 03:27:05 [2025-02-23 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536994', 'tblTempUsageDetail_20' ) start [2025-02-23 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536994', 'tblTempUsageDetail_20' ) end [2025-02-23 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536994', 'tblTempVendorCDR_20' ) start [2025-02-23 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536994', 'tblTempVendorCDR_20' ) end [2025-02-23 03:27:17] Production.INFO: ProcessCDR(1,14536994,1,1,2) [2025-02-23 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536994', 'tblTempUsageDetail_20' ) start [2025-02-23 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536994', 'tblTempUsageDetail_20' ) end [2025-02-23 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:27:20] Production.INFO: ==6217== Releasing lock... [2025-02-23 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:27:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:28:05 [end_date_ymd] => 2025-02-23 03:28:05 [RateCDR] => 1 ) [2025-02-23 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:28:05' and `end` < '2025-02-23 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:28:17] Production.INFO: count ==473 [2025-02-23 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:28:05 - End Time 2025-02-23 03:28:05 [2025-02-23 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536999', 'tblTempUsageDetail_20' ) start [2025-02-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14536999', 'tblTempUsageDetail_20' ) end [2025-02-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536999', 'tblTempVendorCDR_20' ) start [2025-02-23 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14536999', 'tblTempVendorCDR_20' ) end [2025-02-23 03:28:17] Production.INFO: ProcessCDR(1,14536999,1,1,2) [2025-02-23 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14536999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14536999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14536999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14536999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536999', 'tblTempUsageDetail_20' ) start [2025-02-23 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14536999', 'tblTempUsageDetail_20' ) end [2025-02-23 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:28:20] Production.INFO: ==6287== Releasing lock... [2025-02-23 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:28:20] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:29:05 [end_date_ymd] => 2025-02-23 03:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:29:05' and `end` < '2025-02-23 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-02-23 03:29:17] Production.INFO: count ==469 [2025-02-23 03:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:29:05 - End Time 2025-02-23 03:29:05 [2025-02-23 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537004', 'tblTempUsageDetail_20' ) start [2025-02-23 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537004', 'tblTempUsageDetail_20' ) end [2025-02-23 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537004', 'tblTempVendorCDR_20' ) start [2025-02-23 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537004', 'tblTempVendorCDR_20' ) end [2025-02-23 03:29:17] Production.INFO: ProcessCDR(1,14537004,1,1,2) [2025-02-23 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537004', 'tblTempUsageDetail_20' ) start [2025-02-23 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537004', 'tblTempUsageDetail_20' ) end [2025-02-23 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:29:20] Production.INFO: ==6360== Releasing lock... [2025-02-23 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:29:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:30:06 [end_date_ymd] => 2025-02-23 03:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:30:06' and `end` < '2025-02-23 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-02-23 03:30:18] Production.INFO: count ==467 [2025-02-23 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:30:06 - End Time 2025-02-23 03:30:06 [2025-02-23 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537010', 'tblTempUsageDetail_20' ) start [2025-02-23 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537010', 'tblTempUsageDetail_20' ) end [2025-02-23 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537010', 'tblTempVendorCDR_20' ) start [2025-02-23 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537010', 'tblTempVendorCDR_20' ) end [2025-02-23 03:30:18] Production.INFO: ProcessCDR(1,14537010,1,1,2) [2025-02-23 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537010', 'tblTempUsageDetail_20' ) start [2025-02-23 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537010', 'tblTempUsageDetail_20' ) end [2025-02-23 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:30:21] Production.INFO: ==6435== Releasing lock... [2025-02-23 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:31:05 [end_date_ymd] => 2025-02-23 03:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:31:05' and `end` < '2025-02-23 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-02-23 03:31:17] Production.INFO: count ==472 [2025-02-23 03:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:31:05 - End Time 2025-02-23 03:31:05 [2025-02-23 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537015', 'tblTempUsageDetail_20' ) start [2025-02-23 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537015', 'tblTempUsageDetail_20' ) end [2025-02-23 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537015', 'tblTempVendorCDR_20' ) start [2025-02-23 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537015', 'tblTempVendorCDR_20' ) end [2025-02-23 03:31:17] Production.INFO: ProcessCDR(1,14537015,1,1,2) [2025-02-23 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537015', 'tblTempUsageDetail_20' ) start [2025-02-23 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537015', 'tblTempUsageDetail_20' ) end [2025-02-23 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:31:21] Production.INFO: ==6508== Releasing lock... [2025-02-23 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:31:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:32:06 [end_date_ymd] => 2025-02-23 03:32:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:32:06' and `end` < '2025-02-23 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-02-23 03:32:18] Production.INFO: count ==472 [2025-02-23 03:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:32:06 - End Time 2025-02-23 03:32:06 [2025-02-23 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537020', 'tblTempUsageDetail_20' ) start [2025-02-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537020', 'tblTempUsageDetail_20' ) end [2025-02-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537020', 'tblTempVendorCDR_20' ) start [2025-02-23 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537020', 'tblTempVendorCDR_20' ) end [2025-02-23 03:32:18] Production.INFO: ProcessCDR(1,14537020,1,1,2) [2025-02-23 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537020', 'tblTempUsageDetail_20' ) start [2025-02-23 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537020', 'tblTempUsageDetail_20' ) end [2025-02-23 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:32:21] Production.INFO: ==6578== Releasing lock... [2025-02-23 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:32:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:33:06 [end_date_ymd] => 2025-02-23 03:33:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:33:06' and `end` < '2025-02-23 03: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-02-23 03:33:18] Production.INFO: count ==472 [2025-02-23 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:33:06 - End Time 2025-02-23 03:33:06 [2025-02-23 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537025', 'tblTempUsageDetail_20' ) start [2025-02-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537025', 'tblTempUsageDetail_20' ) end [2025-02-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537025', 'tblTempVendorCDR_20' ) start [2025-02-23 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537025', 'tblTempVendorCDR_20' ) end [2025-02-23 03:33:18] Production.INFO: ProcessCDR(1,14537025,1,1,2) [2025-02-23 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537025', 'tblTempUsageDetail_20' ) start [2025-02-23 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537025', 'tblTempUsageDetail_20' ) end [2025-02-23 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:33:22] Production.INFO: ==6648== Releasing lock... [2025-02-23 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:33:22] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:34:05 [end_date_ymd] => 2025-02-23 03:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:34:05' and `end` < '2025-02-23 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-02-23 03:34:17] Production.INFO: count ==472 [2025-02-23 03:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:34:05 - End Time 2025-02-23 03:34:05 [2025-02-23 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537030', 'tblTempUsageDetail_20' ) start [2025-02-23 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537030', 'tblTempUsageDetail_20' ) end [2025-02-23 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537030', 'tblTempVendorCDR_20' ) start [2025-02-23 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537030', 'tblTempVendorCDR_20' ) end [2025-02-23 03:34:17] Production.INFO: ProcessCDR(1,14537030,1,1,2) [2025-02-23 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537030', 'tblTempUsageDetail_20' ) start [2025-02-23 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537030', 'tblTempUsageDetail_20' ) end [2025-02-23 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:34:21] Production.INFO: ==6727== Releasing lock... [2025-02-23 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:34:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:35:06 [end_date_ymd] => 2025-02-23 03:35:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:35:06' and `end` < '2025-02-23 03: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-02-23 03:35:18] Production.INFO: count ==472 [2025-02-23 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:35:06 - End Time 2025-02-23 03:35:06 [2025-02-23 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537035', 'tblTempUsageDetail_20' ) start [2025-02-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537035', 'tblTempUsageDetail_20' ) end [2025-02-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537035', 'tblTempVendorCDR_20' ) start [2025-02-23 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537035', 'tblTempVendorCDR_20' ) end [2025-02-23 03:35:18] Production.INFO: ProcessCDR(1,14537035,1,1,2) [2025-02-23 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537035', 'tblTempUsageDetail_20' ) start [2025-02-23 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537035', 'tblTempUsageDetail_20' ) end [2025-02-23 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:35:22] Production.INFO: ==6798== Releasing lock... [2025-02-23 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:35:22] Production.INFO: 32 MB #Memory Used# [2025-02-23 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:36:05 [end_date_ymd] => 2025-02-23 03:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:36:05' and `end` < '2025-02-23 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-02-23 03:36:17] Production.INFO: count ==474 [2025-02-23 03:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:36:05 - End Time 2025-02-23 03:36:05 [2025-02-23 03:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537040', 'tblTempUsageDetail_20' ) start [2025-02-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537040', 'tblTempUsageDetail_20' ) end [2025-02-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537040', 'tblTempVendorCDR_20' ) start [2025-02-23 03:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537040', 'tblTempVendorCDR_20' ) end [2025-02-23 03:36:17] Production.INFO: ProcessCDR(1,14537040,1,1,2) [2025-02-23 03:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537040', 'tblTempUsageDetail_20' ) start [2025-02-23 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537040', 'tblTempUsageDetail_20' ) end [2025-02-23 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:36:22] Production.INFO: ==6868== Releasing lock... [2025-02-23 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:37:06 [end_date_ymd] => 2025-02-23 03:37:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:37:06' and `end` < '2025-02-23 03: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-02-23 03:37:18] Production.INFO: count ==474 [2025-02-23 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:37:06 - End Time 2025-02-23 03:37:06 [2025-02-23 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537045', 'tblTempUsageDetail_20' ) start [2025-02-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537045', 'tblTempUsageDetail_20' ) end [2025-02-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537045', 'tblTempVendorCDR_20' ) start [2025-02-23 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537045', 'tblTempVendorCDR_20' ) end [2025-02-23 03:37:18] Production.INFO: ProcessCDR(1,14537045,1,1,2) [2025-02-23 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537045', 'tblTempUsageDetail_20' ) start [2025-02-23 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537045', 'tblTempUsageDetail_20' ) end [2025-02-23 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:37:22] Production.INFO: ==6940== Releasing lock... [2025-02-23 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:38:06 [end_date_ymd] => 2025-02-23 03:38:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:38:06' and `end` < '2025-02-23 03: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-02-23 03:38:18] Production.INFO: count ==474 [2025-02-23 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:38:06 - End Time 2025-02-23 03:38:06 [2025-02-23 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537050', 'tblTempUsageDetail_20' ) start [2025-02-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537050', 'tblTempUsageDetail_20' ) end [2025-02-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537050', 'tblTempVendorCDR_20' ) start [2025-02-23 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537050', 'tblTempVendorCDR_20' ) end [2025-02-23 03:38:18] Production.INFO: ProcessCDR(1,14537050,1,1,2) [2025-02-23 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537050', 'tblTempUsageDetail_20' ) start [2025-02-23 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537050', 'tblTempUsageDetail_20' ) end [2025-02-23 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:38:21] Production.INFO: ==7010== Releasing lock... [2025-02-23 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:39:06 [end_date_ymd] => 2025-02-23 03:39:06 [RateCDR] => 1 ) [2025-02-23 03:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:39:06' and `end` < '2025-02-23 03:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:39:17] Production.INFO: count ==474 [2025-02-23 03:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:39:06 - End Time 2025-02-23 03:39:06 [2025-02-23 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537055', 'tblTempUsageDetail_20' ) start [2025-02-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537055', 'tblTempUsageDetail_20' ) end [2025-02-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537055', 'tblTempVendorCDR_20' ) start [2025-02-23 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537055', 'tblTempVendorCDR_20' ) end [2025-02-23 03:39:18] Production.INFO: ProcessCDR(1,14537055,1,1,2) [2025-02-23 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537055', 'tblTempUsageDetail_20' ) start [2025-02-23 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537055', 'tblTempUsageDetail_20' ) end [2025-02-23 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:39:21] Production.INFO: ==7081== Releasing lock... [2025-02-23 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:40:06 [end_date_ymd] => 2025-02-23 03:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:40:06' and `end` < '2025-02-23 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-02-23 03:40:18] Production.INFO: count ==467 [2025-02-23 03:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:40:06 - End Time 2025-02-23 03:40:06 [2025-02-23 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537061', 'tblTempUsageDetail_20' ) start [2025-02-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537061', 'tblTempUsageDetail_20' ) end [2025-02-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537061', 'tblTempVendorCDR_20' ) start [2025-02-23 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537061', 'tblTempVendorCDR_20' ) end [2025-02-23 03:40:19] Production.INFO: ProcessCDR(1,14537061,1,1,2) [2025-02-23 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537061', 'tblTempUsageDetail_20' ) start [2025-02-23 03:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537061', 'tblTempUsageDetail_20' ) end [2025-02-23 03:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:40:24] Production.INFO: ==7155== Releasing lock... [2025-02-23 03:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:40:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:41:06 [end_date_ymd] => 2025-02-23 03:41:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:41:06' and `end` < '2025-02-23 03: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-02-23 03:41:17] Production.INFO: count ==459 [2025-02-23 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:41:06 - End Time 2025-02-23 03:41:06 [2025-02-23 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537066', 'tblTempUsageDetail_20' ) start [2025-02-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537066', 'tblTempUsageDetail_20' ) end [2025-02-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537066', 'tblTempVendorCDR_20' ) start [2025-02-23 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537066', 'tblTempVendorCDR_20' ) end [2025-02-23 03:41:18] Production.INFO: ProcessCDR(1,14537066,1,1,2) [2025-02-23 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537066', 'tblTempUsageDetail_20' ) start [2025-02-23 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537066', 'tblTempUsageDetail_20' ) end [2025-02-23 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:41:21] Production.INFO: ==7269== Releasing lock... [2025-02-23 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:42:06 [end_date_ymd] => 2025-02-23 03:42:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:42:06' and `end` < '2025-02-23 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-02-23 03:42:18] Production.INFO: count ==459 [2025-02-23 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:42:06 - End Time 2025-02-23 03:42:06 [2025-02-23 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537071', 'tblTempUsageDetail_20' ) start [2025-02-23 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537071', 'tblTempUsageDetail_20' ) end [2025-02-23 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537071', 'tblTempVendorCDR_20' ) start [2025-02-23 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537071', 'tblTempVendorCDR_20' ) end [2025-02-23 03:42:18] Production.INFO: ProcessCDR(1,14537071,1,1,2) [2025-02-23 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537071', 'tblTempUsageDetail_20' ) start [2025-02-23 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537071', 'tblTempUsageDetail_20' ) end [2025-02-23 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:42:21] Production.INFO: ==7340== Releasing lock... [2025-02-23 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:43:06 [end_date_ymd] => 2025-02-23 03:43:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:43:06' and `end` < '2025-02-23 03: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-02-23 03:43:18] Production.INFO: count ==449 [2025-02-23 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:43:06 - End Time 2025-02-23 03:43:06 [2025-02-23 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537076', 'tblTempUsageDetail_20' ) start [2025-02-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537076', 'tblTempUsageDetail_20' ) end [2025-02-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537076', 'tblTempVendorCDR_20' ) start [2025-02-23 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537076', 'tblTempVendorCDR_20' ) end [2025-02-23 03:43:18] Production.INFO: ProcessCDR(1,14537076,1,1,2) [2025-02-23 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537076', 'tblTempUsageDetail_20' ) start [2025-02-23 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537076', 'tblTempUsageDetail_20' ) end [2025-02-23 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:43:23] Production.INFO: ==7411== Releasing lock... [2025-02-23 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:43:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:44:06 [end_date_ymd] => 2025-02-23 03:44:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:44:06' and `end` < '2025-02-23 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-02-23 03:44:17] Production.INFO: count ==447 [2025-02-23 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:44:06 - End Time 2025-02-23 03:44:06 [2025-02-23 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537081', 'tblTempUsageDetail_20' ) start [2025-02-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537081', 'tblTempUsageDetail_20' ) end [2025-02-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537081', 'tblTempVendorCDR_20' ) start [2025-02-23 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537081', 'tblTempVendorCDR_20' ) end [2025-02-23 03:44:18] Production.INFO: ProcessCDR(1,14537081,1,1,2) [2025-02-23 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537081', 'tblTempUsageDetail_20' ) start [2025-02-23 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537081', 'tblTempUsageDetail_20' ) end [2025-02-23 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:44:21] Production.INFO: ==7483== Releasing lock... [2025-02-23 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:44:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:45:05 [end_date_ymd] => 2025-02-23 03:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:45:05' and `end` < '2025-02-23 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-02-23 03:45:17] Production.INFO: count ==447 [2025-02-23 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:45:05 - End Time 2025-02-23 03:45:05 [2025-02-23 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537086', 'tblTempUsageDetail_20' ) start [2025-02-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537086', 'tblTempUsageDetail_20' ) end [2025-02-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537086', 'tblTempVendorCDR_20' ) start [2025-02-23 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537086', 'tblTempVendorCDR_20' ) end [2025-02-23 03:45:17] Production.INFO: ProcessCDR(1,14537086,1,1,2) [2025-02-23 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537086', 'tblTempUsageDetail_20' ) start [2025-02-23 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537086', 'tblTempUsageDetail_20' ) end [2025-02-23 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:45:22] Production.INFO: ==7556== Releasing lock... [2025-02-23 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:45:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:46:05 [end_date_ymd] => 2025-02-23 03:46:05 [RateCDR] => 1 ) [2025-02-23 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:46:05' and `end` < '2025-02-23 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:46:17] Production.INFO: count ==447 [2025-02-23 03:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:46:05 - End Time 2025-02-23 03:46:05 [2025-02-23 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537091', 'tblTempUsageDetail_20' ) start [2025-02-23 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537091', 'tblTempUsageDetail_20' ) end [2025-02-23 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537091', 'tblTempVendorCDR_20' ) start [2025-02-23 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537091', 'tblTempVendorCDR_20' ) end [2025-02-23 03:46:17] Production.INFO: ProcessCDR(1,14537091,1,1,2) [2025-02-23 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537091', 'tblTempUsageDetail_20' ) start [2025-02-23 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537091', 'tblTempUsageDetail_20' ) end [2025-02-23 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:46:21] Production.INFO: ==7626== Releasing lock... [2025-02-23 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:46:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:47:05 [end_date_ymd] => 2025-02-23 03:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:47:05' and `end` < '2025-02-23 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-02-23 03:47:16] Production.INFO: count ==447 [2025-02-23 03:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:47:05 - End Time 2025-02-23 03:47:05 [2025-02-23 03:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537096', 'tblTempUsageDetail_20' ) start [2025-02-23 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537096', 'tblTempUsageDetail_20' ) end [2025-02-23 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537096', 'tblTempVendorCDR_20' ) start [2025-02-23 03:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537096', 'tblTempVendorCDR_20' ) end [2025-02-23 03:47:17] Production.INFO: ProcessCDR(1,14537096,1,1,2) [2025-02-23 03:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537096', 'tblTempUsageDetail_20' ) start [2025-02-23 03:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537096', 'tblTempUsageDetail_20' ) end [2025-02-23 03:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:47:20] Production.INFO: ==7699== Releasing lock... [2025-02-23 03:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:47:20] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:48:05 [end_date_ymd] => 2025-02-23 03:48:05 [RateCDR] => 1 ) [2025-02-23 03:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:48:05' and `end` < '2025-02-23 03:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:48:17] Production.INFO: count ==442 [2025-02-23 03:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:48:05 - End Time 2025-02-23 03:48:05 [2025-02-23 03:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537101', 'tblTempUsageDetail_20' ) start [2025-02-23 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537101', 'tblTempUsageDetail_20' ) end [2025-02-23 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537101', 'tblTempVendorCDR_20' ) start [2025-02-23 03:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537101', 'tblTempVendorCDR_20' ) end [2025-02-23 03:48:17] Production.INFO: ProcessCDR(1,14537101,1,1,2) [2025-02-23 03:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537101', 'tblTempUsageDetail_20' ) start [2025-02-23 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537101', 'tblTempUsageDetail_20' ) end [2025-02-23 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:48:21] Production.INFO: ==7770== Releasing lock... [2025-02-23 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:49:06 [end_date_ymd] => 2025-02-23 03:49:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:49:06' and `end` < '2025-02-23 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-02-23 03:49:18] Production.INFO: count ==431 [2025-02-23 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:49:06 - End Time 2025-02-23 03:49:06 [2025-02-23 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537106', 'tblTempUsageDetail_20' ) start [2025-02-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537106', 'tblTempUsageDetail_20' ) end [2025-02-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537106', 'tblTempVendorCDR_20' ) start [2025-02-23 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537106', 'tblTempVendorCDR_20' ) end [2025-02-23 03:49:18] Production.INFO: ProcessCDR(1,14537106,1,1,2) [2025-02-23 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537106', 'tblTempUsageDetail_20' ) start [2025-02-23 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537106', 'tblTempUsageDetail_20' ) end [2025-02-23 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:49:22] Production.INFO: ==7842== Releasing lock... [2025-02-23 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:50:06 [end_date_ymd] => 2025-02-23 03:50:06 [RateCDR] => 1 ) [2025-02-23 03: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-02-23 00:50:06' and `end` < '2025-02-23 03: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-02-23 03:50:18] Production.INFO: count ==411 [2025-02-23 03:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:50:06 - End Time 2025-02-23 03:50:06 [2025-02-23 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537111', 'tblTempUsageDetail_20' ) start [2025-02-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537111', 'tblTempUsageDetail_20' ) end [2025-02-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537111', 'tblTempVendorCDR_20' ) start [2025-02-23 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537111', 'tblTempVendorCDR_20' ) end [2025-02-23 03:50:18] Production.INFO: ProcessCDR(1,14537111,1,1,2) [2025-02-23 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537111', 'tblTempUsageDetail_20' ) start [2025-02-23 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537111', 'tblTempUsageDetail_20' ) end [2025-02-23 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:50:22] Production.INFO: ==7914== Releasing lock... [2025-02-23 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:51:05 [end_date_ymd] => 2025-02-23 03:51:05 [RateCDR] => 1 ) [2025-02-23 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:51:05' and `end` < '2025-02-23 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:51:17] Production.INFO: count ==390 [2025-02-23 03:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:51:05 - End Time 2025-02-23 03:51:05 [2025-02-23 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537117', 'tblTempUsageDetail_20' ) start [2025-02-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537117', 'tblTempUsageDetail_20' ) end [2025-02-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537117', 'tblTempVendorCDR_20' ) start [2025-02-23 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537117', 'tblTempVendorCDR_20' ) end [2025-02-23 03:51:17] Production.INFO: ProcessCDR(1,14537117,1,1,2) [2025-02-23 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537117', 'tblTempUsageDetail_20' ) start [2025-02-23 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537117', 'tblTempUsageDetail_20' ) end [2025-02-23 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:51:21] Production.INFO: ==7985== Releasing lock... [2025-02-23 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:52:06 [end_date_ymd] => 2025-02-23 03:52:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:52:06' and `end` < '2025-02-23 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-02-23 03:52:17] Production.INFO: count ==381 [2025-02-23 03:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:52:06 - End Time 2025-02-23 03:52:06 [2025-02-23 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537122', 'tblTempUsageDetail_20' ) start [2025-02-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537122', 'tblTempUsageDetail_20' ) end [2025-02-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537122', 'tblTempVendorCDR_20' ) start [2025-02-23 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537122', 'tblTempVendorCDR_20' ) end [2025-02-23 03:52:18] Production.INFO: ProcessCDR(1,14537122,1,1,2) [2025-02-23 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537122', 'tblTempUsageDetail_20' ) start [2025-02-23 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537122', 'tblTempUsageDetail_20' ) end [2025-02-23 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:52:21] Production.INFO: ==8058== Releasing lock... [2025-02-23 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:53:05 [end_date_ymd] => 2025-02-23 03:53:05 [RateCDR] => 1 ) [2025-02-23 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:53:05' and `end` < '2025-02-23 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:53:17] Production.INFO: count ==379 [2025-02-23 03:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:53:05 - End Time 2025-02-23 03:53:05 [2025-02-23 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537127', 'tblTempUsageDetail_20' ) start [2025-02-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537127', 'tblTempUsageDetail_20' ) end [2025-02-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537127', 'tblTempVendorCDR_20' ) start [2025-02-23 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537127', 'tblTempVendorCDR_20' ) end [2025-02-23 03:53:17] Production.INFO: ProcessCDR(1,14537127,1,1,2) [2025-02-23 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537127', 'tblTempUsageDetail_20' ) start [2025-02-23 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537127', 'tblTempUsageDetail_20' ) end [2025-02-23 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:53:21] Production.INFO: ==8130== Releasing lock... [2025-02-23 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:53:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:54:05 [end_date_ymd] => 2025-02-23 03:54:05 [RateCDR] => 1 ) [2025-02-23 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:54:05' and `end` < '2025-02-23 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:54:17] Production.INFO: count ==379 [2025-02-23 03:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:54:05 - End Time 2025-02-23 03:54:05 [2025-02-23 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537132', 'tblTempUsageDetail_20' ) start [2025-02-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537132', 'tblTempUsageDetail_20' ) end [2025-02-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537132', 'tblTempVendorCDR_20' ) start [2025-02-23 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537132', 'tblTempVendorCDR_20' ) end [2025-02-23 03:54:17] Production.INFO: ProcessCDR(1,14537132,1,1,2) [2025-02-23 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537132', 'tblTempUsageDetail_20' ) start [2025-02-23 03:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537132', 'tblTempUsageDetail_20' ) end [2025-02-23 03:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:54:20] Production.INFO: ==8208== Releasing lock... [2025-02-23 03:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:54:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:55:05 [end_date_ymd] => 2025-02-23 03:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:55:05' and `end` < '2025-02-23 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-02-23 03:55:17] Production.INFO: count ==379 [2025-02-23 03:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:55:05 - End Time 2025-02-23 03:55:05 [2025-02-23 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537137', 'tblTempUsageDetail_20' ) start [2025-02-23 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537137', 'tblTempUsageDetail_20' ) end [2025-02-23 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537137', 'tblTempVendorCDR_20' ) start [2025-02-23 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537137', 'tblTempVendorCDR_20' ) end [2025-02-23 03:55:17] Production.INFO: ProcessCDR(1,14537137,1,1,2) [2025-02-23 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537137', 'tblTempUsageDetail_20' ) start [2025-02-23 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537137', 'tblTempUsageDetail_20' ) end [2025-02-23 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:55:21] Production.INFO: ==8278== Releasing lock... [2025-02-23 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:55:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:56:06 [end_date_ymd] => 2025-02-23 03:56:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:56:06' and `end` < '2025-02-23 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-02-23 03:56:17] Production.INFO: count ==376 [2025-02-23 03:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:56:06 - End Time 2025-02-23 03:56:06 [2025-02-23 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537142', 'tblTempUsageDetail_20' ) start [2025-02-23 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537142', 'tblTempUsageDetail_20' ) end [2025-02-23 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537142', 'tblTempVendorCDR_20' ) start [2025-02-23 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537142', 'tblTempVendorCDR_20' ) end [2025-02-23 03:56:17] Production.INFO: ProcessCDR(1,14537142,1,1,2) [2025-02-23 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537142', 'tblTempUsageDetail_20' ) start [2025-02-23 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537142', 'tblTempUsageDetail_20' ) end [2025-02-23 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:56:21] Production.INFO: ==8387== Releasing lock... [2025-02-23 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:56:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:57:05 [end_date_ymd] => 2025-02-23 03:57:05 [RateCDR] => 1 ) [2025-02-23 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:57:05' and `end` < '2025-02-23 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:57:17] Production.INFO: count ==372 [2025-02-23 03:57:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:57:05 - End Time 2025-02-23 03:57:05 [2025-02-23 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537147', 'tblTempUsageDetail_20' ) start [2025-02-23 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537147', 'tblTempUsageDetail_20' ) end [2025-02-23 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537147', 'tblTempVendorCDR_20' ) start [2025-02-23 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537147', 'tblTempVendorCDR_20' ) end [2025-02-23 03:57:17] Production.INFO: ProcessCDR(1,14537147,1,1,2) [2025-02-23 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537147', 'tblTempUsageDetail_20' ) start [2025-02-23 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537147', 'tblTempUsageDetail_20' ) end [2025-02-23 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:57:20] Production.INFO: ==8460== Releasing lock... [2025-02-23 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:57:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:58:05 [end_date_ymd] => 2025-02-23 03:58:05 [RateCDR] => 1 ) [2025-02-23 03:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 00:58:05' and `end` < '2025-02-23 03:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 03:58:17] Production.INFO: count ==372 [2025-02-23 03:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 00:58:05 - End Time 2025-02-23 03:58:05 [2025-02-23 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537152', 'tblTempUsageDetail_20' ) start [2025-02-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537152', 'tblTempUsageDetail_20' ) end [2025-02-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537152', 'tblTempVendorCDR_20' ) start [2025-02-23 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537152', 'tblTempVendorCDR_20' ) end [2025-02-23 03:58:17] Production.INFO: ProcessCDR(1,14537152,1,1,2) [2025-02-23 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537152', 'tblTempUsageDetail_20' ) start [2025-02-23 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537152', 'tblTempUsageDetail_20' ) end [2025-02-23 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:58:21] Production.INFO: ==8531== Releasing lock... [2025-02-23 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 00:59:06 [end_date_ymd] => 2025-02-23 03:59:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 00:59:06' and `end` < '2025-02-23 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-02-23 03:59:18] Production.INFO: count ==373 [2025-02-23 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 00:59:06 - End Time 2025-02-23 03:59:06 [2025-02-23 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537157', 'tblTempUsageDetail_20' ) start [2025-02-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537157', 'tblTempUsageDetail_20' ) end [2025-02-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537157', 'tblTempVendorCDR_20' ) start [2025-02-23 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537157', 'tblTempVendorCDR_20' ) end [2025-02-23 03:59:18] Production.INFO: ProcessCDR(1,14537157,1,1,2) [2025-02-23 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537157', 'tblTempUsageDetail_20' ) start [2025-02-23 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537157', 'tblTempUsageDetail_20' ) end [2025-02-23 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 03:59:21] Production.INFO: ==8603== Releasing lock... [2025-02-23 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 03:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:00:07 [end_date_ymd] => 2025-02-23 04:00:07 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:00:07' and `end` < '2025-02-23 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-02-23 04:00:19] Production.INFO: count ==370 [2025-02-23 04:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 01:00:07 - End Time 2025-02-23 04:00:07 [2025-02-23 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537164', 'tblTempUsageDetail_20' ) start [2025-02-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537164', 'tblTempUsageDetail_20' ) end [2025-02-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537164', 'tblTempVendorCDR_20' ) start [2025-02-23 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537164', 'tblTempVendorCDR_20' ) end [2025-02-23 04:00:19] Production.INFO: ProcessCDR(1,14537164,1,1,2) [2025-02-23 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537164', 'tblTempUsageDetail_20' ) start [2025-02-23 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537164', 'tblTempUsageDetail_20' ) end [2025-02-23 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:00:23] Production.INFO: ==8682== Releasing lock... [2025-02-23 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:00:23] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:01:05 [end_date_ymd] => 2025-02-23 04:01:05 [RateCDR] => 1 ) [2025-02-23 04:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:01:05' and `end` < '2025-02-23 04:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:01:17] Production.INFO: count ==359 [2025-02-23 04:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:01:05 - End Time 2025-02-23 04:01:05 [2025-02-23 04:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537169', 'tblTempUsageDetail_20' ) start [2025-02-23 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537169', 'tblTempUsageDetail_20' ) end [2025-02-23 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537169', 'tblTempVendorCDR_20' ) start [2025-02-23 04:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537169', 'tblTempVendorCDR_20' ) end [2025-02-23 04:01:17] Production.INFO: ProcessCDR(1,14537169,1,1,2) [2025-02-23 04:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537169', 'tblTempUsageDetail_20' ) start [2025-02-23 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537169', 'tblTempUsageDetail_20' ) end [2025-02-23 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:01:21] Production.INFO: ==8769== Releasing lock... [2025-02-23 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:01:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:02:05 [end_date_ymd] => 2025-02-23 04:02:05 [RateCDR] => 1 ) [2025-02-23 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:02:05' and `end` < '2025-02-23 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:02:17] Production.INFO: count ==359 [2025-02-23 04:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:02:05 - End Time 2025-02-23 04:02:05 [2025-02-23 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537174', 'tblTempUsageDetail_20' ) start [2025-02-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537174', 'tblTempUsageDetail_20' ) end [2025-02-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537174', 'tblTempVendorCDR_20' ) start [2025-02-23 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537174', 'tblTempVendorCDR_20' ) end [2025-02-23 04:02:17] Production.INFO: ProcessCDR(1,14537174,1,1,2) [2025-02-23 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537174', 'tblTempUsageDetail_20' ) start [2025-02-23 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537174', 'tblTempUsageDetail_20' ) end [2025-02-23 04:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:02:20] Production.INFO: ==8841== Releasing lock... [2025-02-23 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:02:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:03:05 [end_date_ymd] => 2025-02-23 04:03:05 [RateCDR] => 1 ) [2025-02-23 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:03:05' and `end` < '2025-02-23 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:03:17] Production.INFO: count ==365 [2025-02-23 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:03:05 - End Time 2025-02-23 04:03:05 [2025-02-23 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537179', 'tblTempUsageDetail_20' ) start [2025-02-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537179', 'tblTempUsageDetail_20' ) end [2025-02-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537179', 'tblTempVendorCDR_20' ) start [2025-02-23 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537179', 'tblTempVendorCDR_20' ) end [2025-02-23 04:03:17] Production.INFO: ProcessCDR(1,14537179,1,1,2) [2025-02-23 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537179', 'tblTempUsageDetail_20' ) start [2025-02-23 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537179', 'tblTempUsageDetail_20' ) end [2025-02-23 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:03:20] Production.INFO: ==8912== Releasing lock... [2025-02-23 04:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:03:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:04:06 [end_date_ymd] => 2025-02-23 04:04:06 [RateCDR] => 1 ) [2025-02-23 04:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:04:06' and `end` < '2025-02-23 04:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:04:18] Production.INFO: count ==370 [2025-02-23 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:04:06 - End Time 2025-02-23 04:04:06 [2025-02-23 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537184', 'tblTempUsageDetail_20' ) start [2025-02-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537184', 'tblTempUsageDetail_20' ) end [2025-02-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537184', 'tblTempVendorCDR_20' ) start [2025-02-23 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537184', 'tblTempVendorCDR_20' ) end [2025-02-23 04:04:18] Production.INFO: ProcessCDR(1,14537184,1,1,2) [2025-02-23 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537184', 'tblTempUsageDetail_20' ) start [2025-02-23 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537184', 'tblTempUsageDetail_20' ) end [2025-02-23 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:04:21] Production.INFO: ==8984== Releasing lock... [2025-02-23 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:04:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:05:05 [end_date_ymd] => 2025-02-23 04:05:05 [RateCDR] => 1 ) [2025-02-23 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:05:05' and `end` < '2025-02-23 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:05:16] Production.INFO: count ==366 [2025-02-23 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:05:05 - End Time 2025-02-23 04:05:05 [2025-02-23 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537189', 'tblTempUsageDetail_20' ) start [2025-02-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537189', 'tblTempUsageDetail_20' ) end [2025-02-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537189', 'tblTempVendorCDR_20' ) start [2025-02-23 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537189', 'tblTempVendorCDR_20' ) end [2025-02-23 04:05:17] Production.INFO: ProcessCDR(1,14537189,1,1,2) [2025-02-23 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537189', 'tblTempUsageDetail_20' ) start [2025-02-23 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537189', 'tblTempUsageDetail_20' ) end [2025-02-23 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:05:20] Production.INFO: ==9055== Releasing lock... [2025-02-23 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:05:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:06:05 [end_date_ymd] => 2025-02-23 04:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:06:05' and `end` < '2025-02-23 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-02-23 04:06:17] Production.INFO: count ==368 [2025-02-23 04:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:06:05 - End Time 2025-02-23 04:06:05 [2025-02-23 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537194', 'tblTempUsageDetail_20' ) start [2025-02-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537194', 'tblTempUsageDetail_20' ) end [2025-02-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537194', 'tblTempVendorCDR_20' ) start [2025-02-23 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537194', 'tblTempVendorCDR_20' ) end [2025-02-23 04:06:17] Production.INFO: ProcessCDR(1,14537194,1,1,2) [2025-02-23 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537194', 'tblTempUsageDetail_20' ) start [2025-02-23 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537194', 'tblTempUsageDetail_20' ) end [2025-02-23 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:06:20] Production.INFO: ==9126== Releasing lock... [2025-02-23 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:06:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:07:05 [end_date_ymd] => 2025-02-23 04:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:07:05' and `end` < '2025-02-23 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-02-23 04:07:17] Production.INFO: count ==364 [2025-02-23 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:07:05 - End Time 2025-02-23 04:07:05 [2025-02-23 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537199', 'tblTempUsageDetail_20' ) start [2025-02-23 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537199', 'tblTempUsageDetail_20' ) end [2025-02-23 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537199', 'tblTempVendorCDR_20' ) start [2025-02-23 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537199', 'tblTempVendorCDR_20' ) end [2025-02-23 04:07:17] Production.INFO: ProcessCDR(1,14537199,1,1,2) [2025-02-23 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537199', 'tblTempUsageDetail_20' ) start [2025-02-23 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537199', 'tblTempUsageDetail_20' ) end [2025-02-23 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:07:20] Production.INFO: ==9196== Releasing lock... [2025-02-23 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:07:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:08:06 [end_date_ymd] => 2025-02-23 04:08:06 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:08:06' and `end` < '2025-02-23 04: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-02-23 04:08:17] Production.INFO: count ==362 [2025-02-23 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:08:06 - End Time 2025-02-23 04:08:06 [2025-02-23 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537204', 'tblTempUsageDetail_20' ) start [2025-02-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537204', 'tblTempUsageDetail_20' ) end [2025-02-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537204', 'tblTempVendorCDR_20' ) start [2025-02-23 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537204', 'tblTempVendorCDR_20' ) end [2025-02-23 04:08:17] Production.INFO: ProcessCDR(1,14537204,1,1,2) [2025-02-23 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537204', 'tblTempUsageDetail_20' ) start [2025-02-23 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537204', 'tblTempUsageDetail_20' ) end [2025-02-23 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:08:21] Production.INFO: ==9267== Releasing lock... [2025-02-23 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:08:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:09:04 [end_date_ymd] => 2025-02-23 04:09:04 [RateCDR] => 1 ) [2025-02-23 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:09:04' and `end` < '2025-02-23 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:09:16] Production.INFO: count ==356 [2025-02-23 04:09:16] Production.ERROR: pbx CDR StartTime 2025-02-23 01:09:04 - End Time 2025-02-23 04:09:04 [2025-02-23 04:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537209', 'tblTempUsageDetail_20' ) start [2025-02-23 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537209', 'tblTempUsageDetail_20' ) end [2025-02-23 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537209', 'tblTempVendorCDR_20' ) start [2025-02-23 04:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537209', 'tblTempVendorCDR_20' ) end [2025-02-23 04:09:16] Production.INFO: ProcessCDR(1,14537209,1,1,2) [2025-02-23 04:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537209', 'tblTempUsageDetail_20' ) start [2025-02-23 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537209', 'tblTempUsageDetail_20' ) end [2025-02-23 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:09:21] Production.INFO: ==9337== Releasing lock... [2025-02-23 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:10:07 [end_date_ymd] => 2025-02-23 04:10:07 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:10:07' and `end` < '2025-02-23 04: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-02-23 04:10:19] Production.INFO: count ==355 [2025-02-23 04:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 01:10:07 - End Time 2025-02-23 04:10:07 [2025-02-23 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537215', 'tblTempUsageDetail_20' ) start [2025-02-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537215', 'tblTempUsageDetail_20' ) end [2025-02-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537215', 'tblTempVendorCDR_20' ) start [2025-02-23 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537215', 'tblTempVendorCDR_20' ) end [2025-02-23 04:10:19] Production.INFO: ProcessCDR(1,14537215,1,1,2) [2025-02-23 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537215', 'tblTempUsageDetail_20' ) start [2025-02-23 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537215', 'tblTempUsageDetail_20' ) end [2025-02-23 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:10:22] Production.INFO: ==9409== Releasing lock... [2025-02-23 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:11:05 [end_date_ymd] => 2025-02-23 04:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:11:05' and `end` < '2025-02-23 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-02-23 04:11:17] Production.INFO: count ==355 [2025-02-23 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:11:05 - End Time 2025-02-23 04:11:05 [2025-02-23 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537220', 'tblTempUsageDetail_20' ) start [2025-02-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537220', 'tblTempUsageDetail_20' ) end [2025-02-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537220', 'tblTempVendorCDR_20' ) start [2025-02-23 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537220', 'tblTempVendorCDR_20' ) end [2025-02-23 04:11:17] Production.INFO: ProcessCDR(1,14537220,1,1,2) [2025-02-23 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537220', 'tblTempUsageDetail_20' ) start [2025-02-23 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537220', 'tblTempUsageDetail_20' ) end [2025-02-23 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:11:20] Production.INFO: ==9485== Releasing lock... [2025-02-23 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:12:06 [end_date_ymd] => 2025-02-23 04:12:06 [RateCDR] => 1 ) [2025-02-23 04:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:12:06' and `end` < '2025-02-23 04:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:12:17] Production.INFO: count ==355 [2025-02-23 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:12:06 - End Time 2025-02-23 04:12:06 [2025-02-23 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537225', 'tblTempUsageDetail_20' ) start [2025-02-23 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537225', 'tblTempUsageDetail_20' ) end [2025-02-23 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537225', 'tblTempVendorCDR_20' ) start [2025-02-23 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537225', 'tblTempVendorCDR_20' ) end [2025-02-23 04:12:17] Production.INFO: ProcessCDR(1,14537225,1,1,2) [2025-02-23 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537225', 'tblTempUsageDetail_20' ) start [2025-02-23 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537225', 'tblTempUsageDetail_20' ) end [2025-02-23 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:12:21] Production.INFO: ==9594== Releasing lock... [2025-02-23 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:13:05 [end_date_ymd] => 2025-02-23 04:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:13:05' and `end` < '2025-02-23 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-02-23 04:13:17] Production.INFO: count ==355 [2025-02-23 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:13:05 - End Time 2025-02-23 04:13:05 [2025-02-23 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537230', 'tblTempUsageDetail_20' ) start [2025-02-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537230', 'tblTempUsageDetail_20' ) end [2025-02-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537230', 'tblTempVendorCDR_20' ) start [2025-02-23 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537230', 'tblTempVendorCDR_20' ) end [2025-02-23 04:13:17] Production.INFO: ProcessCDR(1,14537230,1,1,2) [2025-02-23 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537230', 'tblTempUsageDetail_20' ) start [2025-02-23 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537230', 'tblTempUsageDetail_20' ) end [2025-02-23 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:13:20] Production.INFO: ==9669== Releasing lock... [2025-02-23 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:13:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:14:05 [end_date_ymd] => 2025-02-23 04:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:14:05' and `end` < '2025-02-23 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-02-23 04:14:17] Production.INFO: count ==355 [2025-02-23 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:14:05 - End Time 2025-02-23 04:14:05 [2025-02-23 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537235', 'tblTempUsageDetail_20' ) start [2025-02-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537235', 'tblTempUsageDetail_20' ) end [2025-02-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537235', 'tblTempVendorCDR_20' ) start [2025-02-23 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537235', 'tblTempVendorCDR_20' ) end [2025-02-23 04:14:17] Production.INFO: ProcessCDR(1,14537235,1,1,2) [2025-02-23 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537235', 'tblTempUsageDetail_20' ) start [2025-02-23 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537235', 'tblTempUsageDetail_20' ) end [2025-02-23 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:14:20] Production.INFO: ==9744== Releasing lock... [2025-02-23 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:14:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:15:05 [end_date_ymd] => 2025-02-23 04:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:15:05' and `end` < '2025-02-23 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-02-23 04:15:17] Production.INFO: count ==355 [2025-02-23 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:15:05 - End Time 2025-02-23 04:15:05 [2025-02-23 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537240', 'tblTempUsageDetail_20' ) start [2025-02-23 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537240', 'tblTempUsageDetail_20' ) end [2025-02-23 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537240', 'tblTempVendorCDR_20' ) start [2025-02-23 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537240', 'tblTempVendorCDR_20' ) end [2025-02-23 04:15:17] Production.INFO: ProcessCDR(1,14537240,1,1,2) [2025-02-23 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537240', 'tblTempUsageDetail_20' ) start [2025-02-23 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537240', 'tblTempUsageDetail_20' ) end [2025-02-23 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:15:20] Production.INFO: ==9817== Releasing lock... [2025-02-23 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:15:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:16:05 [end_date_ymd] => 2025-02-23 04:16:05 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:16:05' and `end` < '2025-02-23 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-02-23 04:16:17] Production.INFO: count ==352 [2025-02-23 04:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:16:05 - End Time 2025-02-23 04:16:05 [2025-02-23 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537245', 'tblTempUsageDetail_20' ) start [2025-02-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537245', 'tblTempUsageDetail_20' ) end [2025-02-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537245', 'tblTempVendorCDR_20' ) start [2025-02-23 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537245', 'tblTempVendorCDR_20' ) end [2025-02-23 04:16:17] Production.INFO: ProcessCDR(1,14537245,1,1,2) [2025-02-23 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537245', 'tblTempUsageDetail_20' ) start [2025-02-23 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537245', 'tblTempUsageDetail_20' ) end [2025-02-23 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:16:21] Production.INFO: ==9889== Releasing lock... [2025-02-23 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:17:06 [end_date_ymd] => 2025-02-23 04:17:06 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:17:06' and `end` < '2025-02-23 04: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-02-23 04:17:18] Production.INFO: count ==351 [2025-02-23 04:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:17:06 - End Time 2025-02-23 04:17:06 [2025-02-23 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537250', 'tblTempUsageDetail_20' ) start [2025-02-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537250', 'tblTempUsageDetail_20' ) end [2025-02-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537250', 'tblTempVendorCDR_20' ) start [2025-02-23 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537250', 'tblTempVendorCDR_20' ) end [2025-02-23 04:17:18] Production.INFO: ProcessCDR(1,14537250,1,1,2) [2025-02-23 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537250', 'tblTempUsageDetail_20' ) start [2025-02-23 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537250', 'tblTempUsageDetail_20' ) end [2025-02-23 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:17:21] Production.INFO: ==9960== Releasing lock... [2025-02-23 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:18:05 [end_date_ymd] => 2025-02-23 04:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:18:05' and `end` < '2025-02-23 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-02-23 04:18:17] Production.INFO: count ==351 [2025-02-23 04:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:18:05 - End Time 2025-02-23 04:18:05 [2025-02-23 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537255', 'tblTempUsageDetail_20' ) start [2025-02-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537255', 'tblTempUsageDetail_20' ) end [2025-02-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537255', 'tblTempVendorCDR_20' ) start [2025-02-23 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537255', 'tblTempVendorCDR_20' ) end [2025-02-23 04:18:17] Production.INFO: ProcessCDR(1,14537255,1,1,2) [2025-02-23 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537255', 'tblTempUsageDetail_20' ) start [2025-02-23 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537255', 'tblTempUsageDetail_20' ) end [2025-02-23 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:18:21] Production.INFO: ==10041== Releasing lock... [2025-02-23 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:19:05 [end_date_ymd] => 2025-02-23 04:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:19:05' and `end` < '2025-02-23 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-02-23 04:19:17] Production.INFO: count ==351 [2025-02-23 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:19:05 - End Time 2025-02-23 04:19:05 [2025-02-23 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537260', 'tblTempUsageDetail_20' ) start [2025-02-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537260', 'tblTempUsageDetail_20' ) end [2025-02-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537260', 'tblTempVendorCDR_20' ) start [2025-02-23 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537260', 'tblTempVendorCDR_20' ) end [2025-02-23 04:19:17] Production.INFO: ProcessCDR(1,14537260,1,1,2) [2025-02-23 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537260', 'tblTempUsageDetail_20' ) start [2025-02-23 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537260', 'tblTempUsageDetail_20' ) end [2025-02-23 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:19:20] Production.INFO: ==10113== Releasing lock... [2025-02-23 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:19:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:20:06 [end_date_ymd] => 2025-02-23 04:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:20:06' and `end` < '2025-02-23 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-02-23 04:20:18] Production.INFO: count ==331 [2025-02-23 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:20:06 - End Time 2025-02-23 04:20:06 [2025-02-23 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537266', 'tblTempUsageDetail_20' ) start [2025-02-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537266', 'tblTempUsageDetail_20' ) end [2025-02-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537266', 'tblTempVendorCDR_20' ) start [2025-02-23 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537266', 'tblTempVendorCDR_20' ) end [2025-02-23 04:20:18] Production.INFO: ProcessCDR(1,14537266,1,1,2) [2025-02-23 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537266', 'tblTempUsageDetail_20' ) start [2025-02-23 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537266', 'tblTempUsageDetail_20' ) end [2025-02-23 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:20:21] Production.INFO: ==10184== Releasing lock... [2025-02-23 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:20:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:21:05 [end_date_ymd] => 2025-02-23 04:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:21:05' and `end` < '2025-02-23 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-02-23 04:21:17] Production.INFO: count ==313 [2025-02-23 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:21:05 - End Time 2025-02-23 04:21:05 [2025-02-23 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537271', 'tblTempUsageDetail_20' ) start [2025-02-23 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537271', 'tblTempUsageDetail_20' ) end [2025-02-23 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537271', 'tblTempVendorCDR_20' ) start [2025-02-23 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537271', 'tblTempVendorCDR_20' ) end [2025-02-23 04:21:17] Production.INFO: ProcessCDR(1,14537271,1,1,2) [2025-02-23 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537271', 'tblTempUsageDetail_20' ) start [2025-02-23 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537271', 'tblTempUsageDetail_20' ) end [2025-02-23 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:21:21] Production.INFO: ==10259== Releasing lock... [2025-02-23 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:22:05 [end_date_ymd] => 2025-02-23 04:22:05 [RateCDR] => 1 ) [2025-02-23 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:22:05' and `end` < '2025-02-23 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:22:17] Production.INFO: count ==313 [2025-02-23 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:22:05 - End Time 2025-02-23 04:22:05 [2025-02-23 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537276', 'tblTempUsageDetail_20' ) start [2025-02-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537276', 'tblTempUsageDetail_20' ) end [2025-02-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537276', 'tblTempVendorCDR_20' ) start [2025-02-23 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537276', 'tblTempVendorCDR_20' ) end [2025-02-23 04:22:17] Production.INFO: ProcessCDR(1,14537276,1,1,2) [2025-02-23 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537276', 'tblTempUsageDetail_20' ) start [2025-02-23 04:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537276', 'tblTempUsageDetail_20' ) end [2025-02-23 04:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:22:20] Production.INFO: ==10328== Releasing lock... [2025-02-23 04:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:22:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:23:05 [end_date_ymd] => 2025-02-23 04:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:23:05' and `end` < '2025-02-23 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-02-23 04:23:17] Production.INFO: count ==313 [2025-02-23 04:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:23:05 - End Time 2025-02-23 04:23:05 [2025-02-23 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537281', 'tblTempUsageDetail_20' ) start [2025-02-23 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537281', 'tblTempUsageDetail_20' ) end [2025-02-23 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537281', 'tblTempVendorCDR_20' ) start [2025-02-23 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537281', 'tblTempVendorCDR_20' ) end [2025-02-23 04:23:17] Production.INFO: ProcessCDR(1,14537281,1,1,2) [2025-02-23 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537281', 'tblTempUsageDetail_20' ) start [2025-02-23 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537281', 'tblTempUsageDetail_20' ) end [2025-02-23 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:23:20] Production.INFO: ==10401== Releasing lock... [2025-02-23 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:24:05 [end_date_ymd] => 2025-02-23 04:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:24:05' and `end` < '2025-02-23 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-02-23 04:24:17] Production.INFO: count ==306 [2025-02-23 04:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:24:05 - End Time 2025-02-23 04:24:05 [2025-02-23 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537286', 'tblTempUsageDetail_20' ) start [2025-02-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537286', 'tblTempUsageDetail_20' ) end [2025-02-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537286', 'tblTempVendorCDR_20' ) start [2025-02-23 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537286', 'tblTempVendorCDR_20' ) end [2025-02-23 04:24:17] Production.INFO: ProcessCDR(1,14537286,1,1,2) [2025-02-23 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537286', 'tblTempUsageDetail_20' ) start [2025-02-23 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537286', 'tblTempUsageDetail_20' ) end [2025-02-23 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:24:20] Production.INFO: ==10472== Releasing lock... [2025-02-23 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:24:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:25:05 [end_date_ymd] => 2025-02-23 04:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:25:05' and `end` < '2025-02-23 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-02-23 04:25:17] Production.INFO: count ==306 [2025-02-23 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:25:05 - End Time 2025-02-23 04:25:05 [2025-02-23 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537291', 'tblTempUsageDetail_20' ) start [2025-02-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537291', 'tblTempUsageDetail_20' ) end [2025-02-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537291', 'tblTempVendorCDR_20' ) start [2025-02-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537291', 'tblTempVendorCDR_20' ) end [2025-02-23 04:25:17] Production.INFO: ProcessCDR(1,14537291,1,1,2) [2025-02-23 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537291', 'tblTempUsageDetail_20' ) start [2025-02-23 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537291', 'tblTempUsageDetail_20' ) end [2025-02-23 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:25:20] Production.INFO: ==10545== Releasing lock... [2025-02-23 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:26:05 [end_date_ymd] => 2025-02-23 04:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:26:05' and `end` < '2025-02-23 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-02-23 04:26:16] Production.INFO: count ==301 [2025-02-23 04:26:16] Production.ERROR: pbx CDR StartTime 2025-02-23 01:26:05 - End Time 2025-02-23 04:26:05 [2025-02-23 04:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537296', 'tblTempUsageDetail_20' ) start [2025-02-23 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537296', 'tblTempUsageDetail_20' ) end [2025-02-23 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537296', 'tblTempVendorCDR_20' ) start [2025-02-23 04:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537296', 'tblTempVendorCDR_20' ) end [2025-02-23 04:26:16] Production.INFO: ProcessCDR(1,14537296,1,1,2) [2025-02-23 04:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:26:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:26:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:26:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537296', 'tblTempUsageDetail_20' ) start [2025-02-23 04:26:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537296', 'tblTempUsageDetail_20' ) end [2025-02-23 04:26:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:26:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:26:19] Production.INFO: ==10617== Releasing lock... [2025-02-23 04:26:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:26:19] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:27:05 [end_date_ymd] => 2025-02-23 04:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:27:05' and `end` < '2025-02-23 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-02-23 04:27:17] Production.INFO: count ==300 [2025-02-23 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:27:05 - End Time 2025-02-23 04:27:05 [2025-02-23 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537301', 'tblTempUsageDetail_20' ) start [2025-02-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537301', 'tblTempUsageDetail_20' ) end [2025-02-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537301', 'tblTempVendorCDR_20' ) start [2025-02-23 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537301', 'tblTempVendorCDR_20' ) end [2025-02-23 04:27:17] Production.INFO: ProcessCDR(1,14537301,1,1,2) [2025-02-23 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537301', 'tblTempUsageDetail_20' ) start [2025-02-23 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537301', 'tblTempUsageDetail_20' ) end [2025-02-23 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:27:20] Production.INFO: ==10730== Releasing lock... [2025-02-23 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:28:06 [end_date_ymd] => 2025-02-23 04:28:06 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:28:06' and `end` < '2025-02-23 04: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-02-23 04:28:17] Production.INFO: count ==300 [2025-02-23 04:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:28:06 - End Time 2025-02-23 04:28:06 [2025-02-23 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537306', 'tblTempUsageDetail_20' ) start [2025-02-23 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537306', 'tblTempUsageDetail_20' ) end [2025-02-23 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537306', 'tblTempVendorCDR_20' ) start [2025-02-23 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537306', 'tblTempVendorCDR_20' ) end [2025-02-23 04:28:17] Production.INFO: ProcessCDR(1,14537306,1,1,2) [2025-02-23 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537306', 'tblTempUsageDetail_20' ) start [2025-02-23 04:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537306', 'tblTempUsageDetail_20' ) end [2025-02-23 04:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:28:21] Production.INFO: ==10802== Releasing lock... [2025-02-23 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:29:05 [end_date_ymd] => 2025-02-23 04:29:05 [RateCDR] => 1 ) [2025-02-23 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:29:05' and `end` < '2025-02-23 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-02-23 04:29:17] Production.INFO: count ==299 [2025-02-23 04:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:29:05 - End Time 2025-02-23 04:29:05 [2025-02-23 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537311', 'tblTempUsageDetail_20' ) start [2025-02-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537311', 'tblTempUsageDetail_20' ) end [2025-02-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537311', 'tblTempVendorCDR_20' ) start [2025-02-23 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537311', 'tblTempVendorCDR_20' ) end [2025-02-23 04:29:17] Production.INFO: ProcessCDR(1,14537311,1,1,2) [2025-02-23 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537311', 'tblTempUsageDetail_20' ) start [2025-02-23 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537311', 'tblTempUsageDetail_20' ) end [2025-02-23 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:29:20] Production.INFO: ==10877== Releasing lock... [2025-02-23 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:29:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:30:06 [end_date_ymd] => 2025-02-23 04:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:30:06' and `end` < '2025-02-23 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-02-23 04:30:18] Production.INFO: count ==288 [2025-02-23 04:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:30:06 - End Time 2025-02-23 04:30:06 [2025-02-23 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537317', 'tblTempUsageDetail_20' ) start [2025-02-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537317', 'tblTempUsageDetail_20' ) end [2025-02-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537317', 'tblTempVendorCDR_20' ) start [2025-02-23 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537317', 'tblTempVendorCDR_20' ) end [2025-02-23 04:30:18] Production.INFO: ProcessCDR(1,14537317,1,1,2) [2025-02-23 04:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537317', 'tblTempUsageDetail_20' ) start [2025-02-23 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537317', 'tblTempUsageDetail_20' ) end [2025-02-23 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:30:21] Production.INFO: ==10951== Releasing lock... [2025-02-23 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:31:06 [end_date_ymd] => 2025-02-23 04:31:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:31:06' and `end` < '2025-02-23 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-02-23 04:31:18] Production.INFO: count ==274 [2025-02-23 04:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:31:06 - End Time 2025-02-23 04:31:06 [2025-02-23 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537323', 'tblTempUsageDetail_20' ) start [2025-02-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537323', 'tblTempUsageDetail_20' ) end [2025-02-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537323', 'tblTempVendorCDR_20' ) start [2025-02-23 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537323', 'tblTempVendorCDR_20' ) end [2025-02-23 04:31:18] Production.INFO: ProcessCDR(1,14537323,1,1,2) [2025-02-23 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537323', 'tblTempUsageDetail_20' ) start [2025-02-23 04:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537323', 'tblTempUsageDetail_20' ) end [2025-02-23 04:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:31:23] Production.INFO: ==11033== Releasing lock... [2025-02-23 04:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:31:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:32:05 [end_date_ymd] => 2025-02-23 04:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:32:05' and `end` < '2025-02-23 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-02-23 04:32:17] Production.INFO: count ==274 [2025-02-23 04:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:32:05 - End Time 2025-02-23 04:32:05 [2025-02-23 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537328', 'tblTempUsageDetail_20' ) start [2025-02-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537328', 'tblTempUsageDetail_20' ) end [2025-02-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537328', 'tblTempVendorCDR_20' ) start [2025-02-23 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537328', 'tblTempVendorCDR_20' ) end [2025-02-23 04:32:17] Production.INFO: ProcessCDR(1,14537328,1,1,2) [2025-02-23 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537328', 'tblTempUsageDetail_20' ) start [2025-02-23 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537328', 'tblTempUsageDetail_20' ) end [2025-02-23 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:32:20] Production.INFO: ==11249== Releasing lock... [2025-02-23 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:33:05 [end_date_ymd] => 2025-02-23 04:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:33:05' and `end` < '2025-02-23 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-02-23 04:33:17] Production.INFO: count ==274 [2025-02-23 04:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:33:05 - End Time 2025-02-23 04:33:05 [2025-02-23 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537333', 'tblTempUsageDetail_20' ) start [2025-02-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537333', 'tblTempUsageDetail_20' ) end [2025-02-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537333', 'tblTempVendorCDR_20' ) start [2025-02-23 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537333', 'tblTempVendorCDR_20' ) end [2025-02-23 04:33:17] Production.INFO: ProcessCDR(1,14537333,1,1,2) [2025-02-23 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537333', 'tblTempUsageDetail_20' ) start [2025-02-23 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537333', 'tblTempUsageDetail_20' ) end [2025-02-23 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:33:20] Production.INFO: ==11361== Releasing lock... [2025-02-23 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:33:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:34:05 [end_date_ymd] => 2025-02-23 04:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:34:05' and `end` < '2025-02-23 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-02-23 04:34:17] Production.INFO: count ==274 [2025-02-23 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:34:05 - End Time 2025-02-23 04:34:05 [2025-02-23 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537338', 'tblTempUsageDetail_20' ) start [2025-02-23 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537338', 'tblTempUsageDetail_20' ) end [2025-02-23 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537338', 'tblTempVendorCDR_20' ) start [2025-02-23 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537338', 'tblTempVendorCDR_20' ) end [2025-02-23 04:34:17] Production.INFO: ProcessCDR(1,14537338,1,1,2) [2025-02-23 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537338', 'tblTempUsageDetail_20' ) start [2025-02-23 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537338', 'tblTempUsageDetail_20' ) end [2025-02-23 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:34:20] Production.INFO: ==11466== Releasing lock... [2025-02-23 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:34:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:35:05 [end_date_ymd] => 2025-02-23 04:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:35:05' and `end` < '2025-02-23 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-02-23 04:35:17] Production.INFO: count ==274 [2025-02-23 04:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:35:05 - End Time 2025-02-23 04:35:05 [2025-02-23 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537343', 'tblTempUsageDetail_20' ) start [2025-02-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537343', 'tblTempUsageDetail_20' ) end [2025-02-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537343', 'tblTempVendorCDR_20' ) start [2025-02-23 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537343', 'tblTempVendorCDR_20' ) end [2025-02-23 04:35:17] Production.INFO: ProcessCDR(1,14537343,1,1,2) [2025-02-23 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537343', 'tblTempUsageDetail_20' ) start [2025-02-23 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537343', 'tblTempUsageDetail_20' ) end [2025-02-23 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:35:20] Production.INFO: ==11572== Releasing lock... [2025-02-23 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:36:05 [end_date_ymd] => 2025-02-23 04:36:05 [RateCDR] => 1 ) [2025-02-23 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:36:05' and `end` < '2025-02-23 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:36:17] Production.INFO: count ==274 [2025-02-23 04:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:36:05 - End Time 2025-02-23 04:36:05 [2025-02-23 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537348', 'tblTempUsageDetail_20' ) start [2025-02-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537348', 'tblTempUsageDetail_20' ) end [2025-02-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537348', 'tblTempVendorCDR_20' ) start [2025-02-23 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537348', 'tblTempVendorCDR_20' ) end [2025-02-23 04:36:17] Production.INFO: ProcessCDR(1,14537348,1,1,2) [2025-02-23 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537348', 'tblTempUsageDetail_20' ) start [2025-02-23 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537348', 'tblTempUsageDetail_20' ) end [2025-02-23 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:36:20] Production.INFO: ==11674== Releasing lock... [2025-02-23 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:36:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:37:05 [end_date_ymd] => 2025-02-23 04:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:37:05' and `end` < '2025-02-23 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-02-23 04:37:17] Production.INFO: count ==271 [2025-02-23 04:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:37:05 - End Time 2025-02-23 04:37:05 [2025-02-23 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537353', 'tblTempUsageDetail_20' ) start [2025-02-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537353', 'tblTempUsageDetail_20' ) end [2025-02-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537353', 'tblTempVendorCDR_20' ) start [2025-02-23 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537353', 'tblTempVendorCDR_20' ) end [2025-02-23 04:37:17] Production.INFO: ProcessCDR(1,14537353,1,1,2) [2025-02-23 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537353', 'tblTempUsageDetail_20' ) start [2025-02-23 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537353', 'tblTempUsageDetail_20' ) end [2025-02-23 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:37:20] Production.INFO: ==11782== Releasing lock... [2025-02-23 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:37:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:38:06 [end_date_ymd] => 2025-02-23 04:38:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:38:06' and `end` < '2025-02-23 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-02-23 04:38:17] Production.INFO: count ==271 [2025-02-23 04:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:38:06 - End Time 2025-02-23 04:38:06 [2025-02-23 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537358', 'tblTempUsageDetail_20' ) start [2025-02-23 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537358', 'tblTempUsageDetail_20' ) end [2025-02-23 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537358', 'tblTempVendorCDR_20' ) start [2025-02-23 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537358', 'tblTempVendorCDR_20' ) end [2025-02-23 04:38:17] Production.INFO: ProcessCDR(1,14537358,1,1,2) [2025-02-23 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537358', 'tblTempUsageDetail_20' ) start [2025-02-23 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537358', 'tblTempUsageDetail_20' ) end [2025-02-23 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:38:21] Production.INFO: ==11887== Releasing lock... [2025-02-23 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:39:05 [end_date_ymd] => 2025-02-23 04:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:39:05' and `end` < '2025-02-23 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-02-23 04:39:16] Production.INFO: count ==271 [2025-02-23 04:39:16] Production.ERROR: pbx CDR StartTime 2025-02-23 01:39:05 - End Time 2025-02-23 04:39:05 [2025-02-23 04:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537363', 'tblTempUsageDetail_20' ) start [2025-02-23 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537363', 'tblTempUsageDetail_20' ) end [2025-02-23 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537363', 'tblTempVendorCDR_20' ) start [2025-02-23 04:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537363', 'tblTempVendorCDR_20' ) end [2025-02-23 04:39:16] Production.INFO: ProcessCDR(1,14537363,1,1,2) [2025-02-23 04:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537363', 'tblTempUsageDetail_20' ) start [2025-02-23 04:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537363', 'tblTempUsageDetail_20' ) end [2025-02-23 04:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:39:20] Production.INFO: ==11993== Releasing lock... [2025-02-23 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:39:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:40:06 [end_date_ymd] => 2025-02-23 04:40:06 [RateCDR] => 1 ) [2025-02-23 04:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:40:06' and `end` < '2025-02-23 04:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:40:18] Production.INFO: count ==265 [2025-02-23 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:40:06 - End Time 2025-02-23 04:40:06 [2025-02-23 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537369', 'tblTempUsageDetail_20' ) start [2025-02-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537369', 'tblTempUsageDetail_20' ) end [2025-02-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537369', 'tblTempVendorCDR_20' ) start [2025-02-23 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537369', 'tblTempVendorCDR_20' ) end [2025-02-23 04:40:18] Production.INFO: ProcessCDR(1,14537369,1,1,2) [2025-02-23 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537369', 'tblTempUsageDetail_20' ) start [2025-02-23 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537369', 'tblTempUsageDetail_20' ) end [2025-02-23 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:40:21] Production.INFO: ==12100== Releasing lock... [2025-02-23 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:41:05 [end_date_ymd] => 2025-02-23 04:41:05 [RateCDR] => 1 ) [2025-02-23 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:41:05' and `end` < '2025-02-23 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:41:17] Production.INFO: count ==265 [2025-02-23 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:41:05 - End Time 2025-02-23 04:41:05 [2025-02-23 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537374', 'tblTempUsageDetail_20' ) start [2025-02-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537374', 'tblTempUsageDetail_20' ) end [2025-02-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537374', 'tblTempVendorCDR_20' ) start [2025-02-23 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537374', 'tblTempVendorCDR_20' ) end [2025-02-23 04:41:17] Production.INFO: ProcessCDR(1,14537374,1,1,2) [2025-02-23 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537374', 'tblTempUsageDetail_20' ) start [2025-02-23 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537374', 'tblTempUsageDetail_20' ) end [2025-02-23 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:41:20] Production.INFO: ==12205== Releasing lock... [2025-02-23 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:42:05 [end_date_ymd] => 2025-02-23 04:42:05 [RateCDR] => 1 ) [2025-02-23 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:42:05' and `end` < '2025-02-23 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:42:17] Production.INFO: count ==265 [2025-02-23 04:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:42:05 - End Time 2025-02-23 04:42:05 [2025-02-23 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537379', 'tblTempUsageDetail_20' ) start [2025-02-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537379', 'tblTempUsageDetail_20' ) end [2025-02-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537379', 'tblTempVendorCDR_20' ) start [2025-02-23 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537379', 'tblTempVendorCDR_20' ) end [2025-02-23 04:42:17] Production.INFO: ProcessCDR(1,14537379,1,1,2) [2025-02-23 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537379', 'tblTempUsageDetail_20' ) start [2025-02-23 04:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537379', 'tblTempUsageDetail_20' ) end [2025-02-23 04:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:42:20] Production.INFO: ==12274== Releasing lock... [2025-02-23 04:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:42:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:43:04 [end_date_ymd] => 2025-02-23 04:43:04 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:43:04' and `end` < '2025-02-23 04: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-02-23 04:43:16] Production.INFO: count ==269 [2025-02-23 04:43:16] Production.ERROR: pbx CDR StartTime 2025-02-23 01:43:04 - End Time 2025-02-23 04:43:04 [2025-02-23 04:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537384', 'tblTempUsageDetail_20' ) start [2025-02-23 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537384', 'tblTempUsageDetail_20' ) end [2025-02-23 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537384', 'tblTempVendorCDR_20' ) start [2025-02-23 04:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537384', 'tblTempVendorCDR_20' ) end [2025-02-23 04:43:16] Production.INFO: ProcessCDR(1,14537384,1,1,2) [2025-02-23 04:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537384', 'tblTempUsageDetail_20' ) start [2025-02-23 04:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537384', 'tblTempUsageDetail_20' ) end [2025-02-23 04:43:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:43:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:43:19] Production.INFO: ==12386== Releasing lock... [2025-02-23 04:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:43:19] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:44:05 [end_date_ymd] => 2025-02-23 04:44:05 [RateCDR] => 1 ) [2025-02-23 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:44:05' and `end` < '2025-02-23 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:44:17] Production.INFO: count ==269 [2025-02-23 04:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:44:05 - End Time 2025-02-23 04:44:05 [2025-02-23 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537389', 'tblTempUsageDetail_20' ) start [2025-02-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537389', 'tblTempUsageDetail_20' ) end [2025-02-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537389', 'tblTempVendorCDR_20' ) start [2025-02-23 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537389', 'tblTempVendorCDR_20' ) end [2025-02-23 04:44:17] Production.INFO: ProcessCDR(1,14537389,1,1,2) [2025-02-23 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537389', 'tblTempUsageDetail_20' ) start [2025-02-23 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537389', 'tblTempUsageDetail_20' ) end [2025-02-23 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:44:20] Production.INFO: ==12460== Releasing lock... [2025-02-23 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:44:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:45:04 [end_date_ymd] => 2025-02-23 04:45:04 [RateCDR] => 1 ) [2025-02-23 04:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:45:04' and `end` < '2025-02-23 04:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:45:16] Production.INFO: count ==269 [2025-02-23 04:45:16] Production.ERROR: pbx CDR StartTime 2025-02-23 01:45:04 - End Time 2025-02-23 04:45:04 [2025-02-23 04:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537394', 'tblTempUsageDetail_20' ) start [2025-02-23 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537394', 'tblTempUsageDetail_20' ) end [2025-02-23 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537394', 'tblTempVendorCDR_20' ) start [2025-02-23 04:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537394', 'tblTempVendorCDR_20' ) end [2025-02-23 04:45:16] Production.INFO: ProcessCDR(1,14537394,1,1,2) [2025-02-23 04:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537394', 'tblTempUsageDetail_20' ) start [2025-02-23 04:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537394', 'tblTempUsageDetail_20' ) end [2025-02-23 04:45:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:45:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:45:19] Production.INFO: ==12532== Releasing lock... [2025-02-23 04:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:45:19] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:46:06 [end_date_ymd] => 2025-02-23 04:46:06 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:46:06' and `end` < '2025-02-23 04: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-02-23 04:46:19] Production.INFO: count ==273 [2025-02-23 04:46:20] Production.ERROR: pbx CDR StartTime 2025-02-23 01:46:06 - End Time 2025-02-23 04:46:06 [2025-02-23 04:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537399', 'tblTempUsageDetail_20' ) start [2025-02-23 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537399', 'tblTempUsageDetail_20' ) end [2025-02-23 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537399', 'tblTempVendorCDR_20' ) start [2025-02-23 04:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537399', 'tblTempVendorCDR_20' ) end [2025-02-23 04:46:20] Production.INFO: ProcessCDR(1,14537399,1,1,2) [2025-02-23 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537399', 'tblTempUsageDetail_20' ) start [2025-02-23 04:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537399', 'tblTempUsageDetail_20' ) end [2025-02-23 04:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:46:23] Production.INFO: ==12602== Releasing lock... [2025-02-23 04:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:46:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:47:04 [end_date_ymd] => 2025-02-23 04:47:04 [RateCDR] => 1 ) [2025-02-23 04:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:47:04' and `end` < '2025-02-23 04:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:47:16] Production.INFO: count ==273 [2025-02-23 04:47:16] Production.ERROR: pbx CDR StartTime 2025-02-23 01:47:04 - End Time 2025-02-23 04:47:04 [2025-02-23 04:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537404', 'tblTempUsageDetail_20' ) start [2025-02-23 04:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537404', 'tblTempUsageDetail_20' ) end [2025-02-23 04:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537404', 'tblTempVendorCDR_20' ) start [2025-02-23 04:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537404', 'tblTempVendorCDR_20' ) end [2025-02-23 04:47:16] Production.INFO: ProcessCDR(1,14537404,1,1,2) [2025-02-23 04:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537404', 'tblTempUsageDetail_20' ) start [2025-02-23 04:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537404', 'tblTempUsageDetail_20' ) end [2025-02-23 04:47:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:47:20] Production.INFO: ==12673== Releasing lock... [2025-02-23 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:47:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:48:05 [end_date_ymd] => 2025-02-23 04:48:05 [RateCDR] => 1 ) [2025-02-23 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:48:05' and `end` < '2025-02-23 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:48:18] Production.INFO: count ==273 [2025-02-23 04:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:48:05 - End Time 2025-02-23 04:48:05 [2025-02-23 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537409', 'tblTempUsageDetail_20' ) start [2025-02-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537409', 'tblTempUsageDetail_20' ) end [2025-02-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537409', 'tblTempVendorCDR_20' ) start [2025-02-23 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537409', 'tblTempVendorCDR_20' ) end [2025-02-23 04:48:18] Production.INFO: ProcessCDR(1,14537409,1,1,2) [2025-02-23 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537409', 'tblTempUsageDetail_20' ) start [2025-02-23 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537409', 'tblTempUsageDetail_20' ) end [2025-02-23 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:48:21] Production.INFO: ==12745== Releasing lock... [2025-02-23 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:49:06 [end_date_ymd] => 2025-02-23 04:49:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:49:06' and `end` < '2025-02-23 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-02-23 04:49:18] Production.INFO: count ==273 [2025-02-23 04:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:49:06 - End Time 2025-02-23 04:49:06 [2025-02-23 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537414', 'tblTempUsageDetail_20' ) start [2025-02-23 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537414', 'tblTempUsageDetail_20' ) end [2025-02-23 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537414', 'tblTempVendorCDR_20' ) start [2025-02-23 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537414', 'tblTempVendorCDR_20' ) end [2025-02-23 04:49:18] Production.INFO: ProcessCDR(1,14537414,1,1,2) [2025-02-23 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537414', 'tblTempUsageDetail_20' ) start [2025-02-23 04:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537414', 'tblTempUsageDetail_20' ) end [2025-02-23 04:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:49:21] Production.INFO: ==12816== Releasing lock... [2025-02-23 04:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:50:05 [end_date_ymd] => 2025-02-23 04:50:05 [RateCDR] => 1 ) [2025-02-23 04: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-02-23 01:50:05' and `end` < '2025-02-23 04: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-02-23 04:50:18] Production.INFO: count ==269 [2025-02-23 04:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:50:05 - End Time 2025-02-23 04:50:05 [2025-02-23 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537420', 'tblTempUsageDetail_20' ) start [2025-02-23 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537420', 'tblTempUsageDetail_20' ) end [2025-02-23 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537420', 'tblTempVendorCDR_20' ) start [2025-02-23 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537420', 'tblTempVendorCDR_20' ) end [2025-02-23 04:50:18] Production.INFO: ProcessCDR(1,14537420,1,1,2) [2025-02-23 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537420', 'tblTempUsageDetail_20' ) start [2025-02-23 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537420', 'tblTempUsageDetail_20' ) end [2025-02-23 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:50:21] Production.INFO: ==12890== Releasing lock... [2025-02-23 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:51:05 [end_date_ymd] => 2025-02-23 04:51:05 [RateCDR] => 1 ) [2025-02-23 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:51:05' and `end` < '2025-02-23 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:51:17] Production.INFO: count ==267 [2025-02-23 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:51:05 - End Time 2025-02-23 04:51:05 [2025-02-23 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537425', 'tblTempUsageDetail_20' ) start [2025-02-23 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537425', 'tblTempUsageDetail_20' ) end [2025-02-23 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537425', 'tblTempVendorCDR_20' ) start [2025-02-23 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537425', 'tblTempVendorCDR_20' ) end [2025-02-23 04:51:18] Production.INFO: ProcessCDR(1,14537425,1,1,2) [2025-02-23 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537425', 'tblTempUsageDetail_20' ) start [2025-02-23 04:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537425', 'tblTempUsageDetail_20' ) end [2025-02-23 04:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:51:21] Production.INFO: ==12964== Releasing lock... [2025-02-23 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:52:05 [end_date_ymd] => 2025-02-23 04:52:05 [RateCDR] => 1 ) [2025-02-23 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:52:05' and `end` < '2025-02-23 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-02-23 04:52:19] Production.INFO: count ==268 [2025-02-23 04:52:19] Production.ERROR: pbx CDR StartTime 2025-02-23 01:52:05 - End Time 2025-02-23 04:52:05 [2025-02-23 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537430', 'tblTempUsageDetail_20' ) start [2025-02-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537430', 'tblTempUsageDetail_20' ) end [2025-02-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537430', 'tblTempVendorCDR_20' ) start [2025-02-23 04:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537430', 'tblTempVendorCDR_20' ) end [2025-02-23 04:52:20] Production.INFO: ProcessCDR(1,14537430,1,1,2) [2025-02-23 04:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537430', 'tblTempUsageDetail_20' ) start [2025-02-23 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537430', 'tblTempUsageDetail_20' ) end [2025-02-23 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:52:24] Production.INFO: ==13059== Releasing lock... [2025-02-23 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:52:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:53:05 [end_date_ymd] => 2025-02-23 04:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:53:05' and `end` < '2025-02-23 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-02-23 04:53:18] Production.INFO: count ==268 [2025-02-23 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:53:05 - End Time 2025-02-23 04:53:05 [2025-02-23 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537435', 'tblTempUsageDetail_20' ) start [2025-02-23 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537435', 'tblTempUsageDetail_20' ) end [2025-02-23 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537435', 'tblTempVendorCDR_20' ) start [2025-02-23 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537435', 'tblTempVendorCDR_20' ) end [2025-02-23 04:53:18] Production.INFO: ProcessCDR(1,14537435,1,1,2) [2025-02-23 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537435', 'tblTempUsageDetail_20' ) start [2025-02-23 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537435', 'tblTempUsageDetail_20' ) end [2025-02-23 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:53:21] Production.INFO: ==13199== Releasing lock... [2025-02-23 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:54:05 [end_date_ymd] => 2025-02-23 04:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:54:05' and `end` < '2025-02-23 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-02-23 04:54:17] Production.INFO: count ==268 [2025-02-23 04:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:54:05 - End Time 2025-02-23 04:54:05 [2025-02-23 04:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537440', 'tblTempUsageDetail_20' ) start [2025-02-23 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537440', 'tblTempUsageDetail_20' ) end [2025-02-23 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537440', 'tblTempVendorCDR_20' ) start [2025-02-23 04:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537440', 'tblTempVendorCDR_20' ) end [2025-02-23 04:54:17] Production.INFO: ProcessCDR(1,14537440,1,1,2) [2025-02-23 04:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537440', 'tblTempUsageDetail_20' ) start [2025-02-23 04:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537440', 'tblTempUsageDetail_20' ) end [2025-02-23 04:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:54:20] Production.INFO: ==13272== Releasing lock... [2025-02-23 04:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:54:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:55:05 [end_date_ymd] => 2025-02-23 04:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:55:05' and `end` < '2025-02-23 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-02-23 04:55:17] Production.INFO: count ==268 [2025-02-23 04:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:55:05 - End Time 2025-02-23 04:55:05 [2025-02-23 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537445', 'tblTempUsageDetail_20' ) start [2025-02-23 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537445', 'tblTempUsageDetail_20' ) end [2025-02-23 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537445', 'tblTempVendorCDR_20' ) start [2025-02-23 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537445', 'tblTempVendorCDR_20' ) end [2025-02-23 04:55:17] Production.INFO: ProcessCDR(1,14537445,1,1,2) [2025-02-23 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537445', 'tblTempUsageDetail_20' ) start [2025-02-23 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537445', 'tblTempUsageDetail_20' ) end [2025-02-23 04:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:55:20] Production.INFO: ==13342== Releasing lock... [2025-02-23 04:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:55:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:56:05 [end_date_ymd] => 2025-02-23 04:56:05 [RateCDR] => 1 ) [2025-02-23 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:56:05' and `end` < '2025-02-23 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:56:18] Production.INFO: count ==268 [2025-02-23 04:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 01:56:05 - End Time 2025-02-23 04:56:05 [2025-02-23 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537450', 'tblTempUsageDetail_20' ) start [2025-02-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537450', 'tblTempUsageDetail_20' ) end [2025-02-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537450', 'tblTempVendorCDR_20' ) start [2025-02-23 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537450', 'tblTempVendorCDR_20' ) end [2025-02-23 04:56:18] Production.INFO: ProcessCDR(1,14537450,1,1,2) [2025-02-23 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537450', 'tblTempUsageDetail_20' ) start [2025-02-23 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537450', 'tblTempUsageDetail_20' ) end [2025-02-23 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:56:21] Production.INFO: ==13412== Releasing lock... [2025-02-23 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:57:05 [end_date_ymd] => 2025-02-23 04:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:57:05' and `end` < '2025-02-23 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-02-23 04:57:19] Production.INFO: count ==268 [2025-02-23 04:57:19] Production.ERROR: pbx CDR StartTime 2025-02-23 01:57:05 - End Time 2025-02-23 04:57:05 [2025-02-23 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537455', 'tblTempUsageDetail_20' ) start [2025-02-23 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537455', 'tblTempUsageDetail_20' ) end [2025-02-23 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537455', 'tblTempVendorCDR_20' ) start [2025-02-23 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537455', 'tblTempVendorCDR_20' ) end [2025-02-23 04:57:19] Production.INFO: ProcessCDR(1,14537455,1,1,2) [2025-02-23 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537455', 'tblTempUsageDetail_20' ) start [2025-02-23 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537455', 'tblTempUsageDetail_20' ) end [2025-02-23 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:57:23] Production.INFO: ==13483== Releasing lock... [2025-02-23 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:57:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:58:05 [end_date_ymd] => 2025-02-23 04:58:05 [RateCDR] => 1 ) [2025-02-23 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 01:58:05' and `end` < '2025-02-23 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 04:58:17] Production.INFO: count ==269 [2025-02-23 04:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:58:05 - End Time 2025-02-23 04:58:05 [2025-02-23 04:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537460', 'tblTempUsageDetail_20' ) start [2025-02-23 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537460', 'tblTempUsageDetail_20' ) end [2025-02-23 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537460', 'tblTempVendorCDR_20' ) start [2025-02-23 04:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537460', 'tblTempVendorCDR_20' ) end [2025-02-23 04:58:17] Production.INFO: ProcessCDR(1,14537460,1,1,2) [2025-02-23 04:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537460', 'tblTempUsageDetail_20' ) start [2025-02-23 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537460', 'tblTempUsageDetail_20' ) end [2025-02-23 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:58:22] Production.INFO: ==13598== Releasing lock... [2025-02-23 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 01:59:05 [end_date_ymd] => 2025-02-23 04:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 01:59:05' and `end` < '2025-02-23 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-02-23 04:59:17] Production.INFO: count ==270 [2025-02-23 04:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 01:59:05 - End Time 2025-02-23 04:59:05 [2025-02-23 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537465', 'tblTempUsageDetail_20' ) start [2025-02-23 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537465', 'tblTempUsageDetail_20' ) end [2025-02-23 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537465', 'tblTempVendorCDR_20' ) start [2025-02-23 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537465', 'tblTempVendorCDR_20' ) end [2025-02-23 04:59:17] Production.INFO: ProcessCDR(1,14537465,1,1,2) [2025-02-23 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537465', 'tblTempUsageDetail_20' ) start [2025-02-23 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537465', 'tblTempUsageDetail_20' ) end [2025-02-23 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 04:59:21] Production.INFO: ==13668== Releasing lock... [2025-02-23 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 04:59:21] Production.INFO: 30 MB #Memory Used# [2025-02-23 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:00:06 [end_date_ymd] => 2025-02-23 05:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:00:06' and `end` < '2025-02-23 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-02-23 05:00:18] Production.INFO: count ==260 [2025-02-23 05:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:00:06 - End Time 2025-02-23 05:00:06 [2025-02-23 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537471', 'tblTempUsageDetail_20' ) start [2025-02-23 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537471', 'tblTempUsageDetail_20' ) end [2025-02-23 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537471', 'tblTempVendorCDR_20' ) start [2025-02-23 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537471', 'tblTempVendorCDR_20' ) end [2025-02-23 05:00:18] Production.INFO: ProcessCDR(1,14537471,1,1,2) [2025-02-23 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537471', 'tblTempUsageDetail_20' ) start [2025-02-23 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537471', 'tblTempUsageDetail_20' ) end [2025-02-23 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:00:22] Production.INFO: ==13744== Releasing lock... [2025-02-23 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:01:05 [end_date_ymd] => 2025-02-23 05:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:01:05' and `end` < '2025-02-23 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-02-23 05:01:17] Production.INFO: count ==251 [2025-02-23 05:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:01:05 - End Time 2025-02-23 05:01:05 [2025-02-23 05:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537476', 'tblTempUsageDetail_20' ) start [2025-02-23 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537476', 'tblTempUsageDetail_20' ) end [2025-02-23 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537476', 'tblTempVendorCDR_20' ) start [2025-02-23 05:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537476', 'tblTempVendorCDR_20' ) end [2025-02-23 05:01:17] Production.INFO: ProcessCDR(1,14537476,1,1,2) [2025-02-23 05:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537476', 'tblTempUsageDetail_20' ) start [2025-02-23 05:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537476', 'tblTempUsageDetail_20' ) end [2025-02-23 05:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:01:20] Production.INFO: ==13828== Releasing lock... [2025-02-23 05:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:01:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:02:06 [end_date_ymd] => 2025-02-23 05:02:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:02:06' and `end` < '2025-02-23 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-02-23 05:02:18] Production.INFO: count ==250 [2025-02-23 05:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:02:06 - End Time 2025-02-23 05:02:06 [2025-02-23 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537481', 'tblTempUsageDetail_20' ) start [2025-02-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537481', 'tblTempUsageDetail_20' ) end [2025-02-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537481', 'tblTempVendorCDR_20' ) start [2025-02-23 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537481', 'tblTempVendorCDR_20' ) end [2025-02-23 05:02:18] Production.INFO: ProcessCDR(1,14537481,1,1,2) [2025-02-23 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537481', 'tblTempUsageDetail_20' ) start [2025-02-23 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537481', 'tblTempUsageDetail_20' ) end [2025-02-23 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:02:21] Production.INFO: ==13904== Releasing lock... [2025-02-23 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:03:05 [end_date_ymd] => 2025-02-23 05:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:03:05' and `end` < '2025-02-23 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-02-23 05:03:17] Production.INFO: count ==254 [2025-02-23 05:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:03:05 - End Time 2025-02-23 05:03:05 [2025-02-23 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537486', 'tblTempUsageDetail_20' ) start [2025-02-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537486', 'tblTempUsageDetail_20' ) end [2025-02-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537486', 'tblTempVendorCDR_20' ) start [2025-02-23 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537486', 'tblTempVendorCDR_20' ) end [2025-02-23 05:03:17] Production.INFO: ProcessCDR(1,14537486,1,1,2) [2025-02-23 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537486', 'tblTempUsageDetail_20' ) start [2025-02-23 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537486', 'tblTempUsageDetail_20' ) end [2025-02-23 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:03:21] Production.INFO: ==13973== Releasing lock... [2025-02-23 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 05:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:04:04 [end_date_ymd] => 2025-02-23 05:04:04 [RateCDR] => 1 ) [2025-02-23 05:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:04:04' and `end` < '2025-02-23 05:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:04:17] Production.INFO: count ==255 [2025-02-23 05:04:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:04:04 - End Time 2025-02-23 05:04:04 [2025-02-23 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537491', 'tblTempUsageDetail_20' ) start [2025-02-23 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537491', 'tblTempUsageDetail_20' ) end [2025-02-23 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537491', 'tblTempVendorCDR_20' ) start [2025-02-23 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537491', 'tblTempVendorCDR_20' ) end [2025-02-23 05:04:17] Production.INFO: ProcessCDR(1,14537491,1,1,2) [2025-02-23 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537491', 'tblTempUsageDetail_20' ) start [2025-02-23 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537491', 'tblTempUsageDetail_20' ) end [2025-02-23 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:04:20] Production.INFO: ==14044== Releasing lock... [2025-02-23 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:04:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:05:05 [end_date_ymd] => 2025-02-23 05:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:05:05' and `end` < '2025-02-23 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-02-23 05:05:17] Production.INFO: count ==258 [2025-02-23 05:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:05:05 - End Time 2025-02-23 05:05:05 [2025-02-23 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537496', 'tblTempUsageDetail_20' ) start [2025-02-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537496', 'tblTempUsageDetail_20' ) end [2025-02-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537496', 'tblTempVendorCDR_20' ) start [2025-02-23 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537496', 'tblTempVendorCDR_20' ) end [2025-02-23 05:05:17] Production.INFO: ProcessCDR(1,14537496,1,1,2) [2025-02-23 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537496', 'tblTempUsageDetail_20' ) start [2025-02-23 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537496', 'tblTempUsageDetail_20' ) end [2025-02-23 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:05:20] Production.INFO: ==14115== Releasing lock... [2025-02-23 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:06:06 [end_date_ymd] => 2025-02-23 05:06:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:06:06' and `end` < '2025-02-23 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-02-23 05:06:18] Production.INFO: count ==253 [2025-02-23 05:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:06:06 - End Time 2025-02-23 05:06:06 [2025-02-23 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537501', 'tblTempUsageDetail_20' ) start [2025-02-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537501', 'tblTempUsageDetail_20' ) end [2025-02-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537501', 'tblTempVendorCDR_20' ) start [2025-02-23 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537501', 'tblTempVendorCDR_20' ) end [2025-02-23 05:06:18] Production.INFO: ProcessCDR(1,14537501,1,1,2) [2025-02-23 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537501', 'tblTempUsageDetail_20' ) start [2025-02-23 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537501', 'tblTempUsageDetail_20' ) end [2025-02-23 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:06:21] Production.INFO: ==14190== Releasing lock... [2025-02-23 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:07:05 [end_date_ymd] => 2025-02-23 05:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:07:05' and `end` < '2025-02-23 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-02-23 05:07:17] Production.INFO: count ==248 [2025-02-23 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:07:05 - End Time 2025-02-23 05:07:05 [2025-02-23 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537506', 'tblTempUsageDetail_20' ) start [2025-02-23 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537506', 'tblTempUsageDetail_20' ) end [2025-02-23 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537506', 'tblTempVendorCDR_20' ) start [2025-02-23 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537506', 'tblTempVendorCDR_20' ) end [2025-02-23 05:07:17] Production.INFO: ProcessCDR(1,14537506,1,1,2) [2025-02-23 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537506', 'tblTempUsageDetail_20' ) start [2025-02-23 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537506', 'tblTempUsageDetail_20' ) end [2025-02-23 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:07:20] Production.INFO: ==14262== Releasing lock... [2025-02-23 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-23 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:08:06 [end_date_ymd] => 2025-02-23 05:08:06 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:08:06' and `end` < '2025-02-23 05: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-02-23 05:08:17] Production.INFO: count ==239 [2025-02-23 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:08:06 - End Time 2025-02-23 05:08:06 [2025-02-23 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537511', 'tblTempUsageDetail_20' ) start [2025-02-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537511', 'tblTempUsageDetail_20' ) end [2025-02-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537511', 'tblTempVendorCDR_20' ) start [2025-02-23 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537511', 'tblTempVendorCDR_20' ) end [2025-02-23 05:08:17] Production.INFO: ProcessCDR(1,14537511,1,1,2) [2025-02-23 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537511', 'tblTempUsageDetail_20' ) start [2025-02-23 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537511', 'tblTempUsageDetail_20' ) end [2025-02-23 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:08:21] Production.INFO: ==14335== Releasing lock... [2025-02-23 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:08:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:09:05 [end_date_ymd] => 2025-02-23 05:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:09:05' and `end` < '2025-02-23 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-02-23 05:09:17] Production.INFO: count ==238 [2025-02-23 05:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:09:05 - End Time 2025-02-23 05:09:05 [2025-02-23 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537516', 'tblTempUsageDetail_20' ) start [2025-02-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537516', 'tblTempUsageDetail_20' ) end [2025-02-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537516', 'tblTempVendorCDR_20' ) start [2025-02-23 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537516', 'tblTempVendorCDR_20' ) end [2025-02-23 05:09:17] Production.INFO: ProcessCDR(1,14537516,1,1,2) [2025-02-23 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537516', 'tblTempUsageDetail_20' ) start [2025-02-23 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537516', 'tblTempUsageDetail_20' ) end [2025-02-23 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:09:20] Production.INFO: ==14406== Releasing lock... [2025-02-23 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:09:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:10:06 [end_date_ymd] => 2025-02-23 05:10:06 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:10:06' and `end` < '2025-02-23 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-02-23 05:10:18] Production.INFO: count ==232 [2025-02-23 05:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:10:06 - End Time 2025-02-23 05:10:06 [2025-02-23 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537522', 'tblTempUsageDetail_20' ) start [2025-02-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537522', 'tblTempUsageDetail_20' ) end [2025-02-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537522', 'tblTempVendorCDR_20' ) start [2025-02-23 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537522', 'tblTempVendorCDR_20' ) end [2025-02-23 05:10:18] Production.INFO: ProcessCDR(1,14537522,1,1,2) [2025-02-23 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537522', 'tblTempUsageDetail_20' ) start [2025-02-23 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537522', 'tblTempUsageDetail_20' ) end [2025-02-23 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:10:21] Production.INFO: ==14479== Releasing lock... [2025-02-23 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:11:05 [end_date_ymd] => 2025-02-23 05:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:11:05' and `end` < '2025-02-23 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-02-23 05:11:17] Production.INFO: count ==226 [2025-02-23 05:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:11:05 - End Time 2025-02-23 05:11:05 [2025-02-23 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537527', 'tblTempUsageDetail_20' ) start [2025-02-23 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537527', 'tblTempUsageDetail_20' ) end [2025-02-23 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537527', 'tblTempVendorCDR_20' ) start [2025-02-23 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537527', 'tblTempVendorCDR_20' ) end [2025-02-23 05:11:17] Production.INFO: ProcessCDR(1,14537527,1,1,2) [2025-02-23 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537527', 'tblTempUsageDetail_20' ) start [2025-02-23 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537527', 'tblTempUsageDetail_20' ) end [2025-02-23 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:11:20] Production.INFO: ==14560== Releasing lock... [2025-02-23 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:12:06 [end_date_ymd] => 2025-02-23 05:12:06 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:12:06' and `end` < '2025-02-23 05: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-02-23 05:12:18] Production.INFO: count ==228 [2025-02-23 05:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:12:06 - End Time 2025-02-23 05:12:06 [2025-02-23 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537532', 'tblTempUsageDetail_20' ) start [2025-02-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537532', 'tblTempUsageDetail_20' ) end [2025-02-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537532', 'tblTempVendorCDR_20' ) start [2025-02-23 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537532', 'tblTempVendorCDR_20' ) end [2025-02-23 05:12:18] Production.INFO: ProcessCDR(1,14537532,1,1,2) [2025-02-23 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537532', 'tblTempUsageDetail_20' ) start [2025-02-23 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537532', 'tblTempUsageDetail_20' ) end [2025-02-23 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:12:22] Production.INFO: ==14635== Releasing lock... [2025-02-23 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:13:05 [end_date_ymd] => 2025-02-23 05:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:13:05' and `end` < '2025-02-23 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-02-23 05:13:17] Production.INFO: count ==229 [2025-02-23 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:13:05 - End Time 2025-02-23 05:13:05 [2025-02-23 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537537', 'tblTempUsageDetail_20' ) start [2025-02-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537537', 'tblTempUsageDetail_20' ) end [2025-02-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537537', 'tblTempVendorCDR_20' ) start [2025-02-23 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537537', 'tblTempVendorCDR_20' ) end [2025-02-23 05:13:17] Production.INFO: ProcessCDR(1,14537537,1,1,2) [2025-02-23 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537537', 'tblTempUsageDetail_20' ) start [2025-02-23 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537537', 'tblTempUsageDetail_20' ) end [2025-02-23 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:13:21] Production.INFO: ==14712== Releasing lock... [2025-02-23 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:14:05 [end_date_ymd] => 2025-02-23 05:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:14:05' and `end` < '2025-02-23 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-02-23 05:14:17] Production.INFO: count ==230 [2025-02-23 05:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:14:05 - End Time 2025-02-23 05:14:05 [2025-02-23 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537542', 'tblTempUsageDetail_20' ) start [2025-02-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537542', 'tblTempUsageDetail_20' ) end [2025-02-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537542', 'tblTempVendorCDR_20' ) start [2025-02-23 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537542', 'tblTempVendorCDR_20' ) end [2025-02-23 05:14:17] Production.INFO: ProcessCDR(1,14537542,1,1,2) [2025-02-23 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537542', 'tblTempUsageDetail_20' ) start [2025-02-23 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537542', 'tblTempUsageDetail_20' ) end [2025-02-23 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:14:22] Production.INFO: ==14823== Releasing lock... [2025-02-23 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:15:05 [end_date_ymd] => 2025-02-23 05:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:15:05' and `end` < '2025-02-23 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-02-23 05:15:16] Production.INFO: count ==230 [2025-02-23 05:15:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:15:05 - End Time 2025-02-23 05:15:05 [2025-02-23 05:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537547', 'tblTempUsageDetail_20' ) start [2025-02-23 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537547', 'tblTempUsageDetail_20' ) end [2025-02-23 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537547', 'tblTempVendorCDR_20' ) start [2025-02-23 05:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537547', 'tblTempVendorCDR_20' ) end [2025-02-23 05:15:16] Production.INFO: ProcessCDR(1,14537547,1,1,2) [2025-02-23 05:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:15:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537547', 'tblTempUsageDetail_20' ) start [2025-02-23 05:15:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537547', 'tblTempUsageDetail_20' ) end [2025-02-23 05:15:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:15:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:15:19] Production.INFO: ==14895== Releasing lock... [2025-02-23 05:15:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:15:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:16:05 [end_date_ymd] => 2025-02-23 05:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:16:05' and `end` < '2025-02-23 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-02-23 05:16:17] Production.INFO: count ==230 [2025-02-23 05:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:16:05 - End Time 2025-02-23 05:16:05 [2025-02-23 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537552', 'tblTempUsageDetail_20' ) start [2025-02-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537552', 'tblTempUsageDetail_20' ) end [2025-02-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537552', 'tblTempVendorCDR_20' ) start [2025-02-23 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537552', 'tblTempVendorCDR_20' ) end [2025-02-23 05:16:17] Production.INFO: ProcessCDR(1,14537552,1,1,2) [2025-02-23 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537552', 'tblTempUsageDetail_20' ) start [2025-02-23 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537552', 'tblTempUsageDetail_20' ) end [2025-02-23 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:16:20] Production.INFO: ==14965== Releasing lock... [2025-02-23 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:17:04 [end_date_ymd] => 2025-02-23 05:17:04 [RateCDR] => 1 ) [2025-02-23 05:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:17:04' and `end` < '2025-02-23 05:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:17:16] Production.INFO: count ==230 [2025-02-23 05:17:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:17:04 - End Time 2025-02-23 05:17:04 [2025-02-23 05:17:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537557', 'tblTempUsageDetail_20' ) start [2025-02-23 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537557', 'tblTempUsageDetail_20' ) end [2025-02-23 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537557', 'tblTempVendorCDR_20' ) start [2025-02-23 05:17:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537557', 'tblTempVendorCDR_20' ) end [2025-02-23 05:17:16] Production.INFO: ProcessCDR(1,14537557,1,1,2) [2025-02-23 05:17:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:17:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:17:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:17:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537557', 'tblTempUsageDetail_20' ) start [2025-02-23 05:17:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537557', 'tblTempUsageDetail_20' ) end [2025-02-23 05:17:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:17:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:17:19] Production.INFO: ==15037== Releasing lock... [2025-02-23 05:17:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:17:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:18:05 [end_date_ymd] => 2025-02-23 05:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:18:05' and `end` < '2025-02-23 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-02-23 05:18:17] Production.INFO: count ==230 [2025-02-23 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:18:05 - End Time 2025-02-23 05:18:05 [2025-02-23 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537562', 'tblTempUsageDetail_20' ) start [2025-02-23 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537562', 'tblTempUsageDetail_20' ) end [2025-02-23 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537562', 'tblTempVendorCDR_20' ) start [2025-02-23 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537562', 'tblTempVendorCDR_20' ) end [2025-02-23 05:18:17] Production.INFO: ProcessCDR(1,14537562,1,1,2) [2025-02-23 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537562', 'tblTempUsageDetail_20' ) start [2025-02-23 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537562', 'tblTempUsageDetail_20' ) end [2025-02-23 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:18:20] Production.INFO: ==15108== Releasing lock... [2025-02-23 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:18:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:19:05 [end_date_ymd] => 2025-02-23 05:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:19:05' and `end` < '2025-02-23 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-02-23 05:19:17] Production.INFO: count ==230 [2025-02-23 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:19:05 - End Time 2025-02-23 05:19:05 [2025-02-23 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537567', 'tblTempUsageDetail_20' ) start [2025-02-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537567', 'tblTempUsageDetail_20' ) end [2025-02-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537567', 'tblTempVendorCDR_20' ) start [2025-02-23 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537567', 'tblTempVendorCDR_20' ) end [2025-02-23 05:19:17] Production.INFO: ProcessCDR(1,14537567,1,1,2) [2025-02-23 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537567', 'tblTempUsageDetail_20' ) start [2025-02-23 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537567', 'tblTempUsageDetail_20' ) end [2025-02-23 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:19:20] Production.INFO: ==15182== Releasing lock... [2025-02-23 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:19:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:20:05 [end_date_ymd] => 2025-02-23 05:20:05 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:20:05' and `end` < '2025-02-23 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:20:17] Production.INFO: count ==226 [2025-02-23 05:20:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:20:05 - End Time 2025-02-23 05:20:05 [2025-02-23 05:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537573', 'tblTempUsageDetail_20' ) start [2025-02-23 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537573', 'tblTempUsageDetail_20' ) end [2025-02-23 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537573', 'tblTempVendorCDR_20' ) start [2025-02-23 05:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537573', 'tblTempVendorCDR_20' ) end [2025-02-23 05:20:17] Production.INFO: ProcessCDR(1,14537573,1,1,2) [2025-02-23 05:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537573', 'tblTempUsageDetail_20' ) start [2025-02-23 05:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537573', 'tblTempUsageDetail_20' ) end [2025-02-23 05:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:20:20] Production.INFO: ==15256== Releasing lock... [2025-02-23 05:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:20:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:21:06 [end_date_ymd] => 2025-02-23 05:21:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:21:06' and `end` < '2025-02-23 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-02-23 05:21:18] Production.INFO: count ==226 [2025-02-23 05:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:21:06 - End Time 2025-02-23 05:21:06 [2025-02-23 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537578', 'tblTempUsageDetail_20' ) start [2025-02-23 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537578', 'tblTempUsageDetail_20' ) end [2025-02-23 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537578', 'tblTempVendorCDR_20' ) start [2025-02-23 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537578', 'tblTempVendorCDR_20' ) end [2025-02-23 05:21:18] Production.INFO: ProcessCDR(1,14537578,1,1,2) [2025-02-23 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537578', 'tblTempUsageDetail_20' ) start [2025-02-23 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537578', 'tblTempUsageDetail_20' ) end [2025-02-23 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:21:21] Production.INFO: ==15332== Releasing lock... [2025-02-23 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:22:05 [end_date_ymd] => 2025-02-23 05:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:22:05' and `end` < '2025-02-23 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-02-23 05:22:17] Production.INFO: count ==226 [2025-02-23 05:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:22:05 - End Time 2025-02-23 05:22:05 [2025-02-23 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537583', 'tblTempUsageDetail_20' ) start [2025-02-23 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537583', 'tblTempUsageDetail_20' ) end [2025-02-23 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537583', 'tblTempVendorCDR_20' ) start [2025-02-23 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537583', 'tblTempVendorCDR_20' ) end [2025-02-23 05:22:17] Production.INFO: ProcessCDR(1,14537583,1,1,2) [2025-02-23 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537583', 'tblTempUsageDetail_20' ) start [2025-02-23 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537583', 'tblTempUsageDetail_20' ) end [2025-02-23 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:22:20] Production.INFO: ==15403== Releasing lock... [2025-02-23 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:22:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:23:05 [end_date_ymd] => 2025-02-23 05:23:05 [RateCDR] => 1 ) [2025-02-23 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:23:05' and `end` < '2025-02-23 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-02-23 05:23:16] Production.INFO: count ==226 [2025-02-23 05:23:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:23:05 - End Time 2025-02-23 05:23:05 [2025-02-23 05:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537588', 'tblTempUsageDetail_20' ) start [2025-02-23 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537588', 'tblTempUsageDetail_20' ) end [2025-02-23 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537588', 'tblTempVendorCDR_20' ) start [2025-02-23 05:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537588', 'tblTempVendorCDR_20' ) end [2025-02-23 05:23:16] Production.INFO: ProcessCDR(1,14537588,1,1,2) [2025-02-23 05:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537588', 'tblTempUsageDetail_20' ) start [2025-02-23 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537588', 'tblTempUsageDetail_20' ) end [2025-02-23 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:23:20] Production.INFO: ==15477== Releasing lock... [2025-02-23 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:23:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:24:04 [end_date_ymd] => 2025-02-23 05:24:04 [RateCDR] => 1 ) [2025-02-23 05:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:24:04' and `end` < '2025-02-23 05:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:24:16] Production.INFO: count ==226 [2025-02-23 05:24:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:24:04 - End Time 2025-02-23 05:24:04 [2025-02-23 05:24:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537593', 'tblTempUsageDetail_20' ) start [2025-02-23 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537593', 'tblTempUsageDetail_20' ) end [2025-02-23 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537593', 'tblTempVendorCDR_20' ) start [2025-02-23 05:24:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537593', 'tblTempVendorCDR_20' ) end [2025-02-23 05:24:16] Production.INFO: ProcessCDR(1,14537593,1,1,2) [2025-02-23 05:24:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:24:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:24:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:24:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537593', 'tblTempUsageDetail_20' ) start [2025-02-23 05:24:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537593', 'tblTempUsageDetail_20' ) end [2025-02-23 05:24:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:24:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:24:19] Production.INFO: ==15557== Releasing lock... [2025-02-23 05:24:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:24:19] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:25:05 [end_date_ymd] => 2025-02-23 05:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:25:05' and `end` < '2025-02-23 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-02-23 05:25:17] Production.INFO: count ==220 [2025-02-23 05:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:25:05 - End Time 2025-02-23 05:25:05 [2025-02-23 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537598', 'tblTempUsageDetail_20' ) start [2025-02-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537598', 'tblTempUsageDetail_20' ) end [2025-02-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537598', 'tblTempVendorCDR_20' ) start [2025-02-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537598', 'tblTempVendorCDR_20' ) end [2025-02-23 05:25:17] Production.INFO: ProcessCDR(1,14537598,1,1,2) [2025-02-23 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537598', 'tblTempUsageDetail_20' ) start [2025-02-23 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537598', 'tblTempUsageDetail_20' ) end [2025-02-23 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:25:20] Production.INFO: ==15669== Releasing lock... [2025-02-23 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:26:06 [end_date_ymd] => 2025-02-23 05:26:06 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:26:06' and `end` < '2025-02-23 05: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-02-23 05:26:17] Production.INFO: count ==208 [2025-02-23 05:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:26:06 - End Time 2025-02-23 05:26:06 [2025-02-23 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537603', 'tblTempUsageDetail_20' ) start [2025-02-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537603', 'tblTempUsageDetail_20' ) end [2025-02-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537603', 'tblTempVendorCDR_20' ) start [2025-02-23 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537603', 'tblTempVendorCDR_20' ) end [2025-02-23 05:26:17] Production.INFO: ProcessCDR(1,14537603,1,1,2) [2025-02-23 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537603', 'tblTempUsageDetail_20' ) start [2025-02-23 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537603', 'tblTempUsageDetail_20' ) end [2025-02-23 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:26:20] Production.INFO: ==15776== Releasing lock... [2025-02-23 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:27:05 [end_date_ymd] => 2025-02-23 05:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:27:05' and `end` < '2025-02-23 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-02-23 05:27:17] Production.INFO: count ==193 [2025-02-23 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:27:05 - End Time 2025-02-23 05:27:05 [2025-02-23 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537608', 'tblTempUsageDetail_20' ) start [2025-02-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537608', 'tblTempUsageDetail_20' ) end [2025-02-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537608', 'tblTempVendorCDR_20' ) start [2025-02-23 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537608', 'tblTempVendorCDR_20' ) end [2025-02-23 05:27:17] Production.INFO: ProcessCDR(1,14537608,1,1,2) [2025-02-23 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537608', 'tblTempUsageDetail_20' ) start [2025-02-23 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537608', 'tblTempUsageDetail_20' ) end [2025-02-23 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:27:20] Production.INFO: ==15847== Releasing lock... [2025-02-23 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:28:05 [end_date_ymd] => 2025-02-23 05:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:28:05' and `end` < '2025-02-23 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-02-23 05:28:17] Production.INFO: count ==181 [2025-02-23 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:28:05 - End Time 2025-02-23 05:28:05 [2025-02-23 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537613', 'tblTempUsageDetail_20' ) start [2025-02-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537613', 'tblTempUsageDetail_20' ) end [2025-02-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537613', 'tblTempVendorCDR_20' ) start [2025-02-23 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537613', 'tblTempVendorCDR_20' ) end [2025-02-23 05:28:17] Production.INFO: ProcessCDR(1,14537613,1,1,2) [2025-02-23 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537613', 'tblTempUsageDetail_20' ) start [2025-02-23 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537613', 'tblTempUsageDetail_20' ) end [2025-02-23 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:28:20] Production.INFO: ==15918== Releasing lock... [2025-02-23 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:28:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:29:05 [end_date_ymd] => 2025-02-23 05:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:29:05' and `end` < '2025-02-23 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-02-23 05:29:17] Production.INFO: count ==178 [2025-02-23 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:29:05 - End Time 2025-02-23 05:29:05 [2025-02-23 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537618', 'tblTempUsageDetail_20' ) start [2025-02-23 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537618', 'tblTempUsageDetail_20' ) end [2025-02-23 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537618', 'tblTempVendorCDR_20' ) start [2025-02-23 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537618', 'tblTempVendorCDR_20' ) end [2025-02-23 05:29:17] Production.INFO: ProcessCDR(1,14537618,1,1,2) [2025-02-23 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537618', 'tblTempUsageDetail_20' ) start [2025-02-23 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537618', 'tblTempUsageDetail_20' ) end [2025-02-23 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:29:20] Production.INFO: ==16029== Releasing lock... [2025-02-23 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:30:06 [end_date_ymd] => 2025-02-23 05:30:06 [RateCDR] => 1 ) [2025-02-23 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:30:06' and `end` < '2025-02-23 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:30:18] Production.INFO: count ==169 [2025-02-23 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:30:06 - End Time 2025-02-23 05:30:06 [2025-02-23 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537623', 'tblTempUsageDetail_20' ) start [2025-02-23 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537623', 'tblTempUsageDetail_20' ) end [2025-02-23 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537623', 'tblTempVendorCDR_20' ) start [2025-02-23 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537623', 'tblTempVendorCDR_20' ) end [2025-02-23 05:30:18] Production.INFO: ProcessCDR(1,14537623,1,1,2) [2025-02-23 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537623', 'tblTempUsageDetail_20' ) start [2025-02-23 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537623', 'tblTempUsageDetail_20' ) end [2025-02-23 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:30:21] Production.INFO: ==16104== Releasing lock... [2025-02-23 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:31:05 [end_date_ymd] => 2025-02-23 05:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:31:05' and `end` < '2025-02-23 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-02-23 05:31:17] Production.INFO: count ==161 [2025-02-23 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:31:05 - End Time 2025-02-23 05:31:05 [2025-02-23 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537629', 'tblTempUsageDetail_20' ) start [2025-02-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537629', 'tblTempUsageDetail_20' ) end [2025-02-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537629', 'tblTempVendorCDR_20' ) start [2025-02-23 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537629', 'tblTempVendorCDR_20' ) end [2025-02-23 05:31:17] Production.INFO: ProcessCDR(1,14537629,1,1,2) [2025-02-23 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537629', 'tblTempUsageDetail_20' ) start [2025-02-23 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537629', 'tblTempUsageDetail_20' ) end [2025-02-23 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:31:20] Production.INFO: ==16180== Releasing lock... [2025-02-23 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:32:05 [end_date_ymd] => 2025-02-23 05:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:32:05' and `end` < '2025-02-23 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-02-23 05:32:17] Production.INFO: count ==161 [2025-02-23 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:32:05 - End Time 2025-02-23 05:32:05 [2025-02-23 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537634', 'tblTempUsageDetail_20' ) start [2025-02-23 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537634', 'tblTempUsageDetail_20' ) end [2025-02-23 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537634', 'tblTempVendorCDR_20' ) start [2025-02-23 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537634', 'tblTempVendorCDR_20' ) end [2025-02-23 05:32:17] Production.INFO: ProcessCDR(1,14537634,1,1,2) [2025-02-23 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537634', 'tblTempUsageDetail_20' ) start [2025-02-23 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537634', 'tblTempUsageDetail_20' ) end [2025-02-23 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:32:20] Production.INFO: ==16254== Releasing lock... [2025-02-23 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:33:05 [end_date_ymd] => 2025-02-23 05:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:33:05' and `end` < '2025-02-23 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-02-23 05:33:16] Production.INFO: count ==161 [2025-02-23 05:33:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:33:05 - End Time 2025-02-23 05:33:05 [2025-02-23 05:33:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537639', 'tblTempUsageDetail_20' ) start [2025-02-23 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537639', 'tblTempUsageDetail_20' ) end [2025-02-23 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537639', 'tblTempVendorCDR_20' ) start [2025-02-23 05:33:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537639', 'tblTempVendorCDR_20' ) end [2025-02-23 05:33:16] Production.INFO: ProcessCDR(1,14537639,1,1,2) [2025-02-23 05:33:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:33:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:33:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537639', 'tblTempUsageDetail_20' ) start [2025-02-23 05:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537639', 'tblTempUsageDetail_20' ) end [2025-02-23 05:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:33:20] Production.INFO: ==16328== Releasing lock... [2025-02-23 05:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:33:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:34:05 [end_date_ymd] => 2025-02-23 05:34:05 [RateCDR] => 1 ) [2025-02-23 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:34:05' and `end` < '2025-02-23 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:34:17] Production.INFO: count ==161 [2025-02-23 05:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:34:05 - End Time 2025-02-23 05:34:05 [2025-02-23 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537644', 'tblTempUsageDetail_20' ) start [2025-02-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537644', 'tblTempUsageDetail_20' ) end [2025-02-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537644', 'tblTempVendorCDR_20' ) start [2025-02-23 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537644', 'tblTempVendorCDR_20' ) end [2025-02-23 05:34:17] Production.INFO: ProcessCDR(1,14537644,1,1,2) [2025-02-23 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537644', 'tblTempUsageDetail_20' ) start [2025-02-23 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537644', 'tblTempUsageDetail_20' ) end [2025-02-23 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:34:20] Production.INFO: ==16400== Releasing lock... [2025-02-23 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:34:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:35:04 [end_date_ymd] => 2025-02-23 05:35:04 [RateCDR] => 1 ) [2025-02-23 05:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:35:04' and `end` < '2025-02-23 05:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:35:16] Production.INFO: count ==161 [2025-02-23 05:35:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:35:04 - End Time 2025-02-23 05:35:04 [2025-02-23 05:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537649', 'tblTempUsageDetail_20' ) start [2025-02-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537649', 'tblTempUsageDetail_20' ) end [2025-02-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537649', 'tblTempVendorCDR_20' ) start [2025-02-23 05:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537649', 'tblTempVendorCDR_20' ) end [2025-02-23 05:35:16] Production.INFO: ProcessCDR(1,14537649,1,1,2) [2025-02-23 05:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537649', 'tblTempUsageDetail_20' ) start [2025-02-23 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537649', 'tblTempUsageDetail_20' ) end [2025-02-23 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:35:20] Production.INFO: ==16470== Releasing lock... [2025-02-23 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:36:05 [end_date_ymd] => 2025-02-23 05:36:05 [RateCDR] => 1 ) [2025-02-23 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:36:05' and `end` < '2025-02-23 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:36:17] Production.INFO: count ==161 [2025-02-23 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:36:05 - End Time 2025-02-23 05:36:05 [2025-02-23 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537654', 'tblTempUsageDetail_20' ) start [2025-02-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537654', 'tblTempUsageDetail_20' ) end [2025-02-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537654', 'tblTempVendorCDR_20' ) start [2025-02-23 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537654', 'tblTempVendorCDR_20' ) end [2025-02-23 05:36:17] Production.INFO: ProcessCDR(1,14537654,1,1,2) [2025-02-23 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537654', 'tblTempUsageDetail_20' ) start [2025-02-23 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537654', 'tblTempUsageDetail_20' ) end [2025-02-23 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:36:20] Production.INFO: ==16542== Releasing lock... [2025-02-23 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:36:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:37:05 [end_date_ymd] => 2025-02-23 05:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:37:05' and `end` < '2025-02-23 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-02-23 05:37:17] Production.INFO: count ==161 [2025-02-23 05:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:37:05 - End Time 2025-02-23 05:37:05 [2025-02-23 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537659', 'tblTempUsageDetail_20' ) start [2025-02-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537659', 'tblTempUsageDetail_20' ) end [2025-02-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537659', 'tblTempVendorCDR_20' ) start [2025-02-23 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537659', 'tblTempVendorCDR_20' ) end [2025-02-23 05:37:17] Production.INFO: ProcessCDR(1,14537659,1,1,2) [2025-02-23 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537659', 'tblTempUsageDetail_20' ) start [2025-02-23 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537659', 'tblTempUsageDetail_20' ) end [2025-02-23 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:37:20] Production.INFO: ==16613== Releasing lock... [2025-02-23 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:38:05 [end_date_ymd] => 2025-02-23 05:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:38:05' and `end` < '2025-02-23 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-02-23 05:38:17] Production.INFO: count ==161 [2025-02-23 05:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:38:05 - End Time 2025-02-23 05:38:05 [2025-02-23 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537664', 'tblTempUsageDetail_20' ) start [2025-02-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537664', 'tblTempUsageDetail_20' ) end [2025-02-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537664', 'tblTempVendorCDR_20' ) start [2025-02-23 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537664', 'tblTempVendorCDR_20' ) end [2025-02-23 05:38:17] Production.INFO: ProcessCDR(1,14537664,1,1,2) [2025-02-23 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537664', 'tblTempUsageDetail_20' ) start [2025-02-23 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537664', 'tblTempUsageDetail_20' ) end [2025-02-23 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:38:20] Production.INFO: ==16683== Releasing lock... [2025-02-23 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:38:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:39:04 [end_date_ymd] => 2025-02-23 05:39:04 [RateCDR] => 1 ) [2025-02-23 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:39:04' and `end` < '2025-02-23 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:39:16] Production.INFO: count ==161 [2025-02-23 05:39:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:39:04 - End Time 2025-02-23 05:39:04 [2025-02-23 05:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537669', 'tblTempUsageDetail_20' ) start [2025-02-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537669', 'tblTempUsageDetail_20' ) end [2025-02-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537669', 'tblTempVendorCDR_20' ) start [2025-02-23 05:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537669', 'tblTempVendorCDR_20' ) end [2025-02-23 05:39:16] Production.INFO: ProcessCDR(1,14537669,1,1,2) [2025-02-23 05:39:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:39:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:39:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:39:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537669', 'tblTempUsageDetail_20' ) start [2025-02-23 05:39:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537669', 'tblTempUsageDetail_20' ) end [2025-02-23 05:39:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:39:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:39:19] Production.INFO: ==16755== Releasing lock... [2025-02-23 05:39:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:39:19] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:40:05 [end_date_ymd] => 2025-02-23 05:40:05 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:40:05' and `end` < '2025-02-23 05: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-02-23 05:40:17] Production.INFO: count ==154 [2025-02-23 05:40:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:40:05 - End Time 2025-02-23 05:40:05 [2025-02-23 05:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537675', 'tblTempUsageDetail_20' ) start [2025-02-23 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537675', 'tblTempUsageDetail_20' ) end [2025-02-23 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537675', 'tblTempVendorCDR_20' ) start [2025-02-23 05:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537675', 'tblTempVendorCDR_20' ) end [2025-02-23 05:40:17] Production.INFO: ProcessCDR(1,14537675,1,1,2) [2025-02-23 05:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537675', 'tblTempUsageDetail_20' ) start [2025-02-23 05:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537675', 'tblTempUsageDetail_20' ) end [2025-02-23 05:40:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:40:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:40:20] Production.INFO: ==16827== Releasing lock... [2025-02-23 05:40:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:40:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:41:05 [end_date_ymd] => 2025-02-23 05:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:41:05' and `end` < '2025-02-23 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-02-23 05:41:17] Production.INFO: count ==150 [2025-02-23 05:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:41:05 - End Time 2025-02-23 05:41:05 [2025-02-23 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537680', 'tblTempUsageDetail_20' ) start [2025-02-23 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537680', 'tblTempUsageDetail_20' ) end [2025-02-23 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537680', 'tblTempVendorCDR_20' ) start [2025-02-23 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537680', 'tblTempVendorCDR_20' ) end [2025-02-23 05:41:17] Production.INFO: ProcessCDR(1,14537680,1,1,2) [2025-02-23 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537680', 'tblTempUsageDetail_20' ) start [2025-02-23 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537680', 'tblTempUsageDetail_20' ) end [2025-02-23 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:41:20] Production.INFO: ==16903== Releasing lock... [2025-02-23 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:42:05 [end_date_ymd] => 2025-02-23 05:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:42:05' and `end` < '2025-02-23 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-02-23 05:42:17] Production.INFO: count ==150 [2025-02-23 05:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:42:05 - End Time 2025-02-23 05:42:05 [2025-02-23 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537685', 'tblTempUsageDetail_20' ) start [2025-02-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537685', 'tblTempUsageDetail_20' ) end [2025-02-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537685', 'tblTempVendorCDR_20' ) start [2025-02-23 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537685', 'tblTempVendorCDR_20' ) end [2025-02-23 05:42:17] Production.INFO: ProcessCDR(1,14537685,1,1,2) [2025-02-23 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537685', 'tblTempUsageDetail_20' ) start [2025-02-23 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537685', 'tblTempUsageDetail_20' ) end [2025-02-23 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:42:20] Production.INFO: ==16972== Releasing lock... [2025-02-23 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:42:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:43:05 [end_date_ymd] => 2025-02-23 05:43:05 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:43:05' and `end` < '2025-02-23 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:43:17] Production.INFO: count ==150 [2025-02-23 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:43:05 - End Time 2025-02-23 05:43:05 [2025-02-23 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537690', 'tblTempUsageDetail_20' ) start [2025-02-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537690', 'tblTempUsageDetail_20' ) end [2025-02-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537690', 'tblTempVendorCDR_20' ) start [2025-02-23 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537690', 'tblTempVendorCDR_20' ) end [2025-02-23 05:43:17] Production.INFO: ProcessCDR(1,14537690,1,1,2) [2025-02-23 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537690', 'tblTempUsageDetail_20' ) start [2025-02-23 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537690', 'tblTempUsageDetail_20' ) end [2025-02-23 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:43:20] Production.INFO: ==17043== Releasing lock... [2025-02-23 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:43:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:44:05 [end_date_ymd] => 2025-02-23 05:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:44:05' and `end` < '2025-02-23 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-02-23 05:44:17] Production.INFO: count ==150 [2025-02-23 05:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:44:05 - End Time 2025-02-23 05:44:05 [2025-02-23 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537695', 'tblTempUsageDetail_20' ) start [2025-02-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537695', 'tblTempUsageDetail_20' ) end [2025-02-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537695', 'tblTempVendorCDR_20' ) start [2025-02-23 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537695', 'tblTempVendorCDR_20' ) end [2025-02-23 05:44:17] Production.INFO: ProcessCDR(1,14537695,1,1,2) [2025-02-23 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537695', 'tblTempUsageDetail_20' ) start [2025-02-23 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537695', 'tblTempUsageDetail_20' ) end [2025-02-23 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:44:20] Production.INFO: ==17151== Releasing lock... [2025-02-23 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:44:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:45:05 [end_date_ymd] => 2025-02-23 05:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:45:05' and `end` < '2025-02-23 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-02-23 05:45:17] Production.INFO: count ==150 [2025-02-23 05:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:45:05 - End Time 2025-02-23 05:45:05 [2025-02-23 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537700', 'tblTempUsageDetail_20' ) start [2025-02-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537700', 'tblTempUsageDetail_20' ) end [2025-02-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537700', 'tblTempVendorCDR_20' ) start [2025-02-23 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537700', 'tblTempVendorCDR_20' ) end [2025-02-23 05:45:17] Production.INFO: ProcessCDR(1,14537700,1,1,2) [2025-02-23 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537700', 'tblTempUsageDetail_20' ) start [2025-02-23 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537700', 'tblTempUsageDetail_20' ) end [2025-02-23 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:45:20] Production.INFO: ==17223== Releasing lock... [2025-02-23 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:46:05 [end_date_ymd] => 2025-02-23 05:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:46:05' and `end` < '2025-02-23 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-02-23 05:46:17] Production.INFO: count ==150 [2025-02-23 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:46:05 - End Time 2025-02-23 05:46:05 [2025-02-23 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537705', 'tblTempUsageDetail_20' ) start [2025-02-23 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537705', 'tblTempUsageDetail_20' ) end [2025-02-23 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537705', 'tblTempVendorCDR_20' ) start [2025-02-23 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537705', 'tblTempVendorCDR_20' ) end [2025-02-23 05:46:17] Production.INFO: ProcessCDR(1,14537705,1,1,2) [2025-02-23 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537705', 'tblTempUsageDetail_20' ) start [2025-02-23 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537705', 'tblTempUsageDetail_20' ) end [2025-02-23 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:46:20] Production.INFO: ==17295== Releasing lock... [2025-02-23 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:46:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:47:05 [end_date_ymd] => 2025-02-23 05:47:05 [RateCDR] => 1 ) [2025-02-23 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:47:05' and `end` < '2025-02-23 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:47:17] Production.INFO: count ==150 [2025-02-23 05:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:47:05 - End Time 2025-02-23 05:47:05 [2025-02-23 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537710', 'tblTempUsageDetail_20' ) start [2025-02-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537710', 'tblTempUsageDetail_20' ) end [2025-02-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537710', 'tblTempVendorCDR_20' ) start [2025-02-23 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537710', 'tblTempVendorCDR_20' ) end [2025-02-23 05:47:17] Production.INFO: ProcessCDR(1,14537710,1,1,2) [2025-02-23 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537710', 'tblTempUsageDetail_20' ) start [2025-02-23 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537710', 'tblTempUsageDetail_20' ) end [2025-02-23 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:47:20] Production.INFO: ==17368== Releasing lock... [2025-02-23 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:48:05 [end_date_ymd] => 2025-02-23 05:48:05 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:48:05' and `end` < '2025-02-23 05: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-02-23 05:48:17] Production.INFO: count ==150 [2025-02-23 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:48:05 - End Time 2025-02-23 05:48:05 [2025-02-23 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537715', 'tblTempUsageDetail_20' ) start [2025-02-23 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537715', 'tblTempUsageDetail_20' ) end [2025-02-23 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537715', 'tblTempVendorCDR_20' ) start [2025-02-23 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537715', 'tblTempVendorCDR_20' ) end [2025-02-23 05:48:17] Production.INFO: ProcessCDR(1,14537715,1,1,2) [2025-02-23 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537715', 'tblTempUsageDetail_20' ) start [2025-02-23 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537715', 'tblTempUsageDetail_20' ) end [2025-02-23 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:48:20] Production.INFO: ==17439== Releasing lock... [2025-02-23 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:49:05 [end_date_ymd] => 2025-02-23 05:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:49:05' and `end` < '2025-02-23 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-02-23 05:49:17] Production.INFO: count ==146 [2025-02-23 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:49:05 - End Time 2025-02-23 05:49:05 [2025-02-23 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537720', 'tblTempUsageDetail_20' ) start [2025-02-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537720', 'tblTempUsageDetail_20' ) end [2025-02-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537720', 'tblTempVendorCDR_20' ) start [2025-02-23 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537720', 'tblTempVendorCDR_20' ) end [2025-02-23 05:49:17] Production.INFO: ProcessCDR(1,14537720,1,1,2) [2025-02-23 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537720', 'tblTempUsageDetail_20' ) start [2025-02-23 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537720', 'tblTempUsageDetail_20' ) end [2025-02-23 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:49:20] Production.INFO: ==17511== Releasing lock... [2025-02-23 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:50:06 [end_date_ymd] => 2025-02-23 05:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:50:06' and `end` < '2025-02-23 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-02-23 05:50:18] Production.INFO: count ==136 [2025-02-23 05:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:50:06 - End Time 2025-02-23 05:50:06 [2025-02-23 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537726', 'tblTempUsageDetail_20' ) start [2025-02-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537726', 'tblTempUsageDetail_20' ) end [2025-02-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537726', 'tblTempVendorCDR_20' ) start [2025-02-23 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537726', 'tblTempVendorCDR_20' ) end [2025-02-23 05:50:18] Production.INFO: ProcessCDR(1,14537726,1,1,2) [2025-02-23 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537726', 'tblTempUsageDetail_20' ) start [2025-02-23 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537726', 'tblTempUsageDetail_20' ) end [2025-02-23 05:50:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:50:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:50:21] Production.INFO: ==17587== Releasing lock... [2025-02-23 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:51:05 [end_date_ymd] => 2025-02-23 05:51:05 [RateCDR] => 1 ) [2025-02-23 05:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 02:51:05' and `end` < '2025-02-23 05:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 05:51:17] Production.INFO: count ==136 [2025-02-23 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:51:05 - End Time 2025-02-23 05:51:05 [2025-02-23 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537731', 'tblTempUsageDetail_20' ) start [2025-02-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537731', 'tblTempUsageDetail_20' ) end [2025-02-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537731', 'tblTempVendorCDR_20' ) start [2025-02-23 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537731', 'tblTempVendorCDR_20' ) end [2025-02-23 05:51:17] Production.INFO: ProcessCDR(1,14537731,1,1,2) [2025-02-23 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537731', 'tblTempUsageDetail_20' ) start [2025-02-23 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537731', 'tblTempUsageDetail_20' ) end [2025-02-23 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:51:20] Production.INFO: ==17659== Releasing lock... [2025-02-23 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:52:05 [end_date_ymd] => 2025-02-23 05:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:52:05' and `end` < '2025-02-23 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-02-23 05:52:17] Production.INFO: count ==135 [2025-02-23 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:52:05 - End Time 2025-02-23 05:52:05 [2025-02-23 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537736', 'tblTempUsageDetail_20' ) start [2025-02-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537736', 'tblTempUsageDetail_20' ) end [2025-02-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537736', 'tblTempVendorCDR_20' ) start [2025-02-23 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537736', 'tblTempVendorCDR_20' ) end [2025-02-23 05:52:17] Production.INFO: ProcessCDR(1,14537736,1,1,2) [2025-02-23 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537736', 'tblTempUsageDetail_20' ) start [2025-02-23 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537736', 'tblTempUsageDetail_20' ) end [2025-02-23 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:52:20] Production.INFO: ==17730== Releasing lock... [2025-02-23 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:53:05 [end_date_ymd] => 2025-02-23 05:53:05 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:53:05' and `end` < '2025-02-23 05: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-02-23 05:53:17] Production.INFO: count ==124 [2025-02-23 05:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:53:05 - End Time 2025-02-23 05:53:05 [2025-02-23 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537740', 'tblTempUsageDetail_20' ) start [2025-02-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537740', 'tblTempUsageDetail_20' ) end [2025-02-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537740', 'tblTempVendorCDR_20' ) start [2025-02-23 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537740', 'tblTempVendorCDR_20' ) end [2025-02-23 05:53:17] Production.INFO: ProcessCDR(1,14537740,1,1,2) [2025-02-23 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537740', 'tblTempUsageDetail_20' ) start [2025-02-23 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537740', 'tblTempUsageDetail_20' ) end [2025-02-23 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:53:20] Production.INFO: ==17803== Releasing lock... [2025-02-23 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:54:06 [end_date_ymd] => 2025-02-23 05:54:06 [RateCDR] => 1 ) [2025-02-23 05: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-02-23 02:54:06' and `end` < '2025-02-23 05: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-02-23 05:54:18] Production.INFO: count ==122 [2025-02-23 05:54:18] Production.ERROR: pbx CDR StartTime 2025-02-23 02:54:06 - End Time 2025-02-23 05:54:06 [2025-02-23 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537746', 'tblTempUsageDetail_20' ) start [2025-02-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537746', 'tblTempUsageDetail_20' ) end [2025-02-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537746', 'tblTempVendorCDR_20' ) start [2025-02-23 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537746', 'tblTempVendorCDR_20' ) end [2025-02-23 05:54:18] Production.INFO: ProcessCDR(1,14537746,1,1,2) [2025-02-23 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537746', 'tblTempUsageDetail_20' ) start [2025-02-23 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537746', 'tblTempUsageDetail_20' ) end [2025-02-23 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:54:21] Production.INFO: ==17873== Releasing lock... [2025-02-23 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:55:05 [end_date_ymd] => 2025-02-23 05:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:55:05' and `end` < '2025-02-23 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-02-23 05:55:17] Production.INFO: count ==122 [2025-02-23 05:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:55:05 - End Time 2025-02-23 05:55:05 [2025-02-23 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537751', 'tblTempUsageDetail_20' ) start [2025-02-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537751', 'tblTempUsageDetail_20' ) end [2025-02-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537751', 'tblTempVendorCDR_20' ) start [2025-02-23 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537751', 'tblTempVendorCDR_20' ) end [2025-02-23 05:55:17] Production.INFO: ProcessCDR(1,14537751,1,1,2) [2025-02-23 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537751', 'tblTempUsageDetail_20' ) start [2025-02-23 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537751', 'tblTempUsageDetail_20' ) end [2025-02-23 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:55:20] Production.INFO: ==17944== Releasing lock... [2025-02-23 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:55:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:56:05 [end_date_ymd] => 2025-02-23 05:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:56:05' and `end` < '2025-02-23 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-02-23 05:56:17] Production.INFO: count ==121 [2025-02-23 05:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:56:05 - End Time 2025-02-23 05:56:05 [2025-02-23 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537756', 'tblTempUsageDetail_20' ) start [2025-02-23 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537756', 'tblTempUsageDetail_20' ) end [2025-02-23 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537756', 'tblTempVendorCDR_20' ) start [2025-02-23 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537756', 'tblTempVendorCDR_20' ) end [2025-02-23 05:56:17] Production.INFO: ProcessCDR(1,14537756,1,1,2) [2025-02-23 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537756', 'tblTempUsageDetail_20' ) start [2025-02-23 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537756', 'tblTempUsageDetail_20' ) end [2025-02-23 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:56:20] Production.INFO: ==18018== Releasing lock... [2025-02-23 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:56:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:57:05 [end_date_ymd] => 2025-02-23 05:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:57:05' and `end` < '2025-02-23 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-02-23 05:57:16] Production.INFO: count ==121 [2025-02-23 05:57:16] Production.ERROR: pbx CDR StartTime 2025-02-23 02:57:05 - End Time 2025-02-23 05:57:05 [2025-02-23 05:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537761', 'tblTempUsageDetail_20' ) start [2025-02-23 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537761', 'tblTempUsageDetail_20' ) end [2025-02-23 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537761', 'tblTempVendorCDR_20' ) start [2025-02-23 05:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537761', 'tblTempVendorCDR_20' ) end [2025-02-23 05:57:16] Production.INFO: ProcessCDR(1,14537761,1,1,2) [2025-02-23 05:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537761', 'tblTempUsageDetail_20' ) start [2025-02-23 05:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537761', 'tblTempUsageDetail_20' ) end [2025-02-23 05:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:57:19] Production.INFO: ==18090== Releasing lock... [2025-02-23 05:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:57:19] Production.INFO: 29 MB #Memory Used# [2025-02-23 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:58:05 [end_date_ymd] => 2025-02-23 05:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:58:05' and `end` < '2025-02-23 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-02-23 05:58:17] Production.INFO: count ==129 [2025-02-23 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:58:05 - End Time 2025-02-23 05:58:05 [2025-02-23 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537766', 'tblTempUsageDetail_20' ) start [2025-02-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537766', 'tblTempUsageDetail_20' ) end [2025-02-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537766', 'tblTempVendorCDR_20' ) start [2025-02-23 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537766', 'tblTempVendorCDR_20' ) end [2025-02-23 05:58:17] Production.INFO: ProcessCDR(1,14537766,1,1,2) [2025-02-23 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537766', 'tblTempUsageDetail_20' ) start [2025-02-23 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537766', 'tblTempUsageDetail_20' ) end [2025-02-23 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:58:21] Production.INFO: ==18162== Releasing lock... [2025-02-23 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:58:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 02:59:05 [end_date_ymd] => 2025-02-23 05:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 02:59:05' and `end` < '2025-02-23 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-02-23 05:59:17] Production.INFO: count ==127 [2025-02-23 05:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 02:59:05 - End Time 2025-02-23 05:59:05 [2025-02-23 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537771', 'tblTempUsageDetail_20' ) start [2025-02-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537771', 'tblTempUsageDetail_20' ) end [2025-02-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537771', 'tblTempVendorCDR_20' ) start [2025-02-23 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537771', 'tblTempVendorCDR_20' ) end [2025-02-23 05:59:17] Production.INFO: ProcessCDR(1,14537771,1,1,2) [2025-02-23 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537771', 'tblTempUsageDetail_20' ) start [2025-02-23 05:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537771', 'tblTempUsageDetail_20' ) end [2025-02-23 05:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 05:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 05:59:20] Production.INFO: ==18237== Releasing lock... [2025-02-23 05:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 05:59:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:00:06 [end_date_ymd] => 2025-02-23 06:00:06 [RateCDR] => 1 ) [2025-02-23 06: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-02-23 03:00:06' and `end` < '2025-02-23 06: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-02-23 06:00:18] Production.INFO: count ==121 [2025-02-23 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 03:00:06 - End Time 2025-02-23 06:00:06 [2025-02-23 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537777', 'tblTempUsageDetail_20' ) start [2025-02-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537777', 'tblTempUsageDetail_20' ) end [2025-02-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537777', 'tblTempVendorCDR_20' ) start [2025-02-23 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537777', 'tblTempVendorCDR_20' ) end [2025-02-23 06:00:18] Production.INFO: ProcessCDR(1,14537777,1,1,2) [2025-02-23 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537777', 'tblTempUsageDetail_20' ) start [2025-02-23 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537777', 'tblTempUsageDetail_20' ) end [2025-02-23 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:00:21] Production.INFO: ==18351== Releasing lock... [2025-02-23 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:00:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:01:05 [end_date_ymd] => 2025-02-23 06:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:01:05' and `end` < '2025-02-23 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-02-23 06:01:16] Production.INFO: count ==115 [2025-02-23 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:01:05 - End Time 2025-02-23 06:01:05 [2025-02-23 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537782', 'tblTempUsageDetail_20' ) start [2025-02-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537782', 'tblTempUsageDetail_20' ) end [2025-02-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537782', 'tblTempVendorCDR_20' ) start [2025-02-23 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537782', 'tblTempVendorCDR_20' ) end [2025-02-23 06:01:17] Production.INFO: ProcessCDR(1,14537782,1,1,2) [2025-02-23 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537782', 'tblTempUsageDetail_20' ) start [2025-02-23 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537782', 'tblTempUsageDetail_20' ) end [2025-02-23 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:01:20] Production.INFO: ==18434== Releasing lock... [2025-02-23 06:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:01:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:02:05 [end_date_ymd] => 2025-02-23 06:02:05 [RateCDR] => 1 ) [2025-02-23 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:02:05' and `end` < '2025-02-23 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:02:17] Production.INFO: count ==119 [2025-02-23 06:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:02:05 - End Time 2025-02-23 06:02:05 [2025-02-23 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537787', 'tblTempUsageDetail_20' ) start [2025-02-23 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537787', 'tblTempUsageDetail_20' ) end [2025-02-23 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537787', 'tblTempVendorCDR_20' ) start [2025-02-23 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537787', 'tblTempVendorCDR_20' ) end [2025-02-23 06:02:17] Production.INFO: ProcessCDR(1,14537787,1,1,2) [2025-02-23 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537787', 'tblTempUsageDetail_20' ) start [2025-02-23 06:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537787', 'tblTempUsageDetail_20' ) end [2025-02-23 06:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:02:20] Production.INFO: ==18505== Releasing lock... [2025-02-23 06:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:02:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:03:05 [end_date_ymd] => 2025-02-23 06:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:03:05' and `end` < '2025-02-23 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-02-23 06:03:17] Production.INFO: count ==115 [2025-02-23 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:03:05 - End Time 2025-02-23 06:03:05 [2025-02-23 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537792', 'tblTempUsageDetail_20' ) start [2025-02-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537792', 'tblTempUsageDetail_20' ) end [2025-02-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537792', 'tblTempVendorCDR_20' ) start [2025-02-23 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537792', 'tblTempVendorCDR_20' ) end [2025-02-23 06:03:17] Production.INFO: ProcessCDR(1,14537792,1,1,2) [2025-02-23 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537792', 'tblTempUsageDetail_20' ) start [2025-02-23 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537792', 'tblTempUsageDetail_20' ) end [2025-02-23 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:03:20] Production.INFO: ==18575== Releasing lock... [2025-02-23 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:04:05 [end_date_ymd] => 2025-02-23 06:04:05 [RateCDR] => 1 ) [2025-02-23 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:04:05' and `end` < '2025-02-23 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:04:17] Production.INFO: count ==114 [2025-02-23 06:04:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:04:05 - End Time 2025-02-23 06:04:05 [2025-02-23 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537797', 'tblTempUsageDetail_20' ) start [2025-02-23 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537797', 'tblTempUsageDetail_20' ) end [2025-02-23 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537797', 'tblTempVendorCDR_20' ) start [2025-02-23 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537797', 'tblTempVendorCDR_20' ) end [2025-02-23 06:04:17] Production.INFO: ProcessCDR(1,14537797,1,1,2) [2025-02-23 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537797', 'tblTempUsageDetail_20' ) start [2025-02-23 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537797', 'tblTempUsageDetail_20' ) end [2025-02-23 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:04:20] Production.INFO: ==18649== Releasing lock... [2025-02-23 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:05:05 [end_date_ymd] => 2025-02-23 06:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:05:05' and `end` < '2025-02-23 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-02-23 06:05:17] Production.INFO: count ==114 [2025-02-23 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:05:05 - End Time 2025-02-23 06:05:05 [2025-02-23 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537802', 'tblTempUsageDetail_20' ) start [2025-02-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537802', 'tblTempUsageDetail_20' ) end [2025-02-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537802', 'tblTempVendorCDR_20' ) start [2025-02-23 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537802', 'tblTempVendorCDR_20' ) end [2025-02-23 06:05:17] Production.INFO: ProcessCDR(1,14537802,1,1,2) [2025-02-23 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537802', 'tblTempUsageDetail_20' ) start [2025-02-23 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537802', 'tblTempUsageDetail_20' ) end [2025-02-23 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:05:20] Production.INFO: ==18718== Releasing lock... [2025-02-23 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:05:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:06:05 [end_date_ymd] => 2025-02-23 06:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:06:05' and `end` < '2025-02-23 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-02-23 06:06:17] Production.INFO: count ==114 [2025-02-23 06:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:06:05 - End Time 2025-02-23 06:06:05 [2025-02-23 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537807', 'tblTempUsageDetail_20' ) start [2025-02-23 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537807', 'tblTempUsageDetail_20' ) end [2025-02-23 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537807', 'tblTempVendorCDR_20' ) start [2025-02-23 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537807', 'tblTempVendorCDR_20' ) end [2025-02-23 06:06:17] Production.INFO: ProcessCDR(1,14537807,1,1,2) [2025-02-23 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537807', 'tblTempUsageDetail_20' ) start [2025-02-23 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537807', 'tblTempUsageDetail_20' ) end [2025-02-23 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:06:20] Production.INFO: ==18792== Releasing lock... [2025-02-23 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:07:05 [end_date_ymd] => 2025-02-23 06:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:07:05' and `end` < '2025-02-23 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-02-23 06:07:17] Production.INFO: count ==111 [2025-02-23 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:07:05 - End Time 2025-02-23 06:07:05 [2025-02-23 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537812', 'tblTempUsageDetail_20' ) start [2025-02-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537812', 'tblTempUsageDetail_20' ) end [2025-02-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537812', 'tblTempVendorCDR_20' ) start [2025-02-23 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537812', 'tblTempVendorCDR_20' ) end [2025-02-23 06:07:17] Production.INFO: ProcessCDR(1,14537812,1,1,2) [2025-02-23 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537812', 'tblTempUsageDetail_20' ) start [2025-02-23 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537812', 'tblTempUsageDetail_20' ) end [2025-02-23 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:07:20] Production.INFO: ==18862== Releasing lock... [2025-02-23 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:07:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:08:05 [end_date_ymd] => 2025-02-23 06:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:08:05' and `end` < '2025-02-23 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-02-23 06:08:17] Production.INFO: count ==110 [2025-02-23 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:08:05 - End Time 2025-02-23 06:08:05 [2025-02-23 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537817', 'tblTempUsageDetail_20' ) start [2025-02-23 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537817', 'tblTempUsageDetail_20' ) end [2025-02-23 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537817', 'tblTempVendorCDR_20' ) start [2025-02-23 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537817', 'tblTempVendorCDR_20' ) end [2025-02-23 06:08:17] Production.INFO: ProcessCDR(1,14537817,1,1,2) [2025-02-23 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537817', 'tblTempUsageDetail_20' ) start [2025-02-23 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537817', 'tblTempUsageDetail_20' ) end [2025-02-23 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:08:20] Production.INFO: ==18934== Releasing lock... [2025-02-23 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:08:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:09:06 [end_date_ymd] => 2025-02-23 06:09:06 [RateCDR] => 1 ) [2025-02-23 06: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-02-23 03:09:06' and `end` < '2025-02-23 06: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-02-23 06:09:17] Production.INFO: count ==108 [2025-02-23 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:09:06 - End Time 2025-02-23 06:09:06 [2025-02-23 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537822', 'tblTempUsageDetail_20' ) start [2025-02-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537822', 'tblTempUsageDetail_20' ) end [2025-02-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537822', 'tblTempVendorCDR_20' ) start [2025-02-23 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537822', 'tblTempVendorCDR_20' ) end [2025-02-23 06:09:17] Production.INFO: ProcessCDR(1,14537822,1,1,2) [2025-02-23 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537822', 'tblTempUsageDetail_20' ) start [2025-02-23 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537822', 'tblTempUsageDetail_20' ) end [2025-02-23 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:09:21] Production.INFO: ==19010== Releasing lock... [2025-02-23 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:10:06 [end_date_ymd] => 2025-02-23 06:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:10:06' and `end` < '2025-02-23 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-02-23 06:10:17] Production.INFO: count ==102 [2025-02-23 06:10:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:10:06 - End Time 2025-02-23 06:10:06 [2025-02-23 06:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537828', 'tblTempUsageDetail_20' ) start [2025-02-23 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537828', 'tblTempUsageDetail_20' ) end [2025-02-23 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537828', 'tblTempVendorCDR_20' ) start [2025-02-23 06:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537828', 'tblTempVendorCDR_20' ) end [2025-02-23 06:10:17] Production.INFO: ProcessCDR(1,14537828,1,1,2) [2025-02-23 06:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537828', 'tblTempUsageDetail_20' ) start [2025-02-23 06:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537828', 'tblTempUsageDetail_20' ) end [2025-02-23 06:10:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:10:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:10:20] Production.INFO: ==19089== Releasing lock... [2025-02-23 06:10:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:10:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:11:05 [end_date_ymd] => 2025-02-23 06:11:05 [RateCDR] => 1 ) [2025-02-23 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:11:05' and `end` < '2025-02-23 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:11:17] Production.INFO: count ==101 [2025-02-23 06:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:11:05 - End Time 2025-02-23 06:11:05 [2025-02-23 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537833', 'tblTempUsageDetail_20' ) start [2025-02-23 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537833', 'tblTempUsageDetail_20' ) end [2025-02-23 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537833', 'tblTempVendorCDR_20' ) start [2025-02-23 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537833', 'tblTempVendorCDR_20' ) end [2025-02-23 06:11:17] Production.INFO: ProcessCDR(1,14537833,1,1,2) [2025-02-23 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537833', 'tblTempUsageDetail_20' ) start [2025-02-23 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537833', 'tblTempUsageDetail_20' ) end [2025-02-23 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:11:20] Production.INFO: ==19170== Releasing lock... [2025-02-23 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:12:05 [end_date_ymd] => 2025-02-23 06:12:05 [RateCDR] => 1 ) [2025-02-23 06: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-02-23 03:12:05' and `end` < '2025-02-23 06: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-02-23 06:12:17] Production.INFO: count ==101 [2025-02-23 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:12:05 - End Time 2025-02-23 06:12:05 [2025-02-23 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537838', 'tblTempUsageDetail_20' ) start [2025-02-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537838', 'tblTempUsageDetail_20' ) end [2025-02-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537838', 'tblTempVendorCDR_20' ) start [2025-02-23 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537838', 'tblTempVendorCDR_20' ) end [2025-02-23 06:12:17] Production.INFO: ProcessCDR(1,14537838,1,1,2) [2025-02-23 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537838', 'tblTempUsageDetail_20' ) start [2025-02-23 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537838', 'tblTempUsageDetail_20' ) end [2025-02-23 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:12:20] Production.INFO: ==19241== Releasing lock... [2025-02-23 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:13:05 [end_date_ymd] => 2025-02-23 06:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:13:05' and `end` < '2025-02-23 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-02-23 06:13:17] Production.INFO: count ==101 [2025-02-23 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:13:05 - End Time 2025-02-23 06:13:05 [2025-02-23 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537843', 'tblTempUsageDetail_20' ) start [2025-02-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537843', 'tblTempUsageDetail_20' ) end [2025-02-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537843', 'tblTempVendorCDR_20' ) start [2025-02-23 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537843', 'tblTempVendorCDR_20' ) end [2025-02-23 06:13:17] Production.INFO: ProcessCDR(1,14537843,1,1,2) [2025-02-23 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537843', 'tblTempUsageDetail_20' ) start [2025-02-23 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537843', 'tblTempUsageDetail_20' ) end [2025-02-23 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:13:20] Production.INFO: ==19311== Releasing lock... [2025-02-23 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:14:05 [end_date_ymd] => 2025-02-23 06:14:05 [RateCDR] => 1 ) [2025-02-23 06:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:14:05' and `end` < '2025-02-23 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-02-23 06:14:17] Production.INFO: count ==101 [2025-02-23 06:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:14:05 - End Time 2025-02-23 06:14:05 [2025-02-23 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537848', 'tblTempUsageDetail_20' ) start [2025-02-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537848', 'tblTempUsageDetail_20' ) end [2025-02-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537848', 'tblTempVendorCDR_20' ) start [2025-02-23 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537848', 'tblTempVendorCDR_20' ) end [2025-02-23 06:14:17] Production.INFO: ProcessCDR(1,14537848,1,1,2) [2025-02-23 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537848', 'tblTempUsageDetail_20' ) start [2025-02-23 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537848', 'tblTempUsageDetail_20' ) end [2025-02-23 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:14:20] Production.INFO: ==19381== Releasing lock... [2025-02-23 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:15:05 [end_date_ymd] => 2025-02-23 06:15:05 [RateCDR] => 1 ) [2025-02-23 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:15:05' and `end` < '2025-02-23 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:15:17] Production.INFO: count ==101 [2025-02-23 06:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:15:05 - End Time 2025-02-23 06:15:05 [2025-02-23 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537853', 'tblTempUsageDetail_20' ) start [2025-02-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537853', 'tblTempUsageDetail_20' ) end [2025-02-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537853', 'tblTempVendorCDR_20' ) start [2025-02-23 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537853', 'tblTempVendorCDR_20' ) end [2025-02-23 06:15:17] Production.INFO: ProcessCDR(1,14537853,1,1,2) [2025-02-23 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537853', 'tblTempUsageDetail_20' ) start [2025-02-23 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537853', 'tblTempUsageDetail_20' ) end [2025-02-23 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:15:20] Production.INFO: ==19491== Releasing lock... [2025-02-23 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:16:06 [end_date_ymd] => 2025-02-23 06:16:06 [RateCDR] => 1 ) [2025-02-23 06: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-02-23 03:16:06' and `end` < '2025-02-23 06: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-02-23 06:16:17] Production.INFO: count ==105 [2025-02-23 06:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:16:06 - End Time 2025-02-23 06:16:06 [2025-02-23 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537858', 'tblTempUsageDetail_20' ) start [2025-02-23 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537858', 'tblTempUsageDetail_20' ) end [2025-02-23 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537858', 'tblTempVendorCDR_20' ) start [2025-02-23 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537858', 'tblTempVendorCDR_20' ) end [2025-02-23 06:16:17] Production.INFO: ProcessCDR(1,14537858,1,1,2) [2025-02-23 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537858', 'tblTempUsageDetail_20' ) start [2025-02-23 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537858', 'tblTempUsageDetail_20' ) end [2025-02-23 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:16:20] Production.INFO: ==19560== Releasing lock... [2025-02-23 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:16:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:17:05 [end_date_ymd] => 2025-02-23 06:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:17:05' and `end` < '2025-02-23 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-02-23 06:17:17] Production.INFO: count ==105 [2025-02-23 06:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:17:05 - End Time 2025-02-23 06:17:05 [2025-02-23 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537863', 'tblTempUsageDetail_20' ) start [2025-02-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537863', 'tblTempUsageDetail_20' ) end [2025-02-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537863', 'tblTempVendorCDR_20' ) start [2025-02-23 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537863', 'tblTempVendorCDR_20' ) end [2025-02-23 06:17:17] Production.INFO: ProcessCDR(1,14537863,1,1,2) [2025-02-23 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537863', 'tblTempUsageDetail_20' ) start [2025-02-23 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537863', 'tblTempUsageDetail_20' ) end [2025-02-23 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:17:20] Production.INFO: ==19630== Releasing lock... [2025-02-23 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:17:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:18:05 [end_date_ymd] => 2025-02-23 06:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:18:05' and `end` < '2025-02-23 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-02-23 06:18:17] Production.INFO: count ==109 [2025-02-23 06:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:18:05 - End Time 2025-02-23 06:18:05 [2025-02-23 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537868', 'tblTempUsageDetail_20' ) start [2025-02-23 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537868', 'tblTempUsageDetail_20' ) end [2025-02-23 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537868', 'tblTempVendorCDR_20' ) start [2025-02-23 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537868', 'tblTempVendorCDR_20' ) end [2025-02-23 06:18:17] Production.INFO: ProcessCDR(1,14537868,1,1,2) [2025-02-23 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537868', 'tblTempUsageDetail_20' ) start [2025-02-23 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537868', 'tblTempUsageDetail_20' ) end [2025-02-23 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:18:20] Production.INFO: ==19701== Releasing lock... [2025-02-23 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:19:05 [end_date_ymd] => 2025-02-23 06:19:05 [RateCDR] => 1 ) [2025-02-23 06:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:19:05' and `end` < '2025-02-23 06:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:19:17] Production.INFO: count ==109 [2025-02-23 06:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:19:05 - End Time 2025-02-23 06:19:05 [2025-02-23 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537873', 'tblTempUsageDetail_20' ) start [2025-02-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537873', 'tblTempUsageDetail_20' ) end [2025-02-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537873', 'tblTempVendorCDR_20' ) start [2025-02-23 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537873', 'tblTempVendorCDR_20' ) end [2025-02-23 06:19:17] Production.INFO: ProcessCDR(1,14537873,1,1,2) [2025-02-23 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537873', 'tblTempUsageDetail_20' ) start [2025-02-23 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537873', 'tblTempUsageDetail_20' ) end [2025-02-23 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:19:20] Production.INFO: ==19773== Releasing lock... [2025-02-23 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:20:06 [end_date_ymd] => 2025-02-23 06:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:20:06' and `end` < '2025-02-23 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-02-23 06:20:18] Production.INFO: count ==111 [2025-02-23 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 03:20:06 - End Time 2025-02-23 06:20:06 [2025-02-23 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537879', 'tblTempUsageDetail_20' ) start [2025-02-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537879', 'tblTempUsageDetail_20' ) end [2025-02-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537879', 'tblTempVendorCDR_20' ) start [2025-02-23 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537879', 'tblTempVendorCDR_20' ) end [2025-02-23 06:20:18] Production.INFO: ProcessCDR(1,14537879,1,1,2) [2025-02-23 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537879', 'tblTempUsageDetail_20' ) start [2025-02-23 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537879', 'tblTempUsageDetail_20' ) end [2025-02-23 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:20:21] Production.INFO: ==19847== Releasing lock... [2025-02-23 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:21:05 [end_date_ymd] => 2025-02-23 06:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:21:05' and `end` < '2025-02-23 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-02-23 06:21:17] Production.INFO: count ==111 [2025-02-23 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:21:05 - End Time 2025-02-23 06:21:05 [2025-02-23 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537884', 'tblTempUsageDetail_20' ) start [2025-02-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537884', 'tblTempUsageDetail_20' ) end [2025-02-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537884', 'tblTempVendorCDR_20' ) start [2025-02-23 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537884', 'tblTempVendorCDR_20' ) end [2025-02-23 06:21:17] Production.INFO: ProcessCDR(1,14537884,1,1,2) [2025-02-23 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537884', 'tblTempUsageDetail_20' ) start [2025-02-23 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537884', 'tblTempUsageDetail_20' ) end [2025-02-23 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:21:20] Production.INFO: ==19918== Releasing lock... [2025-02-23 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:22:05 [end_date_ymd] => 2025-02-23 06:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:22:05' and `end` < '2025-02-23 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-02-23 06:22:17] Production.INFO: count ==110 [2025-02-23 06:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:22:05 - End Time 2025-02-23 06:22:05 [2025-02-23 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537889', 'tblTempUsageDetail_20' ) start [2025-02-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537889', 'tblTempUsageDetail_20' ) end [2025-02-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537889', 'tblTempVendorCDR_20' ) start [2025-02-23 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537889', 'tblTempVendorCDR_20' ) end [2025-02-23 06:22:17] Production.INFO: ProcessCDR(1,14537889,1,1,2) [2025-02-23 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537889', 'tblTempUsageDetail_20' ) start [2025-02-23 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537889', 'tblTempUsageDetail_20' ) end [2025-02-23 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:22:20] Production.INFO: ==19990== Releasing lock... [2025-02-23 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:22:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:23:04 [end_date_ymd] => 2025-02-23 06:23:04 [RateCDR] => 1 ) [2025-02-23 06: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-02-23 03:23:04' and `end` < '2025-02-23 06: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-02-23 06:23:16] Production.INFO: count ==110 [2025-02-23 06:23:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:23:04 - End Time 2025-02-23 06:23:04 [2025-02-23 06:23:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537894', 'tblTempUsageDetail_20' ) start [2025-02-23 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537894', 'tblTempUsageDetail_20' ) end [2025-02-23 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537894', 'tblTempVendorCDR_20' ) start [2025-02-23 06:23:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537894', 'tblTempVendorCDR_20' ) end [2025-02-23 06:23:16] Production.INFO: ProcessCDR(1,14537894,1,1,2) [2025-02-23 06:23:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:23:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:23:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:23:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537894', 'tblTempUsageDetail_20' ) start [2025-02-23 06:23:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537894', 'tblTempUsageDetail_20' ) end [2025-02-23 06:23:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:23:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:23:19] Production.INFO: ==20062== Releasing lock... [2025-02-23 06:23:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:23:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:24:05 [end_date_ymd] => 2025-02-23 06:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:24:05' and `end` < '2025-02-23 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-02-23 06:24:17] Production.INFO: count ==114 [2025-02-23 06:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:24:05 - End Time 2025-02-23 06:24:05 [2025-02-23 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537899', 'tblTempUsageDetail_20' ) start [2025-02-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537899', 'tblTempUsageDetail_20' ) end [2025-02-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537899', 'tblTempVendorCDR_20' ) start [2025-02-23 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537899', 'tblTempVendorCDR_20' ) end [2025-02-23 06:24:17] Production.INFO: ProcessCDR(1,14537899,1,1,2) [2025-02-23 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537899', 'tblTempUsageDetail_20' ) start [2025-02-23 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537899', 'tblTempUsageDetail_20' ) end [2025-02-23 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:24:20] Production.INFO: ==20135== Releasing lock... [2025-02-23 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:24:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:25:05 [end_date_ymd] => 2025-02-23 06:25:05 [RateCDR] => 1 ) [2025-02-23 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:25:05' and `end` < '2025-02-23 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:25:17] Production.INFO: count ==118 [2025-02-23 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:25:05 - End Time 2025-02-23 06:25:05 [2025-02-23 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537904', 'tblTempUsageDetail_20' ) start [2025-02-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537904', 'tblTempUsageDetail_20' ) end [2025-02-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537904', 'tblTempVendorCDR_20' ) start [2025-02-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537904', 'tblTempVendorCDR_20' ) end [2025-02-23 06:25:17] Production.INFO: ProcessCDR(1,14537904,1,1,2) [2025-02-23 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537904', 'tblTempUsageDetail_20' ) start [2025-02-23 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537904', 'tblTempUsageDetail_20' ) end [2025-02-23 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:25:20] Production.INFO: ==20205== Releasing lock... [2025-02-23 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:25:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:26:05 [end_date_ymd] => 2025-02-23 06:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:26:05' and `end` < '2025-02-23 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-02-23 06:26:17] Production.INFO: count ==118 [2025-02-23 06:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:26:05 - End Time 2025-02-23 06:26:05 [2025-02-23 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537909', 'tblTempUsageDetail_20' ) start [2025-02-23 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537909', 'tblTempUsageDetail_20' ) end [2025-02-23 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537909', 'tblTempVendorCDR_20' ) start [2025-02-23 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537909', 'tblTempVendorCDR_20' ) end [2025-02-23 06:26:17] Production.INFO: ProcessCDR(1,14537909,1,1,2) [2025-02-23 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537909', 'tblTempUsageDetail_20' ) start [2025-02-23 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537909', 'tblTempUsageDetail_20' ) end [2025-02-23 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:26:20] Production.INFO: ==20278== Releasing lock... [2025-02-23 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:26:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:27:05 [end_date_ymd] => 2025-02-23 06:27:05 [RateCDR] => 1 ) [2025-02-23 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:27:05' and `end` < '2025-02-23 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:27:17] Production.INFO: count ==118 [2025-02-23 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:27:05 - End Time 2025-02-23 06:27:05 [2025-02-23 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537914', 'tblTempUsageDetail_20' ) start [2025-02-23 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537914', 'tblTempUsageDetail_20' ) end [2025-02-23 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537914', 'tblTempVendorCDR_20' ) start [2025-02-23 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537914', 'tblTempVendorCDR_20' ) end [2025-02-23 06:27:17] Production.INFO: ProcessCDR(1,14537914,1,1,2) [2025-02-23 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537914', 'tblTempUsageDetail_20' ) start [2025-02-23 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537914', 'tblTempUsageDetail_20' ) end [2025-02-23 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:27:20] Production.INFO: ==20348== Releasing lock... [2025-02-23 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:27:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:28:05 [end_date_ymd] => 2025-02-23 06:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:28:05' and `end` < '2025-02-23 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-02-23 06:28:17] Production.INFO: count ==118 [2025-02-23 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:28:05 - End Time 2025-02-23 06:28:05 [2025-02-23 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537919', 'tblTempUsageDetail_20' ) start [2025-02-23 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537919', 'tblTempUsageDetail_20' ) end [2025-02-23 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537919', 'tblTempVendorCDR_20' ) start [2025-02-23 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537919', 'tblTempVendorCDR_20' ) end [2025-02-23 06:28:17] Production.INFO: ProcessCDR(1,14537919,1,1,2) [2025-02-23 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537919', 'tblTempUsageDetail_20' ) start [2025-02-23 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537919', 'tblTempUsageDetail_20' ) end [2025-02-23 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:28:20] Production.INFO: ==20419== Releasing lock... [2025-02-23 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:28:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:29:05 [end_date_ymd] => 2025-02-23 06:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:29:05' and `end` < '2025-02-23 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-02-23 06:29:17] Production.INFO: count ==118 [2025-02-23 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:29:05 - End Time 2025-02-23 06:29:05 [2025-02-23 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537924', 'tblTempUsageDetail_20' ) start [2025-02-23 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537924', 'tblTempUsageDetail_20' ) end [2025-02-23 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537924', 'tblTempVendorCDR_20' ) start [2025-02-23 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537924', 'tblTempVendorCDR_20' ) end [2025-02-23 06:29:17] Production.INFO: ProcessCDR(1,14537924,1,1,2) [2025-02-23 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537924', 'tblTempUsageDetail_20' ) start [2025-02-23 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537924', 'tblTempUsageDetail_20' ) end [2025-02-23 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:29:20] Production.INFO: ==20494== Releasing lock... [2025-02-23 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:29:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:30:05 [end_date_ymd] => 2025-02-23 06:30:05 [RateCDR] => 1 ) [2025-02-23 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:30:05' and `end` < '2025-02-23 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:30:17] Production.INFO: count ==116 [2025-02-23 06:30:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:30:05 - End Time 2025-02-23 06:30:05 [2025-02-23 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537930', 'tblTempUsageDetail_20' ) start [2025-02-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537930', 'tblTempUsageDetail_20' ) end [2025-02-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537930', 'tblTempVendorCDR_20' ) start [2025-02-23 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537930', 'tblTempVendorCDR_20' ) end [2025-02-23 06:30:17] Production.INFO: ProcessCDR(1,14537930,1,1,2) [2025-02-23 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537930', 'tblTempUsageDetail_20' ) start [2025-02-23 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537930', 'tblTempUsageDetail_20' ) end [2025-02-23 06:30:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:30:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:30:20] Production.INFO: ==20567== Releasing lock... [2025-02-23 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:30:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:31:05 [end_date_ymd] => 2025-02-23 06:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:31:05' and `end` < '2025-02-23 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-02-23 06:31:17] Production.INFO: count ==106 [2025-02-23 06:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:31:05 - End Time 2025-02-23 06:31:05 [2025-02-23 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537935', 'tblTempUsageDetail_20' ) start [2025-02-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537935', 'tblTempUsageDetail_20' ) end [2025-02-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537935', 'tblTempVendorCDR_20' ) start [2025-02-23 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537935', 'tblTempVendorCDR_20' ) end [2025-02-23 06:31:17] Production.INFO: ProcessCDR(1,14537935,1,1,2) [2025-02-23 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537935', 'tblTempUsageDetail_20' ) start [2025-02-23 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537935', 'tblTempUsageDetail_20' ) end [2025-02-23 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:31:20] Production.INFO: ==20679== Releasing lock... [2025-02-23 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:31:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:32:05 [end_date_ymd] => 2025-02-23 06:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:32:05' and `end` < '2025-02-23 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-02-23 06:32:17] Production.INFO: count ==106 [2025-02-23 06:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:32:05 - End Time 2025-02-23 06:32:05 [2025-02-23 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537940', 'tblTempUsageDetail_20' ) start [2025-02-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537940', 'tblTempUsageDetail_20' ) end [2025-02-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537940', 'tblTempVendorCDR_20' ) start [2025-02-23 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537940', 'tblTempVendorCDR_20' ) end [2025-02-23 06:32:17] Production.INFO: ProcessCDR(1,14537940,1,1,2) [2025-02-23 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537940', 'tblTempUsageDetail_20' ) start [2025-02-23 06:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537940', 'tblTempUsageDetail_20' ) end [2025-02-23 06:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:32:20] Production.INFO: ==20750== Releasing lock... [2025-02-23 06:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:32:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:33:05 [end_date_ymd] => 2025-02-23 06:33:05 [RateCDR] => 1 ) [2025-02-23 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:33:05' and `end` < '2025-02-23 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:33:17] Production.INFO: count ==106 [2025-02-23 06:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:33:05 - End Time 2025-02-23 06:33:05 [2025-02-23 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537945', 'tblTempUsageDetail_20' ) start [2025-02-23 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537945', 'tblTempUsageDetail_20' ) end [2025-02-23 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537945', 'tblTempVendorCDR_20' ) start [2025-02-23 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537945', 'tblTempVendorCDR_20' ) end [2025-02-23 06:33:17] Production.INFO: ProcessCDR(1,14537945,1,1,2) [2025-02-23 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537945', 'tblTempUsageDetail_20' ) start [2025-02-23 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537945', 'tblTempUsageDetail_20' ) end [2025-02-23 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:33:20] Production.INFO: ==20823== Releasing lock... [2025-02-23 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:33:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:34:05 [end_date_ymd] => 2025-02-23 06:34:05 [RateCDR] => 1 ) [2025-02-23 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:34:05' and `end` < '2025-02-23 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:34:16] Production.INFO: count ==106 [2025-02-23 06:34:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:34:05 - End Time 2025-02-23 06:34:05 [2025-02-23 06:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537950', 'tblTempUsageDetail_20' ) start [2025-02-23 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537950', 'tblTempUsageDetail_20' ) end [2025-02-23 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537950', 'tblTempVendorCDR_20' ) start [2025-02-23 06:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537950', 'tblTempVendorCDR_20' ) end [2025-02-23 06:34:16] Production.INFO: ProcessCDR(1,14537950,1,1,2) [2025-02-23 06:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537950', 'tblTempUsageDetail_20' ) start [2025-02-23 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537950', 'tblTempUsageDetail_20' ) end [2025-02-23 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:34:20] Production.INFO: ==20893== Releasing lock... [2025-02-23 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:34:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:35:05 [end_date_ymd] => 2025-02-23 06:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:35:05' and `end` < '2025-02-23 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-02-23 06:35:16] Production.INFO: count ==106 [2025-02-23 06:35:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:35:05 - End Time 2025-02-23 06:35:05 [2025-02-23 06:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537955', 'tblTempUsageDetail_20' ) start [2025-02-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537955', 'tblTempUsageDetail_20' ) end [2025-02-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537955', 'tblTempVendorCDR_20' ) start [2025-02-23 06:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537955', 'tblTempVendorCDR_20' ) end [2025-02-23 06:35:16] Production.INFO: ProcessCDR(1,14537955,1,1,2) [2025-02-23 06:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:35:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537955', 'tblTempUsageDetail_20' ) start [2025-02-23 06:35:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537955', 'tblTempUsageDetail_20' ) end [2025-02-23 06:35:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:35:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:35:19] Production.INFO: ==20964== Releasing lock... [2025-02-23 06:35:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:35:19] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:36:05 [end_date_ymd] => 2025-02-23 06:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:36:05' and `end` < '2025-02-23 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-02-23 06:36:17] Production.INFO: count ==104 [2025-02-23 06:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:36:05 - End Time 2025-02-23 06:36:05 [2025-02-23 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537960', 'tblTempUsageDetail_20' ) start [2025-02-23 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537960', 'tblTempUsageDetail_20' ) end [2025-02-23 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537960', 'tblTempVendorCDR_20' ) start [2025-02-23 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537960', 'tblTempVendorCDR_20' ) end [2025-02-23 06:36:17] Production.INFO: ProcessCDR(1,14537960,1,1,2) [2025-02-23 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537960', 'tblTempUsageDetail_20' ) start [2025-02-23 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537960', 'tblTempUsageDetail_20' ) end [2025-02-23 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:36:20] Production.INFO: ==21034== Releasing lock... [2025-02-23 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:36:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:37:05 [end_date_ymd] => 2025-02-23 06:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:37:05' and `end` < '2025-02-23 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-02-23 06:37:17] Production.INFO: count ==104 [2025-02-23 06:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:37:05 - End Time 2025-02-23 06:37:05 [2025-02-23 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537965', 'tblTempUsageDetail_20' ) start [2025-02-23 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537965', 'tblTempUsageDetail_20' ) end [2025-02-23 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537965', 'tblTempVendorCDR_20' ) start [2025-02-23 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537965', 'tblTempVendorCDR_20' ) end [2025-02-23 06:37:17] Production.INFO: ProcessCDR(1,14537965,1,1,2) [2025-02-23 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537965', 'tblTempUsageDetail_20' ) start [2025-02-23 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537965', 'tblTempUsageDetail_20' ) end [2025-02-23 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:37:20] Production.INFO: ==21106== Releasing lock... [2025-02-23 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:37:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:38:05 [end_date_ymd] => 2025-02-23 06:38:05 [RateCDR] => 1 ) [2025-02-23 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:38:05' and `end` < '2025-02-23 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:38:17] Production.INFO: count ==104 [2025-02-23 06:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:38:05 - End Time 2025-02-23 06:38:05 [2025-02-23 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537970', 'tblTempUsageDetail_20' ) start [2025-02-23 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537970', 'tblTempUsageDetail_20' ) end [2025-02-23 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537970', 'tblTempVendorCDR_20' ) start [2025-02-23 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537970', 'tblTempVendorCDR_20' ) end [2025-02-23 06:38:17] Production.INFO: ProcessCDR(1,14537970,1,1,2) [2025-02-23 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537970', 'tblTempUsageDetail_20' ) start [2025-02-23 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537970', 'tblTempUsageDetail_20' ) end [2025-02-23 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:38:20] Production.INFO: ==21179== Releasing lock... [2025-02-23 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:38:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:39:05 [end_date_ymd] => 2025-02-23 06:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:39:05' and `end` < '2025-02-23 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-02-23 06:39:17] Production.INFO: count ==104 [2025-02-23 06:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:39:05 - End Time 2025-02-23 06:39:05 [2025-02-23 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537975', 'tblTempUsageDetail_20' ) start [2025-02-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537975', 'tblTempUsageDetail_20' ) end [2025-02-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537975', 'tblTempVendorCDR_20' ) start [2025-02-23 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537975', 'tblTempVendorCDR_20' ) end [2025-02-23 06:39:17] Production.INFO: ProcessCDR(1,14537975,1,1,2) [2025-02-23 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537975', 'tblTempUsageDetail_20' ) start [2025-02-23 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537975', 'tblTempUsageDetail_20' ) end [2025-02-23 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:39:20] Production.INFO: ==21251== Releasing lock... [2025-02-23 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:39:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:40:05 [end_date_ymd] => 2025-02-23 06:40:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:40:05' and `end` < '2025-02-23 06: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-02-23 06:40:17] Production.INFO: count ==101 [2025-02-23 06:40:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:40:05 - End Time 2025-02-23 06:40:05 [2025-02-23 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537981', 'tblTempUsageDetail_20' ) start [2025-02-23 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537981', 'tblTempUsageDetail_20' ) end [2025-02-23 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537981', 'tblTempVendorCDR_20' ) start [2025-02-23 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537981', 'tblTempVendorCDR_20' ) end [2025-02-23 06:40:17] Production.INFO: ProcessCDR(1,14537981,1,1,2) [2025-02-23 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:40:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:40:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537981', 'tblTempUsageDetail_20' ) start [2025-02-23 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537981', 'tblTempUsageDetail_20' ) end [2025-02-23 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:40:21] Production.INFO: ==21328== Releasing lock... [2025-02-23 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:40:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:41:04 [end_date_ymd] => 2025-02-23 06:41:04 [RateCDR] => 1 ) [2025-02-23 06:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:41:04' and `end` < '2025-02-23 06:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:41:16] Production.INFO: count ==101 [2025-02-23 06:41:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:41:04 - End Time 2025-02-23 06:41:04 [2025-02-23 06:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537986', 'tblTempUsageDetail_20' ) start [2025-02-23 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537986', 'tblTempUsageDetail_20' ) end [2025-02-23 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537986', 'tblTempVendorCDR_20' ) start [2025-02-23 06:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537986', 'tblTempVendorCDR_20' ) end [2025-02-23 06:41:16] Production.INFO: ProcessCDR(1,14537986,1,1,2) [2025-02-23 06:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:41:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:41:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:41:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537986', 'tblTempUsageDetail_20' ) start [2025-02-23 06:41:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537986', 'tblTempUsageDetail_20' ) end [2025-02-23 06:41:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:41:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:41:19] Production.INFO: ==21405== Releasing lock... [2025-02-23 06:41:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:41:19] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:42:05 [end_date_ymd] => 2025-02-23 06:42:05 [RateCDR] => 1 ) [2025-02-23 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:42:05' and `end` < '2025-02-23 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:42:17] Production.INFO: count ==101 [2025-02-23 06:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:42:05 - End Time 2025-02-23 06:42:05 [2025-02-23 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537991', 'tblTempUsageDetail_20' ) start [2025-02-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537991', 'tblTempUsageDetail_20' ) end [2025-02-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537991', 'tblTempVendorCDR_20' ) start [2025-02-23 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537991', 'tblTempVendorCDR_20' ) end [2025-02-23 06:42:17] Production.INFO: ProcessCDR(1,14537991,1,1,2) [2025-02-23 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537991', 'tblTempUsageDetail_20' ) start [2025-02-23 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537991', 'tblTempUsageDetail_20' ) end [2025-02-23 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:42:20] Production.INFO: ==21479== Releasing lock... [2025-02-23 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:42:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:43:06 [end_date_ymd] => 2025-02-23 06:43:06 [RateCDR] => 1 ) [2025-02-23 06:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:43:06' and `end` < '2025-02-23 06:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:43:17] Production.INFO: count ==100 [2025-02-23 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:43:06 - End Time 2025-02-23 06:43:06 [2025-02-23 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537996', 'tblTempUsageDetail_20' ) start [2025-02-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14537996', 'tblTempUsageDetail_20' ) end [2025-02-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537996', 'tblTempVendorCDR_20' ) start [2025-02-23 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14537996', 'tblTempVendorCDR_20' ) end [2025-02-23 06:43:17] Production.INFO: ProcessCDR(1,14537996,1,1,2) [2025-02-23 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14537996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14537996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14537996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14537996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537996', 'tblTempUsageDetail_20' ) start [2025-02-23 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14537996', 'tblTempUsageDetail_20' ) end [2025-02-23 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:43:20] Production.INFO: ==21556== Releasing lock... [2025-02-23 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:43:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:44:05 [end_date_ymd] => 2025-02-23 06:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:44:05' and `end` < '2025-02-23 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-02-23 06:44:16] Production.INFO: count ==100 [2025-02-23 06:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:44:05 - End Time 2025-02-23 06:44:05 [2025-02-23 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538001', 'tblTempUsageDetail_20' ) start [2025-02-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538001', 'tblTempUsageDetail_20' ) end [2025-02-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538001', 'tblTempVendorCDR_20' ) start [2025-02-23 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538001', 'tblTempVendorCDR_20' ) end [2025-02-23 06:44:17] Production.INFO: ProcessCDR(1,14538001,1,1,2) [2025-02-23 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538001', 'tblTempUsageDetail_20' ) start [2025-02-23 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538001', 'tblTempUsageDetail_20' ) end [2025-02-23 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:44:20] Production.INFO: ==21630== Releasing lock... [2025-02-23 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:44:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:45:05 [end_date_ymd] => 2025-02-23 06:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:45:05' and `end` < '2025-02-23 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-02-23 06:45:17] Production.INFO: count ==99 [2025-02-23 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:45:05 - End Time 2025-02-23 06:45:05 [2025-02-23 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538006', 'tblTempUsageDetail_20' ) start [2025-02-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538006', 'tblTempUsageDetail_20' ) end [2025-02-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538006', 'tblTempVendorCDR_20' ) start [2025-02-23 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538006', 'tblTempVendorCDR_20' ) end [2025-02-23 06:45:17] Production.INFO: ProcessCDR(1,14538006,1,1,2) [2025-02-23 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538006', 'tblTempUsageDetail_20' ) start [2025-02-23 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538006', 'tblTempUsageDetail_20' ) end [2025-02-23 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:45:20] Production.INFO: ==21710== Releasing lock... [2025-02-23 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:46:04 [end_date_ymd] => 2025-02-23 06:46:04 [RateCDR] => 1 ) [2025-02-23 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:46:04' and `end` < '2025-02-23 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:46:16] Production.INFO: count ==99 [2025-02-23 06:46:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:46:04 - End Time 2025-02-23 06:46:04 [2025-02-23 06:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538011', 'tblTempUsageDetail_20' ) start [2025-02-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538011', 'tblTempUsageDetail_20' ) end [2025-02-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538011', 'tblTempVendorCDR_20' ) start [2025-02-23 06:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538011', 'tblTempVendorCDR_20' ) end [2025-02-23 06:46:16] Production.INFO: ProcessCDR(1,14538011,1,1,2) [2025-02-23 06:46:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:46:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:46:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:46:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538011', 'tblTempUsageDetail_20' ) start [2025-02-23 06:46:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538011', 'tblTempUsageDetail_20' ) end [2025-02-23 06:46:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:46:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:46:19] Production.INFO: ==21823== Releasing lock... [2025-02-23 06:46:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:46:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:47:05 [end_date_ymd] => 2025-02-23 06:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:47:05' and `end` < '2025-02-23 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-02-23 06:47:16] Production.INFO: count ==99 [2025-02-23 06:47:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:47:05 - End Time 2025-02-23 06:47:05 [2025-02-23 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538016', 'tblTempUsageDetail_20' ) start [2025-02-23 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538016', 'tblTempUsageDetail_20' ) end [2025-02-23 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538016', 'tblTempVendorCDR_20' ) start [2025-02-23 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538016', 'tblTempVendorCDR_20' ) end [2025-02-23 06:47:16] Production.INFO: ProcessCDR(1,14538016,1,1,2) [2025-02-23 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538016', 'tblTempUsageDetail_20' ) start [2025-02-23 06:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538016', 'tblTempUsageDetail_20' ) end [2025-02-23 06:47:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:47:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:47:19] Production.INFO: ==21899== Releasing lock... [2025-02-23 06:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:47:19] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:48:05 [end_date_ymd] => 2025-02-23 06:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:48:05' and `end` < '2025-02-23 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-02-23 06:48:16] Production.INFO: count ==99 [2025-02-23 06:48:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:48:05 - End Time 2025-02-23 06:48:05 [2025-02-23 06:48:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538021', 'tblTempUsageDetail_20' ) start [2025-02-23 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538021', 'tblTempUsageDetail_20' ) end [2025-02-23 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538021', 'tblTempVendorCDR_20' ) start [2025-02-23 06:48:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538021', 'tblTempVendorCDR_20' ) end [2025-02-23 06:48:16] Production.INFO: ProcessCDR(1,14538021,1,1,2) [2025-02-23 06:48:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:48:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:48:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538021', 'tblTempUsageDetail_20' ) start [2025-02-23 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538021', 'tblTempUsageDetail_20' ) end [2025-02-23 06:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:48:20] Production.INFO: ==21984== Releasing lock... [2025-02-23 06:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:48:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:49:05 [end_date_ymd] => 2025-02-23 06:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:49:05' and `end` < '2025-02-23 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-02-23 06:49:17] Production.INFO: count ==99 [2025-02-23 06:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:49:05 - End Time 2025-02-23 06:49:05 [2025-02-23 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538026', 'tblTempUsageDetail_20' ) start [2025-02-23 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538026', 'tblTempUsageDetail_20' ) end [2025-02-23 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538026', 'tblTempVendorCDR_20' ) start [2025-02-23 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538026', 'tblTempVendorCDR_20' ) end [2025-02-23 06:49:17] Production.INFO: ProcessCDR(1,14538026,1,1,2) [2025-02-23 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538026', 'tblTempUsageDetail_20' ) start [2025-02-23 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538026', 'tblTempUsageDetail_20' ) end [2025-02-23 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:49:20] Production.INFO: ==22060== Releasing lock... [2025-02-23 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-23 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:50:05 [end_date_ymd] => 2025-02-23 06:50:05 [RateCDR] => 1 ) [2025-02-23 06:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:50:05' and `end` < '2025-02-23 06:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:50:17] Production.INFO: count ==104 [2025-02-23 06:50:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:50:05 - End Time 2025-02-23 06:50:05 [2025-02-23 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538032', 'tblTempUsageDetail_20' ) start [2025-02-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538032', 'tblTempUsageDetail_20' ) end [2025-02-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538032', 'tblTempVendorCDR_20' ) start [2025-02-23 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538032', 'tblTempVendorCDR_20' ) end [2025-02-23 06:50:17] Production.INFO: ProcessCDR(1,14538032,1,1,2) [2025-02-23 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538032', 'tblTempUsageDetail_20' ) start [2025-02-23 06:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538032', 'tblTempUsageDetail_20' ) end [2025-02-23 06:50:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:50:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:50:20] Production.INFO: ==22146== Releasing lock... [2025-02-23 06:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:50:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:51:05 [end_date_ymd] => 2025-02-23 06:51:05 [RateCDR] => 1 ) [2025-02-23 06:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:51:05' and `end` < '2025-02-23 06:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:51:17] Production.INFO: count ==104 [2025-02-23 06:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:51:05 - End Time 2025-02-23 06:51:05 [2025-02-23 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538037', 'tblTempUsageDetail_20' ) start [2025-02-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538037', 'tblTempUsageDetail_20' ) end [2025-02-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538037', 'tblTempVendorCDR_20' ) start [2025-02-23 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538037', 'tblTempVendorCDR_20' ) end [2025-02-23 06:51:17] Production.INFO: ProcessCDR(1,14538037,1,1,2) [2025-02-23 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538037', 'tblTempUsageDetail_20' ) start [2025-02-23 06:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538037', 'tblTempUsageDetail_20' ) end [2025-02-23 06:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:51:20] Production.INFO: ==22224== Releasing lock... [2025-02-23 06:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:51:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:52:05 [end_date_ymd] => 2025-02-23 06:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:52:05' and `end` < '2025-02-23 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-02-23 06:52:17] Production.INFO: count ==109 [2025-02-23 06:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:52:05 - End Time 2025-02-23 06:52:05 [2025-02-23 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538042', 'tblTempUsageDetail_20' ) start [2025-02-23 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538042', 'tblTempUsageDetail_20' ) end [2025-02-23 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538042', 'tblTempVendorCDR_20' ) start [2025-02-23 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538042', 'tblTempVendorCDR_20' ) end [2025-02-23 06:52:17] Production.INFO: ProcessCDR(1,14538042,1,1,2) [2025-02-23 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538042', 'tblTempUsageDetail_20' ) start [2025-02-23 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538042', 'tblTempUsageDetail_20' ) end [2025-02-23 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:52:20] Production.INFO: ==22302== Releasing lock... [2025-02-23 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:52:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:53:05 [end_date_ymd] => 2025-02-23 06:53:05 [RateCDR] => 1 ) [2025-02-23 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:53:05' and `end` < '2025-02-23 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:53:17] Production.INFO: count ==114 [2025-02-23 06:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:53:05 - End Time 2025-02-23 06:53:05 [2025-02-23 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538047', 'tblTempUsageDetail_20' ) start [2025-02-23 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538047', 'tblTempUsageDetail_20' ) end [2025-02-23 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538047', 'tblTempVendorCDR_20' ) start [2025-02-23 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538047', 'tblTempVendorCDR_20' ) end [2025-02-23 06:53:17] Production.INFO: ProcessCDR(1,14538047,1,1,2) [2025-02-23 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538047', 'tblTempUsageDetail_20' ) start [2025-02-23 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538047', 'tblTempUsageDetail_20' ) end [2025-02-23 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:53:20] Production.INFO: ==22388== Releasing lock... [2025-02-23 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:54:05 [end_date_ymd] => 2025-02-23 06:54:05 [RateCDR] => 1 ) [2025-02-23 06:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:54:05' and `end` < '2025-02-23 06:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:54:17] Production.INFO: count ==114 [2025-02-23 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:54:05 - End Time 2025-02-23 06:54:05 [2025-02-23 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538052', 'tblTempUsageDetail_20' ) start [2025-02-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538052', 'tblTempUsageDetail_20' ) end [2025-02-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538052', 'tblTempVendorCDR_20' ) start [2025-02-23 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538052', 'tblTempVendorCDR_20' ) end [2025-02-23 06:54:17] Production.INFO: ProcessCDR(1,14538052,1,1,2) [2025-02-23 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538052', 'tblTempUsageDetail_20' ) start [2025-02-23 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538052', 'tblTempUsageDetail_20' ) end [2025-02-23 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:54:20] Production.INFO: ==22469== Releasing lock... [2025-02-23 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:55:05 [end_date_ymd] => 2025-02-23 06:55:05 [RateCDR] => 1 ) [2025-02-23 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 03:55:05' and `end` < '2025-02-23 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 06:55:17] Production.INFO: count ==114 [2025-02-23 06:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:55:05 - End Time 2025-02-23 06:55:05 [2025-02-23 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538057', 'tblTempUsageDetail_20' ) start [2025-02-23 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538057', 'tblTempUsageDetail_20' ) end [2025-02-23 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538057', 'tblTempVendorCDR_20' ) start [2025-02-23 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538057', 'tblTempVendorCDR_20' ) end [2025-02-23 06:55:17] Production.INFO: ProcessCDR(1,14538057,1,1,2) [2025-02-23 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538057', 'tblTempUsageDetail_20' ) start [2025-02-23 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538057', 'tblTempUsageDetail_20' ) end [2025-02-23 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:55:20] Production.INFO: ==22552== Releasing lock... [2025-02-23 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:56:05 [end_date_ymd] => 2025-02-23 06:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:56:05' and `end` < '2025-02-23 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-02-23 06:56:17] Production.INFO: count ==114 [2025-02-23 06:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:56:05 - End Time 2025-02-23 06:56:05 [2025-02-23 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538062', 'tblTempUsageDetail_20' ) start [2025-02-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538062', 'tblTempUsageDetail_20' ) end [2025-02-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538062', 'tblTempVendorCDR_20' ) start [2025-02-23 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538062', 'tblTempVendorCDR_20' ) end [2025-02-23 06:56:17] Production.INFO: ProcessCDR(1,14538062,1,1,2) [2025-02-23 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538062', 'tblTempUsageDetail_20' ) start [2025-02-23 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538062', 'tblTempUsageDetail_20' ) end [2025-02-23 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:56:20] Production.INFO: ==22647== Releasing lock... [2025-02-23 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:56:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:57:04 [end_date_ymd] => 2025-02-23 06:57:04 [RateCDR] => 1 ) [2025-02-23 06: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-02-23 03:57:04' and `end` < '2025-02-23 06: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-02-23 06:57:16] Production.INFO: count ==114 [2025-02-23 06:57:16] Production.ERROR: pbx CDR StartTime 2025-02-23 03:57:04 - End Time 2025-02-23 06:57:04 [2025-02-23 06:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538067', 'tblTempUsageDetail_20' ) start [2025-02-23 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538067', 'tblTempUsageDetail_20' ) end [2025-02-23 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538067', 'tblTempVendorCDR_20' ) start [2025-02-23 06:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538067', 'tblTempVendorCDR_20' ) end [2025-02-23 06:57:16] Production.INFO: ProcessCDR(1,14538067,1,1,2) [2025-02-23 06:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:57:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538067', 'tblTempUsageDetail_20' ) start [2025-02-23 06:57:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538067', 'tblTempUsageDetail_20' ) end [2025-02-23 06:57:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:57:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:57:19] Production.INFO: ==22736== Releasing lock... [2025-02-23 06:57:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:57:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:58:05 [end_date_ymd] => 2025-02-23 06:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:58:05' and `end` < '2025-02-23 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-02-23 06:58:17] Production.INFO: count ==112 [2025-02-23 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:58:05 - End Time 2025-02-23 06:58:05 [2025-02-23 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538072', 'tblTempUsageDetail_20' ) start [2025-02-23 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538072', 'tblTempUsageDetail_20' ) end [2025-02-23 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538072', 'tblTempVendorCDR_20' ) start [2025-02-23 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538072', 'tblTempVendorCDR_20' ) end [2025-02-23 06:58:17] Production.INFO: ProcessCDR(1,14538072,1,1,2) [2025-02-23 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538072', 'tblTempUsageDetail_20' ) start [2025-02-23 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538072', 'tblTempUsageDetail_20' ) end [2025-02-23 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:58:20] Production.INFO: ==22820== Releasing lock... [2025-02-23 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:58:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 03:59:05 [end_date_ymd] => 2025-02-23 06:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 03:59:05' and `end` < '2025-02-23 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-02-23 06:59:17] Production.INFO: count ==110 [2025-02-23 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 03:59:05 - End Time 2025-02-23 06:59:05 [2025-02-23 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538077', 'tblTempUsageDetail_20' ) start [2025-02-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538077', 'tblTempUsageDetail_20' ) end [2025-02-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538077', 'tblTempVendorCDR_20' ) start [2025-02-23 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538077', 'tblTempVendorCDR_20' ) end [2025-02-23 06:59:17] Production.INFO: ProcessCDR(1,14538077,1,1,2) [2025-02-23 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538077', 'tblTempUsageDetail_20' ) start [2025-02-23 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538077', 'tblTempUsageDetail_20' ) end [2025-02-23 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 06:59:20] Production.INFO: ==22910== Releasing lock... [2025-02-23 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 06:59:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:00:06 [end_date_ymd] => 2025-02-23 07:00:06 [RateCDR] => 1 ) [2025-02-23 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:00:06' and `end` < '2025-02-23 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:00:18] Production.INFO: count ==116 [2025-02-23 07:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:00:06 - End Time 2025-02-23 07:00:06 [2025-02-23 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538083', 'tblTempUsageDetail_20' ) start [2025-02-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538083', 'tblTempUsageDetail_20' ) end [2025-02-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538083', 'tblTempVendorCDR_20' ) start [2025-02-23 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538083', 'tblTempVendorCDR_20' ) end [2025-02-23 07:00:18] Production.INFO: ProcessCDR(1,14538083,1,1,2) [2025-02-23 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538083', 'tblTempUsageDetail_20' ) start [2025-02-23 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538083', 'tblTempUsageDetail_20' ) end [2025-02-23 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:00:21] Production.INFO: ==22995== Releasing lock... [2025-02-23 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:01:05 [end_date_ymd] => 2025-02-23 07:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:01:05' and `end` < '2025-02-23 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-02-23 07:01:17] Production.INFO: count ==116 [2025-02-23 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:01:05 - End Time 2025-02-23 07:01:05 [2025-02-23 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538088', 'tblTempUsageDetail_20' ) start [2025-02-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538088', 'tblTempUsageDetail_20' ) end [2025-02-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538088', 'tblTempVendorCDR_20' ) start [2025-02-23 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538088', 'tblTempVendorCDR_20' ) end [2025-02-23 07:01:17] Production.INFO: ProcessCDR(1,14538088,1,1,2) [2025-02-23 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538088', 'tblTempUsageDetail_20' ) start [2025-02-23 07:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538088', 'tblTempUsageDetail_20' ) end [2025-02-23 07:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:01:20] Production.INFO: ==23094== Releasing lock... [2025-02-23 07:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:01:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:02:05 [end_date_ymd] => 2025-02-23 07:02:05 [RateCDR] => 1 ) [2025-02-23 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:02:05' and `end` < '2025-02-23 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:02:18] Production.INFO: count ==120 [2025-02-23 07:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:02:05 - End Time 2025-02-23 07:02:05 [2025-02-23 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538093', 'tblTempUsageDetail_20' ) start [2025-02-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538093', 'tblTempUsageDetail_20' ) end [2025-02-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538093', 'tblTempVendorCDR_20' ) start [2025-02-23 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538093', 'tblTempVendorCDR_20' ) end [2025-02-23 07:02:18] Production.INFO: ProcessCDR(1,14538093,1,1,2) [2025-02-23 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538093', 'tblTempUsageDetail_20' ) start [2025-02-23 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538093', 'tblTempUsageDetail_20' ) end [2025-02-23 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:02:21] Production.INFO: ==23299== Releasing lock... [2025-02-23 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:03:06 [end_date_ymd] => 2025-02-23 07:03:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:03:06' and `end` < '2025-02-23 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-02-23 07:03:18] Production.INFO: count ==112 [2025-02-23 07:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:03:06 - End Time 2025-02-23 07:03:06 [2025-02-23 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538098', 'tblTempUsageDetail_20' ) start [2025-02-23 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538098', 'tblTempUsageDetail_20' ) end [2025-02-23 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538098', 'tblTempVendorCDR_20' ) start [2025-02-23 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538098', 'tblTempVendorCDR_20' ) end [2025-02-23 07:03:18] Production.INFO: ProcessCDR(1,14538098,1,1,2) [2025-02-23 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538098', 'tblTempUsageDetail_20' ) start [2025-02-23 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538098', 'tblTempUsageDetail_20' ) end [2025-02-23 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:03:21] Production.INFO: ==23379== Releasing lock... [2025-02-23 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:04:05 [end_date_ymd] => 2025-02-23 07:04:05 [RateCDR] => 1 ) [2025-02-23 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:04:05' and `end` < '2025-02-23 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:04:18] Production.INFO: count ==109 [2025-02-23 07:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:04:05 - End Time 2025-02-23 07:04:05 [2025-02-23 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538103', 'tblTempUsageDetail_20' ) start [2025-02-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538103', 'tblTempUsageDetail_20' ) end [2025-02-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538103', 'tblTempVendorCDR_20' ) start [2025-02-23 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538103', 'tblTempVendorCDR_20' ) end [2025-02-23 07:04:18] Production.INFO: ProcessCDR(1,14538103,1,1,2) [2025-02-23 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538103', 'tblTempUsageDetail_20' ) start [2025-02-23 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538103', 'tblTempUsageDetail_20' ) end [2025-02-23 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:04:21] Production.INFO: ==23471== Releasing lock... [2025-02-23 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:05:05 [end_date_ymd] => 2025-02-23 07:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:05:05' and `end` < '2025-02-23 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-02-23 07:05:18] Production.INFO: count ==109 [2025-02-23 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:05:05 - End Time 2025-02-23 07:05:05 [2025-02-23 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538108', 'tblTempUsageDetail_20' ) start [2025-02-23 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538108', 'tblTempUsageDetail_20' ) end [2025-02-23 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538108', 'tblTempVendorCDR_20' ) start [2025-02-23 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538108', 'tblTempVendorCDR_20' ) end [2025-02-23 07:05:18] Production.INFO: ProcessCDR(1,14538108,1,1,2) [2025-02-23 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538108', 'tblTempUsageDetail_20' ) start [2025-02-23 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538108', 'tblTempUsageDetail_20' ) end [2025-02-23 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:05:21] Production.INFO: ==23633== Releasing lock... [2025-02-23 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:06:05 [end_date_ymd] => 2025-02-23 07:06:05 [RateCDR] => 1 ) [2025-02-23 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:06:05' and `end` < '2025-02-23 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:06:17] Production.INFO: count ==105 [2025-02-23 07:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:06:05 - End Time 2025-02-23 07:06:05 [2025-02-23 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538113', 'tblTempUsageDetail_20' ) start [2025-02-23 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538113', 'tblTempUsageDetail_20' ) end [2025-02-23 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538113', 'tblTempVendorCDR_20' ) start [2025-02-23 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538113', 'tblTempVendorCDR_20' ) end [2025-02-23 07:06:17] Production.INFO: ProcessCDR(1,14538113,1,1,2) [2025-02-23 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538113', 'tblTempUsageDetail_20' ) start [2025-02-23 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538113', 'tblTempUsageDetail_20' ) end [2025-02-23 07:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:06:20] Production.INFO: ==23718== Releasing lock... [2025-02-23 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:06:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:07:05 [end_date_ymd] => 2025-02-23 07:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:07:05' and `end` < '2025-02-23 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-02-23 07:07:17] Production.INFO: count ==105 [2025-02-23 07:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:07:05 - End Time 2025-02-23 07:07:05 [2025-02-23 07:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538118', 'tblTempUsageDetail_20' ) start [2025-02-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538118', 'tblTempUsageDetail_20' ) end [2025-02-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538118', 'tblTempVendorCDR_20' ) start [2025-02-23 07:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538118', 'tblTempVendorCDR_20' ) end [2025-02-23 07:07:17] Production.INFO: ProcessCDR(1,14538118,1,1,2) [2025-02-23 07:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538118', 'tblTempUsageDetail_20' ) start [2025-02-23 07:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538118', 'tblTempUsageDetail_20' ) end [2025-02-23 07:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:07:20] Production.INFO: ==23805== Releasing lock... [2025-02-23 07:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:07:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:08:04 [end_date_ymd] => 2025-02-23 07:08:04 [RateCDR] => 1 ) [2025-02-23 07:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:08:04' and `end` < '2025-02-23 07:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:08:16] Production.INFO: count ==105 [2025-02-23 07:08:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:08:04 - End Time 2025-02-23 07:08:04 [2025-02-23 07:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538123', 'tblTempUsageDetail_20' ) start [2025-02-23 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538123', 'tblTempUsageDetail_20' ) end [2025-02-23 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538123', 'tblTempVendorCDR_20' ) start [2025-02-23 07:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538123', 'tblTempVendorCDR_20' ) end [2025-02-23 07:08:16] Production.INFO: ProcessCDR(1,14538123,1,1,2) [2025-02-23 07:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538123', 'tblTempUsageDetail_20' ) start [2025-02-23 07:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538123', 'tblTempUsageDetail_20' ) end [2025-02-23 07:08:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:08:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:08:19] Production.INFO: ==23919== Releasing lock... [2025-02-23 07:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:08:19] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:09:05 [end_date_ymd] => 2025-02-23 07:09:05 [RateCDR] => 1 ) [2025-02-23 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:09:05' and `end` < '2025-02-23 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:09:17] Production.INFO: count ==105 [2025-02-23 07:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:09:05 - End Time 2025-02-23 07:09:05 [2025-02-23 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538128', 'tblTempUsageDetail_20' ) start [2025-02-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538128', 'tblTempUsageDetail_20' ) end [2025-02-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538128', 'tblTempVendorCDR_20' ) start [2025-02-23 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538128', 'tblTempVendorCDR_20' ) end [2025-02-23 07:09:17] Production.INFO: ProcessCDR(1,14538128,1,1,2) [2025-02-23 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538128', 'tblTempUsageDetail_20' ) start [2025-02-23 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538128', 'tblTempUsageDetail_20' ) end [2025-02-23 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:09:22] Production.INFO: ==24062== Releasing lock... [2025-02-23 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:09:22] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:10:07 [end_date_ymd] => 2025-02-23 07:10:07 [RateCDR] => 1 ) [2025-02-23 07: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-02-23 04:10:07' and `end` < '2025-02-23 07: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-02-23 07:10:19] Production.INFO: count ==107 [2025-02-23 07:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 04:10:07 - End Time 2025-02-23 07:10:07 [2025-02-23 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538134', 'tblTempUsageDetail_20' ) start [2025-02-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538134', 'tblTempUsageDetail_20' ) end [2025-02-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538134', 'tblTempVendorCDR_20' ) start [2025-02-23 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538134', 'tblTempVendorCDR_20' ) end [2025-02-23 07:10:19] Production.INFO: ProcessCDR(1,14538134,1,1,2) [2025-02-23 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538134', 'tblTempUsageDetail_20' ) start [2025-02-23 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538134', 'tblTempUsageDetail_20' ) end [2025-02-23 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:10:22] Production.INFO: ==24153== Releasing lock... [2025-02-23 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:10:22] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:11:05 [end_date_ymd] => 2025-02-23 07:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:11:05' and `end` < '2025-02-23 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-02-23 07:11:17] Production.INFO: count ==109 [2025-02-23 07:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:11:05 - End Time 2025-02-23 07:11:05 [2025-02-23 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538139', 'tblTempUsageDetail_20' ) start [2025-02-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538139', 'tblTempUsageDetail_20' ) end [2025-02-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538139', 'tblTempVendorCDR_20' ) start [2025-02-23 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538139', 'tblTempVendorCDR_20' ) end [2025-02-23 07:11:17] Production.INFO: ProcessCDR(1,14538139,1,1,2) [2025-02-23 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538139', 'tblTempUsageDetail_20' ) start [2025-02-23 07:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538139', 'tblTempUsageDetail_20' ) end [2025-02-23 07:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:11:20] Production.INFO: ==24244== Releasing lock... [2025-02-23 07:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:11:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:12:05 [end_date_ymd] => 2025-02-23 07:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:12:05' and `end` < '2025-02-23 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-02-23 07:12:18] Production.INFO: count ==111 [2025-02-23 07:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:12:05 - End Time 2025-02-23 07:12:05 [2025-02-23 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538144', 'tblTempUsageDetail_20' ) start [2025-02-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538144', 'tblTempUsageDetail_20' ) end [2025-02-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538144', 'tblTempVendorCDR_20' ) start [2025-02-23 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538144', 'tblTempVendorCDR_20' ) end [2025-02-23 07:12:18] Production.INFO: ProcessCDR(1,14538144,1,1,2) [2025-02-23 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538144', 'tblTempUsageDetail_20' ) start [2025-02-23 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538144', 'tblTempUsageDetail_20' ) end [2025-02-23 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:12:21] Production.INFO: ==24408== Releasing lock... [2025-02-23 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:13:05 [end_date_ymd] => 2025-02-23 07:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:13:05' and `end` < '2025-02-23 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-02-23 07:13:17] Production.INFO: count ==111 [2025-02-23 07:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:13:05 - End Time 2025-02-23 07:13:05 [2025-02-23 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538149', 'tblTempUsageDetail_20' ) start [2025-02-23 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538149', 'tblTempUsageDetail_20' ) end [2025-02-23 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538149', 'tblTempVendorCDR_20' ) start [2025-02-23 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538149', 'tblTempVendorCDR_20' ) end [2025-02-23 07:13:17] Production.INFO: ProcessCDR(1,14538149,1,1,2) [2025-02-23 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538149', 'tblTempUsageDetail_20' ) start [2025-02-23 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538149', 'tblTempUsageDetail_20' ) end [2025-02-23 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:13:20] Production.INFO: ==24498== Releasing lock... [2025-02-23 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:13:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:14:05 [end_date_ymd] => 2025-02-23 07:14:05 [RateCDR] => 1 ) [2025-02-23 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:14:05' and `end` < '2025-02-23 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:14:17] Production.INFO: count ==112 [2025-02-23 07:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:14:05 - End Time 2025-02-23 07:14:05 [2025-02-23 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538154', 'tblTempUsageDetail_20' ) start [2025-02-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538154', 'tblTempUsageDetail_20' ) end [2025-02-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538154', 'tblTempVendorCDR_20' ) start [2025-02-23 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538154', 'tblTempVendorCDR_20' ) end [2025-02-23 07:14:17] Production.INFO: ProcessCDR(1,14538154,1,1,2) [2025-02-23 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538154', 'tblTempUsageDetail_20' ) start [2025-02-23 07:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538154', 'tblTempUsageDetail_20' ) end [2025-02-23 07:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:14:20] Production.INFO: ==24587== Releasing lock... [2025-02-23 07:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:15:05 [end_date_ymd] => 2025-02-23 07:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:15:05' and `end` < '2025-02-23 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-02-23 07:15:17] Production.INFO: count ==119 [2025-02-23 07:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:15:05 - End Time 2025-02-23 07:15:05 [2025-02-23 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538159', 'tblTempUsageDetail_20' ) start [2025-02-23 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538159', 'tblTempUsageDetail_20' ) end [2025-02-23 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538159', 'tblTempVendorCDR_20' ) start [2025-02-23 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538159', 'tblTempVendorCDR_20' ) end [2025-02-23 07:15:17] Production.INFO: ProcessCDR(1,14538159,1,1,2) [2025-02-23 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538159', 'tblTempUsageDetail_20' ) start [2025-02-23 07:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538159', 'tblTempUsageDetail_20' ) end [2025-02-23 07:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:15:20] Production.INFO: ==24710== Releasing lock... [2025-02-23 07:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:15:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:16:06 [end_date_ymd] => 2025-02-23 07:16:06 [RateCDR] => 1 ) [2025-02-23 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:16:06' and `end` < '2025-02-23 07: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-02-23 07:16:18] Production.INFO: count ==119 [2025-02-23 07:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:16:06 - End Time 2025-02-23 07:16:06 [2025-02-23 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538164', 'tblTempUsageDetail_20' ) start [2025-02-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538164', 'tblTempUsageDetail_20' ) end [2025-02-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538164', 'tblTempVendorCDR_20' ) start [2025-02-23 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538164', 'tblTempVendorCDR_20' ) end [2025-02-23 07:16:18] Production.INFO: ProcessCDR(1,14538164,1,1,2) [2025-02-23 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538164', 'tblTempUsageDetail_20' ) start [2025-02-23 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538164', 'tblTempUsageDetail_20' ) end [2025-02-23 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:16:21] Production.INFO: ==24836== Releasing lock... [2025-02-23 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:17:04 [end_date_ymd] => 2025-02-23 07:17:04 [RateCDR] => 1 ) [2025-02-23 07:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:17:04' and `end` < '2025-02-23 07:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:17:17] Production.INFO: count ==119 [2025-02-23 07:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:17:04 - End Time 2025-02-23 07:17:04 [2025-02-23 07:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538169', 'tblTempUsageDetail_20' ) start [2025-02-23 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538169', 'tblTempUsageDetail_20' ) end [2025-02-23 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538169', 'tblTempVendorCDR_20' ) start [2025-02-23 07:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538169', 'tblTempVendorCDR_20' ) end [2025-02-23 07:17:17] Production.INFO: ProcessCDR(1,14538169,1,1,2) [2025-02-23 07:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538169', 'tblTempUsageDetail_20' ) start [2025-02-23 07:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538169', 'tblTempUsageDetail_20' ) end [2025-02-23 07:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:17:20] Production.INFO: ==24959== Releasing lock... [2025-02-23 07:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:17:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:18:05 [end_date_ymd] => 2025-02-23 07:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:18:05' and `end` < '2025-02-23 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-02-23 07:18:17] Production.INFO: count ==119 [2025-02-23 07:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:18:05 - End Time 2025-02-23 07:18:05 [2025-02-23 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538174', 'tblTempUsageDetail_20' ) start [2025-02-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538174', 'tblTempUsageDetail_20' ) end [2025-02-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538174', 'tblTempVendorCDR_20' ) start [2025-02-23 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538174', 'tblTempVendorCDR_20' ) end [2025-02-23 07:18:17] Production.INFO: ProcessCDR(1,14538174,1,1,2) [2025-02-23 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538174', 'tblTempUsageDetail_20' ) start [2025-02-23 07:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538174', 'tblTempUsageDetail_20' ) end [2025-02-23 07:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:18:20] Production.INFO: ==25039== Releasing lock... [2025-02-23 07:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:18:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:19:05 [end_date_ymd] => 2025-02-23 07:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:19:05' and `end` < '2025-02-23 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-02-23 07:19:17] Production.INFO: count ==119 [2025-02-23 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:19:05 - End Time 2025-02-23 07:19:05 [2025-02-23 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538179', 'tblTempUsageDetail_20' ) start [2025-02-23 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538179', 'tblTempUsageDetail_20' ) end [2025-02-23 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538179', 'tblTempVendorCDR_20' ) start [2025-02-23 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538179', 'tblTempVendorCDR_20' ) end [2025-02-23 07:19:17] Production.INFO: ProcessCDR(1,14538179,1,1,2) [2025-02-23 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538179', 'tblTempUsageDetail_20' ) start [2025-02-23 07:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538179', 'tblTempUsageDetail_20' ) end [2025-02-23 07:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:19:20] Production.INFO: ==25124== Releasing lock... [2025-02-23 07:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:19:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:20:05 [end_date_ymd] => 2025-02-23 07:20:05 [RateCDR] => 1 ) [2025-02-23 07: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-02-23 04:20:05' and `end` < '2025-02-23 07: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-02-23 07:20:17] Production.INFO: count ==121 [2025-02-23 07:20:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:20:05 - End Time 2025-02-23 07:20:05 [2025-02-23 07:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538184', 'tblTempUsageDetail_20' ) start [2025-02-23 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538184', 'tblTempUsageDetail_20' ) end [2025-02-23 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538184', 'tblTempVendorCDR_20' ) start [2025-02-23 07:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538184', 'tblTempVendorCDR_20' ) end [2025-02-23 07:20:17] Production.INFO: ProcessCDR(1,14538184,1,1,2) [2025-02-23 07:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:20:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:20:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:20:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538184', 'tblTempUsageDetail_20' ) start [2025-02-23 07:20:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538184', 'tblTempUsageDetail_20' ) end [2025-02-23 07:20:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:20:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:20:20] Production.INFO: ==25206== Releasing lock... [2025-02-23 07:20:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:20:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:21:05 [end_date_ymd] => 2025-02-23 07:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:21:05' and `end` < '2025-02-23 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-02-23 07:21:18] Production.INFO: count ==121 [2025-02-23 07:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:21:05 - End Time 2025-02-23 07:21:05 [2025-02-23 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538190', 'tblTempUsageDetail_20' ) start [2025-02-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538190', 'tblTempUsageDetail_20' ) end [2025-02-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538190', 'tblTempVendorCDR_20' ) start [2025-02-23 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538190', 'tblTempVendorCDR_20' ) end [2025-02-23 07:21:18] Production.INFO: ProcessCDR(1,14538190,1,1,2) [2025-02-23 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538190', 'tblTempUsageDetail_20' ) start [2025-02-23 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538190', 'tblTempUsageDetail_20' ) end [2025-02-23 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:21:21] Production.INFO: ==25293== Releasing lock... [2025-02-23 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:22:05 [end_date_ymd] => 2025-02-23 07:22:05 [RateCDR] => 1 ) [2025-02-23 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:22:05' and `end` < '2025-02-23 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:22:17] Production.INFO: count ==121 [2025-02-23 07:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:22:05 - End Time 2025-02-23 07:22:05 [2025-02-23 07:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538195', 'tblTempUsageDetail_20' ) start [2025-02-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538195', 'tblTempUsageDetail_20' ) end [2025-02-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538195', 'tblTempVendorCDR_20' ) start [2025-02-23 07:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538195', 'tblTempVendorCDR_20' ) end [2025-02-23 07:22:17] Production.INFO: ProcessCDR(1,14538195,1,1,2) [2025-02-23 07:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538195', 'tblTempUsageDetail_20' ) start [2025-02-23 07:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538195', 'tblTempUsageDetail_20' ) end [2025-02-23 07:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:22:20] Production.INFO: ==25377== Releasing lock... [2025-02-23 07:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:22:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:23:05 [end_date_ymd] => 2025-02-23 07:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:23:05' and `end` < '2025-02-23 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-02-23 07:23:17] Production.INFO: count ==121 [2025-02-23 07:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:23:05 - End Time 2025-02-23 07:23:05 [2025-02-23 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538200', 'tblTempUsageDetail_20' ) start [2025-02-23 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538200', 'tblTempUsageDetail_20' ) end [2025-02-23 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538200', 'tblTempVendorCDR_20' ) start [2025-02-23 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538200', 'tblTempVendorCDR_20' ) end [2025-02-23 07:23:17] Production.INFO: ProcessCDR(1,14538200,1,1,2) [2025-02-23 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538200', 'tblTempUsageDetail_20' ) start [2025-02-23 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538200', 'tblTempUsageDetail_20' ) end [2025-02-23 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:23:20] Production.INFO: ==25460== Releasing lock... [2025-02-23 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:23:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:24:05 [end_date_ymd] => 2025-02-23 07:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:24:05' and `end` < '2025-02-23 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-02-23 07:24:17] Production.INFO: count ==121 [2025-02-23 07:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:24:05 - End Time 2025-02-23 07:24:05 [2025-02-23 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538205', 'tblTempUsageDetail_20' ) start [2025-02-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538205', 'tblTempUsageDetail_20' ) end [2025-02-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538205', 'tblTempVendorCDR_20' ) start [2025-02-23 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538205', 'tblTempVendorCDR_20' ) end [2025-02-23 07:24:17] Production.INFO: ProcessCDR(1,14538205,1,1,2) [2025-02-23 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538205', 'tblTempUsageDetail_20' ) start [2025-02-23 07:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538205', 'tblTempUsageDetail_20' ) end [2025-02-23 07:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:24:20] Production.INFO: ==25547== Releasing lock... [2025-02-23 07:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:25:05 [end_date_ymd] => 2025-02-23 07:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:25:05' and `end` < '2025-02-23 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-02-23 07:25:17] Production.INFO: count ==121 [2025-02-23 07:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:25:05 - End Time 2025-02-23 07:25:05 [2025-02-23 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538210', 'tblTempUsageDetail_20' ) start [2025-02-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538210', 'tblTempUsageDetail_20' ) end [2025-02-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538210', 'tblTempVendorCDR_20' ) start [2025-02-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538210', 'tblTempVendorCDR_20' ) end [2025-02-23 07:25:17] Production.INFO: ProcessCDR(1,14538210,1,1,2) [2025-02-23 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538210', 'tblTempUsageDetail_20' ) start [2025-02-23 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538210', 'tblTempUsageDetail_20' ) end [2025-02-23 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:25:20] Production.INFO: ==25627== Releasing lock... [2025-02-23 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:25:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:26:05 [end_date_ymd] => 2025-02-23 07:26:05 [RateCDR] => 1 ) [2025-02-23 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:26:05' and `end` < '2025-02-23 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:26:16] Production.INFO: count ==122 [2025-02-23 07:26:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:26:05 - End Time 2025-02-23 07:26:05 [2025-02-23 07:26:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538215', 'tblTempUsageDetail_20' ) start [2025-02-23 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538215', 'tblTempUsageDetail_20' ) end [2025-02-23 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538215', 'tblTempVendorCDR_20' ) start [2025-02-23 07:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538215', 'tblTempVendorCDR_20' ) end [2025-02-23 07:26:16] Production.INFO: ProcessCDR(1,14538215,1,1,2) [2025-02-23 07:26:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538215', 'tblTempUsageDetail_20' ) start [2025-02-23 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538215', 'tblTempUsageDetail_20' ) end [2025-02-23 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:26:20] Production.INFO: ==25709== Releasing lock... [2025-02-23 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:27:05 [end_date_ymd] => 2025-02-23 07:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:27:05' and `end` < '2025-02-23 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-02-23 07:27:17] Production.INFO: count ==125 [2025-02-23 07:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:27:05 - End Time 2025-02-23 07:27:05 [2025-02-23 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538220', 'tblTempUsageDetail_20' ) start [2025-02-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538220', 'tblTempUsageDetail_20' ) end [2025-02-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538220', 'tblTempVendorCDR_20' ) start [2025-02-23 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538220', 'tblTempVendorCDR_20' ) end [2025-02-23 07:27:17] Production.INFO: ProcessCDR(1,14538220,1,1,2) [2025-02-23 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538220', 'tblTempUsageDetail_20' ) start [2025-02-23 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538220', 'tblTempUsageDetail_20' ) end [2025-02-23 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:27:20] Production.INFO: ==25798== Releasing lock... [2025-02-23 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:27:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:28:05 [end_date_ymd] => 2025-02-23 07:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:28:05' and `end` < '2025-02-23 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-02-23 07:28:17] Production.INFO: count ==126 [2025-02-23 07:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:28:05 - End Time 2025-02-23 07:28:05 [2025-02-23 07:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538225', 'tblTempUsageDetail_20' ) start [2025-02-23 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538225', 'tblTempUsageDetail_20' ) end [2025-02-23 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538225', 'tblTempVendorCDR_20' ) start [2025-02-23 07:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538225', 'tblTempVendorCDR_20' ) end [2025-02-23 07:28:17] Production.INFO: ProcessCDR(1,14538225,1,1,2) [2025-02-23 07:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538225', 'tblTempUsageDetail_20' ) start [2025-02-23 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538225', 'tblTempUsageDetail_20' ) end [2025-02-23 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:28:21] Production.INFO: ==25875== Releasing lock... [2025-02-23 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:29:05 [end_date_ymd] => 2025-02-23 07:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:29:05' and `end` < '2025-02-23 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-02-23 07:29:17] Production.INFO: count ==126 [2025-02-23 07:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:29:05 - End Time 2025-02-23 07:29:05 [2025-02-23 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538230', 'tblTempUsageDetail_20' ) start [2025-02-23 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538230', 'tblTempUsageDetail_20' ) end [2025-02-23 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538230', 'tblTempVendorCDR_20' ) start [2025-02-23 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538230', 'tblTempVendorCDR_20' ) end [2025-02-23 07:29:17] Production.INFO: ProcessCDR(1,14538230,1,1,2) [2025-02-23 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538230', 'tblTempUsageDetail_20' ) start [2025-02-23 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538230', 'tblTempUsageDetail_20' ) end [2025-02-23 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:29:20] Production.INFO: ==25958== Releasing lock... [2025-02-23 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:30:07 [end_date_ymd] => 2025-02-23 07:30:07 [RateCDR] => 1 ) [2025-02-23 07: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-02-23 04:30:07' and `end` < '2025-02-23 07: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-02-23 07:30:18] Production.INFO: count ==123 [2025-02-23 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:30:07 - End Time 2025-02-23 07:30:07 [2025-02-23 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538236', 'tblTempUsageDetail_20' ) start [2025-02-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538236', 'tblTempUsageDetail_20' ) end [2025-02-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538236', 'tblTempVendorCDR_20' ) start [2025-02-23 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538236', 'tblTempVendorCDR_20' ) end [2025-02-23 07:30:19] Production.INFO: ProcessCDR(1,14538236,1,1,2) [2025-02-23 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538236', 'tblTempUsageDetail_20' ) start [2025-02-23 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538236', 'tblTempUsageDetail_20' ) end [2025-02-23 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:30:22] Production.INFO: ==26042== Releasing lock... [2025-02-23 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:31:04 [end_date_ymd] => 2025-02-23 07:31:04 [RateCDR] => 1 ) [2025-02-23 07:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:31:04' and `end` < '2025-02-23 07:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:31:16] Production.INFO: count ==123 [2025-02-23 07:31:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:31:04 - End Time 2025-02-23 07:31:04 [2025-02-23 07:31:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538241', 'tblTempUsageDetail_20' ) start [2025-02-23 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538241', 'tblTempUsageDetail_20' ) end [2025-02-23 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538241', 'tblTempVendorCDR_20' ) start [2025-02-23 07:31:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538241', 'tblTempVendorCDR_20' ) end [2025-02-23 07:31:16] Production.INFO: ProcessCDR(1,14538241,1,1,2) [2025-02-23 07:31:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:31:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:31:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:31:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538241', 'tblTempUsageDetail_20' ) start [2025-02-23 07:31:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538241', 'tblTempUsageDetail_20' ) end [2025-02-23 07:31:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:31:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:31:19] Production.INFO: ==26126== Releasing lock... [2025-02-23 07:31:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:31:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:32:05 [end_date_ymd] => 2025-02-23 07:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:32:05' and `end` < '2025-02-23 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-02-23 07:32:17] Production.INFO: count ==124 [2025-02-23 07:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:32:05 - End Time 2025-02-23 07:32:05 [2025-02-23 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538246', 'tblTempUsageDetail_20' ) start [2025-02-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538246', 'tblTempUsageDetail_20' ) end [2025-02-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538246', 'tblTempVendorCDR_20' ) start [2025-02-23 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538246', 'tblTempVendorCDR_20' ) end [2025-02-23 07:32:17] Production.INFO: ProcessCDR(1,14538246,1,1,2) [2025-02-23 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538246', 'tblTempUsageDetail_20' ) start [2025-02-23 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538246', 'tblTempUsageDetail_20' ) end [2025-02-23 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:32:22] Production.INFO: ==26198== Releasing lock... [2025-02-23 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:33:05 [end_date_ymd] => 2025-02-23 07:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:33:05' and `end` < '2025-02-23 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-02-23 07:33:17] Production.INFO: count ==124 [2025-02-23 07:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:33:05 - End Time 2025-02-23 07:33:05 [2025-02-23 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538251', 'tblTempUsageDetail_20' ) start [2025-02-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538251', 'tblTempUsageDetail_20' ) end [2025-02-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538251', 'tblTempVendorCDR_20' ) start [2025-02-23 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538251', 'tblTempVendorCDR_20' ) end [2025-02-23 07:33:17] Production.INFO: ProcessCDR(1,14538251,1,1,2) [2025-02-23 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538251', 'tblTempUsageDetail_20' ) start [2025-02-23 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538251', 'tblTempUsageDetail_20' ) end [2025-02-23 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:33:20] Production.INFO: ==26320== Releasing lock... [2025-02-23 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:34:05 [end_date_ymd] => 2025-02-23 07:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:34:05' and `end` < '2025-02-23 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-02-23 07:34:17] Production.INFO: count ==124 [2025-02-23 07:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:34:05 - End Time 2025-02-23 07:34:05 [2025-02-23 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538256', 'tblTempUsageDetail_20' ) start [2025-02-23 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538256', 'tblTempUsageDetail_20' ) end [2025-02-23 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538256', 'tblTempVendorCDR_20' ) start [2025-02-23 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538256', 'tblTempVendorCDR_20' ) end [2025-02-23 07:34:17] Production.INFO: ProcessCDR(1,14538256,1,1,2) [2025-02-23 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538256', 'tblTempUsageDetail_20' ) start [2025-02-23 07:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538256', 'tblTempUsageDetail_20' ) end [2025-02-23 07:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:34:20] Production.INFO: ==26401== Releasing lock... [2025-02-23 07:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:34:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:35:05 [end_date_ymd] => 2025-02-23 07:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:35:05' and `end` < '2025-02-23 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-02-23 07:35:16] Production.INFO: count ==124 [2025-02-23 07:35:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:35:05 - End Time 2025-02-23 07:35:05 [2025-02-23 07:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538261', 'tblTempUsageDetail_20' ) start [2025-02-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538261', 'tblTempUsageDetail_20' ) end [2025-02-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538261', 'tblTempVendorCDR_20' ) start [2025-02-23 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538261', 'tblTempVendorCDR_20' ) end [2025-02-23 07:35:17] Production.INFO: ProcessCDR(1,14538261,1,1,2) [2025-02-23 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538261', 'tblTempUsageDetail_20' ) start [2025-02-23 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538261', 'tblTempUsageDetail_20' ) end [2025-02-23 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:35:20] Production.INFO: ==26475== Releasing lock... [2025-02-23 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:36:05 [end_date_ymd] => 2025-02-23 07:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:36:05' and `end` < '2025-02-23 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-02-23 07:36:17] Production.INFO: count ==124 [2025-02-23 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:36:05 - End Time 2025-02-23 07:36:05 [2025-02-23 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538266', 'tblTempUsageDetail_20' ) start [2025-02-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538266', 'tblTempUsageDetail_20' ) end [2025-02-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538266', 'tblTempVendorCDR_20' ) start [2025-02-23 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538266', 'tblTempVendorCDR_20' ) end [2025-02-23 07:36:17] Production.INFO: ProcessCDR(1,14538266,1,1,2) [2025-02-23 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538266', 'tblTempUsageDetail_20' ) start [2025-02-23 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538266', 'tblTempUsageDetail_20' ) end [2025-02-23 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:36:20] Production.INFO: ==26548== Releasing lock... [2025-02-23 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:36:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:37:06 [end_date_ymd] => 2025-02-23 07:37:06 [RateCDR] => 1 ) [2025-02-23 07: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-02-23 04:37:06' and `end` < '2025-02-23 07: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-02-23 07:37:17] Production.INFO: count ==125 [2025-02-23 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:37:06 - End Time 2025-02-23 07:37:06 [2025-02-23 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538271', 'tblTempUsageDetail_20' ) start [2025-02-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538271', 'tblTempUsageDetail_20' ) end [2025-02-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538271', 'tblTempVendorCDR_20' ) start [2025-02-23 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538271', 'tblTempVendorCDR_20' ) end [2025-02-23 07:37:17] Production.INFO: ProcessCDR(1,14538271,1,1,2) [2025-02-23 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538271', 'tblTempUsageDetail_20' ) start [2025-02-23 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538271', 'tblTempUsageDetail_20' ) end [2025-02-23 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:37:22] Production.INFO: ==26623== Releasing lock... [2025-02-23 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:38:05 [end_date_ymd] => 2025-02-23 07:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:38:05' and `end` < '2025-02-23 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-02-23 07:38:17] Production.INFO: count ==126 [2025-02-23 07:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:38:05 - End Time 2025-02-23 07:38:05 [2025-02-23 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538276', 'tblTempUsageDetail_20' ) start [2025-02-23 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538276', 'tblTempUsageDetail_20' ) end [2025-02-23 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538276', 'tblTempVendorCDR_20' ) start [2025-02-23 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538276', 'tblTempVendorCDR_20' ) end [2025-02-23 07:38:17] Production.INFO: ProcessCDR(1,14538276,1,1,2) [2025-02-23 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538276', 'tblTempUsageDetail_20' ) start [2025-02-23 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538276', 'tblTempUsageDetail_20' ) end [2025-02-23 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:38:21] Production.INFO: ==26696== Releasing lock... [2025-02-23 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:39:05 [end_date_ymd] => 2025-02-23 07:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:39:05' and `end` < '2025-02-23 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-02-23 07:39:17] Production.INFO: count ==126 [2025-02-23 07:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:39:05 - End Time 2025-02-23 07:39:05 [2025-02-23 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538281', 'tblTempUsageDetail_20' ) start [2025-02-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538281', 'tblTempUsageDetail_20' ) end [2025-02-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538281', 'tblTempVendorCDR_20' ) start [2025-02-23 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538281', 'tblTempVendorCDR_20' ) end [2025-02-23 07:39:17] Production.INFO: ProcessCDR(1,14538281,1,1,2) [2025-02-23 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538281', 'tblTempUsageDetail_20' ) start [2025-02-23 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538281', 'tblTempUsageDetail_20' ) end [2025-02-23 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:39:20] Production.INFO: ==26769== Releasing lock... [2025-02-23 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:39:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:40:06 [end_date_ymd] => 2025-02-23 07:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:40:06' and `end` < '2025-02-23 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-02-23 07:40:18] Production.INFO: count ==126 [2025-02-23 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:40:06 - End Time 2025-02-23 07:40:06 [2025-02-23 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538287', 'tblTempUsageDetail_20' ) start [2025-02-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538287', 'tblTempUsageDetail_20' ) end [2025-02-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538287', 'tblTempVendorCDR_20' ) start [2025-02-23 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538287', 'tblTempVendorCDR_20' ) end [2025-02-23 07:40:18] Production.INFO: ProcessCDR(1,14538287,1,1,2) [2025-02-23 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538287', 'tblTempUsageDetail_20' ) start [2025-02-23 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538287', 'tblTempUsageDetail_20' ) end [2025-02-23 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:40:21] Production.INFO: ==26846== Releasing lock... [2025-02-23 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:41:05 [end_date_ymd] => 2025-02-23 07:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:41:05' and `end` < '2025-02-23 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-02-23 07:41:17] Production.INFO: count ==129 [2025-02-23 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:41:05 - End Time 2025-02-23 07:41:05 [2025-02-23 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538292', 'tblTempUsageDetail_20' ) start [2025-02-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538292', 'tblTempUsageDetail_20' ) end [2025-02-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538292', 'tblTempVendorCDR_20' ) start [2025-02-23 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538292', 'tblTempVendorCDR_20' ) end [2025-02-23 07:41:17] Production.INFO: ProcessCDR(1,14538292,1,1,2) [2025-02-23 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538292', 'tblTempUsageDetail_20' ) start [2025-02-23 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538292', 'tblTempUsageDetail_20' ) end [2025-02-23 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:41:22] Production.INFO: ==26923== Releasing lock... [2025-02-23 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:41:22] Production.INFO: 29 MB #Memory Used# [2025-02-23 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:42:05 [end_date_ymd] => 2025-02-23 07:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:42:05' and `end` < '2025-02-23 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-02-23 07:42:17] Production.INFO: count ==131 [2025-02-23 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:42:05 - End Time 2025-02-23 07:42:05 [2025-02-23 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538297', 'tblTempUsageDetail_20' ) start [2025-02-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538297', 'tblTempUsageDetail_20' ) end [2025-02-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538297', 'tblTempVendorCDR_20' ) start [2025-02-23 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538297', 'tblTempVendorCDR_20' ) end [2025-02-23 07:42:17] Production.INFO: ProcessCDR(1,14538297,1,1,2) [2025-02-23 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538297', 'tblTempUsageDetail_20' ) start [2025-02-23 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538297', 'tblTempUsageDetail_20' ) end [2025-02-23 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:42:20] Production.INFO: ==26997== Releasing lock... [2025-02-23 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:42:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:43:05 [end_date_ymd] => 2025-02-23 07:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:43:05' and `end` < '2025-02-23 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-02-23 07:43:16] Production.INFO: count ==127 [2025-02-23 07:43:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:43:05 - End Time 2025-02-23 07:43:05 [2025-02-23 07:43:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538302', 'tblTempUsageDetail_20' ) start [2025-02-23 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538302', 'tblTempUsageDetail_20' ) end [2025-02-23 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538302', 'tblTempVendorCDR_20' ) start [2025-02-23 07:43:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538302', 'tblTempVendorCDR_20' ) end [2025-02-23 07:43:16] Production.INFO: ProcessCDR(1,14538302,1,1,2) [2025-02-23 07:43:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:43:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:43:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:43:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538302', 'tblTempUsageDetail_20' ) start [2025-02-23 07:43:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538302', 'tblTempUsageDetail_20' ) end [2025-02-23 07:43:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:43:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:43:19] Production.INFO: ==27067== Releasing lock... [2025-02-23 07:43:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:43:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:44:05 [end_date_ymd] => 2025-02-23 07:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:44:05' and `end` < '2025-02-23 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-02-23 07:44:17] Production.INFO: count ==127 [2025-02-23 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:44:05 - End Time 2025-02-23 07:44:05 [2025-02-23 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538307', 'tblTempUsageDetail_20' ) start [2025-02-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538307', 'tblTempUsageDetail_20' ) end [2025-02-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538307', 'tblTempVendorCDR_20' ) start [2025-02-23 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538307', 'tblTempVendorCDR_20' ) end [2025-02-23 07:44:17] Production.INFO: ProcessCDR(1,14538307,1,1,2) [2025-02-23 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538307', 'tblTempUsageDetail_20' ) start [2025-02-23 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538307', 'tblTempUsageDetail_20' ) end [2025-02-23 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:44:20] Production.INFO: ==27139== Releasing lock... [2025-02-23 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:45:05 [end_date_ymd] => 2025-02-23 07:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:45:05' and `end` < '2025-02-23 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-02-23 07:45:17] Production.INFO: count ==127 [2025-02-23 07:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:45:05 - End Time 2025-02-23 07:45:05 [2025-02-23 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538312', 'tblTempUsageDetail_20' ) start [2025-02-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538312', 'tblTempUsageDetail_20' ) end [2025-02-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538312', 'tblTempVendorCDR_20' ) start [2025-02-23 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538312', 'tblTempVendorCDR_20' ) end [2025-02-23 07:45:17] Production.INFO: ProcessCDR(1,14538312,1,1,2) [2025-02-23 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538312', 'tblTempUsageDetail_20' ) start [2025-02-23 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538312', 'tblTempUsageDetail_20' ) end [2025-02-23 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:45:20] Production.INFO: ==27216== Releasing lock... [2025-02-23 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:46:05 [end_date_ymd] => 2025-02-23 07:46:05 [RateCDR] => 1 ) [2025-02-23 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:46:05' and `end` < '2025-02-23 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:46:16] Production.INFO: count ==123 [2025-02-23 07:46:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:46:05 - End Time 2025-02-23 07:46:05 [2025-02-23 07:46:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:46:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538317', 'tblTempUsageDetail_20' ) start [2025-02-23 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538317', 'tblTempUsageDetail_20' ) end [2025-02-23 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538317', 'tblTempVendorCDR_20' ) start [2025-02-23 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538317', 'tblTempVendorCDR_20' ) end [2025-02-23 07:46:17] Production.INFO: ProcessCDR(1,14538317,1,1,2) [2025-02-23 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538317', 'tblTempUsageDetail_20' ) start [2025-02-23 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538317', 'tblTempUsageDetail_20' ) end [2025-02-23 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:46:20] Production.INFO: ==27294== Releasing lock... [2025-02-23 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:47:05 [end_date_ymd] => 2025-02-23 07:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:47:05' and `end` < '2025-02-23 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-02-23 07:47:17] Production.INFO: count ==123 [2025-02-23 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:47:05 - End Time 2025-02-23 07:47:05 [2025-02-23 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538322', 'tblTempUsageDetail_20' ) start [2025-02-23 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538322', 'tblTempUsageDetail_20' ) end [2025-02-23 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538322', 'tblTempVendorCDR_20' ) start [2025-02-23 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538322', 'tblTempVendorCDR_20' ) end [2025-02-23 07:47:17] Production.INFO: ProcessCDR(1,14538322,1,1,2) [2025-02-23 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538322', 'tblTempUsageDetail_20' ) start [2025-02-23 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538322', 'tblTempUsageDetail_20' ) end [2025-02-23 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:47:20] Production.INFO: ==27367== Releasing lock... [2025-02-23 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:48:05 [end_date_ymd] => 2025-02-23 07:48:05 [RateCDR] => 1 ) [2025-02-23 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:48:05' and `end` < '2025-02-23 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:48:17] Production.INFO: count ==123 [2025-02-23 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:48:05 - End Time 2025-02-23 07:48:05 [2025-02-23 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538327', 'tblTempUsageDetail_20' ) start [2025-02-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538327', 'tblTempUsageDetail_20' ) end [2025-02-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538327', 'tblTempVendorCDR_20' ) start [2025-02-23 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538327', 'tblTempVendorCDR_20' ) end [2025-02-23 07:48:17] Production.INFO: ProcessCDR(1,14538327,1,1,2) [2025-02-23 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538327', 'tblTempUsageDetail_20' ) start [2025-02-23 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538327', 'tblTempUsageDetail_20' ) end [2025-02-23 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:48:20] Production.INFO: ==27478== Releasing lock... [2025-02-23 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:48:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:49:05 [end_date_ymd] => 2025-02-23 07:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:49:05' and `end` < '2025-02-23 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-02-23 07:49:17] Production.INFO: count ==123 [2025-02-23 07:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:49:05 - End Time 2025-02-23 07:49:05 [2025-02-23 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538332', 'tblTempUsageDetail_20' ) start [2025-02-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538332', 'tblTempUsageDetail_20' ) end [2025-02-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538332', 'tblTempVendorCDR_20' ) start [2025-02-23 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538332', 'tblTempVendorCDR_20' ) end [2025-02-23 07:49:17] Production.INFO: ProcessCDR(1,14538332,1,1,2) [2025-02-23 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538332', 'tblTempUsageDetail_20' ) start [2025-02-23 07:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538332', 'tblTempUsageDetail_20' ) end [2025-02-23 07:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:49:20] Production.INFO: ==27555== Releasing lock... [2025-02-23 07:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:50:06 [end_date_ymd] => 2025-02-23 07:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:50:06' and `end` < '2025-02-23 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-02-23 07:50:18] Production.INFO: count ==121 [2025-02-23 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 04:50:06 - End Time 2025-02-23 07:50:06 [2025-02-23 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538338', 'tblTempUsageDetail_20' ) start [2025-02-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538338', 'tblTempUsageDetail_20' ) end [2025-02-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538338', 'tblTempVendorCDR_20' ) start [2025-02-23 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538338', 'tblTempVendorCDR_20' ) end [2025-02-23 07:50:18] Production.INFO: ProcessCDR(1,14538338,1,1,2) [2025-02-23 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538338', 'tblTempUsageDetail_20' ) start [2025-02-23 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538338', 'tblTempUsageDetail_20' ) end [2025-02-23 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:50:21] Production.INFO: ==27629== Releasing lock... [2025-02-23 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:51:05 [end_date_ymd] => 2025-02-23 07:51:05 [RateCDR] => 1 ) [2025-02-23 07:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:51:05' and `end` < '2025-02-23 07:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:51:17] Production.INFO: count ==121 [2025-02-23 07:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:51:05 - End Time 2025-02-23 07:51:05 [2025-02-23 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538343', 'tblTempUsageDetail_20' ) start [2025-02-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538343', 'tblTempUsageDetail_20' ) end [2025-02-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538343', 'tblTempVendorCDR_20' ) start [2025-02-23 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538343', 'tblTempVendorCDR_20' ) end [2025-02-23 07:51:17] Production.INFO: ProcessCDR(1,14538343,1,1,2) [2025-02-23 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538343', 'tblTempUsageDetail_20' ) start [2025-02-23 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538343', 'tblTempUsageDetail_20' ) end [2025-02-23 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:51:20] Production.INFO: ==27703== Releasing lock... [2025-02-23 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:52:05 [end_date_ymd] => 2025-02-23 07:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:52:05' and `end` < '2025-02-23 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-02-23 07:52:17] Production.INFO: count ==120 [2025-02-23 07:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:52:05 - End Time 2025-02-23 07:52:05 [2025-02-23 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538348', 'tblTempUsageDetail_20' ) start [2025-02-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538348', 'tblTempUsageDetail_20' ) end [2025-02-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538348', 'tblTempVendorCDR_20' ) start [2025-02-23 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538348', 'tblTempVendorCDR_20' ) end [2025-02-23 07:52:17] Production.INFO: ProcessCDR(1,14538348,1,1,2) [2025-02-23 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538348', 'tblTempUsageDetail_20' ) start [2025-02-23 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538348', 'tblTempUsageDetail_20' ) end [2025-02-23 07:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:52:20] Production.INFO: ==27774== Releasing lock... [2025-02-23 07:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:53:05 [end_date_ymd] => 2025-02-23 07:53:05 [RateCDR] => 1 ) [2025-02-23 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:53:05' and `end` < '2025-02-23 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:53:17] Production.INFO: count ==120 [2025-02-23 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:53:05 - End Time 2025-02-23 07:53:05 [2025-02-23 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538353', 'tblTempUsageDetail_20' ) start [2025-02-23 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538353', 'tblTempUsageDetail_20' ) end [2025-02-23 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538353', 'tblTempVendorCDR_20' ) start [2025-02-23 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538353', 'tblTempVendorCDR_20' ) end [2025-02-23 07:53:17] Production.INFO: ProcessCDR(1,14538353,1,1,2) [2025-02-23 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538353', 'tblTempUsageDetail_20' ) start [2025-02-23 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538353', 'tblTempUsageDetail_20' ) end [2025-02-23 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:53:20] Production.INFO: ==27845== Releasing lock... [2025-02-23 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:54:05 [end_date_ymd] => 2025-02-23 07:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:54:05' and `end` < '2025-02-23 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-02-23 07:54:17] Production.INFO: count ==120 [2025-02-23 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:54:05 - End Time 2025-02-23 07:54:05 [2025-02-23 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538358', 'tblTempUsageDetail_20' ) start [2025-02-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538358', 'tblTempUsageDetail_20' ) end [2025-02-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538358', 'tblTempVendorCDR_20' ) start [2025-02-23 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538358', 'tblTempVendorCDR_20' ) end [2025-02-23 07:54:17] Production.INFO: ProcessCDR(1,14538358,1,1,2) [2025-02-23 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538358', 'tblTempUsageDetail_20' ) start [2025-02-23 07:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538358', 'tblTempUsageDetail_20' ) end [2025-02-23 07:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:54:20] Production.INFO: ==27916== Releasing lock... [2025-02-23 07:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:54:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:55:05 [end_date_ymd] => 2025-02-23 07:55:05 [RateCDR] => 1 ) [2025-02-23 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 04:55:05' and `end` < '2025-02-23 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 07:55:16] Production.INFO: count ==120 [2025-02-23 07:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:55:05 - End Time 2025-02-23 07:55:05 [2025-02-23 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538363', 'tblTempUsageDetail_20' ) start [2025-02-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538363', 'tblTempUsageDetail_20' ) end [2025-02-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538363', 'tblTempVendorCDR_20' ) start [2025-02-23 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538363', 'tblTempVendorCDR_20' ) end [2025-02-23 07:55:17] Production.INFO: ProcessCDR(1,14538363,1,1,2) [2025-02-23 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:55:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:55:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538363', 'tblTempUsageDetail_20' ) start [2025-02-23 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538363', 'tblTempUsageDetail_20' ) end [2025-02-23 07:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:55:20] Production.INFO: ==27992== Releasing lock... [2025-02-23 07:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:56:05 [end_date_ymd] => 2025-02-23 07:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:56:05' and `end` < '2025-02-23 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-02-23 07:56:16] Production.INFO: count ==120 [2025-02-23 07:56:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:56:05 - End Time 2025-02-23 07:56:05 [2025-02-23 07:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538368', 'tblTempUsageDetail_20' ) start [2025-02-23 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538368', 'tblTempUsageDetail_20' ) end [2025-02-23 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538368', 'tblTempVendorCDR_20' ) start [2025-02-23 07:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538368', 'tblTempVendorCDR_20' ) end [2025-02-23 07:56:16] Production.INFO: ProcessCDR(1,14538368,1,1,2) [2025-02-23 07:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:56:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538368', 'tblTempUsageDetail_20' ) start [2025-02-23 07:56:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538368', 'tblTempUsageDetail_20' ) end [2025-02-23 07:56:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:56:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:56:19] Production.INFO: ==28064== Releasing lock... [2025-02-23 07:56:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:56:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:57:05 [end_date_ymd] => 2025-02-23 07:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:57:05' and `end` < '2025-02-23 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-02-23 07:57:16] Production.INFO: count ==121 [2025-02-23 07:57:16] Production.ERROR: pbx CDR StartTime 2025-02-23 04:57:05 - End Time 2025-02-23 07:57:05 [2025-02-23 07:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538373', 'tblTempUsageDetail_20' ) start [2025-02-23 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538373', 'tblTempUsageDetail_20' ) end [2025-02-23 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538373', 'tblTempVendorCDR_20' ) start [2025-02-23 07:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538373', 'tblTempVendorCDR_20' ) end [2025-02-23 07:57:16] Production.INFO: ProcessCDR(1,14538373,1,1,2) [2025-02-23 07:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538373', 'tblTempUsageDetail_20' ) start [2025-02-23 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538373', 'tblTempUsageDetail_20' ) end [2025-02-23 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:57:21] Production.INFO: ==28134== Releasing lock... [2025-02-23 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:58:05 [end_date_ymd] => 2025-02-23 07:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:58:05' and `end` < '2025-02-23 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-02-23 07:58:17] Production.INFO: count ==120 [2025-02-23 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:58:05 - End Time 2025-02-23 07:58:05 [2025-02-23 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538378', 'tblTempUsageDetail_20' ) start [2025-02-23 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538378', 'tblTempUsageDetail_20' ) end [2025-02-23 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538378', 'tblTempVendorCDR_20' ) start [2025-02-23 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538378', 'tblTempVendorCDR_20' ) end [2025-02-23 07:58:17] Production.INFO: ProcessCDR(1,14538378,1,1,2) [2025-02-23 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538378', 'tblTempUsageDetail_20' ) start [2025-02-23 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538378', 'tblTempUsageDetail_20' ) end [2025-02-23 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:58:20] Production.INFO: ==28205== Releasing lock... [2025-02-23 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:58:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 04:59:05 [end_date_ymd] => 2025-02-23 07:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 04:59:05' and `end` < '2025-02-23 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-02-23 07:59:17] Production.INFO: count ==119 [2025-02-23 07:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 04:59:05 - End Time 2025-02-23 07:59:05 [2025-02-23 07:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538383', 'tblTempUsageDetail_20' ) start [2025-02-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538383', 'tblTempUsageDetail_20' ) end [2025-02-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538383', 'tblTempVendorCDR_20' ) start [2025-02-23 07:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538383', 'tblTempVendorCDR_20' ) end [2025-02-23 07:59:17] Production.INFO: ProcessCDR(1,14538383,1,1,2) [2025-02-23 07:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 07:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538383', 'tblTempUsageDetail_20' ) start [2025-02-23 07:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538383', 'tblTempUsageDetail_20' ) end [2025-02-23 07:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 07:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 07:59:20] Production.INFO: ==28276== Releasing lock... [2025-02-23 07:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 07:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:00:05 [end_date_ymd] => 2025-02-23 08:00:05 [RateCDR] => 1 ) [2025-02-23 08:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:00:05' and `end` < '2025-02-23 08:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:00:17] Production.INFO: count ==119 [2025-02-23 08:00:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:00:05 - End Time 2025-02-23 08:00:05 [2025-02-23 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538389', 'tblTempUsageDetail_20' ) start [2025-02-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538389', 'tblTempUsageDetail_20' ) end [2025-02-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538389', 'tblTempVendorCDR_20' ) start [2025-02-23 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538389', 'tblTempVendorCDR_20' ) end [2025-02-23 08:00:17] Production.INFO: ProcessCDR(1,14538389,1,1,2) [2025-02-23 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538389', 'tblTempUsageDetail_20' ) start [2025-02-23 08:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538389', 'tblTempUsageDetail_20' ) end [2025-02-23 08:00:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:00:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:00:20] Production.INFO: ==28349== Releasing lock... [2025-02-23 08:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:00:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:01:05 [end_date_ymd] => 2025-02-23 08:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:01:05' and `end` < '2025-02-23 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-02-23 08:01:17] Production.INFO: count ==119 [2025-02-23 08:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:01:05 - End Time 2025-02-23 08:01:05 [2025-02-23 08:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538394', 'tblTempUsageDetail_20' ) start [2025-02-23 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538394', 'tblTempUsageDetail_20' ) end [2025-02-23 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538394', 'tblTempVendorCDR_20' ) start [2025-02-23 08:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538394', 'tblTempVendorCDR_20' ) end [2025-02-23 08:01:17] Production.INFO: ProcessCDR(1,14538394,1,1,2) [2025-02-23 08:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538394', 'tblTempUsageDetail_20' ) start [2025-02-23 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538394', 'tblTempUsageDetail_20' ) end [2025-02-23 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:01:21] Production.INFO: ==28438== Releasing lock... [2025-02-23 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:02:05 [end_date_ymd] => 2025-02-23 08:02:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:02:05' and `end` < '2025-02-23 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-02-23 08:02:17] Production.INFO: count ==119 [2025-02-23 08:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:02:05 - End Time 2025-02-23 08:02:05 [2025-02-23 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538399', 'tblTempUsageDetail_20' ) start [2025-02-23 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538399', 'tblTempUsageDetail_20' ) end [2025-02-23 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538399', 'tblTempVendorCDR_20' ) start [2025-02-23 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538399', 'tblTempVendorCDR_20' ) end [2025-02-23 08:02:17] Production.INFO: ProcessCDR(1,14538399,1,1,2) [2025-02-23 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538399', 'tblTempUsageDetail_20' ) start [2025-02-23 08:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538399', 'tblTempUsageDetail_20' ) end [2025-02-23 08:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:02:20] Production.INFO: ==28507== Releasing lock... [2025-02-23 08:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:02:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:03:06 [end_date_ymd] => 2025-02-23 08:03:06 [RateCDR] => 1 ) [2025-02-23 08:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:03:06' and `end` < '2025-02-23 08:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:03:17] Production.INFO: count ==115 [2025-02-23 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:03:06 - End Time 2025-02-23 08:03:06 [2025-02-23 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538404', 'tblTempUsageDetail_20' ) start [2025-02-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538404', 'tblTempUsageDetail_20' ) end [2025-02-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538404', 'tblTempVendorCDR_20' ) start [2025-02-23 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538404', 'tblTempVendorCDR_20' ) end [2025-02-23 08:03:18] Production.INFO: ProcessCDR(1,14538404,1,1,2) [2025-02-23 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538404', 'tblTempUsageDetail_20' ) start [2025-02-23 08:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538404', 'tblTempUsageDetail_20' ) end [2025-02-23 08:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:03:20] Production.INFO: ==28579== Releasing lock... [2025-02-23 08:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:03:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:04:05 [end_date_ymd] => 2025-02-23 08:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:04:05' and `end` < '2025-02-23 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-02-23 08:04:16] Production.INFO: count ==112 [2025-02-23 08:04:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:04:05 - End Time 2025-02-23 08:04:05 [2025-02-23 08:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538409', 'tblTempUsageDetail_20' ) start [2025-02-23 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538409', 'tblTempUsageDetail_20' ) end [2025-02-23 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538409', 'tblTempVendorCDR_20' ) start [2025-02-23 08:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538409', 'tblTempVendorCDR_20' ) end [2025-02-23 08:04:16] Production.INFO: ProcessCDR(1,14538409,1,1,2) [2025-02-23 08:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538409', 'tblTempUsageDetail_20' ) start [2025-02-23 08:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538409', 'tblTempUsageDetail_20' ) end [2025-02-23 08:04:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:04:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:04:19] Production.INFO: ==28694== Releasing lock... [2025-02-23 08:04:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:04:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:05:06 [end_date_ymd] => 2025-02-23 08:05:06 [RateCDR] => 1 ) [2025-02-23 08:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:05:06' and `end` < '2025-02-23 08:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:05:18] Production.INFO: count ==111 [2025-02-23 08:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:05:06 - End Time 2025-02-23 08:05:06 [2025-02-23 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538414', 'tblTempUsageDetail_20' ) start [2025-02-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538414', 'tblTempUsageDetail_20' ) end [2025-02-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538414', 'tblTempVendorCDR_20' ) start [2025-02-23 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538414', 'tblTempVendorCDR_20' ) end [2025-02-23 08:05:18] Production.INFO: ProcessCDR(1,14538414,1,1,2) [2025-02-23 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538414', 'tblTempUsageDetail_20' ) start [2025-02-23 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538414', 'tblTempUsageDetail_20' ) end [2025-02-23 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:05:21] Production.INFO: ==28765== Releasing lock... [2025-02-23 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:06:05 [end_date_ymd] => 2025-02-23 08:06:05 [RateCDR] => 1 ) [2025-02-23 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:06:05' and `end` < '2025-02-23 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:06:17] Production.INFO: count ==111 [2025-02-23 08:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:06:05 - End Time 2025-02-23 08:06:05 [2025-02-23 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538419', 'tblTempUsageDetail_20' ) start [2025-02-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538419', 'tblTempUsageDetail_20' ) end [2025-02-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538419', 'tblTempVendorCDR_20' ) start [2025-02-23 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538419', 'tblTempVendorCDR_20' ) end [2025-02-23 08:06:17] Production.INFO: ProcessCDR(1,14538419,1,1,2) [2025-02-23 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538419', 'tblTempUsageDetail_20' ) start [2025-02-23 08:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538419', 'tblTempUsageDetail_20' ) end [2025-02-23 08:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:06:20] Production.INFO: ==28839== Releasing lock... [2025-02-23 08:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:06:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:07:05 [end_date_ymd] => 2025-02-23 08:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:07:05' and `end` < '2025-02-23 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-02-23 08:07:17] Production.INFO: count ==111 [2025-02-23 08:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:07:05 - End Time 2025-02-23 08:07:05 [2025-02-23 08:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538424', 'tblTempUsageDetail_20' ) start [2025-02-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538424', 'tblTempUsageDetail_20' ) end [2025-02-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538424', 'tblTempVendorCDR_20' ) start [2025-02-23 08:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538424', 'tblTempVendorCDR_20' ) end [2025-02-23 08:07:17] Production.INFO: ProcessCDR(1,14538424,1,1,2) [2025-02-23 08:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538424', 'tblTempUsageDetail_20' ) start [2025-02-23 08:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538424', 'tblTempUsageDetail_20' ) end [2025-02-23 08:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:07:20] Production.INFO: ==28910== Releasing lock... [2025-02-23 08:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:07:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:08:05 [end_date_ymd] => 2025-02-23 08:08:05 [RateCDR] => 1 ) [2025-02-23 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:08:05' and `end` < '2025-02-23 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:08:16] Production.INFO: count ==111 [2025-02-23 08:08:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:08:05 - End Time 2025-02-23 08:08:05 [2025-02-23 08:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538429', 'tblTempUsageDetail_20' ) start [2025-02-23 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538429', 'tblTempUsageDetail_20' ) end [2025-02-23 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538429', 'tblTempVendorCDR_20' ) start [2025-02-23 08:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538429', 'tblTempVendorCDR_20' ) end [2025-02-23 08:08:16] Production.INFO: ProcessCDR(1,14538429,1,1,2) [2025-02-23 08:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538429', 'tblTempUsageDetail_20' ) start [2025-02-23 08:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538429', 'tblTempUsageDetail_20' ) end [2025-02-23 08:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:08:20] Production.INFO: ==28983== Releasing lock... [2025-02-23 08:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:08:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:09:05 [end_date_ymd] => 2025-02-23 08:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:09:05' and `end` < '2025-02-23 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-02-23 08:09:17] Production.INFO: count ==111 [2025-02-23 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:09:05 - End Time 2025-02-23 08:09:05 [2025-02-23 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538434', 'tblTempUsageDetail_20' ) start [2025-02-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538434', 'tblTempUsageDetail_20' ) end [2025-02-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538434', 'tblTempVendorCDR_20' ) start [2025-02-23 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538434', 'tblTempVendorCDR_20' ) end [2025-02-23 08:09:17] Production.INFO: ProcessCDR(1,14538434,1,1,2) [2025-02-23 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538434', 'tblTempUsageDetail_20' ) start [2025-02-23 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538434', 'tblTempUsageDetail_20' ) end [2025-02-23 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:09:20] Production.INFO: ==29057== Releasing lock... [2025-02-23 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:09:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:10:06 [end_date_ymd] => 2025-02-23 08:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:10:06' and `end` < '2025-02-23 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-02-23 08:10:17] Production.INFO: count ==109 [2025-02-23 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:10:06 - End Time 2025-02-23 08:10:06 [2025-02-23 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538440', 'tblTempUsageDetail_20' ) start [2025-02-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538440', 'tblTempUsageDetail_20' ) end [2025-02-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538440', 'tblTempVendorCDR_20' ) start [2025-02-23 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538440', 'tblTempVendorCDR_20' ) end [2025-02-23 08:10:18] Production.INFO: ProcessCDR(1,14538440,1,1,2) [2025-02-23 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:10:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:10:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538440', 'tblTempUsageDetail_20' ) start [2025-02-23 08:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538440', 'tblTempUsageDetail_20' ) end [2025-02-23 08:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:10:21] Production.INFO: ==29136== Releasing lock... [2025-02-23 08:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:11:05 [end_date_ymd] => 2025-02-23 08:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:11:05' and `end` < '2025-02-23 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-02-23 08:11:17] Production.INFO: count ==109 [2025-02-23 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:11:05 - End Time 2025-02-23 08:11:05 [2025-02-23 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538445', 'tblTempUsageDetail_20' ) start [2025-02-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538445', 'tblTempUsageDetail_20' ) end [2025-02-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538445', 'tblTempVendorCDR_20' ) start [2025-02-23 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538445', 'tblTempVendorCDR_20' ) end [2025-02-23 08:11:17] Production.INFO: ProcessCDR(1,14538445,1,1,2) [2025-02-23 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538445', 'tblTempUsageDetail_20' ) start [2025-02-23 08:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538445', 'tblTempUsageDetail_20' ) end [2025-02-23 08:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:11:20] Production.INFO: ==29213== Releasing lock... [2025-02-23 08:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:11:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:12:05 [end_date_ymd] => 2025-02-23 08:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:12:05' and `end` < '2025-02-23 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-02-23 08:12:16] Production.INFO: count ==107 [2025-02-23 08:12:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:12:05 - End Time 2025-02-23 08:12:05 [2025-02-23 08:12:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538450', 'tblTempUsageDetail_20' ) start [2025-02-23 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538450', 'tblTempUsageDetail_20' ) end [2025-02-23 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538450', 'tblTempVendorCDR_20' ) start [2025-02-23 08:12:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538450', 'tblTempVendorCDR_20' ) end [2025-02-23 08:12:16] Production.INFO: ProcessCDR(1,14538450,1,1,2) [2025-02-23 08:12:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538450', 'tblTempUsageDetail_20' ) start [2025-02-23 08:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538450', 'tblTempUsageDetail_20' ) end [2025-02-23 08:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:12:20] Production.INFO: ==29283== Releasing lock... [2025-02-23 08:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:12:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:13:05 [end_date_ymd] => 2025-02-23 08:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:13:05' and `end` < '2025-02-23 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-02-23 08:13:17] Production.INFO: count ==106 [2025-02-23 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:13:05 - End Time 2025-02-23 08:13:05 [2025-02-23 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538455', 'tblTempUsageDetail_20' ) start [2025-02-23 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538455', 'tblTempUsageDetail_20' ) end [2025-02-23 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538455', 'tblTempVendorCDR_20' ) start [2025-02-23 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538455', 'tblTempVendorCDR_20' ) end [2025-02-23 08:13:17] Production.INFO: ProcessCDR(1,14538455,1,1,2) [2025-02-23 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538455', 'tblTempUsageDetail_20' ) start [2025-02-23 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538455', 'tblTempUsageDetail_20' ) end [2025-02-23 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:13:21] Production.INFO: ==29354== Releasing lock... [2025-02-23 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:14:05 [end_date_ymd] => 2025-02-23 08:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:14:05' and `end` < '2025-02-23 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-02-23 08:14:17] Production.INFO: count ==105 [2025-02-23 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:14:05 - End Time 2025-02-23 08:14:05 [2025-02-23 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538460', 'tblTempUsageDetail_20' ) start [2025-02-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538460', 'tblTempUsageDetail_20' ) end [2025-02-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538460', 'tblTempVendorCDR_20' ) start [2025-02-23 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538460', 'tblTempVendorCDR_20' ) end [2025-02-23 08:14:17] Production.INFO: ProcessCDR(1,14538460,1,1,2) [2025-02-23 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538460', 'tblTempUsageDetail_20' ) start [2025-02-23 08:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538460', 'tblTempUsageDetail_20' ) end [2025-02-23 08:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:14:20] Production.INFO: ==29425== Releasing lock... [2025-02-23 08:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:14:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:15:05 [end_date_ymd] => 2025-02-23 08:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:15:05' and `end` < '2025-02-23 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-02-23 08:15:17] Production.INFO: count ==105 [2025-02-23 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:15:05 - End Time 2025-02-23 08:15:05 [2025-02-23 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538465', 'tblTempUsageDetail_20' ) start [2025-02-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538465', 'tblTempUsageDetail_20' ) end [2025-02-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538465', 'tblTempVendorCDR_20' ) start [2025-02-23 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538465', 'tblTempVendorCDR_20' ) end [2025-02-23 08:15:17] Production.INFO: ProcessCDR(1,14538465,1,1,2) [2025-02-23 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538465', 'tblTempUsageDetail_20' ) start [2025-02-23 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538465', 'tblTempUsageDetail_20' ) end [2025-02-23 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:15:20] Production.INFO: ==29498== Releasing lock... [2025-02-23 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:15:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:16:06 [end_date_ymd] => 2025-02-23 08:16:06 [RateCDR] => 1 ) [2025-02-23 08: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-02-23 05:16:06' and `end` < '2025-02-23 08: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-02-23 08:16:18] Production.INFO: count ==107 [2025-02-23 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:16:06 - End Time 2025-02-23 08:16:06 [2025-02-23 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538470', 'tblTempUsageDetail_20' ) start [2025-02-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538470', 'tblTempUsageDetail_20' ) end [2025-02-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538470', 'tblTempVendorCDR_20' ) start [2025-02-23 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538470', 'tblTempVendorCDR_20' ) end [2025-02-23 08:16:18] Production.INFO: ProcessCDR(1,14538470,1,1,2) [2025-02-23 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538470', 'tblTempUsageDetail_20' ) start [2025-02-23 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538470', 'tblTempUsageDetail_20' ) end [2025-02-23 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:16:21] Production.INFO: ==29572== Releasing lock... [2025-02-23 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:17:05 [end_date_ymd] => 2025-02-23 08:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:17:05' and `end` < '2025-02-23 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-02-23 08:17:17] Production.INFO: count ==110 [2025-02-23 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:17:05 - End Time 2025-02-23 08:17:05 [2025-02-23 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538475', 'tblTempUsageDetail_20' ) start [2025-02-23 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538475', 'tblTempUsageDetail_20' ) end [2025-02-23 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538475', 'tblTempVendorCDR_20' ) start [2025-02-23 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538475', 'tblTempVendorCDR_20' ) end [2025-02-23 08:17:17] Production.INFO: ProcessCDR(1,14538475,1,1,2) [2025-02-23 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538475', 'tblTempUsageDetail_20' ) start [2025-02-23 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538475', 'tblTempUsageDetail_20' ) end [2025-02-23 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:17:20] Production.INFO: ==29643== Releasing lock... [2025-02-23 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:17:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:18:06 [end_date_ymd] => 2025-02-23 08:18:06 [RateCDR] => 1 ) [2025-02-23 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:18:06' and `end` < '2025-02-23 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:18:17] Production.INFO: count ==110 [2025-02-23 08:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:18:06 - End Time 2025-02-23 08:18:06 [2025-02-23 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538480', 'tblTempUsageDetail_20' ) start [2025-02-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538480', 'tblTempUsageDetail_20' ) end [2025-02-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538480', 'tblTempVendorCDR_20' ) start [2025-02-23 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538480', 'tblTempVendorCDR_20' ) end [2025-02-23 08:18:17] Production.INFO: ProcessCDR(1,14538480,1,1,2) [2025-02-23 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538480', 'tblTempUsageDetail_20' ) start [2025-02-23 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538480', 'tblTempUsageDetail_20' ) end [2025-02-23 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:18:21] Production.INFO: ==29726== Releasing lock... [2025-02-23 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:19:04 [end_date_ymd] => 2025-02-23 08:19:04 [RateCDR] => 1 ) [2025-02-23 08:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:19:04' and `end` < '2025-02-23 08:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:19:16] Production.INFO: count ==110 [2025-02-23 08:19:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:19:04 - End Time 2025-02-23 08:19:04 [2025-02-23 08:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538485', 'tblTempUsageDetail_20' ) start [2025-02-23 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538485', 'tblTempUsageDetail_20' ) end [2025-02-23 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538485', 'tblTempVendorCDR_20' ) start [2025-02-23 08:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538485', 'tblTempVendorCDR_20' ) end [2025-02-23 08:19:16] Production.INFO: ProcessCDR(1,14538485,1,1,2) [2025-02-23 08:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:19:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:19:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:19:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538485', 'tblTempUsageDetail_20' ) start [2025-02-23 08:19:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538485', 'tblTempUsageDetail_20' ) end [2025-02-23 08:19:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:19:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:19:19] Production.INFO: ==29835== Releasing lock... [2025-02-23 08:19:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:19:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:20:06 [end_date_ymd] => 2025-02-23 08:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:20:06' and `end` < '2025-02-23 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-02-23 08:20:18] Production.INFO: count ==112 [2025-02-23 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:20:06 - End Time 2025-02-23 08:20:06 [2025-02-23 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538491', 'tblTempUsageDetail_20' ) start [2025-02-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538491', 'tblTempUsageDetail_20' ) end [2025-02-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538491', 'tblTempVendorCDR_20' ) start [2025-02-23 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538491', 'tblTempVendorCDR_20' ) end [2025-02-23 08:20:18] Production.INFO: ProcessCDR(1,14538491,1,1,2) [2025-02-23 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538491', 'tblTempUsageDetail_20' ) start [2025-02-23 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538491', 'tblTempUsageDetail_20' ) end [2025-02-23 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:20:21] Production.INFO: ==29908== Releasing lock... [2025-02-23 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:21:04 [end_date_ymd] => 2025-02-23 08:21:04 [RateCDR] => 1 ) [2025-02-23 08: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-02-23 05:21:04' and `end` < '2025-02-23 08: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-02-23 08:21:16] Production.INFO: count ==112 [2025-02-23 08:21:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:21:04 - End Time 2025-02-23 08:21:04 [2025-02-23 08:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538496', 'tblTempUsageDetail_20' ) start [2025-02-23 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538496', 'tblTempUsageDetail_20' ) end [2025-02-23 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538496', 'tblTempVendorCDR_20' ) start [2025-02-23 08:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538496', 'tblTempVendorCDR_20' ) end [2025-02-23 08:21:16] Production.INFO: ProcessCDR(1,14538496,1,1,2) [2025-02-23 08:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:21:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538496', 'tblTempUsageDetail_20' ) start [2025-02-23 08:21:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538496', 'tblTempUsageDetail_20' ) end [2025-02-23 08:21:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:21:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:21:19] Production.INFO: ==29980== Releasing lock... [2025-02-23 08:21:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:21:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:22:05 [end_date_ymd] => 2025-02-23 08:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:22:05' and `end` < '2025-02-23 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-02-23 08:22:17] Production.INFO: count ==116 [2025-02-23 08:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:22:05 - End Time 2025-02-23 08:22:05 [2025-02-23 08:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538501', 'tblTempUsageDetail_20' ) start [2025-02-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538501', 'tblTempUsageDetail_20' ) end [2025-02-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538501', 'tblTempVendorCDR_20' ) start [2025-02-23 08:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538501', 'tblTempVendorCDR_20' ) end [2025-02-23 08:22:17] Production.INFO: ProcessCDR(1,14538501,1,1,2) [2025-02-23 08:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538501', 'tblTempUsageDetail_20' ) start [2025-02-23 08:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538501', 'tblTempUsageDetail_20' ) end [2025-02-23 08:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:22:20] Production.INFO: ==30052== Releasing lock... [2025-02-23 08:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:22:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:23:05 [end_date_ymd] => 2025-02-23 08:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:23:05' and `end` < '2025-02-23 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-02-23 08:23:17] Production.INFO: count ==117 [2025-02-23 08:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:23:05 - End Time 2025-02-23 08:23:05 [2025-02-23 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538506', 'tblTempUsageDetail_20' ) start [2025-02-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538506', 'tblTempUsageDetail_20' ) end [2025-02-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538506', 'tblTempVendorCDR_20' ) start [2025-02-23 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538506', 'tblTempVendorCDR_20' ) end [2025-02-23 08:23:17] Production.INFO: ProcessCDR(1,14538506,1,1,2) [2025-02-23 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538506', 'tblTempUsageDetail_20' ) start [2025-02-23 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538506', 'tblTempUsageDetail_20' ) end [2025-02-23 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:23:22] Production.INFO: ==30124== Releasing lock... [2025-02-23 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:24:05 [end_date_ymd] => 2025-02-23 08:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:24:05' and `end` < '2025-02-23 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-02-23 08:24:17] Production.INFO: count ==117 [2025-02-23 08:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:24:05 - End Time 2025-02-23 08:24:05 [2025-02-23 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538511', 'tblTempUsageDetail_20' ) start [2025-02-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538511', 'tblTempUsageDetail_20' ) end [2025-02-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538511', 'tblTempVendorCDR_20' ) start [2025-02-23 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538511', 'tblTempVendorCDR_20' ) end [2025-02-23 08:24:17] Production.INFO: ProcessCDR(1,14538511,1,1,2) [2025-02-23 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538511', 'tblTempUsageDetail_20' ) start [2025-02-23 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538511', 'tblTempUsageDetail_20' ) end [2025-02-23 08:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:24:20] Production.INFO: ==30197== Releasing lock... [2025-02-23 08:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:24:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:25:05 [end_date_ymd] => 2025-02-23 08:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:25:05' and `end` < '2025-02-23 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:25:17] Production.INFO: count ==117 [2025-02-23 08:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:25:05 - End Time 2025-02-23 08:25:05 [2025-02-23 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538516', 'tblTempUsageDetail_20' ) start [2025-02-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538516', 'tblTempUsageDetail_20' ) end [2025-02-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538516', 'tblTempVendorCDR_20' ) start [2025-02-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538516', 'tblTempVendorCDR_20' ) end [2025-02-23 08:25:17] Production.INFO: ProcessCDR(1,14538516,1,1,2) [2025-02-23 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538516', 'tblTempUsageDetail_20' ) start [2025-02-23 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538516', 'tblTempUsageDetail_20' ) end [2025-02-23 08:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:25:21] Production.INFO: ==30273== Releasing lock... [2025-02-23 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:26:05 [end_date_ymd] => 2025-02-23 08:26:05 [RateCDR] => 1 ) [2025-02-23 08:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:26:05' and `end` < '2025-02-23 08:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:26:17] Production.INFO: count ==117 [2025-02-23 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:26:05 - End Time 2025-02-23 08:26:05 [2025-02-23 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538521', 'tblTempUsageDetail_20' ) start [2025-02-23 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538521', 'tblTempUsageDetail_20' ) end [2025-02-23 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538521', 'tblTempVendorCDR_20' ) start [2025-02-23 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538521', 'tblTempVendorCDR_20' ) end [2025-02-23 08:26:17] Production.INFO: ProcessCDR(1,14538521,1,1,2) [2025-02-23 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538521', 'tblTempUsageDetail_20' ) start [2025-02-23 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538521', 'tblTempUsageDetail_20' ) end [2025-02-23 08:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:26:20] Production.INFO: ==30347== Releasing lock... [2025-02-23 08:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:27:05 [end_date_ymd] => 2025-02-23 08:27:05 [RateCDR] => 1 ) [2025-02-23 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:27:05' and `end` < '2025-02-23 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:27:17] Production.INFO: count ==117 [2025-02-23 08:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:27:05 - End Time 2025-02-23 08:27:05 [2025-02-23 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538526', 'tblTempUsageDetail_20' ) start [2025-02-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538526', 'tblTempUsageDetail_20' ) end [2025-02-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538526', 'tblTempVendorCDR_20' ) start [2025-02-23 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538526', 'tblTempVendorCDR_20' ) end [2025-02-23 08:27:17] Production.INFO: ProcessCDR(1,14538526,1,1,2) [2025-02-23 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538526', 'tblTempUsageDetail_20' ) start [2025-02-23 08:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538526', 'tblTempUsageDetail_20' ) end [2025-02-23 08:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:27:20] Production.INFO: ==30418== Releasing lock... [2025-02-23 08:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:27:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:28:05 [end_date_ymd] => 2025-02-23 08:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:28:05' and `end` < '2025-02-23 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-02-23 08:28:17] Production.INFO: count ==117 [2025-02-23 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:28:05 - End Time 2025-02-23 08:28:05 [2025-02-23 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538527', 'tblTempUsageDetail_20' ) start [2025-02-23 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538527', 'tblTempUsageDetail_20' ) end [2025-02-23 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538527', 'tblTempVendorCDR_20' ) start [2025-02-23 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538527', 'tblTempVendorCDR_20' ) end [2025-02-23 08:28:17] Production.INFO: ProcessCDR(1,14538527,1,1,2) [2025-02-23 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538527', 'tblTempUsageDetail_20' ) start [2025-02-23 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538527', 'tblTempUsageDetail_20' ) end [2025-02-23 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:28:20] Production.INFO: ==30489== Releasing lock... [2025-02-23 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:29:06 [end_date_ymd] => 2025-02-23 08:29:06 [RateCDR] => 1 ) [2025-02-23 08: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-02-23 05:29:06' and `end` < '2025-02-23 08: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-02-23 08:29:17] Production.INFO: count ==117 [2025-02-23 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:29:06 - End Time 2025-02-23 08:29:06 [2025-02-23 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538536', 'tblTempUsageDetail_20' ) start [2025-02-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538536', 'tblTempUsageDetail_20' ) end [2025-02-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538536', 'tblTempVendorCDR_20' ) start [2025-02-23 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538536', 'tblTempVendorCDR_20' ) end [2025-02-23 08:29:17] Production.INFO: ProcessCDR(1,14538536,1,1,2) [2025-02-23 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538536', 'tblTempUsageDetail_20' ) start [2025-02-23 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538536', 'tblTempUsageDetail_20' ) end [2025-02-23 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:29:20] Production.INFO: ==30560== Releasing lock... [2025-02-23 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:30:06 [end_date_ymd] => 2025-02-23 08:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:30:06' and `end` < '2025-02-23 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-02-23 08:30:18] Production.INFO: count ==119 [2025-02-23 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:30:06 - End Time 2025-02-23 08:30:06 [2025-02-23 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538542', 'tblTempUsageDetail_20' ) start [2025-02-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538542', 'tblTempUsageDetail_20' ) end [2025-02-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538542', 'tblTempVendorCDR_20' ) start [2025-02-23 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538542', 'tblTempVendorCDR_20' ) end [2025-02-23 08:30:18] Production.INFO: ProcessCDR(1,14538542,1,1,2) [2025-02-23 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538542', 'tblTempUsageDetail_20' ) start [2025-02-23 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538542', 'tblTempUsageDetail_20' ) end [2025-02-23 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:30:21] Production.INFO: ==30635== Releasing lock... [2025-02-23 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:30:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:31:05 [end_date_ymd] => 2025-02-23 08:31:05 [RateCDR] => 1 ) [2025-02-23 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:31:05' and `end` < '2025-02-23 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:31:17] Production.INFO: count ==120 [2025-02-23 08:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:31:05 - End Time 2025-02-23 08:31:05 [2025-02-23 08:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538547', 'tblTempUsageDetail_20' ) start [2025-02-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538547', 'tblTempUsageDetail_20' ) end [2025-02-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538547', 'tblTempVendorCDR_20' ) start [2025-02-23 08:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538547', 'tblTempVendorCDR_20' ) end [2025-02-23 08:31:17] Production.INFO: ProcessCDR(1,14538547,1,1,2) [2025-02-23 08:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538547', 'tblTempUsageDetail_20' ) start [2025-02-23 08:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538547', 'tblTempUsageDetail_20' ) end [2025-02-23 08:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:31:20] Production.INFO: ==30708== Releasing lock... [2025-02-23 08:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:32:05 [end_date_ymd] => 2025-02-23 08:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:32:05' and `end` < '2025-02-23 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-02-23 08:32:16] Production.INFO: count ==120 [2025-02-23 08:32:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:32:05 - End Time 2025-02-23 08:32:05 [2025-02-23 08:32:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538552', 'tblTempUsageDetail_20' ) start [2025-02-23 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538552', 'tblTempUsageDetail_20' ) end [2025-02-23 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538552', 'tblTempVendorCDR_20' ) start [2025-02-23 08:32:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538552', 'tblTempVendorCDR_20' ) end [2025-02-23 08:32:16] Production.INFO: ProcessCDR(1,14538552,1,1,2) [2025-02-23 08:32:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:32:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:32:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538552', 'tblTempUsageDetail_20' ) start [2025-02-23 08:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538552', 'tblTempUsageDetail_20' ) end [2025-02-23 08:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:32:20] Production.INFO: ==30778== Releasing lock... [2025-02-23 08:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:32:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:33:05 [end_date_ymd] => 2025-02-23 08:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:33:05' and `end` < '2025-02-23 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-02-23 08:33:17] Production.INFO: count ==120 [2025-02-23 08:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:33:05 - End Time 2025-02-23 08:33:05 [2025-02-23 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538557', 'tblTempUsageDetail_20' ) start [2025-02-23 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538557', 'tblTempUsageDetail_20' ) end [2025-02-23 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538557', 'tblTempVendorCDR_20' ) start [2025-02-23 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538557', 'tblTempVendorCDR_20' ) end [2025-02-23 08:33:17] Production.INFO: ProcessCDR(1,14538557,1,1,2) [2025-02-23 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538557', 'tblTempUsageDetail_20' ) start [2025-02-23 08:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538557', 'tblTempUsageDetail_20' ) end [2025-02-23 08:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:33:20] Production.INFO: ==30850== Releasing lock... [2025-02-23 08:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:33:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:34:05 [end_date_ymd] => 2025-02-23 08:34:05 [RateCDR] => 1 ) [2025-02-23 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:34:05' and `end` < '2025-02-23 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:34:17] Production.INFO: count ==120 [2025-02-23 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:34:05 - End Time 2025-02-23 08:34:05 [2025-02-23 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538562', 'tblTempUsageDetail_20' ) start [2025-02-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538562', 'tblTempUsageDetail_20' ) end [2025-02-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538562', 'tblTempVendorCDR_20' ) start [2025-02-23 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538562', 'tblTempVendorCDR_20' ) end [2025-02-23 08:34:17] Production.INFO: ProcessCDR(1,14538562,1,1,2) [2025-02-23 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538562', 'tblTempUsageDetail_20' ) start [2025-02-23 08:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538562', 'tblTempUsageDetail_20' ) end [2025-02-23 08:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:34:20] Production.INFO: ==30961== Releasing lock... [2025-02-23 08:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:34:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:35:05 [end_date_ymd] => 2025-02-23 08:35:05 [RateCDR] => 1 ) [2025-02-23 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:35:05' and `end` < '2025-02-23 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:35:17] Production.INFO: count ==120 [2025-02-23 08:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:35:05 - End Time 2025-02-23 08:35:05 [2025-02-23 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538567', 'tblTempUsageDetail_20' ) start [2025-02-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538567', 'tblTempUsageDetail_20' ) end [2025-02-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538567', 'tblTempVendorCDR_20' ) start [2025-02-23 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538567', 'tblTempVendorCDR_20' ) end [2025-02-23 08:35:17] Production.INFO: ProcessCDR(1,14538567,1,1,2) [2025-02-23 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538567', 'tblTempUsageDetail_20' ) start [2025-02-23 08:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538567', 'tblTempUsageDetail_20' ) end [2025-02-23 08:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:35:20] Production.INFO: ==31031== Releasing lock... [2025-02-23 08:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:35:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:36:05 [end_date_ymd] => 2025-02-23 08:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:36:05' and `end` < '2025-02-23 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-02-23 08:36:17] Production.INFO: count ==120 [2025-02-23 08:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:36:05 - End Time 2025-02-23 08:36:05 [2025-02-23 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538572', 'tblTempUsageDetail_20' ) start [2025-02-23 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538572', 'tblTempUsageDetail_20' ) end [2025-02-23 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538572', 'tblTempVendorCDR_20' ) start [2025-02-23 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538572', 'tblTempVendorCDR_20' ) end [2025-02-23 08:36:17] Production.INFO: ProcessCDR(1,14538572,1,1,2) [2025-02-23 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538572', 'tblTempUsageDetail_20' ) start [2025-02-23 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538572', 'tblTempUsageDetail_20' ) end [2025-02-23 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:36:21] Production.INFO: ==31103== Releasing lock... [2025-02-23 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:37:05 [end_date_ymd] => 2025-02-23 08:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:37:05' and `end` < '2025-02-23 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-02-23 08:37:17] Production.INFO: count ==120 [2025-02-23 08:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:37:05 - End Time 2025-02-23 08:37:05 [2025-02-23 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538577', 'tblTempUsageDetail_20' ) start [2025-02-23 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538577', 'tblTempUsageDetail_20' ) end [2025-02-23 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538577', 'tblTempVendorCDR_20' ) start [2025-02-23 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538577', 'tblTempVendorCDR_20' ) end [2025-02-23 08:37:17] Production.INFO: ProcessCDR(1,14538577,1,1,2) [2025-02-23 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538577', 'tblTempUsageDetail_20' ) start [2025-02-23 08:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538577', 'tblTempUsageDetail_20' ) end [2025-02-23 08:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:37:20] Production.INFO: ==31172== Releasing lock... [2025-02-23 08:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:37:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:38:06 [end_date_ymd] => 2025-02-23 08:38:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:38:06' and `end` < '2025-02-23 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-02-23 08:38:17] Production.INFO: count ==120 [2025-02-23 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:38:06 - End Time 2025-02-23 08:38:06 [2025-02-23 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538582', 'tblTempUsageDetail_20' ) start [2025-02-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538582', 'tblTempUsageDetail_20' ) end [2025-02-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538582', 'tblTempVendorCDR_20' ) start [2025-02-23 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538582', 'tblTempVendorCDR_20' ) end [2025-02-23 08:38:18] Production.INFO: ProcessCDR(1,14538582,1,1,2) [2025-02-23 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538582', 'tblTempUsageDetail_20' ) start [2025-02-23 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538582', 'tblTempUsageDetail_20' ) end [2025-02-23 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:38:21] Production.INFO: ==31246== Releasing lock... [2025-02-23 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:38:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:39:05 [end_date_ymd] => 2025-02-23 08:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:39:05' and `end` < '2025-02-23 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-02-23 08:39:17] Production.INFO: count ==121 [2025-02-23 08:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:39:05 - End Time 2025-02-23 08:39:05 [2025-02-23 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538587', 'tblTempUsageDetail_20' ) start [2025-02-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538587', 'tblTempUsageDetail_20' ) end [2025-02-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538587', 'tblTempVendorCDR_20' ) start [2025-02-23 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538587', 'tblTempVendorCDR_20' ) end [2025-02-23 08:39:17] Production.INFO: ProcessCDR(1,14538587,1,1,2) [2025-02-23 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538587', 'tblTempUsageDetail_20' ) start [2025-02-23 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538587', 'tblTempUsageDetail_20' ) end [2025-02-23 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:39:22] Production.INFO: ==31315== Releasing lock... [2025-02-23 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:40:06 [end_date_ymd] => 2025-02-23 08:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:40:06' and `end` < '2025-02-23 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-02-23 08:40:18] Production.INFO: count ==123 [2025-02-23 08:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:40:06 - End Time 2025-02-23 08:40:06 [2025-02-23 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538593', 'tblTempUsageDetail_20' ) start [2025-02-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538593', 'tblTempUsageDetail_20' ) end [2025-02-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538593', 'tblTempVendorCDR_20' ) start [2025-02-23 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538593', 'tblTempVendorCDR_20' ) end [2025-02-23 08:40:18] Production.INFO: ProcessCDR(1,14538593,1,1,2) [2025-02-23 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538593', 'tblTempUsageDetail_20' ) start [2025-02-23 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538593', 'tblTempUsageDetail_20' ) end [2025-02-23 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:40:22] Production.INFO: ==31390== Releasing lock... [2025-02-23 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:41:05 [end_date_ymd] => 2025-02-23 08:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:41:05' and `end` < '2025-02-23 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-02-23 08:41:17] Production.INFO: count ==128 [2025-02-23 08:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:41:05 - End Time 2025-02-23 08:41:05 [2025-02-23 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538598', 'tblTempUsageDetail_20' ) start [2025-02-23 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538598', 'tblTempUsageDetail_20' ) end [2025-02-23 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538598', 'tblTempVendorCDR_20' ) start [2025-02-23 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538598', 'tblTempVendorCDR_20' ) end [2025-02-23 08:41:17] Production.INFO: ProcessCDR(1,14538598,1,1,2) [2025-02-23 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538598', 'tblTempUsageDetail_20' ) start [2025-02-23 08:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538598', 'tblTempUsageDetail_20' ) end [2025-02-23 08:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:41:20] Production.INFO: ==31464== Releasing lock... [2025-02-23 08:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:41:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:42:06 [end_date_ymd] => 2025-02-23 08:42:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:42:06' and `end` < '2025-02-23 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-02-23 08:42:18] Production.INFO: count ==128 [2025-02-23 08:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:42:06 - End Time 2025-02-23 08:42:06 [2025-02-23 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538603', 'tblTempUsageDetail_20' ) start [2025-02-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538603', 'tblTempUsageDetail_20' ) end [2025-02-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538603', 'tblTempVendorCDR_20' ) start [2025-02-23 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538603', 'tblTempVendorCDR_20' ) end [2025-02-23 08:42:18] Production.INFO: ProcessCDR(1,14538603,1,1,2) [2025-02-23 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538603', 'tblTempUsageDetail_20' ) start [2025-02-23 08:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538603', 'tblTempUsageDetail_20' ) end [2025-02-23 08:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:42:21] Production.INFO: ==31536== Releasing lock... [2025-02-23 08:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:43:05 [end_date_ymd] => 2025-02-23 08:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:43:05' and `end` < '2025-02-23 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-02-23 08:43:17] Production.INFO: count ==128 [2025-02-23 08:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:43:05 - End Time 2025-02-23 08:43:05 [2025-02-23 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538608', 'tblTempUsageDetail_20' ) start [2025-02-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538608', 'tblTempUsageDetail_20' ) end [2025-02-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538608', 'tblTempVendorCDR_20' ) start [2025-02-23 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538608', 'tblTempVendorCDR_20' ) end [2025-02-23 08:43:17] Production.INFO: ProcessCDR(1,14538608,1,1,2) [2025-02-23 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538608', 'tblTempUsageDetail_20' ) start [2025-02-23 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538608', 'tblTempUsageDetail_20' ) end [2025-02-23 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:43:20] Production.INFO: ==31607== Releasing lock... [2025-02-23 08:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:43:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:44:06 [end_date_ymd] => 2025-02-23 08:44:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:44:06' and `end` < '2025-02-23 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-02-23 08:44:17] Production.INFO: count ==128 [2025-02-23 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:44:06 - End Time 2025-02-23 08:44:06 [2025-02-23 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538613', 'tblTempUsageDetail_20' ) start [2025-02-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538613', 'tblTempUsageDetail_20' ) end [2025-02-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538613', 'tblTempVendorCDR_20' ) start [2025-02-23 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538613', 'tblTempVendorCDR_20' ) end [2025-02-23 08:44:17] Production.INFO: ProcessCDR(1,14538613,1,1,2) [2025-02-23 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538613', 'tblTempUsageDetail_20' ) start [2025-02-23 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538613', 'tblTempUsageDetail_20' ) end [2025-02-23 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:44:21] Production.INFO: ==31684== Releasing lock... [2025-02-23 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:45:05 [end_date_ymd] => 2025-02-23 08:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:45:05' and `end` < '2025-02-23 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-02-23 08:45:17] Production.INFO: count ==128 [2025-02-23 08:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:45:05 - End Time 2025-02-23 08:45:05 [2025-02-23 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538618', 'tblTempUsageDetail_20' ) start [2025-02-23 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538618', 'tblTempUsageDetail_20' ) end [2025-02-23 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538618', 'tblTempVendorCDR_20' ) start [2025-02-23 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538618', 'tblTempVendorCDR_20' ) end [2025-02-23 08:45:17] Production.INFO: ProcessCDR(1,14538618,1,1,2) [2025-02-23 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538618', 'tblTempUsageDetail_20' ) start [2025-02-23 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538618', 'tblTempUsageDetail_20' ) end [2025-02-23 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:45:20] Production.INFO: ==31756== Releasing lock... [2025-02-23 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:46:05 [end_date_ymd] => 2025-02-23 08:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:46:05' and `end` < '2025-02-23 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-02-23 08:46:17] Production.INFO: count ==128 [2025-02-23 08:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:46:05 - End Time 2025-02-23 08:46:05 [2025-02-23 08:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538623', 'tblTempUsageDetail_20' ) start [2025-02-23 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538623', 'tblTempUsageDetail_20' ) end [2025-02-23 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538623', 'tblTempVendorCDR_20' ) start [2025-02-23 08:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538623', 'tblTempVendorCDR_20' ) end [2025-02-23 08:46:17] Production.INFO: ProcessCDR(1,14538623,1,1,2) [2025-02-23 08:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538623', 'tblTempUsageDetail_20' ) start [2025-02-23 08:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538623', 'tblTempUsageDetail_20' ) end [2025-02-23 08:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:46:20] Production.INFO: ==31826== Releasing lock... [2025-02-23 08:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:47:05 [end_date_ymd] => 2025-02-23 08:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:47:05' and `end` < '2025-02-23 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-02-23 08:47:16] Production.INFO: count ==128 [2025-02-23 08:47:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:47:05 - End Time 2025-02-23 08:47:05 [2025-02-23 08:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538628', 'tblTempUsageDetail_20' ) start [2025-02-23 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538628', 'tblTempUsageDetail_20' ) end [2025-02-23 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538628', 'tblTempVendorCDR_20' ) start [2025-02-23 08:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538628', 'tblTempVendorCDR_20' ) end [2025-02-23 08:47:16] Production.INFO: ProcessCDR(1,14538628,1,1,2) [2025-02-23 08:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:47:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:47:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:47:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538628', 'tblTempUsageDetail_20' ) start [2025-02-23 08:47:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538628', 'tblTempUsageDetail_20' ) end [2025-02-23 08:47:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:47:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:47:19] Production.INFO: ==31897== Releasing lock... [2025-02-23 08:47:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:47:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:48:06 [end_date_ymd] => 2025-02-23 08:48:06 [RateCDR] => 1 ) [2025-02-23 08: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-02-23 05:48:06' and `end` < '2025-02-23 08: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-02-23 08:48:17] Production.INFO: count ==128 [2025-02-23 08:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:48:06 - End Time 2025-02-23 08:48:06 [2025-02-23 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538633', 'tblTempUsageDetail_20' ) start [2025-02-23 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538633', 'tblTempUsageDetail_20' ) end [2025-02-23 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538633', 'tblTempVendorCDR_20' ) start [2025-02-23 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538633', 'tblTempVendorCDR_20' ) end [2025-02-23 08:48:17] Production.INFO: ProcessCDR(1,14538633,1,1,2) [2025-02-23 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538633', 'tblTempUsageDetail_20' ) start [2025-02-23 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538633', 'tblTempUsageDetail_20' ) end [2025-02-23 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:48:21] Production.INFO: ==31975== Releasing lock... [2025-02-23 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:49:04 [end_date_ymd] => 2025-02-23 08:49:04 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:49:04' and `end` < '2025-02-23 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-02-23 08:49:16] Production.INFO: count ==132 [2025-02-23 08:49:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:49:04 - End Time 2025-02-23 08:49:04 [2025-02-23 08:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538637', 'tblTempUsageDetail_20' ) start [2025-02-23 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538637', 'tblTempUsageDetail_20' ) end [2025-02-23 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538637', 'tblTempVendorCDR_20' ) start [2025-02-23 08:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538637', 'tblTempVendorCDR_20' ) end [2025-02-23 08:49:16] Production.INFO: ProcessCDR(1,14538637,1,1,2) [2025-02-23 08:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:49:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:49:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538637', 'tblTempUsageDetail_20' ) start [2025-02-23 08:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538637', 'tblTempUsageDetail_20' ) end [2025-02-23 08:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:49:20] Production.INFO: ==32051== Releasing lock... [2025-02-23 08:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:49:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:50:06 [end_date_ymd] => 2025-02-23 08:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:50:06' and `end` < '2025-02-23 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-02-23 08:50:18] Production.INFO: count ==132 [2025-02-23 08:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 05:50:06 - End Time 2025-02-23 08:50:06 [2025-02-23 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538644', 'tblTempUsageDetail_20' ) start [2025-02-23 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538644', 'tblTempUsageDetail_20' ) end [2025-02-23 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538644', 'tblTempVendorCDR_20' ) start [2025-02-23 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538644', 'tblTempVendorCDR_20' ) end [2025-02-23 08:50:18] Production.INFO: ProcessCDR(1,14538644,1,1,2) [2025-02-23 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538644', 'tblTempUsageDetail_20' ) start [2025-02-23 08:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538644', 'tblTempUsageDetail_20' ) end [2025-02-23 08:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:50:21] Production.INFO: ==32166== Releasing lock... [2025-02-23 08:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:51:05 [end_date_ymd] => 2025-02-23 08:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:51:05' and `end` < '2025-02-23 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-02-23 08:51:17] Production.INFO: count ==132 [2025-02-23 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:51:05 - End Time 2025-02-23 08:51:05 [2025-02-23 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538649', 'tblTempUsageDetail_20' ) start [2025-02-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538649', 'tblTempUsageDetail_20' ) end [2025-02-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538649', 'tblTempVendorCDR_20' ) start [2025-02-23 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538649', 'tblTempVendorCDR_20' ) end [2025-02-23 08:51:17] Production.INFO: ProcessCDR(1,14538649,1,1,2) [2025-02-23 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538649', 'tblTempUsageDetail_20' ) start [2025-02-23 08:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538649', 'tblTempUsageDetail_20' ) end [2025-02-23 08:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:51:20] Production.INFO: ==32242== Releasing lock... [2025-02-23 08:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:52:05 [end_date_ymd] => 2025-02-23 08:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:52:05' and `end` < '2025-02-23 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-02-23 08:52:17] Production.INFO: count ==132 [2025-02-23 08:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:52:05 - End Time 2025-02-23 08:52:05 [2025-02-23 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538654', 'tblTempUsageDetail_20' ) start [2025-02-23 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538654', 'tblTempUsageDetail_20' ) end [2025-02-23 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538654', 'tblTempVendorCDR_20' ) start [2025-02-23 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538654', 'tblTempVendorCDR_20' ) end [2025-02-23 08:52:17] Production.INFO: ProcessCDR(1,14538654,1,1,2) [2025-02-23 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538654', 'tblTempUsageDetail_20' ) start [2025-02-23 08:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538654', 'tblTempUsageDetail_20' ) end [2025-02-23 08:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:52:20] Production.INFO: ==32322== Releasing lock... [2025-02-23 08:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:53:05 [end_date_ymd] => 2025-02-23 08:53:05 [RateCDR] => 1 ) [2025-02-23 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:53:05' and `end` < '2025-02-23 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:53:16] Production.INFO: count ==132 [2025-02-23 08:53:16] Production.ERROR: pbx CDR StartTime 2025-02-23 05:53:05 - End Time 2025-02-23 08:53:05 [2025-02-23 08:53:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538659', 'tblTempUsageDetail_20' ) start [2025-02-23 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538659', 'tblTempUsageDetail_20' ) end [2025-02-23 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538659', 'tblTempVendorCDR_20' ) start [2025-02-23 08:53:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538659', 'tblTempVendorCDR_20' ) end [2025-02-23 08:53:16] Production.INFO: ProcessCDR(1,14538659,1,1,2) [2025-02-23 08:53:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:53:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:53:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:53:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538659', 'tblTempUsageDetail_20' ) start [2025-02-23 08:53:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538659', 'tblTempUsageDetail_20' ) end [2025-02-23 08:53:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:53:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:53:19] Production.INFO: ==32401== Releasing lock... [2025-02-23 08:53:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:53:19] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:54:05 [end_date_ymd] => 2025-02-23 08:54:05 [RateCDR] => 1 ) [2025-02-23 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:54:05' and `end` < '2025-02-23 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:54:17] Production.INFO: count ==132 [2025-02-23 08:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:54:05 - End Time 2025-02-23 08:54:05 [2025-02-23 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538664', 'tblTempUsageDetail_20' ) start [2025-02-23 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538664', 'tblTempUsageDetail_20' ) end [2025-02-23 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538664', 'tblTempVendorCDR_20' ) start [2025-02-23 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538664', 'tblTempVendorCDR_20' ) end [2025-02-23 08:54:17] Production.INFO: ProcessCDR(1,14538664,1,1,2) [2025-02-23 08:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538664', 'tblTempUsageDetail_20' ) start [2025-02-23 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538664', 'tblTempUsageDetail_20' ) end [2025-02-23 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:54:21] Production.INFO: ==32482== Releasing lock... [2025-02-23 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:55:05 [end_date_ymd] => 2025-02-23 08:55:05 [RateCDR] => 1 ) [2025-02-23 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:55:05' and `end` < '2025-02-23 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:55:17] Production.INFO: count ==132 [2025-02-23 08:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:55:05 - End Time 2025-02-23 08:55:05 [2025-02-23 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538669', 'tblTempUsageDetail_20' ) start [2025-02-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538669', 'tblTempUsageDetail_20' ) end [2025-02-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538669', 'tblTempVendorCDR_20' ) start [2025-02-23 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538669', 'tblTempVendorCDR_20' ) end [2025-02-23 08:55:17] Production.INFO: ProcessCDR(1,14538669,1,1,2) [2025-02-23 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538669', 'tblTempUsageDetail_20' ) start [2025-02-23 08:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538669', 'tblTempUsageDetail_20' ) end [2025-02-23 08:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:55:20] Production.INFO: ==32576== Releasing lock... [2025-02-23 08:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:55:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:56:05 [end_date_ymd] => 2025-02-23 08:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:56:05' and `end` < '2025-02-23 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-02-23 08:56:17] Production.INFO: count ==132 [2025-02-23 08:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:56:05 - End Time 2025-02-23 08:56:05 [2025-02-23 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538674', 'tblTempUsageDetail_20' ) start [2025-02-23 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538674', 'tblTempUsageDetail_20' ) end [2025-02-23 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538674', 'tblTempVendorCDR_20' ) start [2025-02-23 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538674', 'tblTempVendorCDR_20' ) end [2025-02-23 08:56:17] Production.INFO: ProcessCDR(1,14538674,1,1,2) [2025-02-23 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538674', 'tblTempUsageDetail_20' ) start [2025-02-23 08:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538674', 'tblTempUsageDetail_20' ) end [2025-02-23 08:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:56:20] Production.INFO: ==32657== Releasing lock... [2025-02-23 08:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:56:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:57:06 [end_date_ymd] => 2025-02-23 08:57:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:57:06' and `end` < '2025-02-23 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-02-23 08:57:17] Production.INFO: count ==132 [2025-02-23 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:57:06 - End Time 2025-02-23 08:57:06 [2025-02-23 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538679', 'tblTempUsageDetail_20' ) start [2025-02-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538679', 'tblTempUsageDetail_20' ) end [2025-02-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538679', 'tblTempVendorCDR_20' ) start [2025-02-23 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538679', 'tblTempVendorCDR_20' ) end [2025-02-23 08:57:17] Production.INFO: ProcessCDR(1,14538679,1,1,2) [2025-02-23 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538679', 'tblTempUsageDetail_20' ) start [2025-02-23 08:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538679', 'tblTempUsageDetail_20' ) end [2025-02-23 08:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:57:21] Production.INFO: ==32754== Releasing lock... [2025-02-23 08:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:58:05 [end_date_ymd] => 2025-02-23 08:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 05:58:05' and `end` < '2025-02-23 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-02-23 08:58:17] Production.INFO: count ==124 [2025-02-23 08:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:58:05 - End Time 2025-02-23 08:58:05 [2025-02-23 08:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538684', 'tblTempUsageDetail_20' ) start [2025-02-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538684', 'tblTempUsageDetail_20' ) end [2025-02-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538684', 'tblTempVendorCDR_20' ) start [2025-02-23 08:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538684', 'tblTempVendorCDR_20' ) end [2025-02-23 08:58:17] Production.INFO: ProcessCDR(1,14538684,1,1,2) [2025-02-23 08:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538684', 'tblTempUsageDetail_20' ) start [2025-02-23 08:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538684', 'tblTempUsageDetail_20' ) end [2025-02-23 08:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:58:20] Production.INFO: ==397== Releasing lock... [2025-02-23 08:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:58:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 05:59:05 [end_date_ymd] => 2025-02-23 08:59:05 [RateCDR] => 1 ) [2025-02-23 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 05:59:05' and `end` < '2025-02-23 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 08:59:17] Production.INFO: count ==124 [2025-02-23 08:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 05:59:05 - End Time 2025-02-23 08:59:05 [2025-02-23 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538689', 'tblTempUsageDetail_20' ) start [2025-02-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538689', 'tblTempUsageDetail_20' ) end [2025-02-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538689', 'tblTempVendorCDR_20' ) start [2025-02-23 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538689', 'tblTempVendorCDR_20' ) end [2025-02-23 08:59:17] Production.INFO: ProcessCDR(1,14538689,1,1,2) [2025-02-23 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 08:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538689', 'tblTempUsageDetail_20' ) start [2025-02-23 08:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538689', 'tblTempUsageDetail_20' ) end [2025-02-23 08:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 08:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 08:59:20] Production.INFO: ==505== Releasing lock... [2025-02-23 08:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 08:59:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:00:06 [end_date_ymd] => 2025-02-23 09:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:00:06' and `end` < '2025-02-23 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-02-23 09:00:18] Production.INFO: count ==122 [2025-02-23 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:00:06 - End Time 2025-02-23 09:00:06 [2025-02-23 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538695', 'tblTempUsageDetail_20' ) start [2025-02-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538695', 'tblTempUsageDetail_20' ) end [2025-02-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538695', 'tblTempVendorCDR_20' ) start [2025-02-23 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538695', 'tblTempVendorCDR_20' ) end [2025-02-23 09:00:18] Production.INFO: ProcessCDR(1,14538695,1,1,2) [2025-02-23 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538695', 'tblTempUsageDetail_20' ) start [2025-02-23 09:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538695', 'tblTempUsageDetail_20' ) end [2025-02-23 09:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:00:21] Production.INFO: ==599== Releasing lock... [2025-02-23 09:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:00:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:01:05 [end_date_ymd] => 2025-02-23 09:01:05 [RateCDR] => 1 ) [2025-02-23 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:01:05' and `end` < '2025-02-23 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:01:17] Production.INFO: count ==122 [2025-02-23 09:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:01:05 - End Time 2025-02-23 09:01:05 [2025-02-23 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538700', 'tblTempUsageDetail_20' ) start [2025-02-23 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538700', 'tblTempUsageDetail_20' ) end [2025-02-23 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538700', 'tblTempVendorCDR_20' ) start [2025-02-23 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538700', 'tblTempVendorCDR_20' ) end [2025-02-23 09:01:17] Production.INFO: ProcessCDR(1,14538700,1,1,2) [2025-02-23 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538700', 'tblTempUsageDetail_20' ) start [2025-02-23 09:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538700', 'tblTempUsageDetail_20' ) end [2025-02-23 09:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:01:20] Production.INFO: ==736== Releasing lock... [2025-02-23 09:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:01:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:02:05 [end_date_ymd] => 2025-02-23 09:02:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:02:05' and `end` < '2025-02-23 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-02-23 09:02:17] Production.INFO: count ==124 [2025-02-23 09:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:02:05 - End Time 2025-02-23 09:02:05 [2025-02-23 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538705', 'tblTempUsageDetail_20' ) start [2025-02-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538705', 'tblTempUsageDetail_20' ) end [2025-02-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538705', 'tblTempVendorCDR_20' ) start [2025-02-23 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538705', 'tblTempVendorCDR_20' ) end [2025-02-23 09:02:17] Production.INFO: ProcessCDR(1,14538705,1,1,2) [2025-02-23 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538705', 'tblTempUsageDetail_20' ) start [2025-02-23 09:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538705', 'tblTempUsageDetail_20' ) end [2025-02-23 09:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:02:20] Production.INFO: ==833== Releasing lock... [2025-02-23 09:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:02:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:03:05 [end_date_ymd] => 2025-02-23 09:03:05 [RateCDR] => 1 ) [2025-02-23 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:03:05' and `end` < '2025-02-23 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:03:17] Production.INFO: count ==124 [2025-02-23 09:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:03:05 - End Time 2025-02-23 09:03:05 [2025-02-23 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538710', 'tblTempUsageDetail_20' ) start [2025-02-23 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538710', 'tblTempUsageDetail_20' ) end [2025-02-23 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538710', 'tblTempVendorCDR_20' ) start [2025-02-23 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538710', 'tblTempVendorCDR_20' ) end [2025-02-23 09:03:17] Production.INFO: ProcessCDR(1,14538710,1,1,2) [2025-02-23 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538710', 'tblTempUsageDetail_20' ) start [2025-02-23 09:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538710', 'tblTempUsageDetail_20' ) end [2025-02-23 09:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:03:20] Production.INFO: ==924== Releasing lock... [2025-02-23 09:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:03:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:04:04 [end_date_ymd] => 2025-02-23 09:04:04 [RateCDR] => 1 ) [2025-02-23 09:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:04:04' and `end` < '2025-02-23 09:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:04:16] Production.INFO: count ==126 [2025-02-23 09:04:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:04:04 - End Time 2025-02-23 09:04:04 [2025-02-23 09:04:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538715', 'tblTempUsageDetail_20' ) start [2025-02-23 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538715', 'tblTempUsageDetail_20' ) end [2025-02-23 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538715', 'tblTempVendorCDR_20' ) start [2025-02-23 09:04:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538715', 'tblTempVendorCDR_20' ) end [2025-02-23 09:04:16] Production.INFO: ProcessCDR(1,14538715,1,1,2) [2025-02-23 09:04:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:04:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538715', 'tblTempUsageDetail_20' ) start [2025-02-23 09:04:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538715', 'tblTempUsageDetail_20' ) end [2025-02-23 09:04:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:04:20] Production.INFO: ==1020== Releasing lock... [2025-02-23 09:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:04:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:05:06 [end_date_ymd] => 2025-02-23 09:05:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:05:06' and `end` < '2025-02-23 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-02-23 09:05:17] Production.INFO: count ==143 [2025-02-23 09:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:05:06 - End Time 2025-02-23 09:05:06 [2025-02-23 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538720', 'tblTempUsageDetail_20' ) start [2025-02-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538720', 'tblTempUsageDetail_20' ) end [2025-02-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538720', 'tblTempVendorCDR_20' ) start [2025-02-23 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538720', 'tblTempVendorCDR_20' ) end [2025-02-23 09:05:17] Production.INFO: ProcessCDR(1,14538720,1,1,2) [2025-02-23 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538720', 'tblTempUsageDetail_20' ) start [2025-02-23 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538720', 'tblTempUsageDetail_20' ) end [2025-02-23 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:05:20] Production.INFO: ==1150== Releasing lock... [2025-02-23 09:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:05:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:06:05 [end_date_ymd] => 2025-02-23 09:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:06:05' and `end` < '2025-02-23 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-02-23 09:06:16] Production.INFO: count ==143 [2025-02-23 09:06:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:06:05 - End Time 2025-02-23 09:06:05 [2025-02-23 09:06:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:06:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538725', 'tblTempUsageDetail_20' ) start [2025-02-23 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538725', 'tblTempUsageDetail_20' ) end [2025-02-23 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538725', 'tblTempVendorCDR_20' ) start [2025-02-23 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538725', 'tblTempVendorCDR_20' ) end [2025-02-23 09:06:17] Production.INFO: ProcessCDR(1,14538725,1,1,2) [2025-02-23 09:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538725', 'tblTempUsageDetail_20' ) start [2025-02-23 09:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538725', 'tblTempUsageDetail_20' ) end [2025-02-23 09:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:06:20] Production.INFO: ==1243== Releasing lock... [2025-02-23 09:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:06:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:07:05 [end_date_ymd] => 2025-02-23 09:07:05 [RateCDR] => 1 ) [2025-02-23 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:07:05' and `end` < '2025-02-23 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:07:17] Production.INFO: count ==143 [2025-02-23 09:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:07:05 - End Time 2025-02-23 09:07:05 [2025-02-23 09:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538730', 'tblTempUsageDetail_20' ) start [2025-02-23 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538730', 'tblTempUsageDetail_20' ) end [2025-02-23 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538730', 'tblTempVendorCDR_20' ) start [2025-02-23 09:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538730', 'tblTempVendorCDR_20' ) end [2025-02-23 09:07:17] Production.INFO: ProcessCDR(1,14538730,1,1,2) [2025-02-23 09:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538730', 'tblTempUsageDetail_20' ) start [2025-02-23 09:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538730', 'tblTempUsageDetail_20' ) end [2025-02-23 09:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:07:20] Production.INFO: ==1334== Releasing lock... [2025-02-23 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:07:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:08:05 [end_date_ymd] => 2025-02-23 09:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:08:05' and `end` < '2025-02-23 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-02-23 09:08:16] Production.INFO: count ==143 [2025-02-23 09:08:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:08:05 - End Time 2025-02-23 09:08:05 [2025-02-23 09:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538735', 'tblTempUsageDetail_20' ) start [2025-02-23 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538735', 'tblTempUsageDetail_20' ) end [2025-02-23 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538735', 'tblTempVendorCDR_20' ) start [2025-02-23 09:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538735', 'tblTempVendorCDR_20' ) end [2025-02-23 09:08:16] Production.INFO: ProcessCDR(1,14538735,1,1,2) [2025-02-23 09:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:08:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:08:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538735', 'tblTempUsageDetail_20' ) start [2025-02-23 09:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538735', 'tblTempUsageDetail_20' ) end [2025-02-23 09:08:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:08:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:08:20] Production.INFO: ==1419== Releasing lock... [2025-02-23 09:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:08:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:09:05 [end_date_ymd] => 2025-02-23 09:09:05 [RateCDR] => 1 ) [2025-02-23 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:09:05' and `end` < '2025-02-23 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:09:17] Production.INFO: count ==144 [2025-02-23 09:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:09:05 - End Time 2025-02-23 09:09:05 [2025-02-23 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538740', 'tblTempUsageDetail_20' ) start [2025-02-23 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538740', 'tblTempUsageDetail_20' ) end [2025-02-23 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538740', 'tblTempVendorCDR_20' ) start [2025-02-23 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538740', 'tblTempVendorCDR_20' ) end [2025-02-23 09:09:17] Production.INFO: ProcessCDR(1,14538740,1,1,2) [2025-02-23 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538740', 'tblTempUsageDetail_20' ) start [2025-02-23 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538740', 'tblTempUsageDetail_20' ) end [2025-02-23 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:09:21] Production.INFO: ==1543== Releasing lock... [2025-02-23 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:10:06 [end_date_ymd] => 2025-02-23 09:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:10:06' and `end` < '2025-02-23 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-02-23 09:10:18] Production.INFO: count ==150 [2025-02-23 09:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:10:06 - End Time 2025-02-23 09:10:06 [2025-02-23 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538746', 'tblTempUsageDetail_20' ) start [2025-02-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538746', 'tblTempUsageDetail_20' ) end [2025-02-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538746', 'tblTempVendorCDR_20' ) start [2025-02-23 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538746', 'tblTempVendorCDR_20' ) end [2025-02-23 09:10:18] Production.INFO: ProcessCDR(1,14538746,1,1,2) [2025-02-23 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538746', 'tblTempUsageDetail_20' ) start [2025-02-23 09:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538746', 'tblTempUsageDetail_20' ) end [2025-02-23 09:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:10:21] Production.INFO: ==1636== Releasing lock... [2025-02-23 09:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:11:05 [end_date_ymd] => 2025-02-23 09:11:05 [RateCDR] => 1 ) [2025-02-23 09:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:11:05' and `end` < '2025-02-23 09:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:11:17] Production.INFO: count ==150 [2025-02-23 09:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:11:05 - End Time 2025-02-23 09:11:05 [2025-02-23 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538751', 'tblTempUsageDetail_20' ) start [2025-02-23 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538751', 'tblTempUsageDetail_20' ) end [2025-02-23 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538751', 'tblTempVendorCDR_20' ) start [2025-02-23 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538751', 'tblTempVendorCDR_20' ) end [2025-02-23 09:11:17] Production.INFO: ProcessCDR(1,14538751,1,1,2) [2025-02-23 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538751', 'tblTempUsageDetail_20' ) start [2025-02-23 09:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538751', 'tblTempUsageDetail_20' ) end [2025-02-23 09:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:11:20] Production.INFO: ==1732== Releasing lock... [2025-02-23 09:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:12:05 [end_date_ymd] => 2025-02-23 09:12:05 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:12:05' and `end` < '2025-02-23 09: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-02-23 09:12:17] Production.INFO: count ==150 [2025-02-23 09:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:12:05 - End Time 2025-02-23 09:12:05 [2025-02-23 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538756', 'tblTempUsageDetail_20' ) start [2025-02-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538756', 'tblTempUsageDetail_20' ) end [2025-02-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538756', 'tblTempVendorCDR_20' ) start [2025-02-23 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538756', 'tblTempVendorCDR_20' ) end [2025-02-23 09:12:17] Production.INFO: ProcessCDR(1,14538756,1,1,2) [2025-02-23 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538756', 'tblTempUsageDetail_20' ) start [2025-02-23 09:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538756', 'tblTempUsageDetail_20' ) end [2025-02-23 09:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:12:20] Production.INFO: ==1812== Releasing lock... [2025-02-23 09:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:12:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:13:05 [end_date_ymd] => 2025-02-23 09:13:05 [RateCDR] => 1 ) [2025-02-23 09:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:13:05' and `end` < '2025-02-23 09:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:13:17] Production.INFO: count ==150 [2025-02-23 09:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:13:05 - End Time 2025-02-23 09:13:05 [2025-02-23 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538761', 'tblTempUsageDetail_20' ) start [2025-02-23 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538761', 'tblTempUsageDetail_20' ) end [2025-02-23 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538761', 'tblTempVendorCDR_20' ) start [2025-02-23 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538761', 'tblTempVendorCDR_20' ) end [2025-02-23 09:13:17] Production.INFO: ProcessCDR(1,14538761,1,1,2) [2025-02-23 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538761', 'tblTempUsageDetail_20' ) start [2025-02-23 09:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538761', 'tblTempUsageDetail_20' ) end [2025-02-23 09:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:13:20] Production.INFO: ==1903== Releasing lock... [2025-02-23 09:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:13:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:14:05 [end_date_ymd] => 2025-02-23 09:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:14:05' and `end` < '2025-02-23 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-02-23 09:14:17] Production.INFO: count ==150 [2025-02-23 09:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:14:05 - End Time 2025-02-23 09:14:05 [2025-02-23 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538766', 'tblTempUsageDetail_20' ) start [2025-02-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538766', 'tblTempUsageDetail_20' ) end [2025-02-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538766', 'tblTempVendorCDR_20' ) start [2025-02-23 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538766', 'tblTempVendorCDR_20' ) end [2025-02-23 09:14:17] Production.INFO: ProcessCDR(1,14538766,1,1,2) [2025-02-23 09:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538766', 'tblTempUsageDetail_20' ) start [2025-02-23 09:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538766', 'tblTempUsageDetail_20' ) end [2025-02-23 09:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:14:20] Production.INFO: ==1999== Releasing lock... [2025-02-23 09:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:14:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:15:04 [end_date_ymd] => 2025-02-23 09:15:04 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:15:04' and `end` < '2025-02-23 09: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-02-23 09:15:16] Production.INFO: count ==157 [2025-02-23 09:15:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:15:04 - End Time 2025-02-23 09:15:04 [2025-02-23 09:15:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538771', 'tblTempUsageDetail_20' ) start [2025-02-23 09:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538771', 'tblTempUsageDetail_20' ) end [2025-02-23 09:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538771', 'tblTempVendorCDR_20' ) start [2025-02-23 09:15:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538771', 'tblTempVendorCDR_20' ) end [2025-02-23 09:15:16] Production.INFO: ProcessCDR(1,14538771,1,1,2) [2025-02-23 09:15:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:15:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:15:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538771', 'tblTempUsageDetail_20' ) start [2025-02-23 09:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538771', 'tblTempUsageDetail_20' ) end [2025-02-23 09:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:15:20] Production.INFO: ==2081== Releasing lock... [2025-02-23 09:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:15:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:16:05 [end_date_ymd] => 2025-02-23 09:16:05 [RateCDR] => 1 ) [2025-02-23 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:16:05' and `end` < '2025-02-23 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:16:17] Production.INFO: count ==154 [2025-02-23 09:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:16:05 - End Time 2025-02-23 09:16:05 [2025-02-23 09:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538776', 'tblTempUsageDetail_20' ) start [2025-02-23 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538776', 'tblTempUsageDetail_20' ) end [2025-02-23 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538776', 'tblTempVendorCDR_20' ) start [2025-02-23 09:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538776', 'tblTempVendorCDR_20' ) end [2025-02-23 09:16:17] Production.INFO: ProcessCDR(1,14538776,1,1,2) [2025-02-23 09:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538776', 'tblTempUsageDetail_20' ) start [2025-02-23 09:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538776', 'tblTempUsageDetail_20' ) end [2025-02-23 09:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:16:20] Production.INFO: ==2174== Releasing lock... [2025-02-23 09:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:17:05 [end_date_ymd] => 2025-02-23 09:17:05 [RateCDR] => 1 ) [2025-02-23 09:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:17:05' and `end` < '2025-02-23 09:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:17:17] Production.INFO: count ==154 [2025-02-23 09:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:17:05 - End Time 2025-02-23 09:17:05 [2025-02-23 09:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538781', 'tblTempUsageDetail_20' ) start [2025-02-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538781', 'tblTempUsageDetail_20' ) end [2025-02-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538781', 'tblTempVendorCDR_20' ) start [2025-02-23 09:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538781', 'tblTempVendorCDR_20' ) end [2025-02-23 09:17:17] Production.INFO: ProcessCDR(1,14538781,1,1,2) [2025-02-23 09:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538781', 'tblTempUsageDetail_20' ) start [2025-02-23 09:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538781', 'tblTempUsageDetail_20' ) end [2025-02-23 09:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:17:20] Production.INFO: ==2253== Releasing lock... [2025-02-23 09:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:17:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:18:05 [end_date_ymd] => 2025-02-23 09:18:05 [RateCDR] => 1 ) [2025-02-23 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:18:05' and `end` < '2025-02-23 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:18:17] Production.INFO: count ==150 [2025-02-23 09:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:18:05 - End Time 2025-02-23 09:18:05 [2025-02-23 09:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538786', 'tblTempUsageDetail_20' ) start [2025-02-23 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538786', 'tblTempUsageDetail_20' ) end [2025-02-23 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538786', 'tblTempVendorCDR_20' ) start [2025-02-23 09:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538786', 'tblTempVendorCDR_20' ) end [2025-02-23 09:18:17] Production.INFO: ProcessCDR(1,14538786,1,1,2) [2025-02-23 09:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538786', 'tblTempUsageDetail_20' ) start [2025-02-23 09:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538786', 'tblTempUsageDetail_20' ) end [2025-02-23 09:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:18:20] Production.INFO: ==2345== Releasing lock... [2025-02-23 09:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:18:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:19:06 [end_date_ymd] => 2025-02-23 09:19:06 [RateCDR] => 1 ) [2025-02-23 09:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:19:06' and `end` < '2025-02-23 09:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:19:17] Production.INFO: count ==150 [2025-02-23 09:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:19:06 - End Time 2025-02-23 09:19:06 [2025-02-23 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538791', 'tblTempUsageDetail_20' ) start [2025-02-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538791', 'tblTempUsageDetail_20' ) end [2025-02-23 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538791', 'tblTempVendorCDR_20' ) start [2025-02-23 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538791', 'tblTempVendorCDR_20' ) end [2025-02-23 09:19:18] Production.INFO: ProcessCDR(1,14538791,1,1,2) [2025-02-23 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538791', 'tblTempUsageDetail_20' ) start [2025-02-23 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538791', 'tblTempUsageDetail_20' ) end [2025-02-23 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:19:21] Production.INFO: ==2432== Releasing lock... [2025-02-23 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:20:06 [end_date_ymd] => 2025-02-23 09:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:20:06' and `end` < '2025-02-23 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-02-23 09:20:18] Production.INFO: count ==148 [2025-02-23 09:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:20:06 - End Time 2025-02-23 09:20:06 [2025-02-23 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538796', 'tblTempUsageDetail_20' ) start [2025-02-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538796', 'tblTempUsageDetail_20' ) end [2025-02-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538796', 'tblTempVendorCDR_20' ) start [2025-02-23 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538796', 'tblTempVendorCDR_20' ) end [2025-02-23 09:20:18] Production.INFO: ProcessCDR(1,14538796,1,1,2) [2025-02-23 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538796', 'tblTempUsageDetail_20' ) start [2025-02-23 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538796', 'tblTempUsageDetail_20' ) end [2025-02-23 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:20:22] Production.INFO: ==2515== Releasing lock... [2025-02-23 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:21:05 [end_date_ymd] => 2025-02-23 09:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:21:05' and `end` < '2025-02-23 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-02-23 09:21:17] Production.INFO: count ==148 [2025-02-23 09:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:21:05 - End Time 2025-02-23 09:21:05 [2025-02-23 09:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538802', 'tblTempUsageDetail_20' ) start [2025-02-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538802', 'tblTempUsageDetail_20' ) end [2025-02-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538802', 'tblTempVendorCDR_20' ) start [2025-02-23 09:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538802', 'tblTempVendorCDR_20' ) end [2025-02-23 09:21:17] Production.INFO: ProcessCDR(1,14538802,1,1,2) [2025-02-23 09:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538802', 'tblTempUsageDetail_20' ) start [2025-02-23 09:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538802', 'tblTempUsageDetail_20' ) end [2025-02-23 09:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:21:20] Production.INFO: ==2642== Releasing lock... [2025-02-23 09:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:21:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:22:05 [end_date_ymd] => 2025-02-23 09:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:22:05' and `end` < '2025-02-23 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-02-23 09:22:17] Production.INFO: count ==149 [2025-02-23 09:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:22:05 - End Time 2025-02-23 09:22:05 [2025-02-23 09:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538807', 'tblTempUsageDetail_20' ) start [2025-02-23 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538807', 'tblTempUsageDetail_20' ) end [2025-02-23 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538807', 'tblTempVendorCDR_20' ) start [2025-02-23 09:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538807', 'tblTempVendorCDR_20' ) end [2025-02-23 09:22:17] Production.INFO: ProcessCDR(1,14538807,1,1,2) [2025-02-23 09:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538807', 'tblTempUsageDetail_20' ) start [2025-02-23 09:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538807', 'tblTempUsageDetail_20' ) end [2025-02-23 09:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:22:20] Production.INFO: ==2723== Releasing lock... [2025-02-23 09:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:22:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:23:06 [end_date_ymd] => 2025-02-23 09:23:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:23:06' and `end` < '2025-02-23 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-02-23 09:23:17] Production.INFO: count ==149 [2025-02-23 09:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:23:06 - End Time 2025-02-23 09:23:06 [2025-02-23 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538812', 'tblTempUsageDetail_20' ) start [2025-02-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538812', 'tblTempUsageDetail_20' ) end [2025-02-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538812', 'tblTempVendorCDR_20' ) start [2025-02-23 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538812', 'tblTempVendorCDR_20' ) end [2025-02-23 09:23:17] Production.INFO: ProcessCDR(1,14538812,1,1,2) [2025-02-23 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538812', 'tblTempUsageDetail_20' ) start [2025-02-23 09:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538812', 'tblTempUsageDetail_20' ) end [2025-02-23 09:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:23:21] Production.INFO: ==2817== Releasing lock... [2025-02-23 09:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:24:05 [end_date_ymd] => 2025-02-23 09:24:05 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:24:05' and `end` < '2025-02-23 09: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-02-23 09:24:17] Production.INFO: count ==145 [2025-02-23 09:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:24:05 - End Time 2025-02-23 09:24:05 [2025-02-23 09:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538817', 'tblTempUsageDetail_20' ) start [2025-02-23 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538817', 'tblTempUsageDetail_20' ) end [2025-02-23 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538817', 'tblTempVendorCDR_20' ) start [2025-02-23 09:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538817', 'tblTempVendorCDR_20' ) end [2025-02-23 09:24:17] Production.INFO: ProcessCDR(1,14538817,1,1,2) [2025-02-23 09:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538817', 'tblTempUsageDetail_20' ) start [2025-02-23 09:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538817', 'tblTempUsageDetail_20' ) end [2025-02-23 09:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:24:20] Production.INFO: ==2908== Releasing lock... [2025-02-23 09:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:25:05 [end_date_ymd] => 2025-02-23 09:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:25:05' and `end` < '2025-02-23 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-02-23 09:25:17] Production.INFO: count ==142 [2025-02-23 09:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:25:05 - End Time 2025-02-23 09:25:05 [2025-02-23 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538822', 'tblTempUsageDetail_20' ) start [2025-02-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538822', 'tblTempUsageDetail_20' ) end [2025-02-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538822', 'tblTempVendorCDR_20' ) start [2025-02-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538822', 'tblTempVendorCDR_20' ) end [2025-02-23 09:25:17] Production.INFO: ProcessCDR(1,14538822,1,1,2) [2025-02-23 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538822', 'tblTempUsageDetail_20' ) start [2025-02-23 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538822', 'tblTempUsageDetail_20' ) end [2025-02-23 09:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:25:22] Production.INFO: ==2997== Releasing lock... [2025-02-23 09:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:25:22] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:26:05 [end_date_ymd] => 2025-02-23 09:26:05 [RateCDR] => 1 ) [2025-02-23 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:26:05' and `end` < '2025-02-23 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:26:17] Production.INFO: count ==142 [2025-02-23 09:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:26:05 - End Time 2025-02-23 09:26:05 [2025-02-23 09:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538827', 'tblTempUsageDetail_20' ) start [2025-02-23 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538827', 'tblTempUsageDetail_20' ) end [2025-02-23 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538827', 'tblTempVendorCDR_20' ) start [2025-02-23 09:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538827', 'tblTempVendorCDR_20' ) end [2025-02-23 09:26:17] Production.INFO: ProcessCDR(1,14538827,1,1,2) [2025-02-23 09:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538827', 'tblTempUsageDetail_20' ) start [2025-02-23 09:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538827', 'tblTempUsageDetail_20' ) end [2025-02-23 09:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:26:20] Production.INFO: ==3087== Releasing lock... [2025-02-23 09:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:26:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:27:06 [end_date_ymd] => 2025-02-23 09:27:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:27:06' and `end` < '2025-02-23 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-02-23 09:27:17] Production.INFO: count ==142 [2025-02-23 09:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:27:06 - End Time 2025-02-23 09:27:06 [2025-02-23 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538832', 'tblTempUsageDetail_20' ) start [2025-02-23 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538832', 'tblTempUsageDetail_20' ) end [2025-02-23 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538832', 'tblTempVendorCDR_20' ) start [2025-02-23 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538832', 'tblTempVendorCDR_20' ) end [2025-02-23 09:27:17] Production.INFO: ProcessCDR(1,14538832,1,1,2) [2025-02-23 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538832', 'tblTempUsageDetail_20' ) start [2025-02-23 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538832', 'tblTempUsageDetail_20' ) end [2025-02-23 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:27:21] Production.INFO: ==3172== Releasing lock... [2025-02-23 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:27:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:28:05 [end_date_ymd] => 2025-02-23 09:28:05 [RateCDR] => 1 ) [2025-02-23 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:28:05' and `end` < '2025-02-23 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:28:17] Production.INFO: count ==142 [2025-02-23 09:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:28:05 - End Time 2025-02-23 09:28:05 [2025-02-23 09:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538837', 'tblTempUsageDetail_20' ) start [2025-02-23 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538837', 'tblTempUsageDetail_20' ) end [2025-02-23 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538837', 'tblTempVendorCDR_20' ) start [2025-02-23 09:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538837', 'tblTempVendorCDR_20' ) end [2025-02-23 09:28:17] Production.INFO: ProcessCDR(1,14538837,1,1,2) [2025-02-23 09:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538837', 'tblTempUsageDetail_20' ) start [2025-02-23 09:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538837', 'tblTempUsageDetail_20' ) end [2025-02-23 09:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:28:20] Production.INFO: ==3259== Releasing lock... [2025-02-23 09:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:28:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:29:05 [end_date_ymd] => 2025-02-23 09:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:29:05' and `end` < '2025-02-23 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-02-23 09:29:17] Production.INFO: count ==142 [2025-02-23 09:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:29:05 - End Time 2025-02-23 09:29:05 [2025-02-23 09:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538842', 'tblTempUsageDetail_20' ) start [2025-02-23 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538842', 'tblTempUsageDetail_20' ) end [2025-02-23 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538842', 'tblTempVendorCDR_20' ) start [2025-02-23 09:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538842', 'tblTempVendorCDR_20' ) end [2025-02-23 09:29:17] Production.INFO: ProcessCDR(1,14538842,1,1,2) [2025-02-23 09:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538842', 'tblTempUsageDetail_20' ) start [2025-02-23 09:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538842', 'tblTempUsageDetail_20' ) end [2025-02-23 09:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:29:20] Production.INFO: ==3342== Releasing lock... [2025-02-23 09:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:29:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:30:06 [end_date_ymd] => 2025-02-23 09:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:30:06' and `end` < '2025-02-23 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-02-23 09:30:17] Production.INFO: count ==139 [2025-02-23 09:30:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:30:06 - End Time 2025-02-23 09:30:06 [2025-02-23 09:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538847', 'tblTempUsageDetail_20' ) start [2025-02-23 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538847', 'tblTempUsageDetail_20' ) end [2025-02-23 09:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538847', 'tblTempVendorCDR_20' ) start [2025-02-23 09:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538847', 'tblTempVendorCDR_20' ) end [2025-02-23 09:30:18] Production.INFO: ProcessCDR(1,14538847,1,1,2) [2025-02-23 09:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538847', 'tblTempUsageDetail_20' ) start [2025-02-23 09:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538847', 'tblTempUsageDetail_20' ) end [2025-02-23 09:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:30:21] Production.INFO: ==3422== Releasing lock... [2025-02-23 09:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:30:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:31:05 [end_date_ymd] => 2025-02-23 09:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:31:05' and `end` < '2025-02-23 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-02-23 09:31:17] Production.INFO: count ==139 [2025-02-23 09:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:31:05 - End Time 2025-02-23 09:31:05 [2025-02-23 09:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538853', 'tblTempUsageDetail_20' ) start [2025-02-23 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538853', 'tblTempUsageDetail_20' ) end [2025-02-23 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538853', 'tblTempVendorCDR_20' ) start [2025-02-23 09:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538853', 'tblTempVendorCDR_20' ) end [2025-02-23 09:31:17] Production.INFO: ProcessCDR(1,14538853,1,1,2) [2025-02-23 09:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538853', 'tblTempUsageDetail_20' ) start [2025-02-23 09:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538853', 'tblTempUsageDetail_20' ) end [2025-02-23 09:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:31:20] Production.INFO: ==3503== Releasing lock... [2025-02-23 09:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:31:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:32:06 [end_date_ymd] => 2025-02-23 09:32:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:32:06' and `end` < '2025-02-23 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-02-23 09:32:18] Production.INFO: count ==139 [2025-02-23 09:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:32:06 - End Time 2025-02-23 09:32:06 [2025-02-23 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538858', 'tblTempUsageDetail_20' ) start [2025-02-23 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538858', 'tblTempUsageDetail_20' ) end [2025-02-23 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538858', 'tblTempVendorCDR_20' ) start [2025-02-23 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538858', 'tblTempVendorCDR_20' ) end [2025-02-23 09:32:18] Production.INFO: ProcessCDR(1,14538858,1,1,2) [2025-02-23 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538858', 'tblTempUsageDetail_20' ) start [2025-02-23 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538858', 'tblTempUsageDetail_20' ) end [2025-02-23 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:32:21] Production.INFO: ==3584== Releasing lock... [2025-02-23 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:32:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:33:06 [end_date_ymd] => 2025-02-23 09:33:06 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:33:06' and `end` < '2025-02-23 09: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-02-23 09:33:17] Production.INFO: count ==139 [2025-02-23 09:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:33:06 - End Time 2025-02-23 09:33:06 [2025-02-23 09:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538863', 'tblTempUsageDetail_20' ) start [2025-02-23 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538863', 'tblTempUsageDetail_20' ) end [2025-02-23 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538863', 'tblTempVendorCDR_20' ) start [2025-02-23 09:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538863', 'tblTempVendorCDR_20' ) end [2025-02-23 09:33:17] Production.INFO: ProcessCDR(1,14538863,1,1,2) [2025-02-23 09:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538863', 'tblTempUsageDetail_20' ) start [2025-02-23 09:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538863', 'tblTempUsageDetail_20' ) end [2025-02-23 09:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:33:21] Production.INFO: ==3664== Releasing lock... [2025-02-23 09:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:33:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:34:05 [end_date_ymd] => 2025-02-23 09:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:34:05' and `end` < '2025-02-23 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-02-23 09:34:17] Production.INFO: count ==139 [2025-02-23 09:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:34:05 - End Time 2025-02-23 09:34:05 [2025-02-23 09:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538868', 'tblTempUsageDetail_20' ) start [2025-02-23 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538868', 'tblTempUsageDetail_20' ) end [2025-02-23 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538868', 'tblTempVendorCDR_20' ) start [2025-02-23 09:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538868', 'tblTempVendorCDR_20' ) end [2025-02-23 09:34:17] Production.INFO: ProcessCDR(1,14538868,1,1,2) [2025-02-23 09:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538868', 'tblTempUsageDetail_20' ) start [2025-02-23 09:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538868', 'tblTempUsageDetail_20' ) end [2025-02-23 09:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:34:20] Production.INFO: ==3747== Releasing lock... [2025-02-23 09:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:34:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:35:05 [end_date_ymd] => 2025-02-23 09:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:35:05' and `end` < '2025-02-23 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-02-23 09:35:17] Production.INFO: count ==139 [2025-02-23 09:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:35:05 - End Time 2025-02-23 09:35:05 [2025-02-23 09:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538873', 'tblTempUsageDetail_20' ) start [2025-02-23 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538873', 'tblTempUsageDetail_20' ) end [2025-02-23 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538873', 'tblTempVendorCDR_20' ) start [2025-02-23 09:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538873', 'tblTempVendorCDR_20' ) end [2025-02-23 09:35:17] Production.INFO: ProcessCDR(1,14538873,1,1,2) [2025-02-23 09:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538873', 'tblTempUsageDetail_20' ) start [2025-02-23 09:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538873', 'tblTempUsageDetail_20' ) end [2025-02-23 09:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:35:20] Production.INFO: ==3821== Releasing lock... [2025-02-23 09:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:35:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:36:05 [end_date_ymd] => 2025-02-23 09:36:05 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:36:05' and `end` < '2025-02-23 09: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-02-23 09:36:17] Production.INFO: count ==139 [2025-02-23 09:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:36:05 - End Time 2025-02-23 09:36:05 [2025-02-23 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538878', 'tblTempUsageDetail_20' ) start [2025-02-23 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538878', 'tblTempUsageDetail_20' ) end [2025-02-23 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538878', 'tblTempVendorCDR_20' ) start [2025-02-23 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538878', 'tblTempVendorCDR_20' ) end [2025-02-23 09:36:17] Production.INFO: ProcessCDR(1,14538878,1,1,2) [2025-02-23 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538878', 'tblTempUsageDetail_20' ) start [2025-02-23 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538878', 'tblTempUsageDetail_20' ) end [2025-02-23 09:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:36:20] Production.INFO: ==3937== Releasing lock... [2025-02-23 09:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:36:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:37:05 [end_date_ymd] => 2025-02-23 09:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:37:05' and `end` < '2025-02-23 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-02-23 09:37:16] Production.INFO: count ==139 [2025-02-23 09:37:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:37:05 - End Time 2025-02-23 09:37:05 [2025-02-23 09:37:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538883', 'tblTempUsageDetail_20' ) start [2025-02-23 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538883', 'tblTempUsageDetail_20' ) end [2025-02-23 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538883', 'tblTempVendorCDR_20' ) start [2025-02-23 09:37:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538883', 'tblTempVendorCDR_20' ) end [2025-02-23 09:37:16] Production.INFO: ProcessCDR(1,14538883,1,1,2) [2025-02-23 09:37:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:37:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:37:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538883', 'tblTempUsageDetail_20' ) start [2025-02-23 09:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538883', 'tblTempUsageDetail_20' ) end [2025-02-23 09:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:37:20] Production.INFO: ==4021== Releasing lock... [2025-02-23 09:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:37:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:38:05 [end_date_ymd] => 2025-02-23 09:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:38:05' and `end` < '2025-02-23 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-02-23 09:38:17] Production.INFO: count ==139 [2025-02-23 09:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:38:05 - End Time 2025-02-23 09:38:05 [2025-02-23 09:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538888', 'tblTempUsageDetail_20' ) start [2025-02-23 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538888', 'tblTempUsageDetail_20' ) end [2025-02-23 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538888', 'tblTempVendorCDR_20' ) start [2025-02-23 09:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538888', 'tblTempVendorCDR_20' ) end [2025-02-23 09:38:17] Production.INFO: ProcessCDR(1,14538888,1,1,2) [2025-02-23 09:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538888', 'tblTempUsageDetail_20' ) start [2025-02-23 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538888', 'tblTempUsageDetail_20' ) end [2025-02-23 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:38:21] Production.INFO: ==4097== Releasing lock... [2025-02-23 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:38:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:39:05 [end_date_ymd] => 2025-02-23 09:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:39:05' and `end` < '2025-02-23 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-02-23 09:39:17] Production.INFO: count ==139 [2025-02-23 09:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:39:05 - End Time 2025-02-23 09:39:05 [2025-02-23 09:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538893', 'tblTempUsageDetail_20' ) start [2025-02-23 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538893', 'tblTempUsageDetail_20' ) end [2025-02-23 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538893', 'tblTempVendorCDR_20' ) start [2025-02-23 09:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538893', 'tblTempVendorCDR_20' ) end [2025-02-23 09:39:17] Production.INFO: ProcessCDR(1,14538893,1,1,2) [2025-02-23 09:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538893', 'tblTempUsageDetail_20' ) start [2025-02-23 09:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538893', 'tblTempUsageDetail_20' ) end [2025-02-23 09:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:39:20] Production.INFO: ==4181== Releasing lock... [2025-02-23 09:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:39:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:40:06 [end_date_ymd] => 2025-02-23 09:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:40:06' and `end` < '2025-02-23 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-02-23 09:40:18] Production.INFO: count ==139 [2025-02-23 09:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:40:06 - End Time 2025-02-23 09:40:06 [2025-02-23 09:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538898', 'tblTempUsageDetail_20' ) start [2025-02-23 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538898', 'tblTempUsageDetail_20' ) end [2025-02-23 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538898', 'tblTempVendorCDR_20' ) start [2025-02-23 09:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538898', 'tblTempVendorCDR_20' ) end [2025-02-23 09:40:18] Production.INFO: ProcessCDR(1,14538898,1,1,2) [2025-02-23 09:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538898', 'tblTempUsageDetail_20' ) start [2025-02-23 09:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538898', 'tblTempUsageDetail_20' ) end [2025-02-23 09:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:40:21] Production.INFO: ==4257== Releasing lock... [2025-02-23 09:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:40:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:41:05 [end_date_ymd] => 2025-02-23 09:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:41:05' and `end` < '2025-02-23 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-02-23 09:41:17] Production.INFO: count ==139 [2025-02-23 09:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:41:05 - End Time 2025-02-23 09:41:05 [2025-02-23 09:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538904', 'tblTempUsageDetail_20' ) start [2025-02-23 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538904', 'tblTempUsageDetail_20' ) end [2025-02-23 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538904', 'tblTempVendorCDR_20' ) start [2025-02-23 09:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538904', 'tblTempVendorCDR_20' ) end [2025-02-23 09:41:17] Production.INFO: ProcessCDR(1,14538904,1,1,2) [2025-02-23 09:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538904', 'tblTempUsageDetail_20' ) start [2025-02-23 09:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538904', 'tblTempUsageDetail_20' ) end [2025-02-23 09:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:41:20] Production.INFO: ==4337== Releasing lock... [2025-02-23 09:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:41:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:42:05 [end_date_ymd] => 2025-02-23 09:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:42:05' and `end` < '2025-02-23 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-02-23 09:42:17] Production.INFO: count ==139 [2025-02-23 09:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:42:05 - End Time 2025-02-23 09:42:05 [2025-02-23 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538909', 'tblTempUsageDetail_20' ) start [2025-02-23 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538909', 'tblTempUsageDetail_20' ) end [2025-02-23 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538909', 'tblTempVendorCDR_20' ) start [2025-02-23 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538909', 'tblTempVendorCDR_20' ) end [2025-02-23 09:42:17] Production.INFO: ProcessCDR(1,14538909,1,1,2) [2025-02-23 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538909', 'tblTempUsageDetail_20' ) start [2025-02-23 09:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538909', 'tblTempUsageDetail_20' ) end [2025-02-23 09:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:42:20] Production.INFO: ==4422== Releasing lock... [2025-02-23 09:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:42:20] Production.INFO: 29 MB #Memory Used# [2025-02-23 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:43:06 [end_date_ymd] => 2025-02-23 09:43:06 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:43:06' and `end` < '2025-02-23 09: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-02-23 09:43:18] Production.INFO: count ==140 [2025-02-23 09:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:43:06 - End Time 2025-02-23 09:43:06 [2025-02-23 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538914', 'tblTempUsageDetail_20' ) start [2025-02-23 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538914', 'tblTempUsageDetail_20' ) end [2025-02-23 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538914', 'tblTempVendorCDR_20' ) start [2025-02-23 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538914', 'tblTempVendorCDR_20' ) end [2025-02-23 09:43:18] Production.INFO: ProcessCDR(1,14538914,1,1,2) [2025-02-23 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538914', 'tblTempUsageDetail_20' ) start [2025-02-23 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538914', 'tblTempUsageDetail_20' ) end [2025-02-23 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:43:22] Production.INFO: ==4494== Releasing lock... [2025-02-23 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:44:05 [end_date_ymd] => 2025-02-23 09:44:05 [RateCDR] => 1 ) [2025-02-23 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:44:05' and `end` < '2025-02-23 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:44:17] Production.INFO: count ==140 [2025-02-23 09:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:44:05 - End Time 2025-02-23 09:44:05 [2025-02-23 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538919', 'tblTempUsageDetail_20' ) start [2025-02-23 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538919', 'tblTempUsageDetail_20' ) end [2025-02-23 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538919', 'tblTempVendorCDR_20' ) start [2025-02-23 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538919', 'tblTempVendorCDR_20' ) end [2025-02-23 09:44:17] Production.INFO: ProcessCDR(1,14538919,1,1,2) [2025-02-23 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538919', 'tblTempUsageDetail_20' ) start [2025-02-23 09:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538919', 'tblTempUsageDetail_20' ) end [2025-02-23 09:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:44:20] Production.INFO: ==4579== Releasing lock... [2025-02-23 09:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:45:05 [end_date_ymd] => 2025-02-23 09:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:45:05' and `end` < '2025-02-23 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-02-23 09:45:16] Production.INFO: count ==142 [2025-02-23 09:45:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:45:05 - End Time 2025-02-23 09:45:05 [2025-02-23 09:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538924', 'tblTempUsageDetail_20' ) start [2025-02-23 09:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538924', 'tblTempUsageDetail_20' ) end [2025-02-23 09:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538924', 'tblTempVendorCDR_20' ) start [2025-02-23 09:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538924', 'tblTempVendorCDR_20' ) end [2025-02-23 09:45:16] Production.INFO: ProcessCDR(1,14538924,1,1,2) [2025-02-23 09:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538924', 'tblTempUsageDetail_20' ) start [2025-02-23 09:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538924', 'tblTempUsageDetail_20' ) end [2025-02-23 09:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:45:20] Production.INFO: ==4657== Releasing lock... [2025-02-23 09:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:46:06 [end_date_ymd] => 2025-02-23 09:46:06 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:46:06' and `end` < '2025-02-23 09: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-02-23 09:46:17] Production.INFO: count ==144 [2025-02-23 09:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:46:06 - End Time 2025-02-23 09:46:06 [2025-02-23 09:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538929', 'tblTempUsageDetail_20' ) start [2025-02-23 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538929', 'tblTempUsageDetail_20' ) end [2025-02-23 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538929', 'tblTempVendorCDR_20' ) start [2025-02-23 09:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538929', 'tblTempVendorCDR_20' ) end [2025-02-23 09:46:17] Production.INFO: ProcessCDR(1,14538929,1,1,2) [2025-02-23 09:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538929', 'tblTempUsageDetail_20' ) start [2025-02-23 09:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538929', 'tblTempUsageDetail_20' ) end [2025-02-23 09:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:46:21] Production.INFO: ==4737== Releasing lock... [2025-02-23 09:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:47:06 [end_date_ymd] => 2025-02-23 09:47:06 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:47:06' and `end` < '2025-02-23 09: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-02-23 09:47:18] Production.INFO: count ==144 [2025-02-23 09:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 06:47:06 - End Time 2025-02-23 09:47:06 [2025-02-23 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538934', 'tblTempUsageDetail_20' ) start [2025-02-23 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538934', 'tblTempUsageDetail_20' ) end [2025-02-23 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538934', 'tblTempVendorCDR_20' ) start [2025-02-23 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538934', 'tblTempVendorCDR_20' ) end [2025-02-23 09:47:18] Production.INFO: ProcessCDR(1,14538934,1,1,2) [2025-02-23 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538934', 'tblTempUsageDetail_20' ) start [2025-02-23 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538934', 'tblTempUsageDetail_20' ) end [2025-02-23 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:47:21] Production.INFO: ==4813== Releasing lock... [2025-02-23 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:48:05 [end_date_ymd] => 2025-02-23 09:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:48:05' and `end` < '2025-02-23 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-02-23 09:48:17] Production.INFO: count ==144 [2025-02-23 09:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:48:05 - End Time 2025-02-23 09:48:05 [2025-02-23 09:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538939', 'tblTempUsageDetail_20' ) start [2025-02-23 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538939', 'tblTempUsageDetail_20' ) end [2025-02-23 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538939', 'tblTempVendorCDR_20' ) start [2025-02-23 09:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538939', 'tblTempVendorCDR_20' ) end [2025-02-23 09:48:17] Production.INFO: ProcessCDR(1,14538939,1,1,2) [2025-02-23 09:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538939', 'tblTempUsageDetail_20' ) start [2025-02-23 09:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538939', 'tblTempUsageDetail_20' ) end [2025-02-23 09:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:48:20] Production.INFO: ==4889== Releasing lock... [2025-02-23 09:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:48:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:49:05 [end_date_ymd] => 2025-02-23 09:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:49:05' and `end` < '2025-02-23 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-02-23 09:49:17] Production.INFO: count ==144 [2025-02-23 09:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:49:05 - End Time 2025-02-23 09:49:05 [2025-02-23 09:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538944', 'tblTempUsageDetail_20' ) start [2025-02-23 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538944', 'tblTempUsageDetail_20' ) end [2025-02-23 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538944', 'tblTempVendorCDR_20' ) start [2025-02-23 09:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538944', 'tblTempVendorCDR_20' ) end [2025-02-23 09:49:17] Production.INFO: ProcessCDR(1,14538944,1,1,2) [2025-02-23 09:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538944', 'tblTempUsageDetail_20' ) start [2025-02-23 09:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538944', 'tblTempUsageDetail_20' ) end [2025-02-23 09:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:49:20] Production.INFO: ==4970== Releasing lock... [2025-02-23 09:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:50:06 [end_date_ymd] => 2025-02-23 09:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:50:06' and `end` < '2025-02-23 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-02-23 09:50:17] Production.INFO: count ==138 [2025-02-23 09:50:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:50:06 - End Time 2025-02-23 09:50:06 [2025-02-23 09:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538950', 'tblTempUsageDetail_20' ) start [2025-02-23 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538950', 'tblTempUsageDetail_20' ) end [2025-02-23 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538950', 'tblTempVendorCDR_20' ) start [2025-02-23 09:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538950', 'tblTempVendorCDR_20' ) end [2025-02-23 09:50:17] Production.INFO: ProcessCDR(1,14538950,1,1,2) [2025-02-23 09:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538950', 'tblTempUsageDetail_20' ) start [2025-02-23 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538950', 'tblTempUsageDetail_20' ) end [2025-02-23 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:50:22] Production.INFO: ==5046== Releasing lock... [2025-02-23 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:51:05 [end_date_ymd] => 2025-02-23 09:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:51:05' and `end` < '2025-02-23 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-02-23 09:51:17] Production.INFO: count ==138 [2025-02-23 09:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:51:05 - End Time 2025-02-23 09:51:05 [2025-02-23 09:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538955', 'tblTempUsageDetail_20' ) start [2025-02-23 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538955', 'tblTempUsageDetail_20' ) end [2025-02-23 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538955', 'tblTempVendorCDR_20' ) start [2025-02-23 09:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538955', 'tblTempVendorCDR_20' ) end [2025-02-23 09:51:17] Production.INFO: ProcessCDR(1,14538955,1,1,2) [2025-02-23 09:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538955', 'tblTempUsageDetail_20' ) start [2025-02-23 09:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538955', 'tblTempUsageDetail_20' ) end [2025-02-23 09:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:51:20] Production.INFO: ==5130== Releasing lock... [2025-02-23 09:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:51:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:52:04 [end_date_ymd] => 2025-02-23 09:52:04 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:52:04' and `end` < '2025-02-23 09: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-02-23 09:52:16] Production.INFO: count ==133 [2025-02-23 09:52:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:52:04 - End Time 2025-02-23 09:52:04 [2025-02-23 09:52:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538960', 'tblTempUsageDetail_20' ) start [2025-02-23 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538960', 'tblTempUsageDetail_20' ) end [2025-02-23 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538960', 'tblTempVendorCDR_20' ) start [2025-02-23 09:52:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538960', 'tblTempVendorCDR_20' ) end [2025-02-23 09:52:16] Production.INFO: ProcessCDR(1,14538960,1,1,2) [2025-02-23 09:52:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:52:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:52:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:52:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538960', 'tblTempUsageDetail_20' ) start [2025-02-23 09:52:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538960', 'tblTempUsageDetail_20' ) end [2025-02-23 09:52:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:52:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:52:19] Production.INFO: ==5245== Releasing lock... [2025-02-23 09:52:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:52:19] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:53:05 [end_date_ymd] => 2025-02-23 09:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:53:05' and `end` < '2025-02-23 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-02-23 09:53:17] Production.INFO: count ==130 [2025-02-23 09:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:53:05 - End Time 2025-02-23 09:53:05 [2025-02-23 09:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538965', 'tblTempUsageDetail_20' ) start [2025-02-23 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538965', 'tblTempUsageDetail_20' ) end [2025-02-23 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538965', 'tblTempVendorCDR_20' ) start [2025-02-23 09:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538965', 'tblTempVendorCDR_20' ) end [2025-02-23 09:53:17] Production.INFO: ProcessCDR(1,14538965,1,1,2) [2025-02-23 09:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538965', 'tblTempUsageDetail_20' ) start [2025-02-23 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538965', 'tblTempUsageDetail_20' ) end [2025-02-23 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:53:21] Production.INFO: ==5322== Releasing lock... [2025-02-23 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:54:05 [end_date_ymd] => 2025-02-23 09:54:05 [RateCDR] => 1 ) [2025-02-23 09: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-02-23 06:54:05' and `end` < '2025-02-23 09: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-02-23 09:54:17] Production.INFO: count ==130 [2025-02-23 09:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:54:05 - End Time 2025-02-23 09:54:05 [2025-02-23 09:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538970', 'tblTempUsageDetail_20' ) start [2025-02-23 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538970', 'tblTempUsageDetail_20' ) end [2025-02-23 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538970', 'tblTempVendorCDR_20' ) start [2025-02-23 09:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538970', 'tblTempVendorCDR_20' ) end [2025-02-23 09:54:17] Production.INFO: ProcessCDR(1,14538970,1,1,2) [2025-02-23 09:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538970', 'tblTempUsageDetail_20' ) start [2025-02-23 09:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538970', 'tblTempUsageDetail_20' ) end [2025-02-23 09:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:54:20] Production.INFO: ==5405== Releasing lock... [2025-02-23 09:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:54:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:55:05 [end_date_ymd] => 2025-02-23 09:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:55:05' and `end` < '2025-02-23 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-02-23 09:55:17] Production.INFO: count ==130 [2025-02-23 09:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:55:05 - End Time 2025-02-23 09:55:05 [2025-02-23 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538975', 'tblTempUsageDetail_20' ) start [2025-02-23 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538975', 'tblTempUsageDetail_20' ) end [2025-02-23 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538975', 'tblTempVendorCDR_20' ) start [2025-02-23 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538975', 'tblTempVendorCDR_20' ) end [2025-02-23 09:55:17] Production.INFO: ProcessCDR(1,14538975,1,1,2) [2025-02-23 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538975', 'tblTempUsageDetail_20' ) start [2025-02-23 09:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538975', 'tblTempUsageDetail_20' ) end [2025-02-23 09:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:55:20] Production.INFO: ==5486== Releasing lock... [2025-02-23 09:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:55:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:56:05 [end_date_ymd] => 2025-02-23 09:56:05 [RateCDR] => 1 ) [2025-02-23 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:56:05' and `end` < '2025-02-23 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:56:17] Production.INFO: count ==130 [2025-02-23 09:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:56:05 - End Time 2025-02-23 09:56:05 [2025-02-23 09:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538980', 'tblTempUsageDetail_20' ) start [2025-02-23 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538980', 'tblTempUsageDetail_20' ) end [2025-02-23 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538980', 'tblTempVendorCDR_20' ) start [2025-02-23 09:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538980', 'tblTempVendorCDR_20' ) end [2025-02-23 09:56:17] Production.INFO: ProcessCDR(1,14538980,1,1,2) [2025-02-23 09:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538980', 'tblTempUsageDetail_20' ) start [2025-02-23 09:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538980', 'tblTempUsageDetail_20' ) end [2025-02-23 09:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:56:20] Production.INFO: ==5567== Releasing lock... [2025-02-23 09:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:56:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:57:05 [end_date_ymd] => 2025-02-23 09:57:05 [RateCDR] => 1 ) [2025-02-23 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 06:57:05' and `end` < '2025-02-23 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 09:57:17] Production.INFO: count ==134 [2025-02-23 09:57:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:57:05 - End Time 2025-02-23 09:57:05 [2025-02-23 09:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538985', 'tblTempUsageDetail_20' ) start [2025-02-23 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538985', 'tblTempUsageDetail_20' ) end [2025-02-23 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538985', 'tblTempVendorCDR_20' ) start [2025-02-23 09:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538985', 'tblTempVendorCDR_20' ) end [2025-02-23 09:57:17] Production.INFO: ProcessCDR(1,14538985,1,1,2) [2025-02-23 09:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538985', 'tblTempUsageDetail_20' ) start [2025-02-23 09:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538985', 'tblTempUsageDetail_20' ) end [2025-02-23 09:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:57:20] Production.INFO: ==5643== Releasing lock... [2025-02-23 09:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:58:05 [end_date_ymd] => 2025-02-23 09:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:58:05' and `end` < '2025-02-23 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-02-23 09:58:17] Production.INFO: count ==136 [2025-02-23 09:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 06:58:05 - End Time 2025-02-23 09:58:05 [2025-02-23 09:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538990', 'tblTempUsageDetail_20' ) start [2025-02-23 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538990', 'tblTempUsageDetail_20' ) end [2025-02-23 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538990', 'tblTempVendorCDR_20' ) start [2025-02-23 09:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538990', 'tblTempVendorCDR_20' ) end [2025-02-23 09:58:17] Production.INFO: ProcessCDR(1,14538990,1,1,2) [2025-02-23 09:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538990', 'tblTempUsageDetail_20' ) start [2025-02-23 09:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538990', 'tblTempUsageDetail_20' ) end [2025-02-23 09:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:58:21] Production.INFO: ==5722== Releasing lock... [2025-02-23 09:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 06:59:05 [end_date_ymd] => 2025-02-23 09:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 06:59:05' and `end` < '2025-02-23 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-02-23 09:59:16] Production.INFO: count ==137 [2025-02-23 09:59:16] Production.ERROR: pbx CDR StartTime 2025-02-23 06:59:05 - End Time 2025-02-23 09:59:05 [2025-02-23 09:59:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 09:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538995', 'tblTempUsageDetail_20' ) start [2025-02-23 09:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14538995', 'tblTempUsageDetail_20' ) end [2025-02-23 09:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538995', 'tblTempVendorCDR_20' ) start [2025-02-23 09:59:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14538995', 'tblTempVendorCDR_20' ) end [2025-02-23 09:59:16] Production.INFO: ProcessCDR(1,14538995,1,1,2) [2025-02-23 09:59:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14538995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14538995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14538995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14538995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538995', 'tblTempUsageDetail_20' ) start [2025-02-23 09:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14538995', 'tblTempUsageDetail_20' ) end [2025-02-23 09:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 09:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 09:59:21] Production.INFO: ==5799== Releasing lock... [2025-02-23 09:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 09:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:00:07 [end_date_ymd] => 2025-02-23 10:00:07 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:00:07' and `end` < '2025-02-23 10: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-02-23 10:00:19] Production.INFO: count ==134 [2025-02-23 10:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 07:00:07 - End Time 2025-02-23 10:00:07 [2025-02-23 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539001', 'tblTempUsageDetail_20' ) start [2025-02-23 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539001', 'tblTempUsageDetail_20' ) end [2025-02-23 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539001', 'tblTempVendorCDR_20' ) start [2025-02-23 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539001', 'tblTempVendorCDR_20' ) end [2025-02-23 10:00:19] Production.INFO: ProcessCDR(1,14539001,1,1,2) [2025-02-23 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539001', 'tblTempUsageDetail_20' ) start [2025-02-23 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539001', 'tblTempUsageDetail_20' ) end [2025-02-23 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:00:24] Production.INFO: ==5892== Releasing lock... [2025-02-23 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:01:04 [end_date_ymd] => 2025-02-23 10:01:04 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:01:04' and `end` < '2025-02-23 10: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-02-23 10:01:16] Production.INFO: count ==146 [2025-02-23 10:01:16] Production.ERROR: pbx CDR StartTime 2025-02-23 07:01:04 - End Time 2025-02-23 10:01:04 [2025-02-23 10:01:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539006', 'tblTempUsageDetail_20' ) start [2025-02-23 10:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539006', 'tblTempUsageDetail_20' ) end [2025-02-23 10:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539006', 'tblTempVendorCDR_20' ) start [2025-02-23 10:01:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539006', 'tblTempVendorCDR_20' ) end [2025-02-23 10:01:16] Production.INFO: ProcessCDR(1,14539006,1,1,2) [2025-02-23 10:01:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539006', 'tblTempUsageDetail_20' ) start [2025-02-23 10:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539006', 'tblTempUsageDetail_20' ) end [2025-02-23 10:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:01:21] Production.INFO: ==5985== Releasing lock... [2025-02-23 10:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:01:21] Production.INFO: 29 MB #Memory Used# [2025-02-23 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:02:05 [end_date_ymd] => 2025-02-23 10:02:05 [RateCDR] => 1 ) [2025-02-23 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:02:05' and `end` < '2025-02-23 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:02:17] Production.INFO: count ==149 [2025-02-23 10:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:02:05 - End Time 2025-02-23 10:02:05 [2025-02-23 10:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539011', 'tblTempUsageDetail_20' ) start [2025-02-23 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539011', 'tblTempUsageDetail_20' ) end [2025-02-23 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539011', 'tblTempVendorCDR_20' ) start [2025-02-23 10:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539011', 'tblTempVendorCDR_20' ) end [2025-02-23 10:02:17] Production.INFO: ProcessCDR(1,14539011,1,1,2) [2025-02-23 10:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539011', 'tblTempUsageDetail_20' ) start [2025-02-23 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539011', 'tblTempUsageDetail_20' ) end [2025-02-23 10:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:02:22] Production.INFO: ==6065== Releasing lock... [2025-02-23 10:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-23 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:03:05 [end_date_ymd] => 2025-02-23 10:03:05 [RateCDR] => 1 ) [2025-02-23 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:03:05' and `end` < '2025-02-23 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:03:17] Production.INFO: count ==150 [2025-02-23 10:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:03:05 - End Time 2025-02-23 10:03:05 [2025-02-23 10:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539016', 'tblTempUsageDetail_20' ) start [2025-02-23 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539016', 'tblTempUsageDetail_20' ) end [2025-02-23 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539016', 'tblTempVendorCDR_20' ) start [2025-02-23 10:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539016', 'tblTempVendorCDR_20' ) end [2025-02-23 10:03:17] Production.INFO: ProcessCDR(1,14539016,1,1,2) [2025-02-23 10:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539016', 'tblTempUsageDetail_20' ) start [2025-02-23 10:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539016', 'tblTempUsageDetail_20' ) end [2025-02-23 10:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:03:22] Production.INFO: ==6143== Releasing lock... [2025-02-23 10:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:03:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:04:06 [end_date_ymd] => 2025-02-23 10:04:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:04:06' and `end` < '2025-02-23 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-02-23 10:04:18] Production.INFO: count ==150 [2025-02-23 10:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:04:06 - End Time 2025-02-23 10:04:06 [2025-02-23 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539021', 'tblTempUsageDetail_20' ) start [2025-02-23 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539021', 'tblTempUsageDetail_20' ) end [2025-02-23 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539021', 'tblTempVendorCDR_20' ) start [2025-02-23 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539021', 'tblTempVendorCDR_20' ) end [2025-02-23 10:04:18] Production.INFO: ProcessCDR(1,14539021,1,1,2) [2025-02-23 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539021', 'tblTempUsageDetail_20' ) start [2025-02-23 10:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539021', 'tblTempUsageDetail_20' ) end [2025-02-23 10:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:04:22] Production.INFO: ==6221== Releasing lock... [2025-02-23 10:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:05:05 [end_date_ymd] => 2025-02-23 10:05:05 [RateCDR] => 1 ) [2025-02-23 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:05:05' and `end` < '2025-02-23 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:05:17] Production.INFO: count ==159 [2025-02-23 10:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:05:05 - End Time 2025-02-23 10:05:05 [2025-02-23 10:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539026', 'tblTempUsageDetail_20' ) start [2025-02-23 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539026', 'tblTempUsageDetail_20' ) end [2025-02-23 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539026', 'tblTempVendorCDR_20' ) start [2025-02-23 10:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539026', 'tblTempVendorCDR_20' ) end [2025-02-23 10:05:17] Production.INFO: ProcessCDR(1,14539026,1,1,2) [2025-02-23 10:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539026', 'tblTempUsageDetail_20' ) start [2025-02-23 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539026', 'tblTempUsageDetail_20' ) end [2025-02-23 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:05:23] Production.INFO: ==6300== Releasing lock... [2025-02-23 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:05:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-23 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:06:06 [end_date_ymd] => 2025-02-23 10:06:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:06:06' and `end` < '2025-02-23 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-02-23 10:06:18] Production.INFO: count ==166 [2025-02-23 10:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:06:06 - End Time 2025-02-23 10:06:06 [2025-02-23 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539031', 'tblTempUsageDetail_20' ) start [2025-02-23 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539031', 'tblTempUsageDetail_20' ) end [2025-02-23 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539031', 'tblTempVendorCDR_20' ) start [2025-02-23 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539031', 'tblTempVendorCDR_20' ) end [2025-02-23 10:06:18] Production.INFO: ProcessCDR(1,14539031,1,1,2) [2025-02-23 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539031', 'tblTempUsageDetail_20' ) start [2025-02-23 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539031', 'tblTempUsageDetail_20' ) end [2025-02-23 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:06:21] Production.INFO: ==6377== Releasing lock... [2025-02-23 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:06:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-23 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:07:05 [end_date_ymd] => 2025-02-23 10:07:05 [RateCDR] => 1 ) [2025-02-23 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:07:05' and `end` < '2025-02-23 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:07:17] Production.INFO: count ==202 [2025-02-23 10:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:07:05 - End Time 2025-02-23 10:07:05 [2025-02-23 10:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539036', 'tblTempUsageDetail_20' ) start [2025-02-23 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539036', 'tblTempUsageDetail_20' ) end [2025-02-23 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539036', 'tblTempVendorCDR_20' ) start [2025-02-23 10:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539036', 'tblTempVendorCDR_20' ) end [2025-02-23 10:07:17] Production.INFO: ProcessCDR(1,14539036,1,1,2) [2025-02-23 10:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539036', 'tblTempUsageDetail_20' ) start [2025-02-23 10:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539036', 'tblTempUsageDetail_20' ) end [2025-02-23 10:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:07:21] Production.INFO: ==6496== Releasing lock... [2025-02-23 10:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:07:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:08:06 [end_date_ymd] => 2025-02-23 10:08:06 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:08:06' and `end` < '2025-02-23 10: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-02-23 10:08:18] Production.INFO: count ==285 [2025-02-23 10:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:08:06 - End Time 2025-02-23 10:08:06 [2025-02-23 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539041', 'tblTempUsageDetail_20' ) start [2025-02-23 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539041', 'tblTempUsageDetail_20' ) end [2025-02-23 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539041', 'tblTempVendorCDR_20' ) start [2025-02-23 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539041', 'tblTempVendorCDR_20' ) end [2025-02-23 10:08:18] Production.INFO: ProcessCDR(1,14539041,1,1,2) [2025-02-23 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539041', 'tblTempUsageDetail_20' ) start [2025-02-23 10:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539041', 'tblTempUsageDetail_20' ) end [2025-02-23 10:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:08:23] Production.INFO: ==6569== Releasing lock... [2025-02-23 10:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:08:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:09:06 [end_date_ymd] => 2025-02-23 10:09:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:09:06' and `end` < '2025-02-23 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-02-23 10:09:17] Production.INFO: count ==287 [2025-02-23 10:09:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:09:06 - End Time 2025-02-23 10:09:06 [2025-02-23 10:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539046', 'tblTempUsageDetail_20' ) start [2025-02-23 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539046', 'tblTempUsageDetail_20' ) end [2025-02-23 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539046', 'tblTempVendorCDR_20' ) start [2025-02-23 10:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539046', 'tblTempVendorCDR_20' ) end [2025-02-23 10:09:18] Production.INFO: ProcessCDR(1,14539046,1,1,2) [2025-02-23 10:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539046', 'tblTempUsageDetail_20' ) start [2025-02-23 10:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539046', 'tblTempUsageDetail_20' ) end [2025-02-23 10:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:09:23] Production.INFO: ==6649== Releasing lock... [2025-02-23 10:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:09:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-23 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:10:06 [end_date_ymd] => 2025-02-23 10:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:10:06' and `end` < '2025-02-23 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-02-23 10:10:18] Production.INFO: count ==287 [2025-02-23 10:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:10:06 - End Time 2025-02-23 10:10:06 [2025-02-23 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539051', 'tblTempUsageDetail_20' ) start [2025-02-23 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539051', 'tblTempUsageDetail_20' ) end [2025-02-23 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539051', 'tblTempVendorCDR_20' ) start [2025-02-23 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539051', 'tblTempVendorCDR_20' ) end [2025-02-23 10:10:18] Production.INFO: ProcessCDR(1,14539051,1,1,2) [2025-02-23 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539051', 'tblTempUsageDetail_20' ) start [2025-02-23 10:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539051', 'tblTempUsageDetail_20' ) end [2025-02-23 10:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:10:22] Production.INFO: ==6735== Releasing lock... [2025-02-23 10:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:10:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:11:06 [end_date_ymd] => 2025-02-23 10:11:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:11:06' and `end` < '2025-02-23 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-02-23 10:11:18] Production.INFO: count ==283 [2025-02-23 10:11:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:11:06 - End Time 2025-02-23 10:11:06 [2025-02-23 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539057', 'tblTempUsageDetail_20' ) start [2025-02-23 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539057', 'tblTempUsageDetail_20' ) end [2025-02-23 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539057', 'tblTempVendorCDR_20' ) start [2025-02-23 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539057', 'tblTempVendorCDR_20' ) end [2025-02-23 10:11:18] Production.INFO: ProcessCDR(1,14539057,1,1,2) [2025-02-23 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539057', 'tblTempUsageDetail_20' ) start [2025-02-23 10:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539057', 'tblTempUsageDetail_20' ) end [2025-02-23 10:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:11:21] Production.INFO: ==6822== Releasing lock... [2025-02-23 10:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:12:06 [end_date_ymd] => 2025-02-23 10:12:06 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:12:06' and `end` < '2025-02-23 10: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-02-23 10:12:18] Production.INFO: count ==283 [2025-02-23 10:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:12:06 - End Time 2025-02-23 10:12:06 [2025-02-23 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539062', 'tblTempUsageDetail_20' ) start [2025-02-23 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539062', 'tblTempUsageDetail_20' ) end [2025-02-23 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539062', 'tblTempVendorCDR_20' ) start [2025-02-23 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539062', 'tblTempVendorCDR_20' ) end [2025-02-23 10:12:18] Production.INFO: ProcessCDR(1,14539062,1,1,2) [2025-02-23 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539062', 'tblTempUsageDetail_20' ) start [2025-02-23 10:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539062', 'tblTempUsageDetail_20' ) end [2025-02-23 10:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:12:21] Production.INFO: ==6911== Releasing lock... [2025-02-23 10:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:13:06 [end_date_ymd] => 2025-02-23 10:13:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:13:06' and `end` < '2025-02-23 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-02-23 10:13:17] Production.INFO: count ==283 [2025-02-23 10:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:13:06 - End Time 2025-02-23 10:13:06 [2025-02-23 10:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539067', 'tblTempUsageDetail_20' ) start [2025-02-23 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539067', 'tblTempUsageDetail_20' ) end [2025-02-23 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539067', 'tblTempVendorCDR_20' ) start [2025-02-23 10:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539067', 'tblTempVendorCDR_20' ) end [2025-02-23 10:13:17] Production.INFO: ProcessCDR(1,14539067,1,1,2) [2025-02-23 10:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539067', 'tblTempUsageDetail_20' ) start [2025-02-23 10:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539067', 'tblTempUsageDetail_20' ) end [2025-02-23 10:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:13:21] Production.INFO: ==6994== Releasing lock... [2025-02-23 10:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:14:06 [end_date_ymd] => 2025-02-23 10:14:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:14:06' and `end` < '2025-02-23 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-02-23 10:14:18] Production.INFO: count ==283 [2025-02-23 10:14:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:14:06 - End Time 2025-02-23 10:14:06 [2025-02-23 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539072', 'tblTempUsageDetail_20' ) start [2025-02-23 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539072', 'tblTempUsageDetail_20' ) end [2025-02-23 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539072', 'tblTempVendorCDR_20' ) start [2025-02-23 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539072', 'tblTempVendorCDR_20' ) end [2025-02-23 10:14:18] Production.INFO: ProcessCDR(1,14539072,1,1,2) [2025-02-23 10:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539072', 'tblTempUsageDetail_20' ) start [2025-02-23 10:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539072', 'tblTempUsageDetail_20' ) end [2025-02-23 10:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:14:22] Production.INFO: ==7081== Releasing lock... [2025-02-23 10:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:14:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:15:05 [end_date_ymd] => 2025-02-23 10:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:15:05' and `end` < '2025-02-23 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-02-23 10:15:17] Production.INFO: count ==284 [2025-02-23 10:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:15:05 - End Time 2025-02-23 10:15:05 [2025-02-23 10:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539077', 'tblTempUsageDetail_20' ) start [2025-02-23 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539077', 'tblTempUsageDetail_20' ) end [2025-02-23 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539077', 'tblTempVendorCDR_20' ) start [2025-02-23 10:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539077', 'tblTempVendorCDR_20' ) end [2025-02-23 10:15:17] Production.INFO: ProcessCDR(1,14539077,1,1,2) [2025-02-23 10:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539077', 'tblTempUsageDetail_20' ) start [2025-02-23 10:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539077', 'tblTempUsageDetail_20' ) end [2025-02-23 10:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:15:21] Production.INFO: ==7163== Releasing lock... [2025-02-23 10:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:16:06 [end_date_ymd] => 2025-02-23 10:16:06 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:16:06' and `end` < '2025-02-23 10: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-02-23 10:16:18] Production.INFO: count ==285 [2025-02-23 10:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:16:06 - End Time 2025-02-23 10:16:06 [2025-02-23 10:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539082', 'tblTempUsageDetail_20' ) start [2025-02-23 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539082', 'tblTempUsageDetail_20' ) end [2025-02-23 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539082', 'tblTempVendorCDR_20' ) start [2025-02-23 10:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539082', 'tblTempVendorCDR_20' ) end [2025-02-23 10:16:18] Production.INFO: ProcessCDR(1,14539082,1,1,2) [2025-02-23 10:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539082', 'tblTempUsageDetail_20' ) start [2025-02-23 10:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539082', 'tblTempUsageDetail_20' ) end [2025-02-23 10:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:16:23] Production.INFO: ==7247== Releasing lock... [2025-02-23 10:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:16:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:17:06 [end_date_ymd] => 2025-02-23 10:17:06 [RateCDR] => 1 ) [2025-02-23 10:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:17:06' and `end` < '2025-02-23 10:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:17:17] Production.INFO: count ==285 [2025-02-23 10:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:17:06 - End Time 2025-02-23 10:17:06 [2025-02-23 10:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539087', 'tblTempUsageDetail_20' ) start [2025-02-23 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539087', 'tblTempUsageDetail_20' ) end [2025-02-23 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539087', 'tblTempVendorCDR_20' ) start [2025-02-23 10:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539087', 'tblTempVendorCDR_20' ) end [2025-02-23 10:17:17] Production.INFO: ProcessCDR(1,14539087,1,1,2) [2025-02-23 10:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539087', 'tblTempUsageDetail_20' ) start [2025-02-23 10:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539087', 'tblTempUsageDetail_20' ) end [2025-02-23 10:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:17:21] Production.INFO: ==7329== Releasing lock... [2025-02-23 10:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:18:06 [end_date_ymd] => 2025-02-23 10:18:06 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:18:06' and `end` < '2025-02-23 10: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-02-23 10:18:17] Production.INFO: count ==285 [2025-02-23 10:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:18:06 - End Time 2025-02-23 10:18:06 [2025-02-23 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539092', 'tblTempUsageDetail_20' ) start [2025-02-23 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539092', 'tblTempUsageDetail_20' ) end [2025-02-23 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539092', 'tblTempVendorCDR_20' ) start [2025-02-23 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539092', 'tblTempVendorCDR_20' ) end [2025-02-23 10:18:18] Production.INFO: ProcessCDR(1,14539092,1,1,2) [2025-02-23 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539092', 'tblTempUsageDetail_20' ) start [2025-02-23 10:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539092', 'tblTempUsageDetail_20' ) end [2025-02-23 10:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:18:21] Production.INFO: ==7406== Releasing lock... [2025-02-23 10:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:19:04 [end_date_ymd] => 2025-02-23 10:19:04 [RateCDR] => 1 ) [2025-02-23 10:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:19:04' and `end` < '2025-02-23 10:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:19:16] Production.INFO: count ==285 [2025-02-23 10:19:16] Production.ERROR: pbx CDR StartTime 2025-02-23 07:19:04 - End Time 2025-02-23 10:19:04 [2025-02-23 10:19:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539097', 'tblTempUsageDetail_20' ) start [2025-02-23 10:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539097', 'tblTempUsageDetail_20' ) end [2025-02-23 10:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539097', 'tblTempVendorCDR_20' ) start [2025-02-23 10:19:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539097', 'tblTempVendorCDR_20' ) end [2025-02-23 10:19:16] Production.INFO: ProcessCDR(1,14539097,1,1,2) [2025-02-23 10:19:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539097', 'tblTempUsageDetail_20' ) start [2025-02-23 10:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539097', 'tblTempUsageDetail_20' ) end [2025-02-23 10:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:19:20] Production.INFO: ==7482== Releasing lock... [2025-02-23 10:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:19:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:20:06 [end_date_ymd] => 2025-02-23 10:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:20:06' and `end` < '2025-02-23 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-02-23 10:20:17] Production.INFO: count ==291 [2025-02-23 10:20:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:20:06 - End Time 2025-02-23 10:20:06 [2025-02-23 10:20:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539102', 'tblTempUsageDetail_20' ) start [2025-02-23 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539102', 'tblTempUsageDetail_20' ) end [2025-02-23 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539102', 'tblTempVendorCDR_20' ) start [2025-02-23 10:20:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539102', 'tblTempVendorCDR_20' ) end [2025-02-23 10:20:17] Production.INFO: ProcessCDR(1,14539102,1,1,2) [2025-02-23 10:20:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539102', 'tblTempUsageDetail_20' ) start [2025-02-23 10:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539102', 'tblTempUsageDetail_20' ) end [2025-02-23 10:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:20:21] Production.INFO: ==7560== Releasing lock... [2025-02-23 10:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:20:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:21:05 [end_date_ymd] => 2025-02-23 10:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:21:05' and `end` < '2025-02-23 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-02-23 10:21:16] Production.INFO: count ==291 [2025-02-23 10:21:16] Production.ERROR: pbx CDR StartTime 2025-02-23 07:21:05 - End Time 2025-02-23 10:21:05 [2025-02-23 10:21:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539108', 'tblTempUsageDetail_20' ) start [2025-02-23 10:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539108', 'tblTempUsageDetail_20' ) end [2025-02-23 10:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539108', 'tblTempVendorCDR_20' ) start [2025-02-23 10:21:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539108', 'tblTempVendorCDR_20' ) end [2025-02-23 10:21:16] Production.INFO: ProcessCDR(1,14539108,1,1,2) [2025-02-23 10:21:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:21:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:21:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539108', 'tblTempUsageDetail_20' ) start [2025-02-23 10:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539108', 'tblTempUsageDetail_20' ) end [2025-02-23 10:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:21:20] Production.INFO: ==7646== Releasing lock... [2025-02-23 10:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:21:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:22:06 [end_date_ymd] => 2025-02-23 10:22:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:22:06' and `end` < '2025-02-23 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-02-23 10:22:17] Production.INFO: count ==291 [2025-02-23 10:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:22:06 - End Time 2025-02-23 10:22:06 [2025-02-23 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539113', 'tblTempUsageDetail_20' ) start [2025-02-23 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539113', 'tblTempUsageDetail_20' ) end [2025-02-23 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539113', 'tblTempVendorCDR_20' ) start [2025-02-23 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539113', 'tblTempVendorCDR_20' ) end [2025-02-23 10:22:18] Production.INFO: ProcessCDR(1,14539113,1,1,2) [2025-02-23 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539113', 'tblTempUsageDetail_20' ) start [2025-02-23 10:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539113', 'tblTempUsageDetail_20' ) end [2025-02-23 10:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:22:21] Production.INFO: ==7758== Releasing lock... [2025-02-23 10:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:22:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:23:05 [end_date_ymd] => 2025-02-23 10:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:23:05' and `end` < '2025-02-23 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-02-23 10:23:17] Production.INFO: count ==298 [2025-02-23 10:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:23:05 - End Time 2025-02-23 10:23:05 [2025-02-23 10:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539118', 'tblTempUsageDetail_20' ) start [2025-02-23 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539118', 'tblTempUsageDetail_20' ) end [2025-02-23 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539118', 'tblTempVendorCDR_20' ) start [2025-02-23 10:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539118', 'tblTempVendorCDR_20' ) end [2025-02-23 10:23:17] Production.INFO: ProcessCDR(1,14539118,1,1,2) [2025-02-23 10:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539118', 'tblTempUsageDetail_20' ) start [2025-02-23 10:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539118', 'tblTempUsageDetail_20' ) end [2025-02-23 10:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:23:20] Production.INFO: ==7837== Releasing lock... [2025-02-23 10:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:23:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:24:05 [end_date_ymd] => 2025-02-23 10:24:05 [RateCDR] => 1 ) [2025-02-23 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:24:05' and `end` < '2025-02-23 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:24:17] Production.INFO: count ==302 [2025-02-23 10:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:24:05 - End Time 2025-02-23 10:24:05 [2025-02-23 10:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539123', 'tblTempUsageDetail_20' ) start [2025-02-23 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539123', 'tblTempUsageDetail_20' ) end [2025-02-23 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539123', 'tblTempVendorCDR_20' ) start [2025-02-23 10:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539123', 'tblTempVendorCDR_20' ) end [2025-02-23 10:24:17] Production.INFO: ProcessCDR(1,14539123,1,1,2) [2025-02-23 10:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539123', 'tblTempUsageDetail_20' ) start [2025-02-23 10:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539123', 'tblTempUsageDetail_20' ) end [2025-02-23 10:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:24:20] Production.INFO: ==7912== Releasing lock... [2025-02-23 10:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:24:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:25:05 [end_date_ymd] => 2025-02-23 10:25:05 [RateCDR] => 1 ) [2025-02-23 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:25:05' and `end` < '2025-02-23 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:25:17] Production.INFO: count ==302 [2025-02-23 10:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:25:05 - End Time 2025-02-23 10:25:05 [2025-02-23 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539128', 'tblTempUsageDetail_20' ) start [2025-02-23 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539128', 'tblTempUsageDetail_20' ) end [2025-02-23 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539128', 'tblTempVendorCDR_20' ) start [2025-02-23 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539128', 'tblTempVendorCDR_20' ) end [2025-02-23 10:25:17] Production.INFO: ProcessCDR(1,14539128,1,1,2) [2025-02-23 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539128', 'tblTempUsageDetail_20' ) start [2025-02-23 10:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539128', 'tblTempUsageDetail_20' ) end [2025-02-23 10:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:25:20] Production.INFO: ==7986== Releasing lock... [2025-02-23 10:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:25:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:26:05 [end_date_ymd] => 2025-02-23 10:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:26:05' and `end` < '2025-02-23 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-02-23 10:26:17] Production.INFO: count ==300 [2025-02-23 10:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:26:05 - End Time 2025-02-23 10:26:05 [2025-02-23 10:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539133', 'tblTempUsageDetail_20' ) start [2025-02-23 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539133', 'tblTempUsageDetail_20' ) end [2025-02-23 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539133', 'tblTempVendorCDR_20' ) start [2025-02-23 10:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539133', 'tblTempVendorCDR_20' ) end [2025-02-23 10:26:17] Production.INFO: ProcessCDR(1,14539133,1,1,2) [2025-02-23 10:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539133', 'tblTempUsageDetail_20' ) start [2025-02-23 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539133', 'tblTempUsageDetail_20' ) end [2025-02-23 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:26:21] Production.INFO: ==8066== Releasing lock... [2025-02-23 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:26:21] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:27:05 [end_date_ymd] => 2025-02-23 10:27:05 [RateCDR] => 1 ) [2025-02-23 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:27:05' and `end` < '2025-02-23 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:27:17] Production.INFO: count ==298 [2025-02-23 10:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:27:05 - End Time 2025-02-23 10:27:05 [2025-02-23 10:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539138', 'tblTempUsageDetail_20' ) start [2025-02-23 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539138', 'tblTempUsageDetail_20' ) end [2025-02-23 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539138', 'tblTempVendorCDR_20' ) start [2025-02-23 10:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539138', 'tblTempVendorCDR_20' ) end [2025-02-23 10:27:17] Production.INFO: ProcessCDR(1,14539138,1,1,2) [2025-02-23 10:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539138', 'tblTempUsageDetail_20' ) start [2025-02-23 10:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539138', 'tblTempUsageDetail_20' ) end [2025-02-23 10:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:27:20] Production.INFO: ==8140== Releasing lock... [2025-02-23 10:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:27:20] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:28:05 [end_date_ymd] => 2025-02-23 10:28:05 [RateCDR] => 1 ) [2025-02-23 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:28:05' and `end` < '2025-02-23 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:28:17] Production.INFO: count ==297 [2025-02-23 10:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:28:05 - End Time 2025-02-23 10:28:05 [2025-02-23 10:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539143', 'tblTempUsageDetail_20' ) start [2025-02-23 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539143', 'tblTempUsageDetail_20' ) end [2025-02-23 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539143', 'tblTempVendorCDR_20' ) start [2025-02-23 10:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539143', 'tblTempVendorCDR_20' ) end [2025-02-23 10:28:17] Production.INFO: ProcessCDR(1,14539143,1,1,2) [2025-02-23 10:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539143', 'tblTempUsageDetail_20' ) start [2025-02-23 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539143', 'tblTempUsageDetail_20' ) end [2025-02-23 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:28:21] Production.INFO: ==8214== Releasing lock... [2025-02-23 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:29:05 [end_date_ymd] => 2025-02-23 10:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:29:05' and `end` < '2025-02-23 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-02-23 10:29:17] Production.INFO: count ==297 [2025-02-23 10:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:29:05 - End Time 2025-02-23 10:29:05 [2025-02-23 10:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539148', 'tblTempUsageDetail_20' ) start [2025-02-23 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539148', 'tblTempUsageDetail_20' ) end [2025-02-23 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539148', 'tblTempVendorCDR_20' ) start [2025-02-23 10:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539148', 'tblTempVendorCDR_20' ) end [2025-02-23 10:29:17] Production.INFO: ProcessCDR(1,14539148,1,1,2) [2025-02-23 10:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539148', 'tblTempUsageDetail_20' ) start [2025-02-23 10:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539148', 'tblTempUsageDetail_20' ) end [2025-02-23 10:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:29:20] Production.INFO: ==8289== Releasing lock... [2025-02-23 10:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:30:06 [end_date_ymd] => 2025-02-23 10:30:06 [RateCDR] => 1 ) [2025-02-23 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:30:06' and `end` < '2025-02-23 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:30:18] Production.INFO: count ==308 [2025-02-23 10:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:30:06 - End Time 2025-02-23 10:30:06 [2025-02-23 10:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539154', 'tblTempUsageDetail_20' ) start [2025-02-23 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539154', 'tblTempUsageDetail_20' ) end [2025-02-23 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539154', 'tblTempVendorCDR_20' ) start [2025-02-23 10:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539154', 'tblTempVendorCDR_20' ) end [2025-02-23 10:30:18] Production.INFO: ProcessCDR(1,14539154,1,1,2) [2025-02-23 10:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539154', 'tblTempUsageDetail_20' ) start [2025-02-23 10:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539154', 'tblTempUsageDetail_20' ) end [2025-02-23 10:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:30:21] Production.INFO: ==8365== Releasing lock... [2025-02-23 10:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-23 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:31:05 [end_date_ymd] => 2025-02-23 10:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:31:05' and `end` < '2025-02-23 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-02-23 10:31:17] Production.INFO: count ==318 [2025-02-23 10:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:31:05 - End Time 2025-02-23 10:31:05 [2025-02-23 10:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539159', 'tblTempUsageDetail_20' ) start [2025-02-23 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539159', 'tblTempUsageDetail_20' ) end [2025-02-23 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539159', 'tblTempVendorCDR_20' ) start [2025-02-23 10:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539159', 'tblTempVendorCDR_20' ) end [2025-02-23 10:31:17] Production.INFO: ProcessCDR(1,14539159,1,1,2) [2025-02-23 10:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539159', 'tblTempUsageDetail_20' ) start [2025-02-23 10:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539159', 'tblTempUsageDetail_20' ) end [2025-02-23 10:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:31:22] Production.INFO: ==8443== Releasing lock... [2025-02-23 10:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:31:22] Production.INFO: 31 MB #Memory Used# [2025-02-23 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:32:05 [end_date_ymd] => 2025-02-23 10:32:05 [RateCDR] => 1 ) [2025-02-23 10:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:32:05' and `end` < '2025-02-23 10:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:32:17] Production.INFO: count ==327 [2025-02-23 10:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:32:05 - End Time 2025-02-23 10:32:05 [2025-02-23 10:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539164', 'tblTempUsageDetail_20' ) start [2025-02-23 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539164', 'tblTempUsageDetail_20' ) end [2025-02-23 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539164', 'tblTempVendorCDR_20' ) start [2025-02-23 10:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539164', 'tblTempVendorCDR_20' ) end [2025-02-23 10:32:17] Production.INFO: ProcessCDR(1,14539164,1,1,2) [2025-02-23 10:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539164', 'tblTempUsageDetail_20' ) start [2025-02-23 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539164', 'tblTempUsageDetail_20' ) end [2025-02-23 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:32:22] Production.INFO: ==8521== Releasing lock... [2025-02-23 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:33:05 [end_date_ymd] => 2025-02-23 10:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:33:05' and `end` < '2025-02-23 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-02-23 10:33:17] Production.INFO: count ==329 [2025-02-23 10:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:33:05 - End Time 2025-02-23 10:33:05 [2025-02-23 10:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539169', 'tblTempUsageDetail_20' ) start [2025-02-23 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539169', 'tblTempUsageDetail_20' ) end [2025-02-23 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539169', 'tblTempVendorCDR_20' ) start [2025-02-23 10:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539169', 'tblTempVendorCDR_20' ) end [2025-02-23 10:33:17] Production.INFO: ProcessCDR(1,14539169,1,1,2) [2025-02-23 10:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539169', 'tblTempUsageDetail_20' ) start [2025-02-23 10:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539169', 'tblTempUsageDetail_20' ) end [2025-02-23 10:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:33:22] Production.INFO: ==8594== Releasing lock... [2025-02-23 10:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:34:04 [end_date_ymd] => 2025-02-23 10:34:04 [RateCDR] => 1 ) [2025-02-23 10:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:34:04' and `end` < '2025-02-23 10:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:34:16] Production.INFO: count ==334 [2025-02-23 10:34:16] Production.ERROR: pbx CDR StartTime 2025-02-23 07:34:04 - End Time 2025-02-23 10:34:04 [2025-02-23 10:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539174', 'tblTempUsageDetail_20' ) start [2025-02-23 10:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539174', 'tblTempUsageDetail_20' ) end [2025-02-23 10:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539174', 'tblTempVendorCDR_20' ) start [2025-02-23 10:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539174', 'tblTempVendorCDR_20' ) end [2025-02-23 10:34:16] Production.INFO: ProcessCDR(1,14539174,1,1,2) [2025-02-23 10:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539174', 'tblTempUsageDetail_20' ) start [2025-02-23 10:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539174', 'tblTempUsageDetail_20' ) end [2025-02-23 10:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:34:21] Production.INFO: ==8668== Releasing lock... [2025-02-23 10:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:35:05 [end_date_ymd] => 2025-02-23 10:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:35:05' and `end` < '2025-02-23 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-02-23 10:35:17] Production.INFO: count ==334 [2025-02-23 10:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:35:05 - End Time 2025-02-23 10:35:05 [2025-02-23 10:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539179', 'tblTempUsageDetail_20' ) start [2025-02-23 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539179', 'tblTempUsageDetail_20' ) end [2025-02-23 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539179', 'tblTempVendorCDR_20' ) start [2025-02-23 10:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539179', 'tblTempVendorCDR_20' ) end [2025-02-23 10:35:17] Production.INFO: ProcessCDR(1,14539179,1,1,2) [2025-02-23 10:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539179', 'tblTempUsageDetail_20' ) start [2025-02-23 10:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539179', 'tblTempUsageDetail_20' ) end [2025-02-23 10:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:35:20] Production.INFO: ==8748== Releasing lock... [2025-02-23 10:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:35:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:36:05 [end_date_ymd] => 2025-02-23 10:36:05 [RateCDR] => 1 ) [2025-02-23 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:36:05' and `end` < '2025-02-23 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:36:17] Production.INFO: count ==334 [2025-02-23 10:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:36:05 - End Time 2025-02-23 10:36:05 [2025-02-23 10:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539184', 'tblTempUsageDetail_20' ) start [2025-02-23 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539184', 'tblTempUsageDetail_20' ) end [2025-02-23 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539184', 'tblTempVendorCDR_20' ) start [2025-02-23 10:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539184', 'tblTempVendorCDR_20' ) end [2025-02-23 10:36:17] Production.INFO: ProcessCDR(1,14539184,1,1,2) [2025-02-23 10:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539184', 'tblTempUsageDetail_20' ) start [2025-02-23 10:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539184', 'tblTempUsageDetail_20' ) end [2025-02-23 10:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:36:20] Production.INFO: ==8819== Releasing lock... [2025-02-23 10:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:36:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:37:05 [end_date_ymd] => 2025-02-23 10:37:05 [RateCDR] => 1 ) [2025-02-23 10:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:37:05' and `end` < '2025-02-23 10:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:37:17] Production.INFO: count ==333 [2025-02-23 10:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:37:05 - End Time 2025-02-23 10:37:05 [2025-02-23 10:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539189', 'tblTempUsageDetail_20' ) start [2025-02-23 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539189', 'tblTempUsageDetail_20' ) end [2025-02-23 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539189', 'tblTempVendorCDR_20' ) start [2025-02-23 10:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539189', 'tblTempVendorCDR_20' ) end [2025-02-23 10:37:17] Production.INFO: ProcessCDR(1,14539189,1,1,2) [2025-02-23 10:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539189', 'tblTempUsageDetail_20' ) start [2025-02-23 10:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539189', 'tblTempUsageDetail_20' ) end [2025-02-23 10:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:37:20] Production.INFO: ==8890== Releasing lock... [2025-02-23 10:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:37:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:38:05 [end_date_ymd] => 2025-02-23 10:38:05 [RateCDR] => 1 ) [2025-02-23 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:38:05' and `end` < '2025-02-23 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:38:17] Production.INFO: count ==333 [2025-02-23 10:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:38:05 - End Time 2025-02-23 10:38:05 [2025-02-23 10:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539194', 'tblTempUsageDetail_20' ) start [2025-02-23 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539194', 'tblTempUsageDetail_20' ) end [2025-02-23 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539194', 'tblTempVendorCDR_20' ) start [2025-02-23 10:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539194', 'tblTempVendorCDR_20' ) end [2025-02-23 10:38:17] Production.INFO: ProcessCDR(1,14539194,1,1,2) [2025-02-23 10:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539194', 'tblTempUsageDetail_20' ) start [2025-02-23 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539194', 'tblTempUsageDetail_20' ) end [2025-02-23 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:38:22] Production.INFO: ==9004== Releasing lock... [2025-02-23 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:38:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:39:05 [end_date_ymd] => 2025-02-23 10:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:39:05' and `end` < '2025-02-23 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-02-23 10:39:17] Production.INFO: count ==333 [2025-02-23 10:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:39:05 - End Time 2025-02-23 10:39:05 [2025-02-23 10:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539199', 'tblTempUsageDetail_20' ) start [2025-02-23 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539199', 'tblTempUsageDetail_20' ) end [2025-02-23 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539199', 'tblTempVendorCDR_20' ) start [2025-02-23 10:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539199', 'tblTempVendorCDR_20' ) end [2025-02-23 10:39:17] Production.INFO: ProcessCDR(1,14539199,1,1,2) [2025-02-23 10:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539199', 'tblTempUsageDetail_20' ) start [2025-02-23 10:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539199', 'tblTempUsageDetail_20' ) end [2025-02-23 10:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:39:20] Production.INFO: ==9079== Releasing lock... [2025-02-23 10:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:39:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:40:06 [end_date_ymd] => 2025-02-23 10:40:06 [RateCDR] => 1 ) [2025-02-23 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:40:06' and `end` < '2025-02-23 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:40:18] Production.INFO: count ==348 [2025-02-23 10:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:40:06 - End Time 2025-02-23 10:40:06 [2025-02-23 10:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539205', 'tblTempUsageDetail_20' ) start [2025-02-23 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539205', 'tblTempUsageDetail_20' ) end [2025-02-23 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539205', 'tblTempVendorCDR_20' ) start [2025-02-23 10:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539205', 'tblTempVendorCDR_20' ) end [2025-02-23 10:40:18] Production.INFO: ProcessCDR(1,14539205,1,1,2) [2025-02-23 10:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539205', 'tblTempUsageDetail_20' ) start [2025-02-23 10:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539205', 'tblTempUsageDetail_20' ) end [2025-02-23 10:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:40:22] Production.INFO: ==9153== Releasing lock... [2025-02-23 10:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:41:05 [end_date_ymd] => 2025-02-23 10:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:41:05' and `end` < '2025-02-23 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-02-23 10:41:17] Production.INFO: count ==373 [2025-02-23 10:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:41:05 - End Time 2025-02-23 10:41:05 [2025-02-23 10:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539210', 'tblTempUsageDetail_20' ) start [2025-02-23 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539210', 'tblTempUsageDetail_20' ) end [2025-02-23 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539210', 'tblTempVendorCDR_20' ) start [2025-02-23 10:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539210', 'tblTempVendorCDR_20' ) end [2025-02-23 10:41:17] Production.INFO: ProcessCDR(1,14539210,1,1,2) [2025-02-23 10:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539210', 'tblTempUsageDetail_20' ) start [2025-02-23 10:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539210', 'tblTempUsageDetail_20' ) end [2025-02-23 10:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:41:21] Production.INFO: ==9233== Releasing lock... [2025-02-23 10:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:42:05 [end_date_ymd] => 2025-02-23 10:42:05 [RateCDR] => 1 ) [2025-02-23 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:42:05' and `end` < '2025-02-23 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:42:17] Production.INFO: count ==373 [2025-02-23 10:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:42:05 - End Time 2025-02-23 10:42:05 [2025-02-23 10:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539215', 'tblTempUsageDetail_20' ) start [2025-02-23 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539215', 'tblTempUsageDetail_20' ) end [2025-02-23 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539215', 'tblTempVendorCDR_20' ) start [2025-02-23 10:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539215', 'tblTempVendorCDR_20' ) end [2025-02-23 10:42:17] Production.INFO: ProcessCDR(1,14539215,1,1,2) [2025-02-23 10:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539215', 'tblTempUsageDetail_20' ) start [2025-02-23 10:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539215', 'tblTempUsageDetail_20' ) end [2025-02-23 10:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:42:20] Production.INFO: ==9304== Releasing lock... [2025-02-23 10:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:42:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:43:05 [end_date_ymd] => 2025-02-23 10:43:05 [RateCDR] => 1 ) [2025-02-23 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:43:05' and `end` < '2025-02-23 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:43:17] Production.INFO: count ==373 [2025-02-23 10:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:43:05 - End Time 2025-02-23 10:43:05 [2025-02-23 10:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539220', 'tblTempUsageDetail_20' ) start [2025-02-23 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539220', 'tblTempUsageDetail_20' ) end [2025-02-23 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539220', 'tblTempVendorCDR_20' ) start [2025-02-23 10:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539220', 'tblTempVendorCDR_20' ) end [2025-02-23 10:43:17] Production.INFO: ProcessCDR(1,14539220,1,1,2) [2025-02-23 10:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539220', 'tblTempUsageDetail_20' ) start [2025-02-23 10:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539220', 'tblTempUsageDetail_20' ) end [2025-02-23 10:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:43:20] Production.INFO: ==9374== Releasing lock... [2025-02-23 10:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:43:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:44:05 [end_date_ymd] => 2025-02-23 10:44:05 [RateCDR] => 1 ) [2025-02-23 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:44:05' and `end` < '2025-02-23 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:44:17] Production.INFO: count ==378 [2025-02-23 10:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:44:05 - End Time 2025-02-23 10:44:05 [2025-02-23 10:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539225', 'tblTempUsageDetail_20' ) start [2025-02-23 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539225', 'tblTempUsageDetail_20' ) end [2025-02-23 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539225', 'tblTempVendorCDR_20' ) start [2025-02-23 10:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539225', 'tblTempVendorCDR_20' ) end [2025-02-23 10:44:17] Production.INFO: ProcessCDR(1,14539225,1,1,2) [2025-02-23 10:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539225', 'tblTempUsageDetail_20' ) start [2025-02-23 10:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539225', 'tblTempUsageDetail_20' ) end [2025-02-23 10:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:44:21] Production.INFO: ==9447== Releasing lock... [2025-02-23 10:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:45:04 [end_date_ymd] => 2025-02-23 10:45:04 [RateCDR] => 1 ) [2025-02-23 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:45:04' and `end` < '2025-02-23 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:45:16] Production.INFO: count ==382 [2025-02-23 10:45:16] Production.ERROR: pbx CDR StartTime 2025-02-23 07:45:04 - End Time 2025-02-23 10:45:04 [2025-02-23 10:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539230', 'tblTempUsageDetail_20' ) start [2025-02-23 10:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539230', 'tblTempUsageDetail_20' ) end [2025-02-23 10:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539230', 'tblTempVendorCDR_20' ) start [2025-02-23 10:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539230', 'tblTempVendorCDR_20' ) end [2025-02-23 10:45:16] Production.INFO: ProcessCDR(1,14539230,1,1,2) [2025-02-23 10:45:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:45:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:45:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:45:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539230', 'tblTempUsageDetail_20' ) start [2025-02-23 10:45:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539230', 'tblTempUsageDetail_20' ) end [2025-02-23 10:45:19] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:45:19] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:45:19] Production.INFO: ==9521== Releasing lock... [2025-02-23 10:45:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:45:19] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:46:05 [end_date_ymd] => 2025-02-23 10:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:46:05' and `end` < '2025-02-23 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-02-23 10:46:17] Production.INFO: count ==382 [2025-02-23 10:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:46:05 - End Time 2025-02-23 10:46:05 [2025-02-23 10:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539235', 'tblTempUsageDetail_20' ) start [2025-02-23 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539235', 'tblTempUsageDetail_20' ) end [2025-02-23 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539235', 'tblTempVendorCDR_20' ) start [2025-02-23 10:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539235', 'tblTempVendorCDR_20' ) end [2025-02-23 10:46:17] Production.INFO: ProcessCDR(1,14539235,1,1,2) [2025-02-23 10:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539235', 'tblTempUsageDetail_20' ) start [2025-02-23 10:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539235', 'tblTempUsageDetail_20' ) end [2025-02-23 10:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:46:21] Production.INFO: ==9592== Releasing lock... [2025-02-23 10:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:47:05 [end_date_ymd] => 2025-02-23 10:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:47:05' and `end` < '2025-02-23 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-02-23 10:47:17] Production.INFO: count ==384 [2025-02-23 10:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:47:05 - End Time 2025-02-23 10:47:05 [2025-02-23 10:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539240', 'tblTempUsageDetail_20' ) start [2025-02-23 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539240', 'tblTempUsageDetail_20' ) end [2025-02-23 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539240', 'tblTempVendorCDR_20' ) start [2025-02-23 10:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539240', 'tblTempVendorCDR_20' ) end [2025-02-23 10:47:17] Production.INFO: ProcessCDR(1,14539240,1,1,2) [2025-02-23 10:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539240', 'tblTempUsageDetail_20' ) start [2025-02-23 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539240', 'tblTempUsageDetail_20' ) end [2025-02-23 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:47:22] Production.INFO: ==9665== Releasing lock... [2025-02-23 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:48:05 [end_date_ymd] => 2025-02-23 10:48:05 [RateCDR] => 1 ) [2025-02-23 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 07:48:05' and `end` < '2025-02-23 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 10:48:17] Production.INFO: count ==384 [2025-02-23 10:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:48:05 - End Time 2025-02-23 10:48:05 [2025-02-23 10:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539245', 'tblTempUsageDetail_20' ) start [2025-02-23 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539245', 'tblTempUsageDetail_20' ) end [2025-02-23 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539245', 'tblTempVendorCDR_20' ) start [2025-02-23 10:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539245', 'tblTempVendorCDR_20' ) end [2025-02-23 10:48:17] Production.INFO: ProcessCDR(1,14539245,1,1,2) [2025-02-23 10:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539245', 'tblTempUsageDetail_20' ) start [2025-02-23 10:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539245', 'tblTempUsageDetail_20' ) end [2025-02-23 10:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:48:20] Production.INFO: ==9736== Releasing lock... [2025-02-23 10:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:48:20] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:49:05 [end_date_ymd] => 2025-02-23 10:49:05 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:49:05' and `end` < '2025-02-23 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-02-23 10:49:17] Production.INFO: count ==392 [2025-02-23 10:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:49:05 - End Time 2025-02-23 10:49:05 [2025-02-23 10:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539250', 'tblTempUsageDetail_20' ) start [2025-02-23 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539250', 'tblTempUsageDetail_20' ) end [2025-02-23 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539250', 'tblTempVendorCDR_20' ) start [2025-02-23 10:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539250', 'tblTempVendorCDR_20' ) end [2025-02-23 10:49:18] Production.INFO: ProcessCDR(1,14539250,1,1,2) [2025-02-23 10:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539250', 'tblTempUsageDetail_20' ) start [2025-02-23 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539250', 'tblTempUsageDetail_20' ) end [2025-02-23 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:49:22] Production.INFO: ==9810== Releasing lock... [2025-02-23 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:49:22] Production.INFO: 32 MB #Memory Used# [2025-02-23 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:50:06 [end_date_ymd] => 2025-02-23 10:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:50:06' and `end` < '2025-02-23 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-02-23 10:50:17] Production.INFO: count ==401 [2025-02-23 10:50:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:50:06 - End Time 2025-02-23 10:50:06 [2025-02-23 10:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539256', 'tblTempUsageDetail_20' ) start [2025-02-23 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539256', 'tblTempUsageDetail_20' ) end [2025-02-23 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539256', 'tblTempVendorCDR_20' ) start [2025-02-23 10:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539256', 'tblTempVendorCDR_20' ) end [2025-02-23 10:50:17] Production.INFO: ProcessCDR(1,14539256,1,1,2) [2025-02-23 10:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539256', 'tblTempUsageDetail_20' ) start [2025-02-23 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539256', 'tblTempUsageDetail_20' ) end [2025-02-23 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:50:22] Production.INFO: ==9882== Releasing lock... [2025-02-23 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:51:05 [end_date_ymd] => 2025-02-23 10:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:51:05' and `end` < '2025-02-23 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-02-23 10:51:17] Production.INFO: count ==408 [2025-02-23 10:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:51:05 - End Time 2025-02-23 10:51:05 [2025-02-23 10:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539261', 'tblTempUsageDetail_20' ) start [2025-02-23 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539261', 'tblTempUsageDetail_20' ) end [2025-02-23 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539261', 'tblTempVendorCDR_20' ) start [2025-02-23 10:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539261', 'tblTempVendorCDR_20' ) end [2025-02-23 10:51:17] Production.INFO: ProcessCDR(1,14539261,1,1,2) [2025-02-23 10:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539261', 'tblTempUsageDetail_20' ) start [2025-02-23 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539261', 'tblTempUsageDetail_20' ) end [2025-02-23 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:51:21] Production.INFO: ==9958== Releasing lock... [2025-02-23 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-23 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:52:05 [end_date_ymd] => 2025-02-23 10:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:52:05' and `end` < '2025-02-23 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-02-23 10:52:17] Production.INFO: count ==417 [2025-02-23 10:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:52:05 - End Time 2025-02-23 10:52:05 [2025-02-23 10:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539266', 'tblTempUsageDetail_20' ) start [2025-02-23 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539266', 'tblTempUsageDetail_20' ) end [2025-02-23 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539266', 'tblTempVendorCDR_20' ) start [2025-02-23 10:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539266', 'tblTempVendorCDR_20' ) end [2025-02-23 10:52:17] Production.INFO: ProcessCDR(1,14539266,1,1,2) [2025-02-23 10:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539266', 'tblTempUsageDetail_20' ) start [2025-02-23 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539266', 'tblTempUsageDetail_20' ) end [2025-02-23 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:52:21] Production.INFO: ==10033== Releasing lock... [2025-02-23 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:53:06 [end_date_ymd] => 2025-02-23 10:53:06 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:53:06' and `end` < '2025-02-23 10: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-02-23 10:53:17] Production.INFO: count ==418 [2025-02-23 10:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 07:53:06 - End Time 2025-02-23 10:53:06 [2025-02-23 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539271', 'tblTempUsageDetail_20' ) start [2025-02-23 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539271', 'tblTempUsageDetail_20' ) end [2025-02-23 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539271', 'tblTempVendorCDR_20' ) start [2025-02-23 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539271', 'tblTempVendorCDR_20' ) end [2025-02-23 10:53:18] Production.INFO: ProcessCDR(1,14539271,1,1,2) [2025-02-23 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539271', 'tblTempUsageDetail_20' ) start [2025-02-23 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539271', 'tblTempUsageDetail_20' ) end [2025-02-23 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:53:22] Production.INFO: ==10149== Releasing lock... [2025-02-23 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-23 10:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:54:04 [end_date_ymd] => 2025-02-23 10:54:04 [RateCDR] => 1 ) [2025-02-23 10: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-02-23 07:54:04' and `end` < '2025-02-23 10: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-02-23 10:54:17] Production.INFO: count ==419 [2025-02-23 10:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:54:04 - End Time 2025-02-23 10:54:04 [2025-02-23 10:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539276', 'tblTempUsageDetail_20' ) start [2025-02-23 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539276', 'tblTempUsageDetail_20' ) end [2025-02-23 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539276', 'tblTempVendorCDR_20' ) start [2025-02-23 10:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539276', 'tblTempVendorCDR_20' ) end [2025-02-23 10:54:17] Production.INFO: ProcessCDR(1,14539276,1,1,2) [2025-02-23 10:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539276', 'tblTempUsageDetail_20' ) start [2025-02-23 10:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539276', 'tblTempUsageDetail_20' ) end [2025-02-23 10:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:54:22] Production.INFO: ==10221== Releasing lock... [2025-02-23 10:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:55:05 [end_date_ymd] => 2025-02-23 10:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:55:05' and `end` < '2025-02-23 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-02-23 10:55:17] Production.INFO: count ==425 [2025-02-23 10:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:55:05 - End Time 2025-02-23 10:55:05 [2025-02-23 10:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539281', 'tblTempUsageDetail_20' ) start [2025-02-23 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539281', 'tblTempUsageDetail_20' ) end [2025-02-23 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539281', 'tblTempVendorCDR_20' ) start [2025-02-23 10:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539281', 'tblTempVendorCDR_20' ) end [2025-02-23 10:55:17] Production.INFO: ProcessCDR(1,14539281,1,1,2) [2025-02-23 10:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539281', 'tblTempUsageDetail_20' ) start [2025-02-23 10:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539281', 'tblTempUsageDetail_20' ) end [2025-02-23 10:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:55:22] Production.INFO: ==10292== Releasing lock... [2025-02-23 10:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-23 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:56:05 [end_date_ymd] => 2025-02-23 10:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:56:05' and `end` < '2025-02-23 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-02-23 10:56:17] Production.INFO: count ==434 [2025-02-23 10:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:56:05 - End Time 2025-02-23 10:56:05 [2025-02-23 10:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539286', 'tblTempUsageDetail_20' ) start [2025-02-23 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539286', 'tblTempUsageDetail_20' ) end [2025-02-23 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539286', 'tblTempVendorCDR_20' ) start [2025-02-23 10:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539286', 'tblTempVendorCDR_20' ) end [2025-02-23 10:56:17] Production.INFO: ProcessCDR(1,14539286,1,1,2) [2025-02-23 10:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539286', 'tblTempUsageDetail_20' ) start [2025-02-23 10:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539286', 'tblTempUsageDetail_20' ) end [2025-02-23 10:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:56:22] Production.INFO: ==10367== Releasing lock... [2025-02-23 10:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:57:05 [end_date_ymd] => 2025-02-23 10:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:57:05' and `end` < '2025-02-23 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-02-23 10:57:17] Production.INFO: count ==434 [2025-02-23 10:57:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:57:05 - End Time 2025-02-23 10:57:05 [2025-02-23 10:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539291', 'tblTempUsageDetail_20' ) start [2025-02-23 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539291', 'tblTempUsageDetail_20' ) end [2025-02-23 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539291', 'tblTempVendorCDR_20' ) start [2025-02-23 10:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539291', 'tblTempVendorCDR_20' ) end [2025-02-23 10:57:17] Production.INFO: ProcessCDR(1,14539291,1,1,2) [2025-02-23 10:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539291', 'tblTempUsageDetail_20' ) start [2025-02-23 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539291', 'tblTempUsageDetail_20' ) end [2025-02-23 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:57:22] Production.INFO: ==10437== Releasing lock... [2025-02-23 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:57:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:58:05 [end_date_ymd] => 2025-02-23 10:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:58:05' and `end` < '2025-02-23 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-02-23 10:58:17] Production.INFO: count ==447 [2025-02-23 10:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:58:05 - End Time 2025-02-23 10:58:05 [2025-02-23 10:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539296', 'tblTempUsageDetail_20' ) start [2025-02-23 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539296', 'tblTempUsageDetail_20' ) end [2025-02-23 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539296', 'tblTempVendorCDR_20' ) start [2025-02-23 10:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539296', 'tblTempVendorCDR_20' ) end [2025-02-23 10:58:17] Production.INFO: ProcessCDR(1,14539296,1,1,2) [2025-02-23 10:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539296', 'tblTempUsageDetail_20' ) start [2025-02-23 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539296', 'tblTempUsageDetail_20' ) end [2025-02-23 10:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:58:22] Production.INFO: ==10507== Releasing lock... [2025-02-23 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-02-23 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 07:59:05 [end_date_ymd] => 2025-02-23 10:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 07:59:05' and `end` < '2025-02-23 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-02-23 10:59:17] Production.INFO: count ==453 [2025-02-23 10:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 07:59:05 - End Time 2025-02-23 10:59:05 [2025-02-23 10:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539301', 'tblTempUsageDetail_20' ) start [2025-02-23 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539301', 'tblTempUsageDetail_20' ) end [2025-02-23 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539301', 'tblTempVendorCDR_20' ) start [2025-02-23 10:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539301', 'tblTempVendorCDR_20' ) end [2025-02-23 10:59:17] Production.INFO: ProcessCDR(1,14539301,1,1,2) [2025-02-23 10:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 10:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539301', 'tblTempUsageDetail_20' ) start [2025-02-23 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539301', 'tblTempUsageDetail_20' ) end [2025-02-23 10:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 10:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 10:59:21] Production.INFO: ==10578== Releasing lock... [2025-02-23 10:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 10:59:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:00:07 [end_date_ymd] => 2025-02-23 11:00:07 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:00:07' and `end` < '2025-02-23 11: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-02-23 11:00:18] Production.INFO: count ==476 [2025-02-23 11:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 08:00:07 - End Time 2025-02-23 11:00:07 [2025-02-23 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539306', 'tblTempUsageDetail_20' ) start [2025-02-23 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539306', 'tblTempUsageDetail_20' ) end [2025-02-23 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539306', 'tblTempVendorCDR_20' ) start [2025-02-23 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539306', 'tblTempVendorCDR_20' ) end [2025-02-23 11:00:19] Production.INFO: ProcessCDR(1,14539306,1,1,2) [2025-02-23 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539306', 'tblTempUsageDetail_20' ) start [2025-02-23 11:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539306', 'tblTempUsageDetail_20' ) end [2025-02-23 11:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:00:23] Production.INFO: ==10660== Releasing lock... [2025-02-23 11:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:00:23] Production.INFO: 32 MB #Memory Used# [2025-02-23 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:01:05 [end_date_ymd] => 2025-02-23 11:01:05 [RateCDR] => 1 ) [2025-02-23 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:01:05' and `end` < '2025-02-23 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:01:17] Production.INFO: count ==505 [2025-02-23 11:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:01:05 - End Time 2025-02-23 11:01:05 [2025-02-23 11:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539312', 'tblTempUsageDetail_20' ) start [2025-02-23 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539312', 'tblTempUsageDetail_20' ) end [2025-02-23 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539312', 'tblTempVendorCDR_20' ) start [2025-02-23 11:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539312', 'tblTempVendorCDR_20' ) end [2025-02-23 11:01:17] Production.INFO: ProcessCDR(1,14539312,1,1,2) [2025-02-23 11:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539312', 'tblTempUsageDetail_20' ) start [2025-02-23 11:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539312', 'tblTempUsageDetail_20' ) end [2025-02-23 11:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:01:22] Production.INFO: ==10803== Releasing lock... [2025-02-23 11:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:02:05 [end_date_ymd] => 2025-02-23 11:02:05 [RateCDR] => 1 ) [2025-02-23 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:02:05' and `end` < '2025-02-23 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:02:17] Production.INFO: count ==507 [2025-02-23 11:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:02:05 - End Time 2025-02-23 11:02:05 [2025-02-23 11:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539317', 'tblTempUsageDetail_20' ) start [2025-02-23 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539317', 'tblTempUsageDetail_20' ) end [2025-02-23 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539317', 'tblTempVendorCDR_20' ) start [2025-02-23 11:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539317', 'tblTempVendorCDR_20' ) end [2025-02-23 11:02:17] Production.INFO: ProcessCDR(1,14539317,1,1,2) [2025-02-23 11:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539317', 'tblTempUsageDetail_20' ) start [2025-02-23 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539317', 'tblTempUsageDetail_20' ) end [2025-02-23 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:02:22] Production.INFO: ==10896== Releasing lock... [2025-02-23 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:02:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 11:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:03:04 [end_date_ymd] => 2025-02-23 11:03:04 [RateCDR] => 1 ) [2025-02-23 11:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:03:04' and `end` < '2025-02-23 11:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:03:16] Production.INFO: count ==513 [2025-02-23 11:03:16] Production.ERROR: pbx CDR StartTime 2025-02-23 08:03:04 - End Time 2025-02-23 11:03:04 [2025-02-23 11:03:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539322', 'tblTempUsageDetail_20' ) start [2025-02-23 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539322', 'tblTempUsageDetail_20' ) end [2025-02-23 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539322', 'tblTempVendorCDR_20' ) start [2025-02-23 11:03:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539322', 'tblTempVendorCDR_20' ) end [2025-02-23 11:03:16] Production.INFO: ProcessCDR(1,14539322,1,1,2) [2025-02-23 11:03:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539322', 'tblTempUsageDetail_20' ) start [2025-02-23 11:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539322', 'tblTempUsageDetail_20' ) end [2025-02-23 11:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:03:21] Production.INFO: ==10967== Releasing lock... [2025-02-23 11:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:03:21] Production.INFO: 32 MB #Memory Used# [2025-02-23 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:04:05 [end_date_ymd] => 2025-02-23 11:04:05 [RateCDR] => 1 ) [2025-02-23 11:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:04:05' and `end` < '2025-02-23 11:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:04:17] Production.INFO: count ==518 [2025-02-23 11:04:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:04:05 - End Time 2025-02-23 11:04:05 [2025-02-23 11:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539327', 'tblTempUsageDetail_20' ) start [2025-02-23 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539327', 'tblTempUsageDetail_20' ) end [2025-02-23 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539327', 'tblTempVendorCDR_20' ) start [2025-02-23 11:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539327', 'tblTempVendorCDR_20' ) end [2025-02-23 11:04:17] Production.INFO: ProcessCDR(1,14539327,1,1,2) [2025-02-23 11:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539327', 'tblTempUsageDetail_20' ) start [2025-02-23 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539327', 'tblTempUsageDetail_20' ) end [2025-02-23 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:04:22] Production.INFO: ==11041== Releasing lock... [2025-02-23 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:05:05 [end_date_ymd] => 2025-02-23 11:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:05:05' and `end` < '2025-02-23 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-02-23 11:05:17] Production.INFO: count ==519 [2025-02-23 11:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:05:05 - End Time 2025-02-23 11:05:05 [2025-02-23 11:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539332', 'tblTempUsageDetail_20' ) start [2025-02-23 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539332', 'tblTempUsageDetail_20' ) end [2025-02-23 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539332', 'tblTempVendorCDR_20' ) start [2025-02-23 11:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539332', 'tblTempVendorCDR_20' ) end [2025-02-23 11:05:17] Production.INFO: ProcessCDR(1,14539332,1,1,2) [2025-02-23 11:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539332', 'tblTempUsageDetail_20' ) start [2025-02-23 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539332', 'tblTempUsageDetail_20' ) end [2025-02-23 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:05:22] Production.INFO: ==11192== Releasing lock... [2025-02-23 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:06:06 [end_date_ymd] => 2025-02-23 11:06:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:06:06' and `end` < '2025-02-23 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-02-23 11:06:17] Production.INFO: count ==520 [2025-02-23 11:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:06:06 - End Time 2025-02-23 11:06:06 [2025-02-23 11:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539337', 'tblTempUsageDetail_20' ) start [2025-02-23 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539337', 'tblTempUsageDetail_20' ) end [2025-02-23 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539337', 'tblTempVendorCDR_20' ) start [2025-02-23 11:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539337', 'tblTempVendorCDR_20' ) end [2025-02-23 11:06:18] Production.INFO: ProcessCDR(1,14539337,1,1,2) [2025-02-23 11:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539337', 'tblTempUsageDetail_20' ) start [2025-02-23 11:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539337', 'tblTempUsageDetail_20' ) end [2025-02-23 11:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:06:22] Production.INFO: ==11263== Releasing lock... [2025-02-23 11:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:06:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:07:05 [end_date_ymd] => 2025-02-23 11:07:05 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:07:05' and `end` < '2025-02-23 11: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-02-23 11:07:17] Production.INFO: count ==521 [2025-02-23 11:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:07:05 - End Time 2025-02-23 11:07:05 [2025-02-23 11:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539342', 'tblTempUsageDetail_20' ) start [2025-02-23 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539342', 'tblTempUsageDetail_20' ) end [2025-02-23 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539342', 'tblTempVendorCDR_20' ) start [2025-02-23 11:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539342', 'tblTempVendorCDR_20' ) end [2025-02-23 11:07:17] Production.INFO: ProcessCDR(1,14539342,1,1,2) [2025-02-23 11:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539342', 'tblTempUsageDetail_20' ) start [2025-02-23 11:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539342', 'tblTempUsageDetail_20' ) end [2025-02-23 11:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:07:22] Production.INFO: ==11335== Releasing lock... [2025-02-23 11:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:07:22] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:08:05 [end_date_ymd] => 2025-02-23 11:08:05 [RateCDR] => 1 ) [2025-02-23 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:08:05' and `end` < '2025-02-23 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:08:17] Production.INFO: count ==522 [2025-02-23 11:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:08:05 - End Time 2025-02-23 11:08:05 [2025-02-23 11:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539347', 'tblTempUsageDetail_20' ) start [2025-02-23 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539347', 'tblTempUsageDetail_20' ) end [2025-02-23 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539347', 'tblTempVendorCDR_20' ) start [2025-02-23 11:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539347', 'tblTempVendorCDR_20' ) end [2025-02-23 11:08:18] Production.INFO: ProcessCDR(1,14539347,1,1,2) [2025-02-23 11:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539347', 'tblTempUsageDetail_20' ) start [2025-02-23 11:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539347', 'tblTempUsageDetail_20' ) end [2025-02-23 11:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:08:22] Production.INFO: ==11487== Releasing lock... [2025-02-23 11:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:09:05 [end_date_ymd] => 2025-02-23 11:09:05 [RateCDR] => 1 ) [2025-02-23 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:09:05' and `end` < '2025-02-23 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:09:17] Production.INFO: count ==523 [2025-02-23 11:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:09:05 - End Time 2025-02-23 11:09:05 [2025-02-23 11:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539352', 'tblTempUsageDetail_20' ) start [2025-02-23 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539352', 'tblTempUsageDetail_20' ) end [2025-02-23 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539352', 'tblTempVendorCDR_20' ) start [2025-02-23 11:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539352', 'tblTempVendorCDR_20' ) end [2025-02-23 11:09:17] Production.INFO: ProcessCDR(1,14539352,1,1,2) [2025-02-23 11:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539352', 'tblTempUsageDetail_20' ) start [2025-02-23 11:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539352', 'tblTempUsageDetail_20' ) end [2025-02-23 11:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:09:20] Production.INFO: ==11597== Releasing lock... [2025-02-23 11:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:09:20] Production.INFO: 32.5 MB #Memory Used# [2025-02-23 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:10:06 [end_date_ymd] => 2025-02-23 11:10:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:10:06' and `end` < '2025-02-23 11: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-02-23 11:10:18] Production.INFO: count ==540 [2025-02-23 11:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:10:06 - End Time 2025-02-23 11:10:06 [2025-02-23 11:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539358', 'tblTempUsageDetail_20' ) start [2025-02-23 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539358', 'tblTempUsageDetail_20' ) end [2025-02-23 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539358', 'tblTempVendorCDR_20' ) start [2025-02-23 11:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539358', 'tblTempVendorCDR_20' ) end [2025-02-23 11:10:18] Production.INFO: ProcessCDR(1,14539358,1,1,2) [2025-02-23 11:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539358', 'tblTempUsageDetail_20' ) start [2025-02-23 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539358', 'tblTempUsageDetail_20' ) end [2025-02-23 11:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:10:23] Production.INFO: ==11669== Releasing lock... [2025-02-23 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:10:23] Production.INFO: 33 MB #Memory Used# [2025-02-23 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:11:05 [end_date_ymd] => 2025-02-23 11:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:11:05' and `end` < '2025-02-23 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-02-23 11:11:17] Production.INFO: count ==554 [2025-02-23 11:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:11:05 - End Time 2025-02-23 11:11:05 [2025-02-23 11:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539363', 'tblTempUsageDetail_20' ) start [2025-02-23 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539363', 'tblTempUsageDetail_20' ) end [2025-02-23 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539363', 'tblTempVendorCDR_20' ) start [2025-02-23 11:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539363', 'tblTempVendorCDR_20' ) end [2025-02-23 11:11:17] Production.INFO: ProcessCDR(1,14539363,1,1,2) [2025-02-23 11:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539363', 'tblTempUsageDetail_20' ) start [2025-02-23 11:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539363', 'tblTempUsageDetail_20' ) end [2025-02-23 11:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:11:22] Production.INFO: ==11742== Releasing lock... [2025-02-23 11:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:11:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:12:05 [end_date_ymd] => 2025-02-23 11:12:05 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:12:05' and `end` < '2025-02-23 11: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-02-23 11:12:17] Production.INFO: count ==554 [2025-02-23 11:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:12:05 - End Time 2025-02-23 11:12:05 [2025-02-23 11:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539368', 'tblTempUsageDetail_20' ) start [2025-02-23 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539368', 'tblTempUsageDetail_20' ) end [2025-02-23 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539368', 'tblTempVendorCDR_20' ) start [2025-02-23 11:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539368', 'tblTempVendorCDR_20' ) end [2025-02-23 11:12:17] Production.INFO: ProcessCDR(1,14539368,1,1,2) [2025-02-23 11:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539368', 'tblTempUsageDetail_20' ) start [2025-02-23 11:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539368', 'tblTempUsageDetail_20' ) end [2025-02-23 11:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:12:20] Production.INFO: ==11893== Releasing lock... [2025-02-23 11:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:12:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-23 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:13:05 [end_date_ymd] => 2025-02-23 11:13:05 [RateCDR] => 1 ) [2025-02-23 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:13:05' and `end` < '2025-02-23 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:13:17] Production.INFO: count ==582 [2025-02-23 11:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:13:05 - End Time 2025-02-23 11:13:05 [2025-02-23 11:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539373', 'tblTempUsageDetail_20' ) start [2025-02-23 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539373', 'tblTempUsageDetail_20' ) end [2025-02-23 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539373', 'tblTempVendorCDR_20' ) start [2025-02-23 11:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539373', 'tblTempVendorCDR_20' ) end [2025-02-23 11:13:17] Production.INFO: ProcessCDR(1,14539373,1,1,2) [2025-02-23 11:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539373', 'tblTempUsageDetail_20' ) start [2025-02-23 11:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539373', 'tblTempUsageDetail_20' ) end [2025-02-23 11:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:13:20] Production.INFO: ==11965== Releasing lock... [2025-02-23 11:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:13:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:14:05 [end_date_ymd] => 2025-02-23 11:14:05 [RateCDR] => 1 ) [2025-02-23 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:14:05' and `end` < '2025-02-23 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:14:17] Production.INFO: count ==610 [2025-02-23 11:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:14:05 - End Time 2025-02-23 11:14:05 [2025-02-23 11:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539378', 'tblTempUsageDetail_20' ) start [2025-02-23 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539378', 'tblTempUsageDetail_20' ) end [2025-02-23 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539378', 'tblTempVendorCDR_20' ) start [2025-02-23 11:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539378', 'tblTempVendorCDR_20' ) end [2025-02-23 11:14:17] Production.INFO: ProcessCDR(1,14539378,1,1,2) [2025-02-23 11:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539378', 'tblTempUsageDetail_20' ) start [2025-02-23 11:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539378', 'tblTempUsageDetail_20' ) end [2025-02-23 11:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:14:20] Production.INFO: ==12039== Releasing lock... [2025-02-23 11:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:14:20] Production.INFO: 33 MB #Memory Used# [2025-02-23 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:15:06 [end_date_ymd] => 2025-02-23 11:15:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:15:06' and `end` < '2025-02-23 11: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-02-23 11:15:17] Production.INFO: count ==663 [2025-02-23 11:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:15:06 - End Time 2025-02-23 11:15:06 [2025-02-23 11:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539383', 'tblTempUsageDetail_20' ) start [2025-02-23 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539383', 'tblTempUsageDetail_20' ) end [2025-02-23 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539383', 'tblTempVendorCDR_20' ) start [2025-02-23 11:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539383', 'tblTempVendorCDR_20' ) end [2025-02-23 11:15:18] Production.INFO: ProcessCDR(1,14539383,1,1,2) [2025-02-23 11:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539383', 'tblTempUsageDetail_20' ) start [2025-02-23 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539383', 'tblTempUsageDetail_20' ) end [2025-02-23 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:15:22] Production.INFO: ==12197== Releasing lock... [2025-02-23 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:15:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-23 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:16:05 [end_date_ymd] => 2025-02-23 11:16:05 [RateCDR] => 1 ) [2025-02-23 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:16:05' and `end` < '2025-02-23 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:16:17] Production.INFO: count ==660 [2025-02-23 11:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:16:05 - End Time 2025-02-23 11:16:05 [2025-02-23 11:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539388', 'tblTempUsageDetail_20' ) start [2025-02-23 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539388', 'tblTempUsageDetail_20' ) end [2025-02-23 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539388', 'tblTempVendorCDR_20' ) start [2025-02-23 11:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539388', 'tblTempVendorCDR_20' ) end [2025-02-23 11:16:17] Production.INFO: ProcessCDR(1,14539388,1,1,2) [2025-02-23 11:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539388', 'tblTempUsageDetail_20' ) start [2025-02-23 11:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539388', 'tblTempUsageDetail_20' ) end [2025-02-23 11:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:16:22] Production.INFO: ==12268== Releasing lock... [2025-02-23 11:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:16:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:17:05 [end_date_ymd] => 2025-02-23 11:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:17:05' and `end` < '2025-02-23 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-02-23 11:17:17] Production.INFO: count ==660 [2025-02-23 11:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:17:05 - End Time 2025-02-23 11:17:05 [2025-02-23 11:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539393', 'tblTempUsageDetail_20' ) start [2025-02-23 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539393', 'tblTempUsageDetail_20' ) end [2025-02-23 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539393', 'tblTempVendorCDR_20' ) start [2025-02-23 11:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539393', 'tblTempVendorCDR_20' ) end [2025-02-23 11:17:18] Production.INFO: ProcessCDR(1,14539393,1,1,2) [2025-02-23 11:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539393', 'tblTempUsageDetail_20' ) start [2025-02-23 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539393', 'tblTempUsageDetail_20' ) end [2025-02-23 11:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:17:22] Production.INFO: ==12343== Releasing lock... [2025-02-23 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:17:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:18:05 [end_date_ymd] => 2025-02-23 11:18:05 [RateCDR] => 1 ) [2025-02-23 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:18:05' and `end` < '2025-02-23 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:18:17] Production.INFO: count ==660 [2025-02-23 11:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:18:05 - End Time 2025-02-23 11:18:05 [2025-02-23 11:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539398', 'tblTempUsageDetail_20' ) start [2025-02-23 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539398', 'tblTempUsageDetail_20' ) end [2025-02-23 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539398', 'tblTempVendorCDR_20' ) start [2025-02-23 11:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539398', 'tblTempVendorCDR_20' ) end [2025-02-23 11:18:17] Production.INFO: ProcessCDR(1,14539398,1,1,2) [2025-02-23 11:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539398', 'tblTempUsageDetail_20' ) start [2025-02-23 11:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539398', 'tblTempUsageDetail_20' ) end [2025-02-23 11:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:18:20] Production.INFO: ==12418== Releasing lock... [2025-02-23 11:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:18:20] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:19:06 [end_date_ymd] => 2025-02-23 11:19:06 [RateCDR] => 1 ) [2025-02-23 11:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:19:06' and `end` < '2025-02-23 11:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:19:17] Production.INFO: count ==661 [2025-02-23 11:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:19:06 - End Time 2025-02-23 11:19:06 [2025-02-23 11:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539403', 'tblTempUsageDetail_20' ) start [2025-02-23 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539403', 'tblTempUsageDetail_20' ) end [2025-02-23 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539403', 'tblTempVendorCDR_20' ) start [2025-02-23 11:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539403', 'tblTempVendorCDR_20' ) end [2025-02-23 11:19:18] Production.INFO: ProcessCDR(1,14539403,1,1,2) [2025-02-23 11:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539403', 'tblTempUsageDetail_20' ) start [2025-02-23 11:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539403', 'tblTempUsageDetail_20' ) end [2025-02-23 11:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:19:21] Production.INFO: ==12493== Releasing lock... [2025-02-23 11:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:19:21] Production.INFO: 33.25 MB #Memory Used# [2025-02-23 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:20:06 [end_date_ymd] => 2025-02-23 11:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:20:06' and `end` < '2025-02-23 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-02-23 11:20:18] Production.INFO: count ==668 [2025-02-23 11:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:20:06 - End Time 2025-02-23 11:20:06 [2025-02-23 11:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539409', 'tblTempUsageDetail_20' ) start [2025-02-23 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539409', 'tblTempUsageDetail_20' ) end [2025-02-23 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539409', 'tblTempVendorCDR_20' ) start [2025-02-23 11:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539409', 'tblTempVendorCDR_20' ) end [2025-02-23 11:20:18] Production.INFO: ProcessCDR(1,14539409,1,1,2) [2025-02-23 11:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539409', 'tblTempUsageDetail_20' ) start [2025-02-23 11:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539409', 'tblTempUsageDetail_20' ) end [2025-02-23 11:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:20:21] Production.INFO: ==12569== Releasing lock... [2025-02-23 11:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:20:21] Production.INFO: 33.5 MB #Memory Used# [2025-02-23 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:21:06 [end_date_ymd] => 2025-02-23 11:21:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:21:06' and `end` < '2025-02-23 11: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-02-23 11:21:18] Production.INFO: count ==750 [2025-02-23 11:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:21:06 - End Time 2025-02-23 11:21:06 [2025-02-23 11:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539414', 'tblTempUsageDetail_20' ) start [2025-02-23 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539414', 'tblTempUsageDetail_20' ) end [2025-02-23 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539414', 'tblTempVendorCDR_20' ) start [2025-02-23 11:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539414', 'tblTempVendorCDR_20' ) end [2025-02-23 11:21:18] Production.INFO: ProcessCDR(1,14539414,1,1,2) [2025-02-23 11:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539414', 'tblTempUsageDetail_20' ) start [2025-02-23 11:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539414', 'tblTempUsageDetail_20' ) end [2025-02-23 11:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:21:23] Production.INFO: ==12644== Releasing lock... [2025-02-23 11:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:21:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:22:05 [end_date_ymd] => 2025-02-23 11:22:05 [RateCDR] => 1 ) [2025-02-23 11:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:22:05' and `end` < '2025-02-23 11:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:22:17] Production.INFO: count ==799 [2025-02-23 11:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:22:05 - End Time 2025-02-23 11:22:05 [2025-02-23 11:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539419', 'tblTempUsageDetail_20' ) start [2025-02-23 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539419', 'tblTempUsageDetail_20' ) end [2025-02-23 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539419', 'tblTempVendorCDR_20' ) start [2025-02-23 11:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539419', 'tblTempVendorCDR_20' ) end [2025-02-23 11:22:17] Production.INFO: ProcessCDR(1,14539419,1,1,2) [2025-02-23 11:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539419', 'tblTempUsageDetail_20' ) start [2025-02-23 11:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539419', 'tblTempUsageDetail_20' ) end [2025-02-23 11:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:22:22] Production.INFO: ==12722== Releasing lock... [2025-02-23 11:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:22:22] Production.INFO: 34 MB #Memory Used# [2025-02-23 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:23:05 [end_date_ymd] => 2025-02-23 11:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:23:05' and `end` < '2025-02-23 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-02-23 11:23:17] Production.INFO: count ==798 [2025-02-23 11:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:23:05 - End Time 2025-02-23 11:23:05 [2025-02-23 11:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539424', 'tblTempUsageDetail_20' ) start [2025-02-23 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539424', 'tblTempUsageDetail_20' ) end [2025-02-23 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539424', 'tblTempVendorCDR_20' ) start [2025-02-23 11:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539424', 'tblTempVendorCDR_20' ) end [2025-02-23 11:23:17] Production.INFO: ProcessCDR(1,14539424,1,1,2) [2025-02-23 11:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539424', 'tblTempUsageDetail_20' ) start [2025-02-23 11:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539424', 'tblTempUsageDetail_20' ) end [2025-02-23 11:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:23:20] Production.INFO: ==12797== Releasing lock... [2025-02-23 11:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:23:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:24:05 [end_date_ymd] => 2025-02-23 11:24:05 [RateCDR] => 1 ) [2025-02-23 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:24:05' and `end` < '2025-02-23 11:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:24:17] Production.INFO: count ==798 [2025-02-23 11:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:24:05 - End Time 2025-02-23 11:24:05 [2025-02-23 11:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539429', 'tblTempUsageDetail_20' ) start [2025-02-23 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539429', 'tblTempUsageDetail_20' ) end [2025-02-23 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539429', 'tblTempVendorCDR_20' ) start [2025-02-23 11:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539429', 'tblTempVendorCDR_20' ) end [2025-02-23 11:24:17] Production.INFO: ProcessCDR(1,14539429,1,1,2) [2025-02-23 11:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539429', 'tblTempUsageDetail_20' ) start [2025-02-23 11:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539429', 'tblTempUsageDetail_20' ) end [2025-02-23 11:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:24:20] Production.INFO: ==12909== Releasing lock... [2025-02-23 11:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:24:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:25:05 [end_date_ymd] => 2025-02-23 11:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:25:05' and `end` < '2025-02-23 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-02-23 11:25:17] Production.INFO: count ==798 [2025-02-23 11:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:25:05 - End Time 2025-02-23 11:25:05 [2025-02-23 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539434', 'tblTempUsageDetail_20' ) start [2025-02-23 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539434', 'tblTempUsageDetail_20' ) end [2025-02-23 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539434', 'tblTempVendorCDR_20' ) start [2025-02-23 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539434', 'tblTempVendorCDR_20' ) end [2025-02-23 11:25:18] Production.INFO: ProcessCDR(1,14539434,1,1,2) [2025-02-23 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539434', 'tblTempUsageDetail_20' ) start [2025-02-23 11:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539434', 'tblTempUsageDetail_20' ) end [2025-02-23 11:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:25:21] Production.INFO: ==12981== Releasing lock... [2025-02-23 11:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:25:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:26:06 [end_date_ymd] => 2025-02-23 11:26:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:26:06' and `end` < '2025-02-23 11: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-02-23 11:26:18] Production.INFO: count ==798 [2025-02-23 11:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:26:06 - End Time 2025-02-23 11:26:06 [2025-02-23 11:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539439', 'tblTempUsageDetail_20' ) start [2025-02-23 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539439', 'tblTempUsageDetail_20' ) end [2025-02-23 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539439', 'tblTempVendorCDR_20' ) start [2025-02-23 11:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539439', 'tblTempVendorCDR_20' ) end [2025-02-23 11:26:18] Production.INFO: ProcessCDR(1,14539439,1,1,2) [2025-02-23 11:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539439', 'tblTempUsageDetail_20' ) start [2025-02-23 11:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539439', 'tblTempUsageDetail_20' ) end [2025-02-23 11:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:26:21] Production.INFO: ==13053== Releasing lock... [2025-02-23 11:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:26:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:27:05 [end_date_ymd] => 2025-02-23 11:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:27:05' and `end` < '2025-02-23 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-02-23 11:27:17] Production.INFO: count ==800 [2025-02-23 11:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:27:05 - End Time 2025-02-23 11:27:05 [2025-02-23 11:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539444', 'tblTempUsageDetail_20' ) start [2025-02-23 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539444', 'tblTempUsageDetail_20' ) end [2025-02-23 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539444', 'tblTempVendorCDR_20' ) start [2025-02-23 11:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539444', 'tblTempVendorCDR_20' ) end [2025-02-23 11:27:17] Production.INFO: ProcessCDR(1,14539444,1,1,2) [2025-02-23 11:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539444', 'tblTempUsageDetail_20' ) start [2025-02-23 11:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539444', 'tblTempUsageDetail_20' ) end [2025-02-23 11:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:27:22] Production.INFO: ==13126== Releasing lock... [2025-02-23 11:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:27:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:28:06 [end_date_ymd] => 2025-02-23 11:28:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:28:06' and `end` < '2025-02-23 11: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-02-23 11:28:17] Production.INFO: count ==801 [2025-02-23 11:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:28:06 - End Time 2025-02-23 11:28:06 [2025-02-23 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539449', 'tblTempUsageDetail_20' ) start [2025-02-23 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539449', 'tblTempUsageDetail_20' ) end [2025-02-23 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539449', 'tblTempVendorCDR_20' ) start [2025-02-23 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539449', 'tblTempVendorCDR_20' ) end [2025-02-23 11:28:18] Production.INFO: ProcessCDR(1,14539449,1,1,2) [2025-02-23 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539449', 'tblTempUsageDetail_20' ) start [2025-02-23 11:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539449', 'tblTempUsageDetail_20' ) end [2025-02-23 11:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:28:22] Production.INFO: ==13200== Releasing lock... [2025-02-23 11:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:28:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:29:05 [end_date_ymd] => 2025-02-23 11:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:29:05' and `end` < '2025-02-23 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-02-23 11:29:16] Production.INFO: count ==801 [2025-02-23 11:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:29:05 - End Time 2025-02-23 11:29:05 [2025-02-23 11:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539454', 'tblTempUsageDetail_20' ) start [2025-02-23 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539454', 'tblTempUsageDetail_20' ) end [2025-02-23 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539454', 'tblTempVendorCDR_20' ) start [2025-02-23 11:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539454', 'tblTempVendorCDR_20' ) end [2025-02-23 11:29:17] Production.INFO: ProcessCDR(1,14539454,1,1,2) [2025-02-23 11:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539454', 'tblTempUsageDetail_20' ) start [2025-02-23 11:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539454', 'tblTempUsageDetail_20' ) end [2025-02-23 11:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:29:20] Production.INFO: ==13275== Releasing lock... [2025-02-23 11:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:29:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:30:06 [end_date_ymd] => 2025-02-23 11:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:30:06' and `end` < '2025-02-23 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-02-23 11:30:18] Production.INFO: count ==806 [2025-02-23 11:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:30:06 - End Time 2025-02-23 11:30:06 [2025-02-23 11:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539460', 'tblTempUsageDetail_20' ) start [2025-02-23 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539460', 'tblTempUsageDetail_20' ) end [2025-02-23 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539460', 'tblTempVendorCDR_20' ) start [2025-02-23 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539460', 'tblTempVendorCDR_20' ) end [2025-02-23 11:30:19] Production.INFO: ProcessCDR(1,14539460,1,1,2) [2025-02-23 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539460', 'tblTempUsageDetail_20' ) start [2025-02-23 11:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539460', 'tblTempUsageDetail_20' ) end [2025-02-23 11:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:30:22] Production.INFO: ==13351== Releasing lock... [2025-02-23 11:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:31:05 [end_date_ymd] => 2025-02-23 11:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:31:05' and `end` < '2025-02-23 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-02-23 11:31:17] Production.INFO: count ==826 [2025-02-23 11:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:31:05 - End Time 2025-02-23 11:31:05 [2025-02-23 11:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539465', 'tblTempUsageDetail_20' ) start [2025-02-23 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539465', 'tblTempUsageDetail_20' ) end [2025-02-23 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539465', 'tblTempVendorCDR_20' ) start [2025-02-23 11:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539465', 'tblTempVendorCDR_20' ) end [2025-02-23 11:31:17] Production.INFO: ProcessCDR(1,14539465,1,1,2) [2025-02-23 11:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539465', 'tblTempUsageDetail_20' ) start [2025-02-23 11:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539465', 'tblTempUsageDetail_20' ) end [2025-02-23 11:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:31:22] Production.INFO: ==13423== Releasing lock... [2025-02-23 11:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:31:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:32:06 [end_date_ymd] => 2025-02-23 11:32:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:32:06' and `end` < '2025-02-23 11: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-02-23 11:32:18] Production.INFO: count ==827 [2025-02-23 11:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:32:06 - End Time 2025-02-23 11:32:06 [2025-02-23 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539470', 'tblTempUsageDetail_20' ) start [2025-02-23 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539470', 'tblTempUsageDetail_20' ) end [2025-02-23 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539470', 'tblTempVendorCDR_20' ) start [2025-02-23 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539470', 'tblTempVendorCDR_20' ) end [2025-02-23 11:32:18] Production.INFO: ProcessCDR(1,14539470,1,1,2) [2025-02-23 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539470', 'tblTempUsageDetail_20' ) start [2025-02-23 11:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539470', 'tblTempUsageDetail_20' ) end [2025-02-23 11:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:32:23] Production.INFO: ==13494== Releasing lock... [2025-02-23 11:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:32:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:33:05 [end_date_ymd] => 2025-02-23 11:33:05 [RateCDR] => 1 ) [2025-02-23 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:33:05' and `end` < '2025-02-23 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:33:16] Production.INFO: count ==831 [2025-02-23 11:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:33:05 - End Time 2025-02-23 11:33:05 [2025-02-23 11:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539475', 'tblTempUsageDetail_20' ) start [2025-02-23 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539475', 'tblTempUsageDetail_20' ) end [2025-02-23 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539475', 'tblTempVendorCDR_20' ) start [2025-02-23 11:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539475', 'tblTempVendorCDR_20' ) end [2025-02-23 11:33:17] Production.INFO: ProcessCDR(1,14539475,1,1,2) [2025-02-23 11:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539475', 'tblTempUsageDetail_20' ) start [2025-02-23 11:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539475', 'tblTempUsageDetail_20' ) end [2025-02-23 11:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:33:20] Production.INFO: ==13567== Releasing lock... [2025-02-23 11:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:33:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 11:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:34:04 [end_date_ymd] => 2025-02-23 11:34:04 [RateCDR] => 1 ) [2025-02-23 11:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:34:04' and `end` < '2025-02-23 11:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:34:16] Production.INFO: count ==832 [2025-02-23 11:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:34:04 - End Time 2025-02-23 11:34:04 [2025-02-23 11:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539480', 'tblTempUsageDetail_20' ) start [2025-02-23 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539480', 'tblTempUsageDetail_20' ) end [2025-02-23 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539480', 'tblTempVendorCDR_20' ) start [2025-02-23 11:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539480', 'tblTempVendorCDR_20' ) end [2025-02-23 11:34:17] Production.INFO: ProcessCDR(1,14539480,1,1,2) [2025-02-23 11:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539480', 'tblTempUsageDetail_20' ) start [2025-02-23 11:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539480', 'tblTempUsageDetail_20' ) end [2025-02-23 11:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:34:22] Production.INFO: ==13639== Releasing lock... [2025-02-23 11:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:34:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:35:05 [end_date_ymd] => 2025-02-23 11:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:35:05' and `end` < '2025-02-23 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-02-23 11:35:17] Production.INFO: count ==836 [2025-02-23 11:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:35:05 - End Time 2025-02-23 11:35:05 [2025-02-23 11:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539485', 'tblTempUsageDetail_20' ) start [2025-02-23 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539485', 'tblTempUsageDetail_20' ) end [2025-02-23 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539485', 'tblTempVendorCDR_20' ) start [2025-02-23 11:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539485', 'tblTempVendorCDR_20' ) end [2025-02-23 11:35:17] Production.INFO: ProcessCDR(1,14539485,1,1,2) [2025-02-23 11:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539485', 'tblTempUsageDetail_20' ) start [2025-02-23 11:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539485', 'tblTempUsageDetail_20' ) end [2025-02-23 11:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:35:20] Production.INFO: ==13718== Releasing lock... [2025-02-23 11:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:35:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:36:05 [end_date_ymd] => 2025-02-23 11:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:36:05' and `end` < '2025-02-23 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-02-23 11:36:17] Production.INFO: count ==836 [2025-02-23 11:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:36:05 - End Time 2025-02-23 11:36:05 [2025-02-23 11:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539490', 'tblTempUsageDetail_20' ) start [2025-02-23 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539490', 'tblTempUsageDetail_20' ) end [2025-02-23 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539490', 'tblTempVendorCDR_20' ) start [2025-02-23 11:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539490', 'tblTempVendorCDR_20' ) end [2025-02-23 11:36:17] Production.INFO: ProcessCDR(1,14539490,1,1,2) [2025-02-23 11:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539490', 'tblTempUsageDetail_20' ) start [2025-02-23 11:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539490', 'tblTempUsageDetail_20' ) end [2025-02-23 11:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:36:20] Production.INFO: ==13791== Releasing lock... [2025-02-23 11:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:36:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:37:05 [end_date_ymd] => 2025-02-23 11:37:05 [RateCDR] => 1 ) [2025-02-23 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:37:05' and `end` < '2025-02-23 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:37:17] Production.INFO: count ==836 [2025-02-23 11:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:37:05 - End Time 2025-02-23 11:37:05 [2025-02-23 11:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539495', 'tblTempUsageDetail_20' ) start [2025-02-23 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539495', 'tblTempUsageDetail_20' ) end [2025-02-23 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539495', 'tblTempVendorCDR_20' ) start [2025-02-23 11:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539495', 'tblTempVendorCDR_20' ) end [2025-02-23 11:37:18] Production.INFO: ProcessCDR(1,14539495,1,1,2) [2025-02-23 11:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539495', 'tblTempUsageDetail_20' ) start [2025-02-23 11:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539495', 'tblTempUsageDetail_20' ) end [2025-02-23 11:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:37:21] Production.INFO: ==13869== Releasing lock... [2025-02-23 11:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:38:05 [end_date_ymd] => 2025-02-23 11:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:38:05' and `end` < '2025-02-23 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-02-23 11:38:17] Production.INFO: count ==837 [2025-02-23 11:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:38:05 - End Time 2025-02-23 11:38:05 [2025-02-23 11:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539500', 'tblTempUsageDetail_20' ) start [2025-02-23 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539500', 'tblTempUsageDetail_20' ) end [2025-02-23 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539500', 'tblTempVendorCDR_20' ) start [2025-02-23 11:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539500', 'tblTempVendorCDR_20' ) end [2025-02-23 11:38:17] Production.INFO: ProcessCDR(1,14539500,1,1,2) [2025-02-23 11:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539500', 'tblTempUsageDetail_20' ) start [2025-02-23 11:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539500', 'tblTempUsageDetail_20' ) end [2025-02-23 11:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:38:20] Production.INFO: ==13947== Releasing lock... [2025-02-23 11:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:38:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:39:05 [end_date_ymd] => 2025-02-23 11:39:05 [RateCDR] => 1 ) [2025-02-23 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:39:05' and `end` < '2025-02-23 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:39:17] Production.INFO: count ==836 [2025-02-23 11:39:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:39:05 - End Time 2025-02-23 11:39:05 [2025-02-23 11:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539505', 'tblTempUsageDetail_20' ) start [2025-02-23 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539505', 'tblTempUsageDetail_20' ) end [2025-02-23 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539505', 'tblTempVendorCDR_20' ) start [2025-02-23 11:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539505', 'tblTempVendorCDR_20' ) end [2025-02-23 11:39:18] Production.INFO: ProcessCDR(1,14539505,1,1,2) [2025-02-23 11:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539505', 'tblTempUsageDetail_20' ) start [2025-02-23 11:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539505', 'tblTempUsageDetail_20' ) end [2025-02-23 11:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:39:21] Production.INFO: ==14022== Releasing lock... [2025-02-23 11:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:39:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:40:06 [end_date_ymd] => 2025-02-23 11:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:40:06' and `end` < '2025-02-23 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-02-23 11:40:18] Production.INFO: count ==842 [2025-02-23 11:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:40:06 - End Time 2025-02-23 11:40:06 [2025-02-23 11:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539510', 'tblTempUsageDetail_20' ) start [2025-02-23 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539510', 'tblTempUsageDetail_20' ) end [2025-02-23 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539510', 'tblTempVendorCDR_20' ) start [2025-02-23 11:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539510', 'tblTempVendorCDR_20' ) end [2025-02-23 11:40:18] Production.INFO: ProcessCDR(1,14539510,1,1,2) [2025-02-23 11:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539510', 'tblTempUsageDetail_20' ) start [2025-02-23 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539510', 'tblTempUsageDetail_20' ) end [2025-02-23 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:40:23] Production.INFO: ==14138== Releasing lock... [2025-02-23 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:40:23] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:41:05 [end_date_ymd] => 2025-02-23 11:41:05 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:41:05' and `end` < '2025-02-23 11: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-02-23 11:41:17] Production.INFO: count ==857 [2025-02-23 11:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:41:05 - End Time 2025-02-23 11:41:05 [2025-02-23 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539516', 'tblTempUsageDetail_20' ) start [2025-02-23 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539516', 'tblTempUsageDetail_20' ) end [2025-02-23 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539516', 'tblTempVendorCDR_20' ) start [2025-02-23 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539516', 'tblTempVendorCDR_20' ) end [2025-02-23 11:41:18] Production.INFO: ProcessCDR(1,14539516,1,1,2) [2025-02-23 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539516', 'tblTempUsageDetail_20' ) start [2025-02-23 11:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539516', 'tblTempUsageDetail_20' ) end [2025-02-23 11:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:41:22] Production.INFO: ==14212== Releasing lock... [2025-02-23 11:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:41:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:42:05 [end_date_ymd] => 2025-02-23 11:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:42:05' and `end` < '2025-02-23 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-02-23 11:42:17] Production.INFO: count ==858 [2025-02-23 11:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:42:05 - End Time 2025-02-23 11:42:05 [2025-02-23 11:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539521', 'tblTempUsageDetail_20' ) start [2025-02-23 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539521', 'tblTempUsageDetail_20' ) end [2025-02-23 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539521', 'tblTempVendorCDR_20' ) start [2025-02-23 11:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539521', 'tblTempVendorCDR_20' ) end [2025-02-23 11:42:17] Production.INFO: ProcessCDR(1,14539521,1,1,2) [2025-02-23 11:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539521', 'tblTempUsageDetail_20' ) start [2025-02-23 11:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539521', 'tblTempUsageDetail_20' ) end [2025-02-23 11:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:42:20] Production.INFO: ==14284== Releasing lock... [2025-02-23 11:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:42:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:43:05 [end_date_ymd] => 2025-02-23 11:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:43:05' and `end` < '2025-02-23 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-02-23 11:43:17] Production.INFO: count ==858 [2025-02-23 11:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:43:05 - End Time 2025-02-23 11:43:05 [2025-02-23 11:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539526', 'tblTempUsageDetail_20' ) start [2025-02-23 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539526', 'tblTempUsageDetail_20' ) end [2025-02-23 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539526', 'tblTempVendorCDR_20' ) start [2025-02-23 11:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539526', 'tblTempVendorCDR_20' ) end [2025-02-23 11:43:18] Production.INFO: ProcessCDR(1,14539526,1,1,2) [2025-02-23 11:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539526', 'tblTempUsageDetail_20' ) start [2025-02-23 11:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539526', 'tblTempUsageDetail_20' ) end [2025-02-23 11:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:43:21] Production.INFO: ==14365== Releasing lock... [2025-02-23 11:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:44:05 [end_date_ymd] => 2025-02-23 11:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:44:05' and `end` < '2025-02-23 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-02-23 11:44:17] Production.INFO: count ==858 [2025-02-23 11:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:44:05 - End Time 2025-02-23 11:44:05 [2025-02-23 11:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539531', 'tblTempUsageDetail_20' ) start [2025-02-23 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539531', 'tblTempUsageDetail_20' ) end [2025-02-23 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539531', 'tblTempVendorCDR_20' ) start [2025-02-23 11:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539531', 'tblTempVendorCDR_20' ) end [2025-02-23 11:44:17] Production.INFO: ProcessCDR(1,14539531,1,1,2) [2025-02-23 11:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539531', 'tblTempUsageDetail_20' ) start [2025-02-23 11:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539531', 'tblTempUsageDetail_20' ) end [2025-02-23 11:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:44:21] Production.INFO: ==14436== Releasing lock... [2025-02-23 11:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:44:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:45:06 [end_date_ymd] => 2025-02-23 11:45:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:45:06' and `end` < '2025-02-23 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-02-23 11:45:17] Production.INFO: count ==858 [2025-02-23 11:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:45:06 - End Time 2025-02-23 11:45:06 [2025-02-23 11:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539536', 'tblTempUsageDetail_20' ) start [2025-02-23 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539536', 'tblTempUsageDetail_20' ) end [2025-02-23 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539536', 'tblTempVendorCDR_20' ) start [2025-02-23 11:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539536', 'tblTempVendorCDR_20' ) end [2025-02-23 11:45:18] Production.INFO: ProcessCDR(1,14539536,1,1,2) [2025-02-23 11:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539536', 'tblTempUsageDetail_20' ) start [2025-02-23 11:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539536', 'tblTempUsageDetail_20' ) end [2025-02-23 11:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:45:21] Production.INFO: ==14512== Releasing lock... [2025-02-23 11:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:45:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:46:05 [end_date_ymd] => 2025-02-23 11:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:46:05' and `end` < '2025-02-23 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-02-23 11:46:16] Production.INFO: count ==858 [2025-02-23 11:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:46:05 - End Time 2025-02-23 11:46:05 [2025-02-23 11:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539541', 'tblTempUsageDetail_20' ) start [2025-02-23 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539541', 'tblTempUsageDetail_20' ) end [2025-02-23 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539541', 'tblTempVendorCDR_20' ) start [2025-02-23 11:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539541', 'tblTempVendorCDR_20' ) end [2025-02-23 11:46:17] Production.INFO: ProcessCDR(1,14539541,1,1,2) [2025-02-23 11:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539541', 'tblTempUsageDetail_20' ) start [2025-02-23 11:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539541', 'tblTempUsageDetail_20' ) end [2025-02-23 11:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:46:20] Production.INFO: ==14587== Releasing lock... [2025-02-23 11:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:46:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:47:05 [end_date_ymd] => 2025-02-23 11:47:05 [RateCDR] => 1 ) [2025-02-23 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:47:05' and `end` < '2025-02-23 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:47:17] Production.INFO: count ==870 [2025-02-23 11:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:47:05 - End Time 2025-02-23 11:47:05 [2025-02-23 11:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539546', 'tblTempUsageDetail_20' ) start [2025-02-23 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539546', 'tblTempUsageDetail_20' ) end [2025-02-23 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539546', 'tblTempVendorCDR_20' ) start [2025-02-23 11:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539546', 'tblTempVendorCDR_20' ) end [2025-02-23 11:47:17] Production.INFO: ProcessCDR(1,14539546,1,1,2) [2025-02-23 11:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539546', 'tblTempUsageDetail_20' ) start [2025-02-23 11:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539546', 'tblTempUsageDetail_20' ) end [2025-02-23 11:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:47:21] Production.INFO: ==14660== Releasing lock... [2025-02-23 11:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:47:21] Production.INFO: 35 MB #Memory Used# [2025-02-23 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:48:06 [end_date_ymd] => 2025-02-23 11:48:06 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:48:06' and `end` < '2025-02-23 11: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-02-23 11:48:18] Production.INFO: count ==976 [2025-02-23 11:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:48:06 - End Time 2025-02-23 11:48:06 [2025-02-23 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539551', 'tblTempUsageDetail_20' ) start [2025-02-23 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539551', 'tblTempUsageDetail_20' ) end [2025-02-23 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539551', 'tblTempVendorCDR_20' ) start [2025-02-23 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539551', 'tblTempVendorCDR_20' ) end [2025-02-23 11:48:18] Production.INFO: ProcessCDR(1,14539551,1,1,2) [2025-02-23 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539551', 'tblTempUsageDetail_20' ) start [2025-02-23 11:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539551', 'tblTempUsageDetail_20' ) end [2025-02-23 11:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:48:21] Production.INFO: ==14738== Releasing lock... [2025-02-23 11:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:48:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:49:05 [end_date_ymd] => 2025-02-23 11:49:05 [RateCDR] => 1 ) [2025-02-23 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:49:05' and `end` < '2025-02-23 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:49:17] Production.INFO: count ==991 [2025-02-23 11:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:49:05 - End Time 2025-02-23 11:49:05 [2025-02-23 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539556', 'tblTempUsageDetail_20' ) start [2025-02-23 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539556', 'tblTempUsageDetail_20' ) end [2025-02-23 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539556', 'tblTempVendorCDR_20' ) start [2025-02-23 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539556', 'tblTempVendorCDR_20' ) end [2025-02-23 11:49:17] Production.INFO: ProcessCDR(1,14539556,1,1,2) [2025-02-23 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539556', 'tblTempUsageDetail_20' ) start [2025-02-23 11:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539556', 'tblTempUsageDetail_20' ) end [2025-02-23 11:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:49:22] Production.INFO: ==14810== Releasing lock... [2025-02-23 11:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:49:22] Production.INFO: 36 MB #Memory Used# [2025-02-23 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:50:06 [end_date_ymd] => 2025-02-23 11:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:50:06' and `end` < '2025-02-23 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-02-23 11:50:18] Production.INFO: count ==1001 [2025-02-23 11:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:50:06 - End Time 2025-02-23 11:50:06 [2025-02-23 11:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539561', 'tblTempUsageDetail_20' ) start [2025-02-23 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539561', 'tblTempUsageDetail_20' ) end [2025-02-23 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539561', 'tblTempVendorCDR_20' ) start [2025-02-23 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539561', 'tblTempVendorCDR_20' ) end [2025-02-23 11:50:19] Production.INFO: ProcessCDR(1,14539561,1,1,2) [2025-02-23 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539561', 'tblTempUsageDetail_20' ) start [2025-02-23 11:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539561', 'tblTempUsageDetail_20' ) end [2025-02-23 11:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:50:22] Production.INFO: ==14889== Releasing lock... [2025-02-23 11:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:50:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:51:05 [end_date_ymd] => 2025-02-23 11:51:05 [RateCDR] => 1 ) [2025-02-23 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:51:05' and `end` < '2025-02-23 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:51:17] Production.INFO: count ==1026 [2025-02-23 11:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:51:05 - End Time 2025-02-23 11:51:05 [2025-02-23 11:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539567', 'tblTempUsageDetail_20' ) start [2025-02-23 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539567', 'tblTempUsageDetail_20' ) end [2025-02-23 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539567', 'tblTempVendorCDR_20' ) start [2025-02-23 11:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539567', 'tblTempVendorCDR_20' ) end [2025-02-23 11:51:17] Production.INFO: ProcessCDR(1,14539567,1,1,2) [2025-02-23 11:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539567', 'tblTempUsageDetail_20' ) start [2025-02-23 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539567', 'tblTempUsageDetail_20' ) end [2025-02-23 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:51:22] Production.INFO: ==14962== Releasing lock... [2025-02-23 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:51:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-23 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:52:05 [end_date_ymd] => 2025-02-23 11:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:52:05' and `end` < '2025-02-23 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-02-23 11:52:17] Production.INFO: count ==1028 [2025-02-23 11:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:52:05 - End Time 2025-02-23 11:52:05 [2025-02-23 11:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539572', 'tblTempUsageDetail_20' ) start [2025-02-23 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539572', 'tblTempUsageDetail_20' ) end [2025-02-23 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539572', 'tblTempVendorCDR_20' ) start [2025-02-23 11:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539572', 'tblTempVendorCDR_20' ) end [2025-02-23 11:52:18] Production.INFO: ProcessCDR(1,14539572,1,1,2) [2025-02-23 11:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539572', 'tblTempUsageDetail_20' ) start [2025-02-23 11:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539572', 'tblTempUsageDetail_20' ) end [2025-02-23 11:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:52:22] Production.INFO: ==15032== Releasing lock... [2025-02-23 11:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:52:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:53:05 [end_date_ymd] => 2025-02-23 11:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:53:05' and `end` < '2025-02-23 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-02-23 11:53:16] Production.INFO: count ==1029 [2025-02-23 11:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:53:05 - End Time 2025-02-23 11:53:05 [2025-02-23 11:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539577', 'tblTempUsageDetail_20' ) start [2025-02-23 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539577', 'tblTempUsageDetail_20' ) end [2025-02-23 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539577', 'tblTempVendorCDR_20' ) start [2025-02-23 11:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539577', 'tblTempVendorCDR_20' ) end [2025-02-23 11:53:17] Production.INFO: ProcessCDR(1,14539577,1,1,2) [2025-02-23 11:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539577', 'tblTempUsageDetail_20' ) start [2025-02-23 11:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539577', 'tblTempUsageDetail_20' ) end [2025-02-23 11:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:53:20] Production.INFO: ==15107== Releasing lock... [2025-02-23 11:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:53:20] Production.INFO: 36 MB #Memory Used# [2025-02-23 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:54:06 [end_date_ymd] => 2025-02-23 11:54:06 [RateCDR] => 1 ) [2025-02-23 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:54:06' and `end` < '2025-02-23 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:54:18] Production.INFO: count ==1032 [2025-02-23 11:54:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:54:06 - End Time 2025-02-23 11:54:06 [2025-02-23 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539582', 'tblTempUsageDetail_20' ) start [2025-02-23 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539582', 'tblTempUsageDetail_20' ) end [2025-02-23 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539582', 'tblTempVendorCDR_20' ) start [2025-02-23 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539582', 'tblTempVendorCDR_20' ) end [2025-02-23 11:54:18] Production.INFO: ProcessCDR(1,14539582,1,1,2) [2025-02-23 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539582', 'tblTempUsageDetail_20' ) start [2025-02-23 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539582', 'tblTempUsageDetail_20' ) end [2025-02-23 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:54:23] Production.INFO: ==15178== Releasing lock... [2025-02-23 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:54:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-23 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:55:05 [end_date_ymd] => 2025-02-23 11:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 08:55:05' and `end` < '2025-02-23 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-02-23 11:55:17] Production.INFO: count ==1033 [2025-02-23 11:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:55:05 - End Time 2025-02-23 11:55:05 [2025-02-23 11:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539587', 'tblTempUsageDetail_20' ) start [2025-02-23 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539587', 'tblTempUsageDetail_20' ) end [2025-02-23 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539587', 'tblTempVendorCDR_20' ) start [2025-02-23 11:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539587', 'tblTempVendorCDR_20' ) end [2025-02-23 11:55:17] Production.INFO: ProcessCDR(1,14539587,1,1,2) [2025-02-23 11:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539587', 'tblTempUsageDetail_20' ) start [2025-02-23 11:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539587', 'tblTempUsageDetail_20' ) end [2025-02-23 11:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:55:22] Production.INFO: ==15288== Releasing lock... [2025-02-23 11:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:55:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-23 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:56:06 [end_date_ymd] => 2025-02-23 11:56:06 [RateCDR] => 1 ) [2025-02-23 11:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:56:06' and `end` < '2025-02-23 11:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:56:17] Production.INFO: count ==1034 [2025-02-23 11:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 08:56:06 - End Time 2025-02-23 11:56:06 [2025-02-23 11:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539592', 'tblTempUsageDetail_20' ) start [2025-02-23 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539592', 'tblTempUsageDetail_20' ) end [2025-02-23 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539592', 'tblTempVendorCDR_20' ) start [2025-02-23 11:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539592', 'tblTempVendorCDR_20' ) end [2025-02-23 11:56:18] Production.INFO: ProcessCDR(1,14539592,1,1,2) [2025-02-23 11:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539592', 'tblTempUsageDetail_20' ) start [2025-02-23 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539592', 'tblTempUsageDetail_20' ) end [2025-02-23 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:56:22] Production.INFO: ==15365== Releasing lock... [2025-02-23 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:56:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:57:05 [end_date_ymd] => 2025-02-23 11:57:05 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:57:05' and `end` < '2025-02-23 11: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-02-23 11:57:17] Production.INFO: count ==1035 [2025-02-23 11:57:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:57:05 - End Time 2025-02-23 11:57:05 [2025-02-23 11:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539597', 'tblTempUsageDetail_20' ) start [2025-02-23 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539597', 'tblTempUsageDetail_20' ) end [2025-02-23 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539597', 'tblTempVendorCDR_20' ) start [2025-02-23 11:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539597', 'tblTempVendorCDR_20' ) end [2025-02-23 11:57:17] Production.INFO: ProcessCDR(1,14539597,1,1,2) [2025-02-23 11:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539597', 'tblTempUsageDetail_20' ) start [2025-02-23 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539597', 'tblTempUsageDetail_20' ) end [2025-02-23 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:57:22] Production.INFO: ==15440== Releasing lock... [2025-02-23 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:57:22] Production.INFO: 36 MB #Memory Used# [2025-02-23 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:58:05 [end_date_ymd] => 2025-02-23 11:58:05 [RateCDR] => 1 ) [2025-02-23 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 08:58:05' and `end` < '2025-02-23 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 11:58:17] Production.INFO: count ==1035 [2025-02-23 11:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:58:05 - End Time 2025-02-23 11:58:05 [2025-02-23 11:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539602', 'tblTempUsageDetail_20' ) start [2025-02-23 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539602', 'tblTempUsageDetail_20' ) end [2025-02-23 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539602', 'tblTempVendorCDR_20' ) start [2025-02-23 11:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539602', 'tblTempVendorCDR_20' ) end [2025-02-23 11:58:17] Production.INFO: ProcessCDR(1,14539602,1,1,2) [2025-02-23 11:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539602', 'tblTempUsageDetail_20' ) start [2025-02-23 11:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539602', 'tblTempUsageDetail_20' ) end [2025-02-23 11:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:58:20] Production.INFO: ==15516== Releasing lock... [2025-02-23 11:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:58:20] Production.INFO: 36 MB #Memory Used# [2025-02-23 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 08:59:05 [end_date_ymd] => 2025-02-23 11:59:05 [RateCDR] => 1 ) [2025-02-23 11: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-02-23 08:59:05' and `end` < '2025-02-23 11: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-02-23 11:59:17] Production.INFO: count ==1077 [2025-02-23 11:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 08:59:05 - End Time 2025-02-23 11:59:05 [2025-02-23 11:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539607', 'tblTempUsageDetail_20' ) start [2025-02-23 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539607', 'tblTempUsageDetail_20' ) end [2025-02-23 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539607', 'tblTempVendorCDR_20' ) start [2025-02-23 11:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539607', 'tblTempVendorCDR_20' ) end [2025-02-23 11:59:17] Production.INFO: ProcessCDR(1,14539607,1,1,2) [2025-02-23 11:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 11:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 11:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539607', 'tblTempUsageDetail_20' ) start [2025-02-23 11:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539607', 'tblTempUsageDetail_20' ) end [2025-02-23 11:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 11:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 11:59:20] Production.INFO: ==15587== Releasing lock... [2025-02-23 11:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 11:59:20] Production.INFO: 36.5 MB #Memory Used# [2025-02-23 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:00:06 [end_date_ymd] => 2025-02-23 12:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:00:06' and `end` < '2025-02-23 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-02-23 12:00:18] Production.INFO: count ==1167 [2025-02-23 12:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 09:00:06 - End Time 2025-02-23 12:00:06 [2025-02-23 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539613', 'tblTempUsageDetail_20' ) start [2025-02-23 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539613', 'tblTempUsageDetail_20' ) end [2025-02-23 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539613', 'tblTempVendorCDR_20' ) start [2025-02-23 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539613', 'tblTempVendorCDR_20' ) end [2025-02-23 12:00:19] Production.INFO: ProcessCDR(1,14539613,1,1,2) [2025-02-23 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539613', 'tblTempUsageDetail_20' ) start [2025-02-23 12:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539613', 'tblTempUsageDetail_20' ) end [2025-02-23 12:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:00:23] Production.INFO: ==15661== Releasing lock... [2025-02-23 12:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:00:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:01:05 [end_date_ymd] => 2025-02-23 12:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:01:05' and `end` < '2025-02-23 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-02-23 12:01:17] Production.INFO: count ==1198 [2025-02-23 12:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:01:05 - End Time 2025-02-23 12:01:05 [2025-02-23 12:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539618', 'tblTempUsageDetail_20' ) start [2025-02-23 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539618', 'tblTempUsageDetail_20' ) end [2025-02-23 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539618', 'tblTempVendorCDR_20' ) start [2025-02-23 12:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539618', 'tblTempVendorCDR_20' ) end [2025-02-23 12:01:18] Production.INFO: ProcessCDR(1,14539618,1,1,2) [2025-02-23 12:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539618', 'tblTempUsageDetail_20' ) start [2025-02-23 12:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539618', 'tblTempUsageDetail_20' ) end [2025-02-23 12:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:01:23] Production.INFO: ==15748== Releasing lock... [2025-02-23 12:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:01:23] Production.INFO: 37 MB #Memory Used# [2025-02-23 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:02:05 [end_date_ymd] => 2025-02-23 12:02:05 [RateCDR] => 1 ) [2025-02-23 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:02:05' and `end` < '2025-02-23 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:02:17] Production.INFO: count ==1196 [2025-02-23 12:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:02:05 - End Time 2025-02-23 12:02:05 [2025-02-23 12:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539623', 'tblTempUsageDetail_20' ) start [2025-02-23 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539623', 'tblTempUsageDetail_20' ) end [2025-02-23 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539623', 'tblTempVendorCDR_20' ) start [2025-02-23 12:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539623', 'tblTempVendorCDR_20' ) end [2025-02-23 12:02:18] Production.INFO: ProcessCDR(1,14539623,1,1,2) [2025-02-23 12:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539623', 'tblTempUsageDetail_20' ) start [2025-02-23 12:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539623', 'tblTempUsageDetail_20' ) end [2025-02-23 12:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:02:21] Production.INFO: ==15820== Releasing lock... [2025-02-23 12:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:02:21] Production.INFO: 37 MB #Memory Used# [2025-02-23 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:03:05 [end_date_ymd] => 2025-02-23 12:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:03:05' and `end` < '2025-02-23 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-02-23 12:03:17] Production.INFO: count ==1198 [2025-02-23 12:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:03:05 - End Time 2025-02-23 12:03:05 [2025-02-23 12:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539628', 'tblTempUsageDetail_20' ) start [2025-02-23 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539628', 'tblTempUsageDetail_20' ) end [2025-02-23 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539628', 'tblTempVendorCDR_20' ) start [2025-02-23 12:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539628', 'tblTempVendorCDR_20' ) end [2025-02-23 12:03:18] Production.INFO: ProcessCDR(1,14539628,1,1,2) [2025-02-23 12:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539628', 'tblTempUsageDetail_20' ) start [2025-02-23 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539628', 'tblTempUsageDetail_20' ) end [2025-02-23 12:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:03:22] Production.INFO: ==15890== Releasing lock... [2025-02-23 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:03:22] Production.INFO: 37 MB #Memory Used# [2025-02-23 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:04:05 [end_date_ymd] => 2025-02-23 12:04:05 [RateCDR] => 1 ) [2025-02-23 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:04:05' and `end` < '2025-02-23 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:04:18] Production.INFO: count ==1187 [2025-02-23 12:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:04:05 - End Time 2025-02-23 12:04:05 [2025-02-23 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539633', 'tblTempUsageDetail_20' ) start [2025-02-23 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539633', 'tblTempUsageDetail_20' ) end [2025-02-23 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539633', 'tblTempVendorCDR_20' ) start [2025-02-23 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539633', 'tblTempVendorCDR_20' ) end [2025-02-23 12:04:18] Production.INFO: ProcessCDR(1,14539633,1,1,2) [2025-02-23 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539633', 'tblTempUsageDetail_20' ) start [2025-02-23 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539633', 'tblTempUsageDetail_20' ) end [2025-02-23 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:04:23] Production.INFO: ==15965== Releasing lock... [2025-02-23 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:04:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:05:05 [end_date_ymd] => 2025-02-23 12:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:05:05' and `end` < '2025-02-23 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-02-23 12:05:17] Production.INFO: count ==1193 [2025-02-23 12:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:05:05 - End Time 2025-02-23 12:05:05 [2025-02-23 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539638', 'tblTempUsageDetail_20' ) start [2025-02-23 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539638', 'tblTempUsageDetail_20' ) end [2025-02-23 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539638', 'tblTempVendorCDR_20' ) start [2025-02-23 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539638', 'tblTempVendorCDR_20' ) end [2025-02-23 12:05:18] Production.INFO: ProcessCDR(1,14539638,1,1,2) [2025-02-23 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539638', 'tblTempUsageDetail_20' ) start [2025-02-23 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539638', 'tblTempUsageDetail_20' ) end [2025-02-23 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:05:23] Production.INFO: ==16038== Releasing lock... [2025-02-23 12:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:05:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:06:05 [end_date_ymd] => 2025-02-23 12:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:06:05' and `end` < '2025-02-23 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-02-23 12:06:17] Production.INFO: count ==1199 [2025-02-23 12:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:06:05 - End Time 2025-02-23 12:06:05 [2025-02-23 12:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539643', 'tblTempUsageDetail_20' ) start [2025-02-23 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539643', 'tblTempUsageDetail_20' ) end [2025-02-23 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539643', 'tblTempVendorCDR_20' ) start [2025-02-23 12:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539643', 'tblTempVendorCDR_20' ) end [2025-02-23 12:06:17] Production.INFO: ProcessCDR(1,14539643,1,1,2) [2025-02-23 12:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539643', 'tblTempUsageDetail_20' ) start [2025-02-23 12:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539643', 'tblTempUsageDetail_20' ) end [2025-02-23 12:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:06:22] Production.INFO: ==16112== Releasing lock... [2025-02-23 12:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:07:05 [end_date_ymd] => 2025-02-23 12:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:07:05' and `end` < '2025-02-23 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-02-23 12:07:17] Production.INFO: count ==1201 [2025-02-23 12:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:07:05 - End Time 2025-02-23 12:07:05 [2025-02-23 12:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539648', 'tblTempUsageDetail_20' ) start [2025-02-23 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539648', 'tblTempUsageDetail_20' ) end [2025-02-23 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539648', 'tblTempVendorCDR_20' ) start [2025-02-23 12:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539648', 'tblTempVendorCDR_20' ) end [2025-02-23 12:07:18] Production.INFO: ProcessCDR(1,14539648,1,1,2) [2025-02-23 12:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539648', 'tblTempUsageDetail_20' ) start [2025-02-23 12:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539648', 'tblTempUsageDetail_20' ) end [2025-02-23 12:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:07:23] Production.INFO: ==16182== Releasing lock... [2025-02-23 12:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:07:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-23 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:08:05 [end_date_ymd] => 2025-02-23 12:08:05 [RateCDR] => 1 ) [2025-02-23 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:08:05' and `end` < '2025-02-23 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:08:17] Production.INFO: count ==1202 [2025-02-23 12:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:08:05 - End Time 2025-02-23 12:08:05 [2025-02-23 12:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539653', 'tblTempUsageDetail_20' ) start [2025-02-23 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539653', 'tblTempUsageDetail_20' ) end [2025-02-23 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539653', 'tblTempVendorCDR_20' ) start [2025-02-23 12:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539653', 'tblTempVendorCDR_20' ) end [2025-02-23 12:08:17] Production.INFO: ProcessCDR(1,14539653,1,1,2) [2025-02-23 12:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539653', 'tblTempUsageDetail_20' ) start [2025-02-23 12:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539653', 'tblTempUsageDetail_20' ) end [2025-02-23 12:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:08:22] Production.INFO: ==16256== Releasing lock... [2025-02-23 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:09:05 [end_date_ymd] => 2025-02-23 12:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:09:05' and `end` < '2025-02-23 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-02-23 12:09:17] Production.INFO: count ==1201 [2025-02-23 12:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:09:05 - End Time 2025-02-23 12:09:05 [2025-02-23 12:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539658', 'tblTempUsageDetail_20' ) start [2025-02-23 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539658', 'tblTempUsageDetail_20' ) end [2025-02-23 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539658', 'tblTempVendorCDR_20' ) start [2025-02-23 12:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539658', 'tblTempVendorCDR_20' ) end [2025-02-23 12:09:17] Production.INFO: ProcessCDR(1,14539658,1,1,2) [2025-02-23 12:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539658', 'tblTempUsageDetail_20' ) start [2025-02-23 12:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539658', 'tblTempUsageDetail_20' ) end [2025-02-23 12:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:09:21] Production.INFO: ==16328== Releasing lock... [2025-02-23 12:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:09:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-23 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:10:06 [end_date_ymd] => 2025-02-23 12:10:06 [RateCDR] => 1 ) [2025-02-23 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:10:06' and `end` < '2025-02-23 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:10:18] Production.INFO: count ==1201 [2025-02-23 12:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 09:10:06 - End Time 2025-02-23 12:10:06 [2025-02-23 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539663', 'tblTempUsageDetail_20' ) start [2025-02-23 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539663', 'tblTempUsageDetail_20' ) end [2025-02-23 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539663', 'tblTempVendorCDR_20' ) start [2025-02-23 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539663', 'tblTempVendorCDR_20' ) end [2025-02-23 12:10:19] Production.INFO: ProcessCDR(1,14539663,1,1,2) [2025-02-23 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539663', 'tblTempUsageDetail_20' ) start [2025-02-23 12:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539663', 'tblTempUsageDetail_20' ) end [2025-02-23 12:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:10:22] Production.INFO: ==16401== Releasing lock... [2025-02-23 12:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:10:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:11:05 [end_date_ymd] => 2025-02-23 12:11:05 [RateCDR] => 1 ) [2025-02-23 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:11:05' and `end` < '2025-02-23 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:11:17] Production.INFO: count ==1211 [2025-02-23 12:11:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:11:05 - End Time 2025-02-23 12:11:05 [2025-02-23 12:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539669', 'tblTempUsageDetail_20' ) start [2025-02-23 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539669', 'tblTempUsageDetail_20' ) end [2025-02-23 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539669', 'tblTempVendorCDR_20' ) start [2025-02-23 12:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539669', 'tblTempVendorCDR_20' ) end [2025-02-23 12:11:18] Production.INFO: ProcessCDR(1,14539669,1,1,2) [2025-02-23 12:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539669', 'tblTempUsageDetail_20' ) start [2025-02-23 12:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539669', 'tblTempUsageDetail_20' ) end [2025-02-23 12:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:11:21] Production.INFO: ==16517== Releasing lock... [2025-02-23 12:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:11:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:12:05 [end_date_ymd] => 2025-02-23 12:12:05 [RateCDR] => 1 ) [2025-02-23 12: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-02-23 09:12:05' and `end` < '2025-02-23 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-02-23 12:12:17] Production.INFO: count ==1211 [2025-02-23 12:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:12:05 - End Time 2025-02-23 12:12:05 [2025-02-23 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539674', 'tblTempUsageDetail_20' ) start [2025-02-23 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539674', 'tblTempUsageDetail_20' ) end [2025-02-23 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539674', 'tblTempVendorCDR_20' ) start [2025-02-23 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539674', 'tblTempVendorCDR_20' ) end [2025-02-23 12:12:18] Production.INFO: ProcessCDR(1,14539674,1,1,2) [2025-02-23 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539674', 'tblTempUsageDetail_20' ) start [2025-02-23 12:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539674', 'tblTempUsageDetail_20' ) end [2025-02-23 12:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:12:21] Production.INFO: ==16589== Releasing lock... [2025-02-23 12:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:13:05 [end_date_ymd] => 2025-02-23 12:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:13:05' and `end` < '2025-02-23 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-02-23 12:13:17] Production.INFO: count ==1212 [2025-02-23 12:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:13:05 - End Time 2025-02-23 12:13:05 [2025-02-23 12:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539679', 'tblTempUsageDetail_20' ) start [2025-02-23 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539679', 'tblTempUsageDetail_20' ) end [2025-02-23 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539679', 'tblTempVendorCDR_20' ) start [2025-02-23 12:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539679', 'tblTempVendorCDR_20' ) end [2025-02-23 12:13:17] Production.INFO: ProcessCDR(1,14539679,1,1,2) [2025-02-23 12:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539679', 'tblTempUsageDetail_20' ) start [2025-02-23 12:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539679', 'tblTempUsageDetail_20' ) end [2025-02-23 12:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:13:22] Production.INFO: ==16658== Releasing lock... [2025-02-23 12:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:13:22] Production.INFO: 37 MB #Memory Used# [2025-02-23 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:14:05 [end_date_ymd] => 2025-02-23 12:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:14:05' and `end` < '2025-02-23 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-02-23 12:14:17] Production.INFO: count ==1214 [2025-02-23 12:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:14:05 - End Time 2025-02-23 12:14:05 [2025-02-23 12:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539684', 'tblTempUsageDetail_20' ) start [2025-02-23 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539684', 'tblTempUsageDetail_20' ) end [2025-02-23 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539684', 'tblTempVendorCDR_20' ) start [2025-02-23 12:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539684', 'tblTempVendorCDR_20' ) end [2025-02-23 12:14:17] Production.INFO: ProcessCDR(1,14539684,1,1,2) [2025-02-23 12:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539684', 'tblTempUsageDetail_20' ) start [2025-02-23 12:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539684', 'tblTempUsageDetail_20' ) end [2025-02-23 12:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:14:22] Production.INFO: ==16729== Releasing lock... [2025-02-23 12:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:14:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:15:04 [end_date_ymd] => 2025-02-23 12:15:04 [RateCDR] => 1 ) [2025-02-23 12:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:15:04' and `end` < '2025-02-23 12:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:15:16] Production.INFO: count ==1208 [2025-02-23 12:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:15:04 - End Time 2025-02-23 12:15:04 [2025-02-23 12:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539689', 'tblTempUsageDetail_20' ) start [2025-02-23 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539689', 'tblTempUsageDetail_20' ) end [2025-02-23 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539689', 'tblTempVendorCDR_20' ) start [2025-02-23 12:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539689', 'tblTempVendorCDR_20' ) end [2025-02-23 12:15:17] Production.INFO: ProcessCDR(1,14539689,1,1,2) [2025-02-23 12:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539689', 'tblTempUsageDetail_20' ) start [2025-02-23 12:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539689', 'tblTempUsageDetail_20' ) end [2025-02-23 12:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:15:22] Production.INFO: ==16799== Releasing lock... [2025-02-23 12:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:16:05 [end_date_ymd] => 2025-02-23 12:16:05 [RateCDR] => 1 ) [2025-02-23 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:16:05' and `end` < '2025-02-23 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:16:17] Production.INFO: count ==1210 [2025-02-23 12:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:16:05 - End Time 2025-02-23 12:16:05 [2025-02-23 12:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539694', 'tblTempUsageDetail_20' ) start [2025-02-23 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539694', 'tblTempUsageDetail_20' ) end [2025-02-23 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539694', 'tblTempVendorCDR_20' ) start [2025-02-23 12:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539694', 'tblTempVendorCDR_20' ) end [2025-02-23 12:16:17] Production.INFO: ProcessCDR(1,14539694,1,1,2) [2025-02-23 12:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539694', 'tblTempUsageDetail_20' ) start [2025-02-23 12:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539694', 'tblTempUsageDetail_20' ) end [2025-02-23 12:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:16:21] Production.INFO: ==16870== Releasing lock... [2025-02-23 12:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:16:21] Production.INFO: 37 MB #Memory Used# [2025-02-23 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:17:05 [end_date_ymd] => 2025-02-23 12:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:17:05' and `end` < '2025-02-23 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-02-23 12:17:17] Production.INFO: count ==1211 [2025-02-23 12:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:17:05 - End Time 2025-02-23 12:17:05 [2025-02-23 12:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539699', 'tblTempUsageDetail_20' ) start [2025-02-23 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539699', 'tblTempUsageDetail_20' ) end [2025-02-23 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539699', 'tblTempVendorCDR_20' ) start [2025-02-23 12:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539699', 'tblTempVendorCDR_20' ) end [2025-02-23 12:17:17] Production.INFO: ProcessCDR(1,14539699,1,1,2) [2025-02-23 12:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539699', 'tblTempUsageDetail_20' ) start [2025-02-23 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539699', 'tblTempUsageDetail_20' ) end [2025-02-23 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:17:22] Production.INFO: ==16945== Releasing lock... [2025-02-23 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:17:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:18:05 [end_date_ymd] => 2025-02-23 12:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:18:05' and `end` < '2025-02-23 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-02-23 12:18:17] Production.INFO: count ==1214 [2025-02-23 12:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:18:05 - End Time 2025-02-23 12:18:05 [2025-02-23 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539704', 'tblTempUsageDetail_20' ) start [2025-02-23 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539704', 'tblTempUsageDetail_20' ) end [2025-02-23 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539704', 'tblTempVendorCDR_20' ) start [2025-02-23 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539704', 'tblTempVendorCDR_20' ) end [2025-02-23 12:18:18] Production.INFO: ProcessCDR(1,14539704,1,1,2) [2025-02-23 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539704', 'tblTempUsageDetail_20' ) start [2025-02-23 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539704', 'tblTempUsageDetail_20' ) end [2025-02-23 12:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:18:23] Production.INFO: ==17031== Releasing lock... [2025-02-23 12:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:18:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:19:05 [end_date_ymd] => 2025-02-23 12:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:19:05' and `end` < '2025-02-23 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-02-23 12:19:16] Production.INFO: count ==1216 [2025-02-23 12:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:19:05 - End Time 2025-02-23 12:19:05 [2025-02-23 12:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539709', 'tblTempUsageDetail_20' ) start [2025-02-23 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539709', 'tblTempUsageDetail_20' ) end [2025-02-23 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539709', 'tblTempVendorCDR_20' ) start [2025-02-23 12:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539709', 'tblTempVendorCDR_20' ) end [2025-02-23 12:19:17] Production.INFO: ProcessCDR(1,14539709,1,1,2) [2025-02-23 12:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539709', 'tblTempUsageDetail_20' ) start [2025-02-23 12:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539709', 'tblTempUsageDetail_20' ) end [2025-02-23 12:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:19:22] Production.INFO: ==17103== Releasing lock... [2025-02-23 12:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 12:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:20:05 [end_date_ymd] => 2025-02-23 12:20:05 [RateCDR] => 1 ) [2025-02-23 12:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:20:05' and `end` < '2025-02-23 12:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:20:17] Production.INFO: count ==1223 [2025-02-23 12:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:20:05 - End Time 2025-02-23 12:20:05 [2025-02-23 12:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539714', 'tblTempUsageDetail_20' ) start [2025-02-23 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539714', 'tblTempUsageDetail_20' ) end [2025-02-23 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539714', 'tblTempVendorCDR_20' ) start [2025-02-23 12:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539714', 'tblTempVendorCDR_20' ) end [2025-02-23 12:20:18] Production.INFO: ProcessCDR(1,14539714,1,1,2) [2025-02-23 12:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539714', 'tblTempUsageDetail_20' ) start [2025-02-23 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539714', 'tblTempUsageDetail_20' ) end [2025-02-23 12:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:20:23] Production.INFO: ==17181== Releasing lock... [2025-02-23 12:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:20:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:21:05 [end_date_ymd] => 2025-02-23 12:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:21:05' and `end` < '2025-02-23 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-02-23 12:21:17] Production.INFO: count ==1253 [2025-02-23 12:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:21:05 - End Time 2025-02-23 12:21:05 [2025-02-23 12:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539720', 'tblTempUsageDetail_20' ) start [2025-02-23 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539720', 'tblTempUsageDetail_20' ) end [2025-02-23 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539720', 'tblTempVendorCDR_20' ) start [2025-02-23 12:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539720', 'tblTempVendorCDR_20' ) end [2025-02-23 12:21:18] Production.INFO: ProcessCDR(1,14539720,1,1,2) [2025-02-23 12:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539720', 'tblTempUsageDetail_20' ) start [2025-02-23 12:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539720', 'tblTempUsageDetail_20' ) end [2025-02-23 12:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:21:23] Production.INFO: ==17253== Releasing lock... [2025-02-23 12:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:21:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:22:05 [end_date_ymd] => 2025-02-23 12:22:05 [RateCDR] => 1 ) [2025-02-23 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:22:05' and `end` < '2025-02-23 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:22:17] Production.INFO: count ==1253 [2025-02-23 12:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:22:05 - End Time 2025-02-23 12:22:05 [2025-02-23 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539725', 'tblTempUsageDetail_20' ) start [2025-02-23 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539725', 'tblTempUsageDetail_20' ) end [2025-02-23 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539725', 'tblTempVendorCDR_20' ) start [2025-02-23 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539725', 'tblTempVendorCDR_20' ) end [2025-02-23 12:22:18] Production.INFO: ProcessCDR(1,14539725,1,1,2) [2025-02-23 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539725', 'tblTempUsageDetail_20' ) start [2025-02-23 12:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539725', 'tblTempUsageDetail_20' ) end [2025-02-23 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:22:22] Production.INFO: ==17328== Releasing lock... [2025-02-23 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:22:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:23:05 [end_date_ymd] => 2025-02-23 12:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:23:05' and `end` < '2025-02-23 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-02-23 12:23:17] Production.INFO: count ==1258 [2025-02-23 12:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:23:05 - End Time 2025-02-23 12:23:05 [2025-02-23 12:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539730', 'tblTempUsageDetail_20' ) start [2025-02-23 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539730', 'tblTempUsageDetail_20' ) end [2025-02-23 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539730', 'tblTempVendorCDR_20' ) start [2025-02-23 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539730', 'tblTempVendorCDR_20' ) end [2025-02-23 12:23:18] Production.INFO: ProcessCDR(1,14539730,1,1,2) [2025-02-23 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539730', 'tblTempUsageDetail_20' ) start [2025-02-23 12:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539730', 'tblTempUsageDetail_20' ) end [2025-02-23 12:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:23:22] Production.INFO: ==17399== Releasing lock... [2025-02-23 12:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:24:05 [end_date_ymd] => 2025-02-23 12:24:05 [RateCDR] => 1 ) [2025-02-23 12: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-02-23 09:24:05' and `end` < '2025-02-23 12: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-02-23 12:24:17] Production.INFO: count ==1258 [2025-02-23 12:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:24:05 - End Time 2025-02-23 12:24:05 [2025-02-23 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539735', 'tblTempUsageDetail_20' ) start [2025-02-23 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539735', 'tblTempUsageDetail_20' ) end [2025-02-23 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539735', 'tblTempVendorCDR_20' ) start [2025-02-23 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539735', 'tblTempVendorCDR_20' ) end [2025-02-23 12:24:18] Production.INFO: ProcessCDR(1,14539735,1,1,2) [2025-02-23 12:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539735', 'tblTempUsageDetail_20' ) start [2025-02-23 12:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539735', 'tblTempUsageDetail_20' ) end [2025-02-23 12:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:24:21] Production.INFO: ==17469== Releasing lock... [2025-02-23 12:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:24:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:25:06 [end_date_ymd] => 2025-02-23 12:25:06 [RateCDR] => 1 ) [2025-02-23 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:25:06' and `end` < '2025-02-23 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:25:18] Production.INFO: count ==1260 [2025-02-23 12:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:25:06 - End Time 2025-02-23 12:25:06 [2025-02-23 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539740', 'tblTempUsageDetail_20' ) start [2025-02-23 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539740', 'tblTempUsageDetail_20' ) end [2025-02-23 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539740', 'tblTempVendorCDR_20' ) start [2025-02-23 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539740', 'tblTempVendorCDR_20' ) end [2025-02-23 12:25:18] Production.INFO: ProcessCDR(1,14539740,1,1,2) [2025-02-23 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539740', 'tblTempUsageDetail_20' ) start [2025-02-23 12:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539740', 'tblTempUsageDetail_20' ) end [2025-02-23 12:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:25:21] Production.INFO: ==17541== Releasing lock... [2025-02-23 12:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:25:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:26:05 [end_date_ymd] => 2025-02-23 12:26:05 [RateCDR] => 1 ) [2025-02-23 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:26:05' and `end` < '2025-02-23 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:26:17] Production.INFO: count ==1260 [2025-02-23 12:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:26:05 - End Time 2025-02-23 12:26:05 [2025-02-23 12:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539745', 'tblTempUsageDetail_20' ) start [2025-02-23 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539745', 'tblTempUsageDetail_20' ) end [2025-02-23 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539745', 'tblTempVendorCDR_20' ) start [2025-02-23 12:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539745', 'tblTempVendorCDR_20' ) end [2025-02-23 12:26:18] Production.INFO: ProcessCDR(1,14539745,1,1,2) [2025-02-23 12:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539745', 'tblTempUsageDetail_20' ) start [2025-02-23 12:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539745', 'tblTempUsageDetail_20' ) end [2025-02-23 12:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:26:21] Production.INFO: ==17651== Releasing lock... [2025-02-23 12:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:26:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:27:05 [end_date_ymd] => 2025-02-23 12:27:05 [RateCDR] => 1 ) [2025-02-23 12:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:27:05' and `end` < '2025-02-23 12:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:27:17] Production.INFO: count ==1260 [2025-02-23 12:27:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:27:05 - End Time 2025-02-23 12:27:05 [2025-02-23 12:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539750', 'tblTempUsageDetail_20' ) start [2025-02-23 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539750', 'tblTempUsageDetail_20' ) end [2025-02-23 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539750', 'tblTempVendorCDR_20' ) start [2025-02-23 12:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539750', 'tblTempVendorCDR_20' ) end [2025-02-23 12:27:18] Production.INFO: ProcessCDR(1,14539750,1,1,2) [2025-02-23 12:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539750', 'tblTempUsageDetail_20' ) start [2025-02-23 12:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539750', 'tblTempUsageDetail_20' ) end [2025-02-23 12:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:27:21] Production.INFO: ==17721== Releasing lock... [2025-02-23 12:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:27:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:28:05 [end_date_ymd] => 2025-02-23 12:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:28:05' and `end` < '2025-02-23 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-02-23 12:28:17] Production.INFO: count ==1261 [2025-02-23 12:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:28:05 - End Time 2025-02-23 12:28:05 [2025-02-23 12:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539755', 'tblTempUsageDetail_20' ) start [2025-02-23 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539755', 'tblTempUsageDetail_20' ) end [2025-02-23 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539755', 'tblTempVendorCDR_20' ) start [2025-02-23 12:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539755', 'tblTempVendorCDR_20' ) end [2025-02-23 12:28:17] Production.INFO: ProcessCDR(1,14539755,1,1,2) [2025-02-23 12:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539755', 'tblTempUsageDetail_20' ) start [2025-02-23 12:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539755', 'tblTempUsageDetail_20' ) end [2025-02-23 12:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:28:22] Production.INFO: ==17790== Releasing lock... [2025-02-23 12:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:28:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:29:06 [end_date_ymd] => 2025-02-23 12:29:06 [RateCDR] => 1 ) [2025-02-23 12: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-02-23 09:29:06' and `end` < '2025-02-23 12: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-02-23 12:29:18] Production.INFO: count ==1263 [2025-02-23 12:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:29:06 - End Time 2025-02-23 12:29:06 [2025-02-23 12:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539760', 'tblTempUsageDetail_20' ) start [2025-02-23 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539760', 'tblTempUsageDetail_20' ) end [2025-02-23 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539760', 'tblTempVendorCDR_20' ) start [2025-02-23 12:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539760', 'tblTempVendorCDR_20' ) end [2025-02-23 12:29:18] Production.INFO: ProcessCDR(1,14539760,1,1,2) [2025-02-23 12:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539760', 'tblTempUsageDetail_20' ) start [2025-02-23 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539760', 'tblTempUsageDetail_20' ) end [2025-02-23 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:29:23] Production.INFO: ==17861== Releasing lock... [2025-02-23 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:29:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:30:05 [end_date_ymd] => 2025-02-23 12:30:05 [RateCDR] => 1 ) [2025-02-23 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:30:05' and `end` < '2025-02-23 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:30:17] Production.INFO: count ==1269 [2025-02-23 12:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:30:05 - End Time 2025-02-23 12:30:05 [2025-02-23 12:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539766', 'tblTempUsageDetail_20' ) start [2025-02-23 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539766', 'tblTempUsageDetail_20' ) end [2025-02-23 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539766', 'tblTempVendorCDR_20' ) start [2025-02-23 12:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539766', 'tblTempVendorCDR_20' ) end [2025-02-23 12:30:18] Production.INFO: ProcessCDR(1,14539766,1,1,2) [2025-02-23 12:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539766', 'tblTempUsageDetail_20' ) start [2025-02-23 12:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539766', 'tblTempUsageDetail_20' ) end [2025-02-23 12:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:30:22] Production.INFO: ==17937== Releasing lock... [2025-02-23 12:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:30:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:31:05 [end_date_ymd] => 2025-02-23 12:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:31:05' and `end` < '2025-02-23 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-02-23 12:31:17] Production.INFO: count ==1281 [2025-02-23 12:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:31:05 - End Time 2025-02-23 12:31:05 [2025-02-23 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539771', 'tblTempUsageDetail_20' ) start [2025-02-23 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539771', 'tblTempUsageDetail_20' ) end [2025-02-23 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539771', 'tblTempVendorCDR_20' ) start [2025-02-23 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539771', 'tblTempVendorCDR_20' ) end [2025-02-23 12:31:18] Production.INFO: ProcessCDR(1,14539771,1,1,2) [2025-02-23 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539771', 'tblTempUsageDetail_20' ) start [2025-02-23 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539771', 'tblTempUsageDetail_20' ) end [2025-02-23 12:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:31:21] Production.INFO: ==18010== Releasing lock... [2025-02-23 12:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:31:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:32:06 [end_date_ymd] => 2025-02-23 12:32:06 [RateCDR] => 1 ) [2025-02-23 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:32:06' and `end` < '2025-02-23 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:32:18] Production.INFO: count ==1285 [2025-02-23 12:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:32:06 - End Time 2025-02-23 12:32:06 [2025-02-23 12:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539776', 'tblTempUsageDetail_20' ) start [2025-02-23 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539776', 'tblTempUsageDetail_20' ) end [2025-02-23 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539776', 'tblTempVendorCDR_20' ) start [2025-02-23 12:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539776', 'tblTempVendorCDR_20' ) end [2025-02-23 12:32:18] Production.INFO: ProcessCDR(1,14539776,1,1,2) [2025-02-23 12:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539776', 'tblTempUsageDetail_20' ) start [2025-02-23 12:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539776', 'tblTempUsageDetail_20' ) end [2025-02-23 12:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:32:22] Production.INFO: ==18083== Releasing lock... [2025-02-23 12:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:32:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:33:05 [end_date_ymd] => 2025-02-23 12:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:33:05' and `end` < '2025-02-23 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-02-23 12:33:17] Production.INFO: count ==1285 [2025-02-23 12:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:33:05 - End Time 2025-02-23 12:33:05 [2025-02-23 12:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539781', 'tblTempUsageDetail_20' ) start [2025-02-23 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539781', 'tblTempUsageDetail_20' ) end [2025-02-23 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539781', 'tblTempVendorCDR_20' ) start [2025-02-23 12:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539781', 'tblTempVendorCDR_20' ) end [2025-02-23 12:33:17] Production.INFO: ProcessCDR(1,14539781,1,1,2) [2025-02-23 12:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539781', 'tblTempUsageDetail_20' ) start [2025-02-23 12:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539781', 'tblTempUsageDetail_20' ) end [2025-02-23 12:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:33:21] Production.INFO: ==18153== Releasing lock... [2025-02-23 12:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:33:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:34:05 [end_date_ymd] => 2025-02-23 12:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:34:05' and `end` < '2025-02-23 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-02-23 12:34:17] Production.INFO: count ==1286 [2025-02-23 12:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:34:05 - End Time 2025-02-23 12:34:05 [2025-02-23 12:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539786', 'tblTempUsageDetail_20' ) start [2025-02-23 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539786', 'tblTempUsageDetail_20' ) end [2025-02-23 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539786', 'tblTempVendorCDR_20' ) start [2025-02-23 12:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539786', 'tblTempVendorCDR_20' ) end [2025-02-23 12:34:18] Production.INFO: ProcessCDR(1,14539786,1,1,2) [2025-02-23 12:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539786', 'tblTempUsageDetail_20' ) start [2025-02-23 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539786', 'tblTempUsageDetail_20' ) end [2025-02-23 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:34:23] Production.INFO: ==18225== Releasing lock... [2025-02-23 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:34:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:35:05 [end_date_ymd] => 2025-02-23 12:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:35:05' and `end` < '2025-02-23 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-02-23 12:35:17] Production.INFO: count ==1286 [2025-02-23 12:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:35:05 - End Time 2025-02-23 12:35:05 [2025-02-23 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539791', 'tblTempUsageDetail_20' ) start [2025-02-23 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539791', 'tblTempUsageDetail_20' ) end [2025-02-23 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539791', 'tblTempVendorCDR_20' ) start [2025-02-23 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539791', 'tblTempVendorCDR_20' ) end [2025-02-23 12:35:18] Production.INFO: ProcessCDR(1,14539791,1,1,2) [2025-02-23 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539791', 'tblTempUsageDetail_20' ) start [2025-02-23 12:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539791', 'tblTempUsageDetail_20' ) end [2025-02-23 12:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:35:21] Production.INFO: ==18299== Releasing lock... [2025-02-23 12:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:35:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:36:05 [end_date_ymd] => 2025-02-23 12:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:36:05' and `end` < '2025-02-23 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-02-23 12:36:17] Production.INFO: count ==1286 [2025-02-23 12:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:36:05 - End Time 2025-02-23 12:36:05 [2025-02-23 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539796', 'tblTempUsageDetail_20' ) start [2025-02-23 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539796', 'tblTempUsageDetail_20' ) end [2025-02-23 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539796', 'tblTempVendorCDR_20' ) start [2025-02-23 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539796', 'tblTempVendorCDR_20' ) end [2025-02-23 12:36:18] Production.INFO: ProcessCDR(1,14539796,1,1,2) [2025-02-23 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539796', 'tblTempUsageDetail_20' ) start [2025-02-23 12:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539796', 'tblTempUsageDetail_20' ) end [2025-02-23 12:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:36:21] Production.INFO: ==18374== Releasing lock... [2025-02-23 12:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:36:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:37:05 [end_date_ymd] => 2025-02-23 12:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:37:05' and `end` < '2025-02-23 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-02-23 12:37:17] Production.INFO: count ==1287 [2025-02-23 12:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:37:05 - End Time 2025-02-23 12:37:05 [2025-02-23 12:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539801', 'tblTempUsageDetail_20' ) start [2025-02-23 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539801', 'tblTempUsageDetail_20' ) end [2025-02-23 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539801', 'tblTempVendorCDR_20' ) start [2025-02-23 12:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539801', 'tblTempVendorCDR_20' ) end [2025-02-23 12:37:17] Production.INFO: ProcessCDR(1,14539801,1,1,2) [2025-02-23 12:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539801', 'tblTempUsageDetail_20' ) start [2025-02-23 12:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539801', 'tblTempUsageDetail_20' ) end [2025-02-23 12:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:37:22] Production.INFO: ==18449== Releasing lock... [2025-02-23 12:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:37:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:38:06 [end_date_ymd] => 2025-02-23 12:38:06 [RateCDR] => 1 ) [2025-02-23 12: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-02-23 09:38:06' and `end` < '2025-02-23 12: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-02-23 12:38:18] Production.INFO: count ==1292 [2025-02-23 12:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:38:06 - End Time 2025-02-23 12:38:06 [2025-02-23 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539806', 'tblTempUsageDetail_20' ) start [2025-02-23 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539806', 'tblTempUsageDetail_20' ) end [2025-02-23 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539806', 'tblTempVendorCDR_20' ) start [2025-02-23 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539806', 'tblTempVendorCDR_20' ) end [2025-02-23 12:38:18] Production.INFO: ProcessCDR(1,14539806,1,1,2) [2025-02-23 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539806', 'tblTempUsageDetail_20' ) start [2025-02-23 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539806', 'tblTempUsageDetail_20' ) end [2025-02-23 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:38:23] Production.INFO: ==18522== Releasing lock... [2025-02-23 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:38:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:39:05 [end_date_ymd] => 2025-02-23 12:39:05 [RateCDR] => 1 ) [2025-02-23 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:39:05' and `end` < '2025-02-23 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:39:17] Production.INFO: count ==1296 [2025-02-23 12:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:39:05 - End Time 2025-02-23 12:39:05 [2025-02-23 12:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539811', 'tblTempUsageDetail_20' ) start [2025-02-23 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539811', 'tblTempUsageDetail_20' ) end [2025-02-23 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539811', 'tblTempVendorCDR_20' ) start [2025-02-23 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539811', 'tblTempVendorCDR_20' ) end [2025-02-23 12:39:18] Production.INFO: ProcessCDR(1,14539811,1,1,2) [2025-02-23 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539811', 'tblTempUsageDetail_20' ) start [2025-02-23 12:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539811', 'tblTempUsageDetail_20' ) end [2025-02-23 12:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:39:21] Production.INFO: ==18592== Releasing lock... [2025-02-23 12:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:39:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:40:06 [end_date_ymd] => 2025-02-23 12:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:40:06' and `end` < '2025-02-23 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-02-23 12:40:18] Production.INFO: count ==1304 [2025-02-23 12:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:40:06 - End Time 2025-02-23 12:40:06 [2025-02-23 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539817', 'tblTempUsageDetail_20' ) start [2025-02-23 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539817', 'tblTempUsageDetail_20' ) end [2025-02-23 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539817', 'tblTempVendorCDR_20' ) start [2025-02-23 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539817', 'tblTempVendorCDR_20' ) end [2025-02-23 12:40:18] Production.INFO: ProcessCDR(1,14539817,1,1,2) [2025-02-23 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539817', 'tblTempUsageDetail_20' ) start [2025-02-23 12:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539817', 'tblTempUsageDetail_20' ) end [2025-02-23 12:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:40:21] Production.INFO: ==18665== Releasing lock... [2025-02-23 12:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:40:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:41:05 [end_date_ymd] => 2025-02-23 12:41:05 [RateCDR] => 1 ) [2025-02-23 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:41:05' and `end` < '2025-02-23 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:41:17] Production.INFO: count ==1317 [2025-02-23 12:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:41:05 - End Time 2025-02-23 12:41:05 [2025-02-23 12:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539822', 'tblTempUsageDetail_20' ) start [2025-02-23 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539822', 'tblTempUsageDetail_20' ) end [2025-02-23 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539822', 'tblTempVendorCDR_20' ) start [2025-02-23 12:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539822', 'tblTempVendorCDR_20' ) end [2025-02-23 12:41:18] Production.INFO: ProcessCDR(1,14539822,1,1,2) [2025-02-23 12:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539822', 'tblTempUsageDetail_20' ) start [2025-02-23 12:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539822', 'tblTempUsageDetail_20' ) end [2025-02-23 12:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:41:23] Production.INFO: ==18788== Releasing lock... [2025-02-23 12:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:41:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:42:05 [end_date_ymd] => 2025-02-23 12:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:42:05' and `end` < '2025-02-23 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-02-23 12:42:17] Production.INFO: count ==1317 [2025-02-23 12:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:42:05 - End Time 2025-02-23 12:42:05 [2025-02-23 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539827', 'tblTempUsageDetail_20' ) start [2025-02-23 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539827', 'tblTempUsageDetail_20' ) end [2025-02-23 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539827', 'tblTempVendorCDR_20' ) start [2025-02-23 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539827', 'tblTempVendorCDR_20' ) end [2025-02-23 12:42:18] Production.INFO: ProcessCDR(1,14539827,1,1,2) [2025-02-23 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539827', 'tblTempUsageDetail_20' ) start [2025-02-23 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539827', 'tblTempUsageDetail_20' ) end [2025-02-23 12:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:42:21] Production.INFO: ==18863== Releasing lock... [2025-02-23 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:42:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:43:05 [end_date_ymd] => 2025-02-23 12:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:43:05' and `end` < '2025-02-23 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-02-23 12:43:17] Production.INFO: count ==1316 [2025-02-23 12:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:43:05 - End Time 2025-02-23 12:43:05 [2025-02-23 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539832', 'tblTempUsageDetail_20' ) start [2025-02-23 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539832', 'tblTempUsageDetail_20' ) end [2025-02-23 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539832', 'tblTempVendorCDR_20' ) start [2025-02-23 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539832', 'tblTempVendorCDR_20' ) end [2025-02-23 12:43:18] Production.INFO: ProcessCDR(1,14539832,1,1,2) [2025-02-23 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539832', 'tblTempUsageDetail_20' ) start [2025-02-23 12:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539832', 'tblTempUsageDetail_20' ) end [2025-02-23 12:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:43:21] Production.INFO: ==18935== Releasing lock... [2025-02-23 12:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:43:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:44:05 [end_date_ymd] => 2025-02-23 12:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:44:05' and `end` < '2025-02-23 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-02-23 12:44:17] Production.INFO: count ==1316 [2025-02-23 12:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:44:05 - End Time 2025-02-23 12:44:05 [2025-02-23 12:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539837', 'tblTempUsageDetail_20' ) start [2025-02-23 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539837', 'tblTempUsageDetail_20' ) end [2025-02-23 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539837', 'tblTempVendorCDR_20' ) start [2025-02-23 12:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539837', 'tblTempVendorCDR_20' ) end [2025-02-23 12:44:18] Production.INFO: ProcessCDR(1,14539837,1,1,2) [2025-02-23 12:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539837', 'tblTempUsageDetail_20' ) start [2025-02-23 12:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539837', 'tblTempUsageDetail_20' ) end [2025-02-23 12:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:44:21] Production.INFO: ==19005== Releasing lock... [2025-02-23 12:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:44:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:45:05 [end_date_ymd] => 2025-02-23 12:45:05 [RateCDR] => 1 ) [2025-02-23 12:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:45:05' and `end` < '2025-02-23 12:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:45:17] Production.INFO: count ==1313 [2025-02-23 12:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:45:05 - End Time 2025-02-23 12:45:05 [2025-02-23 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539842', 'tblTempUsageDetail_20' ) start [2025-02-23 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539842', 'tblTempUsageDetail_20' ) end [2025-02-23 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539842', 'tblTempVendorCDR_20' ) start [2025-02-23 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539842', 'tblTempVendorCDR_20' ) end [2025-02-23 12:45:18] Production.INFO: ProcessCDR(1,14539842,1,1,2) [2025-02-23 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539842', 'tblTempUsageDetail_20' ) start [2025-02-23 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539842', 'tblTempUsageDetail_20' ) end [2025-02-23 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:45:22] Production.INFO: ==19077== Releasing lock... [2025-02-23 12:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:45:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:46:06 [end_date_ymd] => 2025-02-23 12:46:06 [RateCDR] => 1 ) [2025-02-23 12:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:46:06' and `end` < '2025-02-23 12:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:46:18] Production.INFO: count ==1314 [2025-02-23 12:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:46:06 - End Time 2025-02-23 12:46:06 [2025-02-23 12:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539847', 'tblTempUsageDetail_20' ) start [2025-02-23 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539847', 'tblTempUsageDetail_20' ) end [2025-02-23 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539847', 'tblTempVendorCDR_20' ) start [2025-02-23 12:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539847', 'tblTempVendorCDR_20' ) end [2025-02-23 12:46:18] Production.INFO: ProcessCDR(1,14539847,1,1,2) [2025-02-23 12:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539847', 'tblTempUsageDetail_20' ) start [2025-02-23 12:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539847', 'tblTempUsageDetail_20' ) end [2025-02-23 12:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:46:23] Production.INFO: ==19155== Releasing lock... [2025-02-23 12:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:46:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:47:05 [end_date_ymd] => 2025-02-23 12:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:47:05' and `end` < '2025-02-23 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-02-23 12:47:17] Production.INFO: count ==1314 [2025-02-23 12:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:47:05 - End Time 2025-02-23 12:47:05 [2025-02-23 12:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539852', 'tblTempUsageDetail_20' ) start [2025-02-23 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539852', 'tblTempUsageDetail_20' ) end [2025-02-23 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539852', 'tblTempVendorCDR_20' ) start [2025-02-23 12:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539852', 'tblTempVendorCDR_20' ) end [2025-02-23 12:47:18] Production.INFO: ProcessCDR(1,14539852,1,1,2) [2025-02-23 12:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539852', 'tblTempUsageDetail_20' ) start [2025-02-23 12:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539852', 'tblTempUsageDetail_20' ) end [2025-02-23 12:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:47:21] Production.INFO: ==19225== Releasing lock... [2025-02-23 12:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:48:05 [end_date_ymd] => 2025-02-23 12:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:48:05' and `end` < '2025-02-23 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-02-23 12:48:17] Production.INFO: count ==1314 [2025-02-23 12:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:48:05 - End Time 2025-02-23 12:48:05 [2025-02-23 12:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539857', 'tblTempUsageDetail_20' ) start [2025-02-23 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539857', 'tblTempUsageDetail_20' ) end [2025-02-23 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539857', 'tblTempVendorCDR_20' ) start [2025-02-23 12:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539857', 'tblTempVendorCDR_20' ) end [2025-02-23 12:48:18] Production.INFO: ProcessCDR(1,14539857,1,1,2) [2025-02-23 12:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539857', 'tblTempUsageDetail_20' ) start [2025-02-23 12:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539857', 'tblTempUsageDetail_20' ) end [2025-02-23 12:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:48:21] Production.INFO: ==19298== Releasing lock... [2025-02-23 12:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:48:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:49:05 [end_date_ymd] => 2025-02-23 12:49:05 [RateCDR] => 1 ) [2025-02-23 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:49:05' and `end` < '2025-02-23 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:49:17] Production.INFO: count ==1316 [2025-02-23 12:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:49:05 - End Time 2025-02-23 12:49:05 [2025-02-23 12:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539862', 'tblTempUsageDetail_20' ) start [2025-02-23 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539862', 'tblTempUsageDetail_20' ) end [2025-02-23 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539862', 'tblTempVendorCDR_20' ) start [2025-02-23 12:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539862', 'tblTempVendorCDR_20' ) end [2025-02-23 12:49:17] Production.INFO: ProcessCDR(1,14539862,1,1,2) [2025-02-23 12:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539862', 'tblTempUsageDetail_20' ) start [2025-02-23 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539862', 'tblTempUsageDetail_20' ) end [2025-02-23 12:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:49:22] Production.INFO: ==19371== Releasing lock... [2025-02-23 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:50:05 [end_date_ymd] => 2025-02-23 12:50:05 [RateCDR] => 1 ) [2025-02-23 12: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-02-23 09:50:05' and `end` < '2025-02-23 12: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-02-23 12:50:17] Production.INFO: count ==1322 [2025-02-23 12:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:50:05 - End Time 2025-02-23 12:50:05 [2025-02-23 12:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539867', 'tblTempUsageDetail_20' ) start [2025-02-23 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539867', 'tblTempUsageDetail_20' ) end [2025-02-23 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539867', 'tblTempVendorCDR_20' ) start [2025-02-23 12:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539867', 'tblTempVendorCDR_20' ) end [2025-02-23 12:50:18] Production.INFO: ProcessCDR(1,14539867,1,1,2) [2025-02-23 12:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539867', 'tblTempUsageDetail_20' ) start [2025-02-23 12:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539867', 'tblTempUsageDetail_20' ) end [2025-02-23 12:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:50:22] Production.INFO: ==19445== Releasing lock... [2025-02-23 12:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:50:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:51:05 [end_date_ymd] => 2025-02-23 12:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:51:05' and `end` < '2025-02-23 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-02-23 12:51:17] Production.INFO: count ==1334 [2025-02-23 12:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:51:05 - End Time 2025-02-23 12:51:05 [2025-02-23 12:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539873', 'tblTempUsageDetail_20' ) start [2025-02-23 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539873', 'tblTempUsageDetail_20' ) end [2025-02-23 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539873', 'tblTempVendorCDR_20' ) start [2025-02-23 12:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539873', 'tblTempVendorCDR_20' ) end [2025-02-23 12:51:18] Production.INFO: ProcessCDR(1,14539873,1,1,2) [2025-02-23 12:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539873', 'tblTempUsageDetail_20' ) start [2025-02-23 12:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539873', 'tblTempUsageDetail_20' ) end [2025-02-23 12:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:51:21] Production.INFO: ==19518== Releasing lock... [2025-02-23 12:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:52:05 [end_date_ymd] => 2025-02-23 12:52:05 [RateCDR] => 1 ) [2025-02-23 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:52:05' and `end` < '2025-02-23 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:52:17] Production.INFO: count ==1334 [2025-02-23 12:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:52:05 - End Time 2025-02-23 12:52:05 [2025-02-23 12:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539878', 'tblTempUsageDetail_20' ) start [2025-02-23 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539878', 'tblTempUsageDetail_20' ) end [2025-02-23 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539878', 'tblTempVendorCDR_20' ) start [2025-02-23 12:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539878', 'tblTempVendorCDR_20' ) end [2025-02-23 12:52:18] Production.INFO: ProcessCDR(1,14539878,1,1,2) [2025-02-23 12:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539878', 'tblTempUsageDetail_20' ) start [2025-02-23 12:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539878', 'tblTempUsageDetail_20' ) end [2025-02-23 12:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:52:21] Production.INFO: ==19588== Releasing lock... [2025-02-23 12:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:52:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:53:05 [end_date_ymd] => 2025-02-23 12:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:53:05' and `end` < '2025-02-23 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-02-23 12:53:17] Production.INFO: count ==1333 [2025-02-23 12:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:53:05 - End Time 2025-02-23 12:53:05 [2025-02-23 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539883', 'tblTempUsageDetail_20' ) start [2025-02-23 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539883', 'tblTempUsageDetail_20' ) end [2025-02-23 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539883', 'tblTempVendorCDR_20' ) start [2025-02-23 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539883', 'tblTempVendorCDR_20' ) end [2025-02-23 12:53:18] Production.INFO: ProcessCDR(1,14539883,1,1,2) [2025-02-23 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539883', 'tblTempUsageDetail_20' ) start [2025-02-23 12:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539883', 'tblTempUsageDetail_20' ) end [2025-02-23 12:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:53:22] Production.INFO: ==19661== Releasing lock... [2025-02-23 12:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:54:05 [end_date_ymd] => 2025-02-23 12:54:05 [RateCDR] => 1 ) [2025-02-23 12:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:54:05' and `end` < '2025-02-23 12:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:54:17] Production.INFO: count ==1337 [2025-02-23 12:54:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:54:05 - End Time 2025-02-23 12:54:05 [2025-02-23 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539888', 'tblTempUsageDetail_20' ) start [2025-02-23 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539888', 'tblTempUsageDetail_20' ) end [2025-02-23 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539888', 'tblTempVendorCDR_20' ) start [2025-02-23 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539888', 'tblTempVendorCDR_20' ) end [2025-02-23 12:54:18] Production.INFO: ProcessCDR(1,14539888,1,1,2) [2025-02-23 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539888', 'tblTempUsageDetail_20' ) start [2025-02-23 12:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539888', 'tblTempUsageDetail_20' ) end [2025-02-23 12:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:54:21] Production.INFO: ==19730== Releasing lock... [2025-02-23 12:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:54:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:55:05 [end_date_ymd] => 2025-02-23 12:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:55:05' and `end` < '2025-02-23 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-02-23 12:55:17] Production.INFO: count ==1342 [2025-02-23 12:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:55:05 - End Time 2025-02-23 12:55:05 [2025-02-23 12:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539893', 'tblTempUsageDetail_20' ) start [2025-02-23 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539893', 'tblTempUsageDetail_20' ) end [2025-02-23 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539893', 'tblTempVendorCDR_20' ) start [2025-02-23 12:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539893', 'tblTempVendorCDR_20' ) end [2025-02-23 12:55:17] Production.INFO: ProcessCDR(1,14539893,1,1,2) [2025-02-23 12:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539893', 'tblTempUsageDetail_20' ) start [2025-02-23 12:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539893', 'tblTempUsageDetail_20' ) end [2025-02-23 12:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:55:22] Production.INFO: ==19801== Releasing lock... [2025-02-23 12:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:56:05 [end_date_ymd] => 2025-02-23 12:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:56:05' and `end` < '2025-02-23 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-02-23 12:56:17] Production.INFO: count ==1350 [2025-02-23 12:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:56:05 - End Time 2025-02-23 12:56:05 [2025-02-23 12:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539898', 'tblTempUsageDetail_20' ) start [2025-02-23 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539898', 'tblTempUsageDetail_20' ) end [2025-02-23 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539898', 'tblTempVendorCDR_20' ) start [2025-02-23 12:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539898', 'tblTempVendorCDR_20' ) end [2025-02-23 12:56:17] Production.INFO: ProcessCDR(1,14539898,1,1,2) [2025-02-23 12:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539898', 'tblTempUsageDetail_20' ) start [2025-02-23 12:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539898', 'tblTempUsageDetail_20' ) end [2025-02-23 12:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:56:20] Production.INFO: ==19887== Releasing lock... [2025-02-23 12:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:56:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:57:06 [end_date_ymd] => 2025-02-23 12:57:06 [RateCDR] => 1 ) [2025-02-23 12: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-02-23 09:57:06' and `end` < '2025-02-23 12: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-02-23 12:57:18] Production.INFO: count ==1346 [2025-02-23 12:57:19] Production.ERROR: pbx CDR StartTime 2025-02-23 09:57:06 - End Time 2025-02-23 12:57:06 [2025-02-23 12:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539903', 'tblTempUsageDetail_20' ) start [2025-02-23 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539903', 'tblTempUsageDetail_20' ) end [2025-02-23 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539903', 'tblTempVendorCDR_20' ) start [2025-02-23 12:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539903', 'tblTempVendorCDR_20' ) end [2025-02-23 12:57:19] Production.INFO: ProcessCDR(1,14539903,1,1,2) [2025-02-23 12:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539903', 'tblTempUsageDetail_20' ) start [2025-02-23 12:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539903', 'tblTempUsageDetail_20' ) end [2025-02-23 12:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:57:22] Production.INFO: ==20002== Releasing lock... [2025-02-23 12:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:57:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:58:05 [end_date_ymd] => 2025-02-23 12:58:05 [RateCDR] => 1 ) [2025-02-23 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 09:58:05' and `end` < '2025-02-23 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 12:58:17] Production.INFO: count ==1342 [2025-02-23 12:58:18] Production.ERROR: pbx CDR StartTime 2025-02-23 09:58:05 - End Time 2025-02-23 12:58:05 [2025-02-23 12:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539908', 'tblTempUsageDetail_20' ) start [2025-02-23 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539908', 'tblTempUsageDetail_20' ) end [2025-02-23 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539908', 'tblTempVendorCDR_20' ) start [2025-02-23 12:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539908', 'tblTempVendorCDR_20' ) end [2025-02-23 12:58:18] Production.INFO: ProcessCDR(1,14539908,1,1,2) [2025-02-23 12:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539908', 'tblTempUsageDetail_20' ) start [2025-02-23 12:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539908', 'tblTempUsageDetail_20' ) end [2025-02-23 12:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:58:21] Production.INFO: ==20073== Releasing lock... [2025-02-23 12:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:58:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 09:59:05 [end_date_ymd] => 2025-02-23 12:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 09:59:05' and `end` < '2025-02-23 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-02-23 12:59:17] Production.INFO: count ==1345 [2025-02-23 12:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 09:59:05 - End Time 2025-02-23 12:59:05 [2025-02-23 12:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539913', 'tblTempUsageDetail_20' ) start [2025-02-23 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539913', 'tblTempUsageDetail_20' ) end [2025-02-23 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539913', 'tblTempVendorCDR_20' ) start [2025-02-23 12:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539913', 'tblTempVendorCDR_20' ) end [2025-02-23 12:59:17] Production.INFO: ProcessCDR(1,14539913,1,1,2) [2025-02-23 12:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 12:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539913', 'tblTempUsageDetail_20' ) start [2025-02-23 12:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539913', 'tblTempUsageDetail_20' ) end [2025-02-23 12:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 12:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 12:59:21] Production.INFO: ==20143== Releasing lock... [2025-02-23 12:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 12:59:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:00:06 [end_date_ymd] => 2025-02-23 13:00:06 [RateCDR] => 1 ) [2025-02-23 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:00:06' and `end` < '2025-02-23 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:00:18] Production.INFO: count ==1349 [2025-02-23 13:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:00:06 - End Time 2025-02-23 13:00:06 [2025-02-23 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539919', 'tblTempUsageDetail_20' ) start [2025-02-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539919', 'tblTempUsageDetail_20' ) end [2025-02-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539919', 'tblTempVendorCDR_20' ) start [2025-02-23 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539919', 'tblTempVendorCDR_20' ) end [2025-02-23 13:00:18] Production.INFO: ProcessCDR(1,14539919,1,1,2) [2025-02-23 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539919', 'tblTempUsageDetail_20' ) start [2025-02-23 13:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539919', 'tblTempUsageDetail_20' ) end [2025-02-23 13:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:00:23] Production.INFO: ==20231== Releasing lock... [2025-02-23 13:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:01:05 [end_date_ymd] => 2025-02-23 13:01:05 [RateCDR] => 1 ) [2025-02-23 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:01:05' and `end` < '2025-02-23 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:01:17] Production.INFO: count ==1341 [2025-02-23 13:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:01:05 - End Time 2025-02-23 13:01:05 [2025-02-23 13:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539924', 'tblTempUsageDetail_20' ) start [2025-02-23 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539924', 'tblTempUsageDetail_20' ) end [2025-02-23 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539924', 'tblTempVendorCDR_20' ) start [2025-02-23 13:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539924', 'tblTempVendorCDR_20' ) end [2025-02-23 13:01:17] Production.INFO: ProcessCDR(1,14539924,1,1,2) [2025-02-23 13:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539924', 'tblTempUsageDetail_20' ) start [2025-02-23 13:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539924', 'tblTempUsageDetail_20' ) end [2025-02-23 13:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:01:20] Production.INFO: ==20328== Releasing lock... [2025-02-23 13:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:01:20] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:02:05 [end_date_ymd] => 2025-02-23 13:02:05 [RateCDR] => 1 ) [2025-02-23 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:02:05' and `end` < '2025-02-23 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:02:17] Production.INFO: count ==1340 [2025-02-23 13:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:02:05 - End Time 2025-02-23 13:02:05 [2025-02-23 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539929', 'tblTempUsageDetail_20' ) start [2025-02-23 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539929', 'tblTempUsageDetail_20' ) end [2025-02-23 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539929', 'tblTempVendorCDR_20' ) start [2025-02-23 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539929', 'tblTempVendorCDR_20' ) end [2025-02-23 13:02:18] Production.INFO: ProcessCDR(1,14539929,1,1,2) [2025-02-23 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539929', 'tblTempUsageDetail_20' ) start [2025-02-23 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539929', 'tblTempUsageDetail_20' ) end [2025-02-23 13:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:02:22] Production.INFO: ==20404== Releasing lock... [2025-02-23 13:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:03:05 [end_date_ymd] => 2025-02-23 13:03:05 [RateCDR] => 1 ) [2025-02-23 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:03:05' and `end` < '2025-02-23 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:03:18] Production.INFO: count ==1340 [2025-02-23 13:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:03:05 - End Time 2025-02-23 13:03:05 [2025-02-23 13:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539934', 'tblTempUsageDetail_20' ) start [2025-02-23 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539934', 'tblTempUsageDetail_20' ) end [2025-02-23 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539934', 'tblTempVendorCDR_20' ) start [2025-02-23 13:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539934', 'tblTempVendorCDR_20' ) end [2025-02-23 13:03:18] Production.INFO: ProcessCDR(1,14539934,1,1,2) [2025-02-23 13:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539934', 'tblTempUsageDetail_20' ) start [2025-02-23 13:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539934', 'tblTempUsageDetail_20' ) end [2025-02-23 13:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:03:24] Production.INFO: ==20490== Releasing lock... [2025-02-23 13:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:03:24] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:04:05 [end_date_ymd] => 2025-02-23 13:04:05 [RateCDR] => 1 ) [2025-02-23 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:04:05' and `end` < '2025-02-23 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:04:17] Production.INFO: count ==1340 [2025-02-23 13:04:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:04:05 - End Time 2025-02-23 13:04:05 [2025-02-23 13:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539939', 'tblTempUsageDetail_20' ) start [2025-02-23 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539939', 'tblTempUsageDetail_20' ) end [2025-02-23 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539939', 'tblTempVendorCDR_20' ) start [2025-02-23 13:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539939', 'tblTempVendorCDR_20' ) end [2025-02-23 13:04:17] Production.INFO: ProcessCDR(1,14539939,1,1,2) [2025-02-23 13:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539939', 'tblTempUsageDetail_20' ) start [2025-02-23 13:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539939', 'tblTempUsageDetail_20' ) end [2025-02-23 13:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:04:21] Production.INFO: ==20577== Releasing lock... [2025-02-23 13:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:04:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:05:05 [end_date_ymd] => 2025-02-23 13:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:05:05' and `end` < '2025-02-23 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-02-23 13:05:17] Production.INFO: count ==1332 [2025-02-23 13:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:05:05 - End Time 2025-02-23 13:05:05 [2025-02-23 13:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539944', 'tblTempUsageDetail_20' ) start [2025-02-23 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539944', 'tblTempUsageDetail_20' ) end [2025-02-23 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539944', 'tblTempVendorCDR_20' ) start [2025-02-23 13:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539944', 'tblTempVendorCDR_20' ) end [2025-02-23 13:05:18] Production.INFO: ProcessCDR(1,14539944,1,1,2) [2025-02-23 13:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539944', 'tblTempUsageDetail_20' ) start [2025-02-23 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539944', 'tblTempUsageDetail_20' ) end [2025-02-23 13:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:05:22] Production.INFO: ==20654== Releasing lock... [2025-02-23 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:05:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:06:05 [end_date_ymd] => 2025-02-23 13:06:05 [RateCDR] => 1 ) [2025-02-23 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:06:05' and `end` < '2025-02-23 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:06:17] Production.INFO: count ==1327 [2025-02-23 13:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:06:05 - End Time 2025-02-23 13:06:05 [2025-02-23 13:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539949', 'tblTempUsageDetail_20' ) start [2025-02-23 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539949', 'tblTempUsageDetail_20' ) end [2025-02-23 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539949', 'tblTempVendorCDR_20' ) start [2025-02-23 13:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539949', 'tblTempVendorCDR_20' ) end [2025-02-23 13:06:18] Production.INFO: ProcessCDR(1,14539949,1,1,2) [2025-02-23 13:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539949', 'tblTempUsageDetail_20' ) start [2025-02-23 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539949', 'tblTempUsageDetail_20' ) end [2025-02-23 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:06:23] Production.INFO: ==20731== Releasing lock... [2025-02-23 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:06:23] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:07:06 [end_date_ymd] => 2025-02-23 13:07:06 [RateCDR] => 1 ) [2025-02-23 13: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-02-23 10:07:06' and `end` < '2025-02-23 13: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-02-23 13:07:18] Production.INFO: count ==1264 [2025-02-23 13:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:07:06 - End Time 2025-02-23 13:07:06 [2025-02-23 13:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539954', 'tblTempUsageDetail_20' ) start [2025-02-23 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539954', 'tblTempUsageDetail_20' ) end [2025-02-23 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539954', 'tblTempVendorCDR_20' ) start [2025-02-23 13:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539954', 'tblTempVendorCDR_20' ) end [2025-02-23 13:07:18] Production.INFO: ProcessCDR(1,14539954,1,1,2) [2025-02-23 13:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539954', 'tblTempUsageDetail_20' ) start [2025-02-23 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539954', 'tblTempUsageDetail_20' ) end [2025-02-23 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:07:24] Production.INFO: ==20809== Releasing lock... [2025-02-23 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:07:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:08:06 [end_date_ymd] => 2025-02-23 13:08:06 [RateCDR] => 1 ) [2025-02-23 13: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-02-23 10:08:06' and `end` < '2025-02-23 13: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-02-23 13:08:18] Production.INFO: count ==1214 [2025-02-23 13:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:08:06 - End Time 2025-02-23 13:08:06 [2025-02-23 13:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539959', 'tblTempUsageDetail_20' ) start [2025-02-23 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539959', 'tblTempUsageDetail_20' ) end [2025-02-23 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539959', 'tblTempVendorCDR_20' ) start [2025-02-23 13:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539959', 'tblTempVendorCDR_20' ) end [2025-02-23 13:08:18] Production.INFO: ProcessCDR(1,14539959,1,1,2) [2025-02-23 13:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539959', 'tblTempUsageDetail_20' ) start [2025-02-23 13:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539959', 'tblTempUsageDetail_20' ) end [2025-02-23 13:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:08:21] Production.INFO: ==20890== Releasing lock... [2025-02-23 13:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:08:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:09:06 [end_date_ymd] => 2025-02-23 13:09:06 [RateCDR] => 1 ) [2025-02-23 13: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-02-23 10:09:06' and `end` < '2025-02-23 13: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-02-23 13:09:18] Production.INFO: count ==1213 [2025-02-23 13:09:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:09:06 - End Time 2025-02-23 13:09:06 [2025-02-23 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539964', 'tblTempUsageDetail_20' ) start [2025-02-23 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539964', 'tblTempUsageDetail_20' ) end [2025-02-23 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539964', 'tblTempVendorCDR_20' ) start [2025-02-23 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539964', 'tblTempVendorCDR_20' ) end [2025-02-23 13:09:18] Production.INFO: ProcessCDR(1,14539964,1,1,2) [2025-02-23 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539964', 'tblTempUsageDetail_20' ) start [2025-02-23 13:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539964', 'tblTempUsageDetail_20' ) end [2025-02-23 13:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:09:22] Production.INFO: ==20965== Releasing lock... [2025-02-23 13:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:10:06 [end_date_ymd] => 2025-02-23 13:10:06 [RateCDR] => 1 ) [2025-02-23 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:10:06' and `end` < '2025-02-23 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:10:18] Production.INFO: count ==1219 [2025-02-23 13:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:10:06 - End Time 2025-02-23 13:10:06 [2025-02-23 13:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539970', 'tblTempUsageDetail_20' ) start [2025-02-23 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539970', 'tblTempUsageDetail_20' ) end [2025-02-23 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539970', 'tblTempVendorCDR_20' ) start [2025-02-23 13:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539970', 'tblTempVendorCDR_20' ) end [2025-02-23 13:10:18] Production.INFO: ProcessCDR(1,14539970,1,1,2) [2025-02-23 13:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539970', 'tblTempUsageDetail_20' ) start [2025-02-23 13:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539970', 'tblTempUsageDetail_20' ) end [2025-02-23 13:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:10:22] Production.INFO: ==21041== Releasing lock... [2025-02-23 13:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:10:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:11:05 [end_date_ymd] => 2025-02-23 13:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:11:05' and `end` < '2025-02-23 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-02-23 13:11:17] Production.INFO: count ==1236 [2025-02-23 13:11:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:11:05 - End Time 2025-02-23 13:11:05 [2025-02-23 13:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539975', 'tblTempUsageDetail_20' ) start [2025-02-23 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539975', 'tblTempUsageDetail_20' ) end [2025-02-23 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539975', 'tblTempVendorCDR_20' ) start [2025-02-23 13:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539975', 'tblTempVendorCDR_20' ) end [2025-02-23 13:11:18] Production.INFO: ProcessCDR(1,14539975,1,1,2) [2025-02-23 13:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539975', 'tblTempUsageDetail_20' ) start [2025-02-23 13:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539975', 'tblTempUsageDetail_20' ) end [2025-02-23 13:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:11:21] Production.INFO: ==21116== Releasing lock... [2025-02-23 13:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:11:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:12:05 [end_date_ymd] => 2025-02-23 13:12:05 [RateCDR] => 1 ) [2025-02-23 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:12:05' and `end` < '2025-02-23 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-02-23 13:12:17] Production.INFO: count ==1243 [2025-02-23 13:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:12:05 - End Time 2025-02-23 13:12:05 [2025-02-23 13:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539980', 'tblTempUsageDetail_20' ) start [2025-02-23 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539980', 'tblTempUsageDetail_20' ) end [2025-02-23 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539980', 'tblTempVendorCDR_20' ) start [2025-02-23 13:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539980', 'tblTempVendorCDR_20' ) end [2025-02-23 13:12:18] Production.INFO: ProcessCDR(1,14539980,1,1,2) [2025-02-23 13:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539980', 'tblTempUsageDetail_20' ) start [2025-02-23 13:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539980', 'tblTempUsageDetail_20' ) end [2025-02-23 13:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:12:21] Production.INFO: ==21235== Releasing lock... [2025-02-23 13:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:12:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:13:05 [end_date_ymd] => 2025-02-23 13:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:13:05' and `end` < '2025-02-23 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-02-23 13:13:17] Production.INFO: count ==1247 [2025-02-23 13:13:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:13:05 - End Time 2025-02-23 13:13:05 [2025-02-23 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539985', 'tblTempUsageDetail_20' ) start [2025-02-23 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539985', 'tblTempUsageDetail_20' ) end [2025-02-23 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539985', 'tblTempVendorCDR_20' ) start [2025-02-23 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539985', 'tblTempVendorCDR_20' ) end [2025-02-23 13:13:18] Production.INFO: ProcessCDR(1,14539985,1,1,2) [2025-02-23 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539985', 'tblTempUsageDetail_20' ) start [2025-02-23 13:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539985', 'tblTempUsageDetail_20' ) end [2025-02-23 13:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:13:21] Production.INFO: ==21317== Releasing lock... [2025-02-23 13:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:14:05 [end_date_ymd] => 2025-02-23 13:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:14:05' and `end` < '2025-02-23 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-02-23 13:14:17] Production.INFO: count ==1245 [2025-02-23 13:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:14:05 - End Time 2025-02-23 13:14:05 [2025-02-23 13:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539990', 'tblTempUsageDetail_20' ) start [2025-02-23 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539990', 'tblTempUsageDetail_20' ) end [2025-02-23 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539990', 'tblTempVendorCDR_20' ) start [2025-02-23 13:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539990', 'tblTempVendorCDR_20' ) end [2025-02-23 13:14:18] Production.INFO: ProcessCDR(1,14539990,1,1,2) [2025-02-23 13:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539990', 'tblTempUsageDetail_20' ) start [2025-02-23 13:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539990', 'tblTempUsageDetail_20' ) end [2025-02-23 13:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:14:21] Production.INFO: ==21397== Releasing lock... [2025-02-23 13:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:15:06 [end_date_ymd] => 2025-02-23 13:15:06 [RateCDR] => 1 ) [2025-02-23 13: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-02-23 10:15:06' and `end` < '2025-02-23 13: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-02-23 13:15:18] Production.INFO: count ==1239 [2025-02-23 13:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:15:06 - End Time 2025-02-23 13:15:06 [2025-02-23 13:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539995', 'tblTempUsageDetail_20' ) start [2025-02-23 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14539995', 'tblTempUsageDetail_20' ) end [2025-02-23 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539995', 'tblTempVendorCDR_20' ) start [2025-02-23 13:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14539995', 'tblTempVendorCDR_20' ) end [2025-02-23 13:15:18] Production.INFO: ProcessCDR(1,14539995,1,1,2) [2025-02-23 13:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14539995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14539995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14539995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14539995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539995', 'tblTempUsageDetail_20' ) start [2025-02-23 13:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14539995', 'tblTempUsageDetail_20' ) end [2025-02-23 13:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:15:22] Production.INFO: ==21480== Releasing lock... [2025-02-23 13:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:15:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:16:05 [end_date_ymd] => 2025-02-23 13:16:05 [RateCDR] => 1 ) [2025-02-23 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:16:05' and `end` < '2025-02-23 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:16:17] Production.INFO: count ==1238 [2025-02-23 13:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:16:05 - End Time 2025-02-23 13:16:05 [2025-02-23 13:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540000', 'tblTempUsageDetail_20' ) start [2025-02-23 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540000', 'tblTempUsageDetail_20' ) end [2025-02-23 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540000', 'tblTempVendorCDR_20' ) start [2025-02-23 13:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540000', 'tblTempVendorCDR_20' ) end [2025-02-23 13:16:17] Production.INFO: ProcessCDR(1,14540000,1,1,2) [2025-02-23 13:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540000', 'tblTempUsageDetail_20' ) start [2025-02-23 13:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540000', 'tblTempUsageDetail_20' ) end [2025-02-23 13:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:16:21] Production.INFO: ==21565== Releasing lock... [2025-02-23 13:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:16:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:17:05 [end_date_ymd] => 2025-02-23 13:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:17:05' and `end` < '2025-02-23 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-02-23 13:17:17] Production.INFO: count ==1241 [2025-02-23 13:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:17:05 - End Time 2025-02-23 13:17:05 [2025-02-23 13:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540005', 'tblTempUsageDetail_20' ) start [2025-02-23 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540005', 'tblTempUsageDetail_20' ) end [2025-02-23 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540005', 'tblTempVendorCDR_20' ) start [2025-02-23 13:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540005', 'tblTempVendorCDR_20' ) end [2025-02-23 13:17:17] Production.INFO: ProcessCDR(1,14540005,1,1,2) [2025-02-23 13:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540005', 'tblTempUsageDetail_20' ) start [2025-02-23 13:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540005', 'tblTempUsageDetail_20' ) end [2025-02-23 13:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:17:21] Production.INFO: ==21639== Releasing lock... [2025-02-23 13:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:18:06 [end_date_ymd] => 2025-02-23 13:18:06 [RateCDR] => 1 ) [2025-02-23 13: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-02-23 10:18:06' and `end` < '2025-02-23 13: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-02-23 13:18:18] Production.INFO: count ==1241 [2025-02-23 13:18:19] Production.ERROR: pbx CDR StartTime 2025-02-23 10:18:06 - End Time 2025-02-23 13:18:06 [2025-02-23 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540010', 'tblTempUsageDetail_20' ) start [2025-02-23 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540010', 'tblTempUsageDetail_20' ) end [2025-02-23 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540010', 'tblTempVendorCDR_20' ) start [2025-02-23 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540010', 'tblTempVendorCDR_20' ) end [2025-02-23 13:18:19] Production.INFO: ProcessCDR(1,14540010,1,1,2) [2025-02-23 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540010', 'tblTempUsageDetail_20' ) start [2025-02-23 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540010', 'tblTempUsageDetail_20' ) end [2025-02-23 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:18:23] Production.INFO: ==21720== Releasing lock... [2025-02-23 13:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:18:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:19:05 [end_date_ymd] => 2025-02-23 13:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:19:05' and `end` < '2025-02-23 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-02-23 13:19:17] Production.INFO: count ==1242 [2025-02-23 13:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:19:05 - End Time 2025-02-23 13:19:05 [2025-02-23 13:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540015', 'tblTempUsageDetail_20' ) start [2025-02-23 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540015', 'tblTempUsageDetail_20' ) end [2025-02-23 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540015', 'tblTempVendorCDR_20' ) start [2025-02-23 13:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540015', 'tblTempVendorCDR_20' ) end [2025-02-23 13:19:18] Production.INFO: ProcessCDR(1,14540015,1,1,2) [2025-02-23 13:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540015', 'tblTempUsageDetail_20' ) start [2025-02-23 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540015', 'tblTempUsageDetail_20' ) end [2025-02-23 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:19:23] Production.INFO: ==21799== Releasing lock... [2025-02-23 13:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:20:06 [end_date_ymd] => 2025-02-23 13:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:20:06' and `end` < '2025-02-23 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-02-23 13:20:18] Production.INFO: count ==1257 [2025-02-23 13:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:20:06 - End Time 2025-02-23 13:20:06 [2025-02-23 13:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540021', 'tblTempUsageDetail_20' ) start [2025-02-23 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540021', 'tblTempUsageDetail_20' ) end [2025-02-23 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540021', 'tblTempVendorCDR_20' ) start [2025-02-23 13:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540021', 'tblTempVendorCDR_20' ) end [2025-02-23 13:20:18] Production.INFO: ProcessCDR(1,14540021,1,1,2) [2025-02-23 13:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540021', 'tblTempUsageDetail_20' ) start [2025-02-23 13:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540021', 'tblTempUsageDetail_20' ) end [2025-02-23 13:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:20:22] Production.INFO: ==21883== Releasing lock... [2025-02-23 13:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:20:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:21:05 [end_date_ymd] => 2025-02-23 13:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:21:05' and `end` < '2025-02-23 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-02-23 13:21:17] Production.INFO: count ==1280 [2025-02-23 13:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:21:05 - End Time 2025-02-23 13:21:05 [2025-02-23 13:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540026', 'tblTempUsageDetail_20' ) start [2025-02-23 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540026', 'tblTempUsageDetail_20' ) end [2025-02-23 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540026', 'tblTempVendorCDR_20' ) start [2025-02-23 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540026', 'tblTempVendorCDR_20' ) end [2025-02-23 13:21:18] Production.INFO: ProcessCDR(1,14540026,1,1,2) [2025-02-23 13:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540026', 'tblTempUsageDetail_20' ) start [2025-02-23 13:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540026', 'tblTempUsageDetail_20' ) end [2025-02-23 13:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:21:22] Production.INFO: ==21968== Releasing lock... [2025-02-23 13:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:21:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:22:05 [end_date_ymd] => 2025-02-23 13:22:05 [RateCDR] => 1 ) [2025-02-23 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:22:05' and `end` < '2025-02-23 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:22:17] Production.INFO: count ==1281 [2025-02-23 13:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:22:05 - End Time 2025-02-23 13:22:05 [2025-02-23 13:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540031', 'tblTempUsageDetail_20' ) start [2025-02-23 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540031', 'tblTempUsageDetail_20' ) end [2025-02-23 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540031', 'tblTempVendorCDR_20' ) start [2025-02-23 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540031', 'tblTempVendorCDR_20' ) end [2025-02-23 13:22:17] Production.INFO: ProcessCDR(1,14540031,1,1,2) [2025-02-23 13:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540031', 'tblTempUsageDetail_20' ) start [2025-02-23 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540031', 'tblTempUsageDetail_20' ) end [2025-02-23 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:22:22] Production.INFO: ==22049== Releasing lock... [2025-02-23 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:22:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:23:05 [end_date_ymd] => 2025-02-23 13:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:23:05' and `end` < '2025-02-23 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-02-23 13:23:17] Production.INFO: count ==1271 [2025-02-23 13:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:23:05 - End Time 2025-02-23 13:23:05 [2025-02-23 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540036', 'tblTempUsageDetail_20' ) start [2025-02-23 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540036', 'tblTempUsageDetail_20' ) end [2025-02-23 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540036', 'tblTempVendorCDR_20' ) start [2025-02-23 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540036', 'tblTempVendorCDR_20' ) end [2025-02-23 13:23:18] Production.INFO: ProcessCDR(1,14540036,1,1,2) [2025-02-23 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540036', 'tblTempUsageDetail_20' ) start [2025-02-23 13:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540036', 'tblTempUsageDetail_20' ) end [2025-02-23 13:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:23:22] Production.INFO: ==22139== Releasing lock... [2025-02-23 13:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:24:06 [end_date_ymd] => 2025-02-23 13:24:06 [RateCDR] => 1 ) [2025-02-23 13: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-02-23 10:24:06' and `end` < '2025-02-23 13: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-02-23 13:24:18] Production.INFO: count ==1273 [2025-02-23 13:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:24:06 - End Time 2025-02-23 13:24:06 [2025-02-23 13:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540041', 'tblTempUsageDetail_20' ) start [2025-02-23 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540041', 'tblTempUsageDetail_20' ) end [2025-02-23 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540041', 'tblTempVendorCDR_20' ) start [2025-02-23 13:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540041', 'tblTempVendorCDR_20' ) end [2025-02-23 13:24:18] Production.INFO: ProcessCDR(1,14540041,1,1,2) [2025-02-23 13:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540041', 'tblTempUsageDetail_20' ) start [2025-02-23 13:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540041', 'tblTempUsageDetail_20' ) end [2025-02-23 13:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:24:23] Production.INFO: ==22218== Releasing lock... [2025-02-23 13:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:24:23] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:25:05 [end_date_ymd] => 2025-02-23 13:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:25:05' and `end` < '2025-02-23 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-02-23 13:25:17] Production.INFO: count ==1282 [2025-02-23 13:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:25:05 - End Time 2025-02-23 13:25:05 [2025-02-23 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540046', 'tblTempUsageDetail_20' ) start [2025-02-23 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540046', 'tblTempUsageDetail_20' ) end [2025-02-23 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540046', 'tblTempVendorCDR_20' ) start [2025-02-23 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540046', 'tblTempVendorCDR_20' ) end [2025-02-23 13:25:17] Production.INFO: ProcessCDR(1,14540046,1,1,2) [2025-02-23 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540046', 'tblTempUsageDetail_20' ) start [2025-02-23 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540046', 'tblTempUsageDetail_20' ) end [2025-02-23 13:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:25:21] Production.INFO: ==22298== Releasing lock... [2025-02-23 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:25:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:26:05 [end_date_ymd] => 2025-02-23 13:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:26:05' and `end` < '2025-02-23 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-02-23 13:26:17] Production.INFO: count ==1290 [2025-02-23 13:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:26:05 - End Time 2025-02-23 13:26:05 [2025-02-23 13:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540051', 'tblTempUsageDetail_20' ) start [2025-02-23 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540051', 'tblTempUsageDetail_20' ) end [2025-02-23 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540051', 'tblTempVendorCDR_20' ) start [2025-02-23 13:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540051', 'tblTempVendorCDR_20' ) end [2025-02-23 13:26:17] Production.INFO: ProcessCDR(1,14540051,1,1,2) [2025-02-23 13:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540051', 'tblTempUsageDetail_20' ) start [2025-02-23 13:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540051', 'tblTempUsageDetail_20' ) end [2025-02-23 13:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:26:22] Production.INFO: ==22381== Releasing lock... [2025-02-23 13:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:26:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:27:05 [end_date_ymd] => 2025-02-23 13:27:05 [RateCDR] => 1 ) [2025-02-23 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:27:05' and `end` < '2025-02-23 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:27:17] Production.INFO: count ==1296 [2025-02-23 13:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:27:05 - End Time 2025-02-23 13:27:05 [2025-02-23 13:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540056', 'tblTempUsageDetail_20' ) start [2025-02-23 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540056', 'tblTempUsageDetail_20' ) end [2025-02-23 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540056', 'tblTempVendorCDR_20' ) start [2025-02-23 13:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540056', 'tblTempVendorCDR_20' ) end [2025-02-23 13:27:17] Production.INFO: ProcessCDR(1,14540056,1,1,2) [2025-02-23 13:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540056', 'tblTempUsageDetail_20' ) start [2025-02-23 13:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540056', 'tblTempUsageDetail_20' ) end [2025-02-23 13:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:27:22] Production.INFO: ==22462== Releasing lock... [2025-02-23 13:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:27:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:28:05 [end_date_ymd] => 2025-02-23 13:28:05 [RateCDR] => 1 ) [2025-02-23 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:28:05' and `end` < '2025-02-23 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:28:17] Production.INFO: count ==1307 [2025-02-23 13:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:28:05 - End Time 2025-02-23 13:28:05 [2025-02-23 13:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540061', 'tblTempUsageDetail_20' ) start [2025-02-23 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540061', 'tblTempUsageDetail_20' ) end [2025-02-23 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540061', 'tblTempVendorCDR_20' ) start [2025-02-23 13:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540061', 'tblTempVendorCDR_20' ) end [2025-02-23 13:28:18] Production.INFO: ProcessCDR(1,14540061,1,1,2) [2025-02-23 13:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540061', 'tblTempUsageDetail_20' ) start [2025-02-23 13:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540061', 'tblTempUsageDetail_20' ) end [2025-02-23 13:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:28:23] Production.INFO: ==22584== Releasing lock... [2025-02-23 13:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:28:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:29:05 [end_date_ymd] => 2025-02-23 13:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:29:05' and `end` < '2025-02-23 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-02-23 13:29:17] Production.INFO: count ==1308 [2025-02-23 13:29:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:29:05 - End Time 2025-02-23 13:29:05 [2025-02-23 13:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540066', 'tblTempUsageDetail_20' ) start [2025-02-23 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540066', 'tblTempUsageDetail_20' ) end [2025-02-23 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540066', 'tblTempVendorCDR_20' ) start [2025-02-23 13:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540066', 'tblTempVendorCDR_20' ) end [2025-02-23 13:29:17] Production.INFO: ProcessCDR(1,14540066,1,1,2) [2025-02-23 13:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540066', 'tblTempUsageDetail_20' ) start [2025-02-23 13:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540066', 'tblTempUsageDetail_20' ) end [2025-02-23 13:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:29:22] Production.INFO: ==22664== Releasing lock... [2025-02-23 13:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:29:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:30:06 [end_date_ymd] => 2025-02-23 13:30:06 [RateCDR] => 1 ) [2025-02-23 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:30:06' and `end` < '2025-02-23 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:30:18] Production.INFO: count ==1318 [2025-02-23 13:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:30:06 - End Time 2025-02-23 13:30:06 [2025-02-23 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540072', 'tblTempUsageDetail_20' ) start [2025-02-23 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540072', 'tblTempUsageDetail_20' ) end [2025-02-23 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540072', 'tblTempVendorCDR_20' ) start [2025-02-23 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540072', 'tblTempVendorCDR_20' ) end [2025-02-23 13:30:18] Production.INFO: ProcessCDR(1,14540072,1,1,2) [2025-02-23 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540072', 'tblTempUsageDetail_20' ) start [2025-02-23 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540072', 'tblTempUsageDetail_20' ) end [2025-02-23 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:30:23] Production.INFO: ==22748== Releasing lock... [2025-02-23 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:30:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:31:05 [end_date_ymd] => 2025-02-23 13:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:31:05' and `end` < '2025-02-23 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-02-23 13:31:17] Production.INFO: count ==1345 [2025-02-23 13:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:31:05 - End Time 2025-02-23 13:31:05 [2025-02-23 13:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540077', 'tblTempUsageDetail_20' ) start [2025-02-23 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540077', 'tblTempUsageDetail_20' ) end [2025-02-23 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540077', 'tblTempVendorCDR_20' ) start [2025-02-23 13:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540077', 'tblTempVendorCDR_20' ) end [2025-02-23 13:31:17] Production.INFO: ProcessCDR(1,14540077,1,1,2) [2025-02-23 13:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540077', 'tblTempUsageDetail_20' ) start [2025-02-23 13:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540077', 'tblTempUsageDetail_20' ) end [2025-02-23 13:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:31:22] Production.INFO: ==22834== Releasing lock... [2025-02-23 13:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:31:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:32:05 [end_date_ymd] => 2025-02-23 13:32:05 [RateCDR] => 1 ) [2025-02-23 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:32:05' and `end` < '2025-02-23 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:32:17] Production.INFO: count ==1341 [2025-02-23 13:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:32:05 - End Time 2025-02-23 13:32:05 [2025-02-23 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540082', 'tblTempUsageDetail_20' ) start [2025-02-23 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540082', 'tblTempUsageDetail_20' ) end [2025-02-23 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540082', 'tblTempVendorCDR_20' ) start [2025-02-23 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540082', 'tblTempVendorCDR_20' ) end [2025-02-23 13:32:18] Production.INFO: ProcessCDR(1,14540082,1,1,2) [2025-02-23 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540082', 'tblTempUsageDetail_20' ) start [2025-02-23 13:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540082', 'tblTempUsageDetail_20' ) end [2025-02-23 13:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:32:22] Production.INFO: ==22921== Releasing lock... [2025-02-23 13:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:32:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:33:06 [end_date_ymd] => 2025-02-23 13:33:06 [RateCDR] => 1 ) [2025-02-23 13:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:33:06' and `end` < '2025-02-23 13:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:33:17] Production.INFO: count ==1346 [2025-02-23 13:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:33:06 - End Time 2025-02-23 13:33:06 [2025-02-23 13:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540087', 'tblTempUsageDetail_20' ) start [2025-02-23 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540087', 'tblTempUsageDetail_20' ) end [2025-02-23 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540087', 'tblTempVendorCDR_20' ) start [2025-02-23 13:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540087', 'tblTempVendorCDR_20' ) end [2025-02-23 13:33:18] Production.INFO: ProcessCDR(1,14540087,1,1,2) [2025-02-23 13:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540087', 'tblTempUsageDetail_20' ) start [2025-02-23 13:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540087', 'tblTempUsageDetail_20' ) end [2025-02-23 13:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:33:22] Production.INFO: ==23000== Releasing lock... [2025-02-23 13:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:33:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:34:05 [end_date_ymd] => 2025-02-23 13:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:34:05' and `end` < '2025-02-23 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-02-23 13:34:17] Production.INFO: count ==1345 [2025-02-23 13:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:34:05 - End Time 2025-02-23 13:34:05 [2025-02-23 13:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540092', 'tblTempUsageDetail_20' ) start [2025-02-23 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540092', 'tblTempUsageDetail_20' ) end [2025-02-23 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540092', 'tblTempVendorCDR_20' ) start [2025-02-23 13:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540092', 'tblTempVendorCDR_20' ) end [2025-02-23 13:34:17] Production.INFO: ProcessCDR(1,14540092,1,1,2) [2025-02-23 13:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540092', 'tblTempUsageDetail_20' ) start [2025-02-23 13:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540092', 'tblTempUsageDetail_20' ) end [2025-02-23 13:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:34:22] Production.INFO: ==23076== Releasing lock... [2025-02-23 13:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:34:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:35:05 [end_date_ymd] => 2025-02-23 13:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:35:05' and `end` < '2025-02-23 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-02-23 13:35:17] Production.INFO: count ==1360 [2025-02-23 13:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:35:05 - End Time 2025-02-23 13:35:05 [2025-02-23 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540097', 'tblTempUsageDetail_20' ) start [2025-02-23 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540097', 'tblTempUsageDetail_20' ) end [2025-02-23 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540097', 'tblTempVendorCDR_20' ) start [2025-02-23 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540097', 'tblTempVendorCDR_20' ) end [2025-02-23 13:35:18] Production.INFO: ProcessCDR(1,14540097,1,1,2) [2025-02-23 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540097', 'tblTempUsageDetail_20' ) start [2025-02-23 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540097', 'tblTempUsageDetail_20' ) end [2025-02-23 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:35:22] Production.INFO: ==23166== Releasing lock... [2025-02-23 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:35:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:36:05 [end_date_ymd] => 2025-02-23 13:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:36:05' and `end` < '2025-02-23 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-02-23 13:36:17] Production.INFO: count ==1361 [2025-02-23 13:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:36:05 - End Time 2025-02-23 13:36:05 [2025-02-23 13:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540102', 'tblTempUsageDetail_20' ) start [2025-02-23 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540102', 'tblTempUsageDetail_20' ) end [2025-02-23 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540102', 'tblTempVendorCDR_20' ) start [2025-02-23 13:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540102', 'tblTempVendorCDR_20' ) end [2025-02-23 13:36:17] Production.INFO: ProcessCDR(1,14540102,1,1,2) [2025-02-23 13:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540102', 'tblTempUsageDetail_20' ) start [2025-02-23 13:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540102', 'tblTempUsageDetail_20' ) end [2025-02-23 13:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:36:22] Production.INFO: ==23248== Releasing lock... [2025-02-23 13:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:36:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:37:05 [end_date_ymd] => 2025-02-23 13:37:05 [RateCDR] => 1 ) [2025-02-23 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:37:05' and `end` < '2025-02-23 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:37:17] Production.INFO: count ==1363 [2025-02-23 13:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:37:05 - End Time 2025-02-23 13:37:05 [2025-02-23 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540107', 'tblTempUsageDetail_20' ) start [2025-02-23 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540107', 'tblTempUsageDetail_20' ) end [2025-02-23 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540107', 'tblTempVendorCDR_20' ) start [2025-02-23 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540107', 'tblTempVendorCDR_20' ) end [2025-02-23 13:37:18] Production.INFO: ProcessCDR(1,14540107,1,1,2) [2025-02-23 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540107', 'tblTempUsageDetail_20' ) start [2025-02-23 13:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540107', 'tblTempUsageDetail_20' ) end [2025-02-23 13:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:37:22] Production.INFO: ==23329== Releasing lock... [2025-02-23 13:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:37:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:38:05 [end_date_ymd] => 2025-02-23 13:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:38:05' and `end` < '2025-02-23 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-02-23 13:38:17] Production.INFO: count ==1379 [2025-02-23 13:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:38:05 - End Time 2025-02-23 13:38:05 [2025-02-23 13:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540112', 'tblTempUsageDetail_20' ) start [2025-02-23 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540112', 'tblTempUsageDetail_20' ) end [2025-02-23 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540112', 'tblTempVendorCDR_20' ) start [2025-02-23 13:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540112', 'tblTempVendorCDR_20' ) end [2025-02-23 13:38:17] Production.INFO: ProcessCDR(1,14540112,1,1,2) [2025-02-23 13:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540112', 'tblTempUsageDetail_20' ) start [2025-02-23 13:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540112', 'tblTempUsageDetail_20' ) end [2025-02-23 13:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:38:22] Production.INFO: ==23410== Releasing lock... [2025-02-23 13:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:38:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:39:05 [end_date_ymd] => 2025-02-23 13:39:05 [RateCDR] => 1 ) [2025-02-23 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:39:05' and `end` < '2025-02-23 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:39:17] Production.INFO: count ==1387 [2025-02-23 13:39:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:39:05 - End Time 2025-02-23 13:39:05 [2025-02-23 13:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540117', 'tblTempUsageDetail_20' ) start [2025-02-23 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540117', 'tblTempUsageDetail_20' ) end [2025-02-23 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540117', 'tblTempVendorCDR_20' ) start [2025-02-23 13:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540117', 'tblTempVendorCDR_20' ) end [2025-02-23 13:39:18] Production.INFO: ProcessCDR(1,14540117,1,1,2) [2025-02-23 13:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540117', 'tblTempUsageDetail_20' ) start [2025-02-23 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540117', 'tblTempUsageDetail_20' ) end [2025-02-23 13:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:39:22] Production.INFO: ==23490== Releasing lock... [2025-02-23 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:40:06 [end_date_ymd] => 2025-02-23 13:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:40:06' and `end` < '2025-02-23 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-02-23 13:40:18] Production.INFO: count ==1378 [2025-02-23 13:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:40:06 - End Time 2025-02-23 13:40:06 [2025-02-23 13:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540123', 'tblTempUsageDetail_20' ) start [2025-02-23 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540123', 'tblTempUsageDetail_20' ) end [2025-02-23 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540123', 'tblTempVendorCDR_20' ) start [2025-02-23 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540123', 'tblTempVendorCDR_20' ) end [2025-02-23 13:40:19] Production.INFO: ProcessCDR(1,14540123,1,1,2) [2025-02-23 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540123', 'tblTempUsageDetail_20' ) start [2025-02-23 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540123', 'tblTempUsageDetail_20' ) end [2025-02-23 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:40:23] Production.INFO: ==23571== Releasing lock... [2025-02-23 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:40:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:41:05 [end_date_ymd] => 2025-02-23 13:41:05 [RateCDR] => 1 ) [2025-02-23 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:41:05' and `end` < '2025-02-23 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:41:17] Production.INFO: count ==1397 [2025-02-23 13:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:41:05 - End Time 2025-02-23 13:41:05 [2025-02-23 13:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540128', 'tblTempUsageDetail_20' ) start [2025-02-23 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540128', 'tblTempUsageDetail_20' ) end [2025-02-23 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540128', 'tblTempVendorCDR_20' ) start [2025-02-23 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540128', 'tblTempVendorCDR_20' ) end [2025-02-23 13:41:18] Production.INFO: ProcessCDR(1,14540128,1,1,2) [2025-02-23 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540128', 'tblTempUsageDetail_20' ) start [2025-02-23 13:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540128', 'tblTempUsageDetail_20' ) end [2025-02-23 13:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:41:22] Production.INFO: ==23649== Releasing lock... [2025-02-23 13:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:41:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:42:06 [end_date_ymd] => 2025-02-23 13:42:06 [RateCDR] => 1 ) [2025-02-23 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:42:06' and `end` < '2025-02-23 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:42:18] Production.INFO: count ==1400 [2025-02-23 13:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:42:06 - End Time 2025-02-23 13:42:06 [2025-02-23 13:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540133', 'tblTempUsageDetail_20' ) start [2025-02-23 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540133', 'tblTempUsageDetail_20' ) end [2025-02-23 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540133', 'tblTempVendorCDR_20' ) start [2025-02-23 13:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540133', 'tblTempVendorCDR_20' ) end [2025-02-23 13:42:18] Production.INFO: ProcessCDR(1,14540133,1,1,2) [2025-02-23 13:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540133', 'tblTempUsageDetail_20' ) start [2025-02-23 13:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540133', 'tblTempUsageDetail_20' ) end [2025-02-23 13:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:42:22] Production.INFO: ==23734== Releasing lock... [2025-02-23 13:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:42:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:43:05 [end_date_ymd] => 2025-02-23 13:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:43:05' and `end` < '2025-02-23 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-02-23 13:43:17] Production.INFO: count ==1407 [2025-02-23 13:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:43:05 - End Time 2025-02-23 13:43:05 [2025-02-23 13:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540138', 'tblTempUsageDetail_20' ) start [2025-02-23 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540138', 'tblTempUsageDetail_20' ) end [2025-02-23 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540138', 'tblTempVendorCDR_20' ) start [2025-02-23 13:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540138', 'tblTempVendorCDR_20' ) end [2025-02-23 13:43:17] Production.INFO: ProcessCDR(1,14540138,1,1,2) [2025-02-23 13:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540138', 'tblTempUsageDetail_20' ) start [2025-02-23 13:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540138', 'tblTempUsageDetail_20' ) end [2025-02-23 13:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:43:21] Production.INFO: ==23851== Releasing lock... [2025-02-23 13:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:43:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:44:05 [end_date_ymd] => 2025-02-23 13:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:44:05' and `end` < '2025-02-23 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-02-23 13:44:17] Production.INFO: count ==1407 [2025-02-23 13:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:44:05 - End Time 2025-02-23 13:44:05 [2025-02-23 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540143', 'tblTempUsageDetail_20' ) start [2025-02-23 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540143', 'tblTempUsageDetail_20' ) end [2025-02-23 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540143', 'tblTempVendorCDR_20' ) start [2025-02-23 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540143', 'tblTempVendorCDR_20' ) end [2025-02-23 13:44:18] Production.INFO: ProcessCDR(1,14540143,1,1,2) [2025-02-23 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540143', 'tblTempUsageDetail_20' ) start [2025-02-23 13:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540143', 'tblTempUsageDetail_20' ) end [2025-02-23 13:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:44:23] Production.INFO: ==23927== Releasing lock... [2025-02-23 13:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:44:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:45:05 [end_date_ymd] => 2025-02-23 13:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:45:05' and `end` < '2025-02-23 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-02-23 13:45:17] Production.INFO: count ==1409 [2025-02-23 13:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:45:05 - End Time 2025-02-23 13:45:05 [2025-02-23 13:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540148', 'tblTempUsageDetail_20' ) start [2025-02-23 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540148', 'tblTempUsageDetail_20' ) end [2025-02-23 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540148', 'tblTempVendorCDR_20' ) start [2025-02-23 13:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540148', 'tblTempVendorCDR_20' ) end [2025-02-23 13:45:18] Production.INFO: ProcessCDR(1,14540148,1,1,2) [2025-02-23 13:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540148', 'tblTempUsageDetail_20' ) start [2025-02-23 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540148', 'tblTempUsageDetail_20' ) end [2025-02-23 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:45:22] Production.INFO: ==24004== Releasing lock... [2025-02-23 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:45:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:46:06 [end_date_ymd] => 2025-02-23 13:46:06 [RateCDR] => 1 ) [2025-02-23 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:46:06' and `end` < '2025-02-23 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:46:18] Production.INFO: count ==1411 [2025-02-23 13:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:46:06 - End Time 2025-02-23 13:46:06 [2025-02-23 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540153', 'tblTempUsageDetail_20' ) start [2025-02-23 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540153', 'tblTempUsageDetail_20' ) end [2025-02-23 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540153', 'tblTempVendorCDR_20' ) start [2025-02-23 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540153', 'tblTempVendorCDR_20' ) end [2025-02-23 13:46:18] Production.INFO: ProcessCDR(1,14540153,1,1,2) [2025-02-23 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540153', 'tblTempUsageDetail_20' ) start [2025-02-23 13:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540153', 'tblTempUsageDetail_20' ) end [2025-02-23 13:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:46:23] Production.INFO: ==24082== Releasing lock... [2025-02-23 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:46:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:47:05 [end_date_ymd] => 2025-02-23 13:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:47:05' and `end` < '2025-02-23 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-02-23 13:47:17] Production.INFO: count ==1410 [2025-02-23 13:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:47:05 - End Time 2025-02-23 13:47:05 [2025-02-23 13:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540158', 'tblTempUsageDetail_20' ) start [2025-02-23 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540158', 'tblTempUsageDetail_20' ) end [2025-02-23 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540158', 'tblTempVendorCDR_20' ) start [2025-02-23 13:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540158', 'tblTempVendorCDR_20' ) end [2025-02-23 13:47:17] Production.INFO: ProcessCDR(1,14540158,1,1,2) [2025-02-23 13:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540158', 'tblTempUsageDetail_20' ) start [2025-02-23 13:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540158', 'tblTempUsageDetail_20' ) end [2025-02-23 13:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:47:22] Production.INFO: ==24160== Releasing lock... [2025-02-23 13:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:47:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:48:06 [end_date_ymd] => 2025-02-23 13:48:06 [RateCDR] => 1 ) [2025-02-23 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:48:06' and `end` < '2025-02-23 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:48:18] Production.INFO: count ==1411 [2025-02-23 13:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:48:06 - End Time 2025-02-23 13:48:06 [2025-02-23 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540163', 'tblTempUsageDetail_20' ) start [2025-02-23 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540163', 'tblTempUsageDetail_20' ) end [2025-02-23 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540163', 'tblTempVendorCDR_20' ) start [2025-02-23 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540163', 'tblTempVendorCDR_20' ) end [2025-02-23 13:48:18] Production.INFO: ProcessCDR(1,14540163,1,1,2) [2025-02-23 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540163', 'tblTempUsageDetail_20' ) start [2025-02-23 13:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540163', 'tblTempUsageDetail_20' ) end [2025-02-23 13:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:48:23] Production.INFO: ==24236== Releasing lock... [2025-02-23 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:48:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:49:05 [end_date_ymd] => 2025-02-23 13:49:05 [RateCDR] => 1 ) [2025-02-23 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:49:05' and `end` < '2025-02-23 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:49:17] Production.INFO: count ==1405 [2025-02-23 13:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:49:05 - End Time 2025-02-23 13:49:05 [2025-02-23 13:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540168', 'tblTempUsageDetail_20' ) start [2025-02-23 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540168', 'tblTempUsageDetail_20' ) end [2025-02-23 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540168', 'tblTempVendorCDR_20' ) start [2025-02-23 13:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540168', 'tblTempVendorCDR_20' ) end [2025-02-23 13:49:18] Production.INFO: ProcessCDR(1,14540168,1,1,2) [2025-02-23 13:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540168', 'tblTempUsageDetail_20' ) start [2025-02-23 13:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540168', 'tblTempUsageDetail_20' ) end [2025-02-23 13:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:49:22] Production.INFO: ==24310== Releasing lock... [2025-02-23 13:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:50:06 [end_date_ymd] => 2025-02-23 13:50:06 [RateCDR] => 1 ) [2025-02-23 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:50:06' and `end` < '2025-02-23 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:50:18] Production.INFO: count ==1405 [2025-02-23 13:50:19] Production.ERROR: pbx CDR StartTime 2025-02-23 10:50:06 - End Time 2025-02-23 13:50:06 [2025-02-23 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540174', 'tblTempUsageDetail_20' ) start [2025-02-23 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540174', 'tblTempUsageDetail_20' ) end [2025-02-23 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540174', 'tblTempVendorCDR_20' ) start [2025-02-23 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540174', 'tblTempVendorCDR_20' ) end [2025-02-23 13:50:19] Production.INFO: ProcessCDR(1,14540174,1,1,2) [2025-02-23 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540174', 'tblTempUsageDetail_20' ) start [2025-02-23 13:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540174', 'tblTempUsageDetail_20' ) end [2025-02-23 13:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:50:23] Production.INFO: ==24387== Releasing lock... [2025-02-23 13:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:50:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:51:05 [end_date_ymd] => 2025-02-23 13:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:51:05' and `end` < '2025-02-23 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-02-23 13:51:17] Production.INFO: count ==1423 [2025-02-23 13:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:51:05 - End Time 2025-02-23 13:51:05 [2025-02-23 13:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540179', 'tblTempUsageDetail_20' ) start [2025-02-23 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540179', 'tblTempUsageDetail_20' ) end [2025-02-23 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540179', 'tblTempVendorCDR_20' ) start [2025-02-23 13:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540179', 'tblTempVendorCDR_20' ) end [2025-02-23 13:51:18] Production.INFO: ProcessCDR(1,14540179,1,1,2) [2025-02-23 13:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540179', 'tblTempUsageDetail_20' ) start [2025-02-23 13:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540179', 'tblTempUsageDetail_20' ) end [2025-02-23 13:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:51:21] Production.INFO: ==24466== Releasing lock... [2025-02-23 13:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:51:21] Production.INFO: 39 MB #Memory Used# [2025-02-23 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:52:06 [end_date_ymd] => 2025-02-23 13:52:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:52:06' and `end` < '2025-02-23 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-02-23 13:52:18] Production.INFO: count ==1426 [2025-02-23 13:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:52:06 - End Time 2025-02-23 13:52:06 [2025-02-23 13:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540184', 'tblTempUsageDetail_20' ) start [2025-02-23 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540184', 'tblTempUsageDetail_20' ) end [2025-02-23 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540184', 'tblTempVendorCDR_20' ) start [2025-02-23 13:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540184', 'tblTempVendorCDR_20' ) end [2025-02-23 13:52:18] Production.INFO: ProcessCDR(1,14540184,1,1,2) [2025-02-23 13:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540184', 'tblTempUsageDetail_20' ) start [2025-02-23 13:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540184', 'tblTempUsageDetail_20' ) end [2025-02-23 13:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:52:22] Production.INFO: ==24540== Releasing lock... [2025-02-23 13:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 13:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:53:04 [end_date_ymd] => 2025-02-23 13:53:04 [RateCDR] => 1 ) [2025-02-23 13:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:53:04' and `end` < '2025-02-23 13:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:53:16] Production.INFO: count ==1427 [2025-02-23 13:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:53:04 - End Time 2025-02-23 13:53:04 [2025-02-23 13:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540189', 'tblTempUsageDetail_20' ) start [2025-02-23 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540189', 'tblTempUsageDetail_20' ) end [2025-02-23 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540189', 'tblTempVendorCDR_20' ) start [2025-02-23 13:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540189', 'tblTempVendorCDR_20' ) end [2025-02-23 13:53:17] Production.INFO: ProcessCDR(1,14540189,1,1,2) [2025-02-23 13:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540189', 'tblTempUsageDetail_20' ) start [2025-02-23 13:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540189', 'tblTempUsageDetail_20' ) end [2025-02-23 13:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:53:21] Production.INFO: ==24620== Releasing lock... [2025-02-23 13:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:53:21] Production.INFO: 39 MB #Memory Used# [2025-02-23 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:54:05 [end_date_ymd] => 2025-02-23 13:54:05 [RateCDR] => 1 ) [2025-02-23 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:54:05' and `end` < '2025-02-23 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:54:17] Production.INFO: count ==1427 [2025-02-23 13:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:54:05 - End Time 2025-02-23 13:54:05 [2025-02-23 13:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540194', 'tblTempUsageDetail_20' ) start [2025-02-23 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540194', 'tblTempUsageDetail_20' ) end [2025-02-23 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540194', 'tblTempVendorCDR_20' ) start [2025-02-23 13:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540194', 'tblTempVendorCDR_20' ) end [2025-02-23 13:54:17] Production.INFO: ProcessCDR(1,14540194,1,1,2) [2025-02-23 13:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540194', 'tblTempUsageDetail_20' ) start [2025-02-23 13:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540194', 'tblTempUsageDetail_20' ) end [2025-02-23 13:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:54:20] Production.INFO: ==24704== Releasing lock... [2025-02-23 13:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:54:20] Production.INFO: 39 MB #Memory Used# [2025-02-23 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:55:05 [end_date_ymd] => 2025-02-23 13:55:05 [RateCDR] => 1 ) [2025-02-23 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:55:05' and `end` < '2025-02-23 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-02-23 13:55:17] Production.INFO: count ==1421 [2025-02-23 13:55:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:55:05 - End Time 2025-02-23 13:55:05 [2025-02-23 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540199', 'tblTempUsageDetail_20' ) start [2025-02-23 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540199', 'tblTempUsageDetail_20' ) end [2025-02-23 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540199', 'tblTempVendorCDR_20' ) start [2025-02-23 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540199', 'tblTempVendorCDR_20' ) end [2025-02-23 13:55:18] Production.INFO: ProcessCDR(1,14540199,1,1,2) [2025-02-23 13:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540199', 'tblTempUsageDetail_20' ) start [2025-02-23 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540199', 'tblTempUsageDetail_20' ) end [2025-02-23 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:55:22] Production.INFO: ==24779== Releasing lock... [2025-02-23 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:55:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:56:05 [end_date_ymd] => 2025-02-23 13:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:56:05' and `end` < '2025-02-23 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-02-23 13:56:17] Production.INFO: count ==1415 [2025-02-23 13:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:56:05 - End Time 2025-02-23 13:56:05 [2025-02-23 13:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540204', 'tblTempUsageDetail_20' ) start [2025-02-23 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540204', 'tblTempUsageDetail_20' ) end [2025-02-23 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540204', 'tblTempVendorCDR_20' ) start [2025-02-23 13:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540204', 'tblTempVendorCDR_20' ) end [2025-02-23 13:56:18] Production.INFO: ProcessCDR(1,14540204,1,1,2) [2025-02-23 13:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540204', 'tblTempUsageDetail_20' ) start [2025-02-23 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540204', 'tblTempUsageDetail_20' ) end [2025-02-23 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:56:22] Production.INFO: ==24861== Releasing lock... [2025-02-23 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:56:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:57:05 [end_date_ymd] => 2025-02-23 13:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:57:05' and `end` < '2025-02-23 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-02-23 13:57:17] Production.INFO: count ==1418 [2025-02-23 13:57:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:57:05 - End Time 2025-02-23 13:57:05 [2025-02-23 13:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540209', 'tblTempUsageDetail_20' ) start [2025-02-23 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540209', 'tblTempUsageDetail_20' ) end [2025-02-23 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540209', 'tblTempVendorCDR_20' ) start [2025-02-23 13:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540209', 'tblTempVendorCDR_20' ) end [2025-02-23 13:57:17] Production.INFO: ProcessCDR(1,14540209,1,1,2) [2025-02-23 13:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540209', 'tblTempUsageDetail_20' ) start [2025-02-23 13:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540209', 'tblTempUsageDetail_20' ) end [2025-02-23 13:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:57:20] Production.INFO: ==24939== Releasing lock... [2025-02-23 13:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:57:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:58:05 [end_date_ymd] => 2025-02-23 13:58:05 [RateCDR] => 1 ) [2025-02-23 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 10:58:05' and `end` < '2025-02-23 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 13:58:16] Production.INFO: count ==1404 [2025-02-23 13:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 10:58:05 - End Time 2025-02-23 13:58:05 [2025-02-23 13:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540214', 'tblTempUsageDetail_20' ) start [2025-02-23 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540214', 'tblTempUsageDetail_20' ) end [2025-02-23 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540214', 'tblTempVendorCDR_20' ) start [2025-02-23 13:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540214', 'tblTempVendorCDR_20' ) end [2025-02-23 13:58:17] Production.INFO: ProcessCDR(1,14540214,1,1,2) [2025-02-23 13:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540214', 'tblTempUsageDetail_20' ) start [2025-02-23 13:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540214', 'tblTempUsageDetail_20' ) end [2025-02-23 13:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:58:20] Production.INFO: ==25018== Releasing lock... [2025-02-23 13:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:58:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 10:59:05 [end_date_ymd] => 2025-02-23 13:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 10:59:05' and `end` < '2025-02-23 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-02-23 13:59:17] Production.INFO: count ==1402 [2025-02-23 13:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 10:59:05 - End Time 2025-02-23 13:59:05 [2025-02-23 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540219', 'tblTempUsageDetail_20' ) start [2025-02-23 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540219', 'tblTempUsageDetail_20' ) end [2025-02-23 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540219', 'tblTempVendorCDR_20' ) start [2025-02-23 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540219', 'tblTempVendorCDR_20' ) end [2025-02-23 13:59:18] Production.INFO: ProcessCDR(1,14540219,1,1,2) [2025-02-23 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 13:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540219', 'tblTempUsageDetail_20' ) start [2025-02-23 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540219', 'tblTempUsageDetail_20' ) end [2025-02-23 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 13:59:22] Production.INFO: ==25131== Releasing lock... [2025-02-23 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 13:59:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:00:06 [end_date_ymd] => 2025-02-23 14:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:00:06' and `end` < '2025-02-23 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-02-23 14:00:18] Production.INFO: count ==1408 [2025-02-23 14:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:00:06 - End Time 2025-02-23 14:00:06 [2025-02-23 14:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540225', 'tblTempUsageDetail_20' ) start [2025-02-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540225', 'tblTempUsageDetail_20' ) end [2025-02-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540225', 'tblTempVendorCDR_20' ) start [2025-02-23 14:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540225', 'tblTempVendorCDR_20' ) end [2025-02-23 14:00:18] Production.INFO: ProcessCDR(1,14540225,1,1,2) [2025-02-23 14:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540225', 'tblTempUsageDetail_20' ) start [2025-02-23 14:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540225', 'tblTempUsageDetail_20' ) end [2025-02-23 14:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:00:23] Production.INFO: ==25209== Releasing lock... [2025-02-23 14:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:01:05 [end_date_ymd] => 2025-02-23 14:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:01:05' and `end` < '2025-02-23 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-02-23 14:01:17] Production.INFO: count ==1430 [2025-02-23 14:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:01:05 - End Time 2025-02-23 14:01:05 [2025-02-23 14:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540230', 'tblTempUsageDetail_20' ) start [2025-02-23 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540230', 'tblTempUsageDetail_20' ) end [2025-02-23 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540230', 'tblTempVendorCDR_20' ) start [2025-02-23 14:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540230', 'tblTempVendorCDR_20' ) end [2025-02-23 14:01:18] Production.INFO: ProcessCDR(1,14540230,1,1,2) [2025-02-23 14:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540230', 'tblTempUsageDetail_20' ) start [2025-02-23 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540230', 'tblTempUsageDetail_20' ) end [2025-02-23 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:01:22] Production.INFO: ==25297== Releasing lock... [2025-02-23 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:01:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:02:05 [end_date_ymd] => 2025-02-23 14:02:05 [RateCDR] => 1 ) [2025-02-23 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:02:05' and `end` < '2025-02-23 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:02:17] Production.INFO: count ==1434 [2025-02-23 14:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:02:05 - End Time 2025-02-23 14:02:05 [2025-02-23 14:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540235', 'tblTempUsageDetail_20' ) start [2025-02-23 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540235', 'tblTempUsageDetail_20' ) end [2025-02-23 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540235', 'tblTempVendorCDR_20' ) start [2025-02-23 14:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540235', 'tblTempVendorCDR_20' ) end [2025-02-23 14:02:17] Production.INFO: ProcessCDR(1,14540235,1,1,2) [2025-02-23 14:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540235', 'tblTempUsageDetail_20' ) start [2025-02-23 14:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540235', 'tblTempUsageDetail_20' ) end [2025-02-23 14:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:02:21] Production.INFO: ==25374== Releasing lock... [2025-02-23 14:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:02:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:03:05 [end_date_ymd] => 2025-02-23 14:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:03:05' and `end` < '2025-02-23 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-02-23 14:03:17] Production.INFO: count ==1438 [2025-02-23 14:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:03:05 - End Time 2025-02-23 14:03:05 [2025-02-23 14:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540240', 'tblTempUsageDetail_20' ) start [2025-02-23 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540240', 'tblTempUsageDetail_20' ) end [2025-02-23 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540240', 'tblTempVendorCDR_20' ) start [2025-02-23 14:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540240', 'tblTempVendorCDR_20' ) end [2025-02-23 14:03:18] Production.INFO: ProcessCDR(1,14540240,1,1,2) [2025-02-23 14:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540240', 'tblTempUsageDetail_20' ) start [2025-02-23 14:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540240', 'tblTempUsageDetail_20' ) end [2025-02-23 14:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:03:22] Production.INFO: ==25451== Releasing lock... [2025-02-23 14:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:03:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:04:05 [end_date_ymd] => 2025-02-23 14:04:05 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:04:05' and `end` < '2025-02-23 14: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-02-23 14:04:17] Production.INFO: count ==1446 [2025-02-23 14:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:04:05 - End Time 2025-02-23 14:04:05 [2025-02-23 14:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540245', 'tblTempUsageDetail_20' ) start [2025-02-23 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540245', 'tblTempUsageDetail_20' ) end [2025-02-23 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540245', 'tblTempVendorCDR_20' ) start [2025-02-23 14:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540245', 'tblTempVendorCDR_20' ) end [2025-02-23 14:04:18] Production.INFO: ProcessCDR(1,14540245,1,1,2) [2025-02-23 14:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540245', 'tblTempUsageDetail_20' ) start [2025-02-23 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540245', 'tblTempUsageDetail_20' ) end [2025-02-23 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:04:23] Production.INFO: ==25534== Releasing lock... [2025-02-23 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:04:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:05:05 [end_date_ymd] => 2025-02-23 14:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:05:05' and `end` < '2025-02-23 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-02-23 14:05:17] Production.INFO: count ==1446 [2025-02-23 14:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:05:05 - End Time 2025-02-23 14:05:05 [2025-02-23 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540250', 'tblTempUsageDetail_20' ) start [2025-02-23 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540250', 'tblTempUsageDetail_20' ) end [2025-02-23 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540250', 'tblTempVendorCDR_20' ) start [2025-02-23 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540250', 'tblTempVendorCDR_20' ) end [2025-02-23 14:05:18] Production.INFO: ProcessCDR(1,14540250,1,1,2) [2025-02-23 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540250', 'tblTempUsageDetail_20' ) start [2025-02-23 14:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540250', 'tblTempUsageDetail_20' ) end [2025-02-23 14:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:05:22] Production.INFO: ==25609== Releasing lock... [2025-02-23 14:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:05:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:06:04 [end_date_ymd] => 2025-02-23 14:06:04 [RateCDR] => 1 ) [2025-02-23 14:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:06:04' and `end` < '2025-02-23 14:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:06:16] Production.INFO: count ==1445 [2025-02-23 14:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:06:04 - End Time 2025-02-23 14:06:04 [2025-02-23 14:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540255', 'tblTempUsageDetail_20' ) start [2025-02-23 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540255', 'tblTempUsageDetail_20' ) end [2025-02-23 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540255', 'tblTempVendorCDR_20' ) start [2025-02-23 14:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540255', 'tblTempVendorCDR_20' ) end [2025-02-23 14:06:17] Production.INFO: ProcessCDR(1,14540255,1,1,2) [2025-02-23 14:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540255', 'tblTempUsageDetail_20' ) start [2025-02-23 14:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540255', 'tblTempUsageDetail_20' ) end [2025-02-23 14:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:06:20] Production.INFO: ==25686== Releasing lock... [2025-02-23 14:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:06:20] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:07:05 [end_date_ymd] => 2025-02-23 14:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:07:05' and `end` < '2025-02-23 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-02-23 14:07:17] Production.INFO: count ==1465 [2025-02-23 14:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:07:05 - End Time 2025-02-23 14:07:05 [2025-02-23 14:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540260', 'tblTempUsageDetail_20' ) start [2025-02-23 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540260', 'tblTempUsageDetail_20' ) end [2025-02-23 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540260', 'tblTempVendorCDR_20' ) start [2025-02-23 14:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540260', 'tblTempVendorCDR_20' ) end [2025-02-23 14:07:17] Production.INFO: ProcessCDR(1,14540260,1,1,2) [2025-02-23 14:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540260', 'tblTempUsageDetail_20' ) start [2025-02-23 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540260', 'tblTempUsageDetail_20' ) end [2025-02-23 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:07:22] Production.INFO: ==25768== Releasing lock... [2025-02-23 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:07:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:08:05 [end_date_ymd] => 2025-02-23 14:08:05 [RateCDR] => 1 ) [2025-02-23 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:08:05' and `end` < '2025-02-23 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:08:17] Production.INFO: count ==1465 [2025-02-23 14:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:08:05 - End Time 2025-02-23 14:08:05 [2025-02-23 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540265', 'tblTempUsageDetail_20' ) start [2025-02-23 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540265', 'tblTempUsageDetail_20' ) end [2025-02-23 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540265', 'tblTempVendorCDR_20' ) start [2025-02-23 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540265', 'tblTempVendorCDR_20' ) end [2025-02-23 14:08:18] Production.INFO: ProcessCDR(1,14540265,1,1,2) [2025-02-23 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540265', 'tblTempUsageDetail_20' ) start [2025-02-23 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540265', 'tblTempUsageDetail_20' ) end [2025-02-23 14:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:08:21] Production.INFO: ==25846== Releasing lock... [2025-02-23 14:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:08:21] Production.INFO: 39 MB #Memory Used# [2025-02-23 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:09:05 [end_date_ymd] => 2025-02-23 14:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:09:05' and `end` < '2025-02-23 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-02-23 14:09:17] Production.INFO: count ==1471 [2025-02-23 14:09:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:09:05 - End Time 2025-02-23 14:09:05 [2025-02-23 14:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540270', 'tblTempUsageDetail_20' ) start [2025-02-23 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540270', 'tblTempUsageDetail_20' ) end [2025-02-23 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540270', 'tblTempVendorCDR_20' ) start [2025-02-23 14:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540270', 'tblTempVendorCDR_20' ) end [2025-02-23 14:09:18] Production.INFO: ProcessCDR(1,14540270,1,1,2) [2025-02-23 14:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540270', 'tblTempUsageDetail_20' ) start [2025-02-23 14:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540270', 'tblTempUsageDetail_20' ) end [2025-02-23 14:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:09:21] Production.INFO: ==25929== Releasing lock... [2025-02-23 14:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:09:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:10:06 [end_date_ymd] => 2025-02-23 14:10:06 [RateCDR] => 1 ) [2025-02-23 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:10:06' and `end` < '2025-02-23 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:10:18] Production.INFO: count ==1462 [2025-02-23 14:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 11:10:06 - End Time 2025-02-23 14:10:06 [2025-02-23 14:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540276', 'tblTempUsageDetail_20' ) start [2025-02-23 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540276', 'tblTempUsageDetail_20' ) end [2025-02-23 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540276', 'tblTempVendorCDR_20' ) start [2025-02-23 14:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540276', 'tblTempVendorCDR_20' ) end [2025-02-23 14:10:19] Production.INFO: ProcessCDR(1,14540276,1,1,2) [2025-02-23 14:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540276', 'tblTempUsageDetail_20' ) start [2025-02-23 14:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540276', 'tblTempUsageDetail_20' ) end [2025-02-23 14:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:10:24] Production.INFO: ==26016== Releasing lock... [2025-02-23 14:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:10:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:11:05 [end_date_ymd] => 2025-02-23 14:11:05 [RateCDR] => 1 ) [2025-02-23 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:11:05' and `end` < '2025-02-23 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:11:17] Production.INFO: count ==1478 [2025-02-23 14:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:11:05 - End Time 2025-02-23 14:11:05 [2025-02-23 14:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540281', 'tblTempUsageDetail_20' ) start [2025-02-23 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540281', 'tblTempUsageDetail_20' ) end [2025-02-23 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540281', 'tblTempVendorCDR_20' ) start [2025-02-23 14:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540281', 'tblTempVendorCDR_20' ) end [2025-02-23 14:11:17] Production.INFO: ProcessCDR(1,14540281,1,1,2) [2025-02-23 14:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540281', 'tblTempUsageDetail_20' ) start [2025-02-23 14:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540281', 'tblTempUsageDetail_20' ) end [2025-02-23 14:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:11:22] Production.INFO: ==26101== Releasing lock... [2025-02-23 14:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:11:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-23 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:12:05 [end_date_ymd] => 2025-02-23 14:12:05 [RateCDR] => 1 ) [2025-02-23 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:12:05' and `end` < '2025-02-23 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:12:17] Production.INFO: count ==1481 [2025-02-23 14:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:12:05 - End Time 2025-02-23 14:12:05 [2025-02-23 14:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540286', 'tblTempUsageDetail_20' ) start [2025-02-23 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540286', 'tblTempUsageDetail_20' ) end [2025-02-23 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540286', 'tblTempVendorCDR_20' ) start [2025-02-23 14:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540286', 'tblTempVendorCDR_20' ) end [2025-02-23 14:12:18] Production.INFO: ProcessCDR(1,14540286,1,1,2) [2025-02-23 14:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540286', 'tblTempUsageDetail_20' ) start [2025-02-23 14:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540286', 'tblTempUsageDetail_20' ) end [2025-02-23 14:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:12:21] Production.INFO: ==26181== Releasing lock... [2025-02-23 14:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:12:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:13:05 [end_date_ymd] => 2025-02-23 14:13:05 [RateCDR] => 1 ) [2025-02-23 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:13:05' and `end` < '2025-02-23 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:13:17] Production.INFO: count ==1433 [2025-02-23 14:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:13:05 - End Time 2025-02-23 14:13:05 [2025-02-23 14:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540291', 'tblTempUsageDetail_20' ) start [2025-02-23 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540291', 'tblTempUsageDetail_20' ) end [2025-02-23 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540291', 'tblTempVendorCDR_20' ) start [2025-02-23 14:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540291', 'tblTempVendorCDR_20' ) end [2025-02-23 14:13:17] Production.INFO: ProcessCDR(1,14540291,1,1,2) [2025-02-23 14:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540291', 'tblTempUsageDetail_20' ) start [2025-02-23 14:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540291', 'tblTempUsageDetail_20' ) end [2025-02-23 14:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:13:22] Production.INFO: ==26261== Releasing lock... [2025-02-23 14:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:13:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:14:05 [end_date_ymd] => 2025-02-23 14:14:05 [RateCDR] => 1 ) [2025-02-23 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:14:05' and `end` < '2025-02-23 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:14:17] Production.INFO: count ==1379 [2025-02-23 14:14:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:14:05 - End Time 2025-02-23 14:14:05 [2025-02-23 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540296', 'tblTempUsageDetail_20' ) start [2025-02-23 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540296', 'tblTempUsageDetail_20' ) end [2025-02-23 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540296', 'tblTempVendorCDR_20' ) start [2025-02-23 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540296', 'tblTempVendorCDR_20' ) end [2025-02-23 14:14:18] Production.INFO: ProcessCDR(1,14540296,1,1,2) [2025-02-23 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540296', 'tblTempUsageDetail_20' ) start [2025-02-23 14:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540296', 'tblTempUsageDetail_20' ) end [2025-02-23 14:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:14:22] Production.INFO: ==26381== Releasing lock... [2025-02-23 14:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:14:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:15:05 [end_date_ymd] => 2025-02-23 14:15:05 [RateCDR] => 1 ) [2025-02-23 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:15:05' and `end` < '2025-02-23 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:15:17] Production.INFO: count ==1379 [2025-02-23 14:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:15:05 - End Time 2025-02-23 14:15:05 [2025-02-23 14:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540301', 'tblTempUsageDetail_20' ) start [2025-02-23 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540301', 'tblTempUsageDetail_20' ) end [2025-02-23 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540301', 'tblTempVendorCDR_20' ) start [2025-02-23 14:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540301', 'tblTempVendorCDR_20' ) end [2025-02-23 14:15:17] Production.INFO: ProcessCDR(1,14540301,1,1,2) [2025-02-23 14:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540301', 'tblTempUsageDetail_20' ) start [2025-02-23 14:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540301', 'tblTempUsageDetail_20' ) end [2025-02-23 14:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:15:22] Production.INFO: ==26461== Releasing lock... [2025-02-23 14:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:15:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:16:05 [end_date_ymd] => 2025-02-23 14:16:05 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:16:05' and `end` < '2025-02-23 14: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-02-23 14:16:17] Production.INFO: count ==1380 [2025-02-23 14:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:16:05 - End Time 2025-02-23 14:16:05 [2025-02-23 14:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540306', 'tblTempUsageDetail_20' ) start [2025-02-23 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540306', 'tblTempUsageDetail_20' ) end [2025-02-23 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540306', 'tblTempVendorCDR_20' ) start [2025-02-23 14:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540306', 'tblTempVendorCDR_20' ) end [2025-02-23 14:16:18] Production.INFO: ProcessCDR(1,14540306,1,1,2) [2025-02-23 14:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540306', 'tblTempUsageDetail_20' ) start [2025-02-23 14:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540306', 'tblTempUsageDetail_20' ) end [2025-02-23 14:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:16:22] Production.INFO: ==26541== Releasing lock... [2025-02-23 14:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:16:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:17:05 [end_date_ymd] => 2025-02-23 14:17:05 [RateCDR] => 1 ) [2025-02-23 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:17:05' and `end` < '2025-02-23 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:17:17] Production.INFO: count ==1381 [2025-02-23 14:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:17:05 - End Time 2025-02-23 14:17:05 [2025-02-23 14:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540311', 'tblTempUsageDetail_20' ) start [2025-02-23 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540311', 'tblTempUsageDetail_20' ) end [2025-02-23 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540311', 'tblTempVendorCDR_20' ) start [2025-02-23 14:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540311', 'tblTempVendorCDR_20' ) end [2025-02-23 14:17:17] Production.INFO: ProcessCDR(1,14540311,1,1,2) [2025-02-23 14:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540311', 'tblTempUsageDetail_20' ) start [2025-02-23 14:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540311', 'tblTempUsageDetail_20' ) end [2025-02-23 14:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:17:21] Production.INFO: ==26623== Releasing lock... [2025-02-23 14:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:17:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:18:05 [end_date_ymd] => 2025-02-23 14:18:05 [RateCDR] => 1 ) [2025-02-23 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:18:05' and `end` < '2025-02-23 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:18:17] Production.INFO: count ==1384 [2025-02-23 14:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:18:05 - End Time 2025-02-23 14:18:05 [2025-02-23 14:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540316', 'tblTempUsageDetail_20' ) start [2025-02-23 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540316', 'tblTempUsageDetail_20' ) end [2025-02-23 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540316', 'tblTempVendorCDR_20' ) start [2025-02-23 14:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540316', 'tblTempVendorCDR_20' ) end [2025-02-23 14:18:17] Production.INFO: ProcessCDR(1,14540316,1,1,2) [2025-02-23 14:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540316', 'tblTempUsageDetail_20' ) start [2025-02-23 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540316', 'tblTempUsageDetail_20' ) end [2025-02-23 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:18:22] Production.INFO: ==26710== Releasing lock... [2025-02-23 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:18:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:19:05 [end_date_ymd] => 2025-02-23 14:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:19:05' and `end` < '2025-02-23 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-02-23 14:19:17] Production.INFO: count ==1387 [2025-02-23 14:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:19:05 - End Time 2025-02-23 14:19:05 [2025-02-23 14:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540321', 'tblTempUsageDetail_20' ) start [2025-02-23 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540321', 'tblTempUsageDetail_20' ) end [2025-02-23 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540321', 'tblTempVendorCDR_20' ) start [2025-02-23 14:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540321', 'tblTempVendorCDR_20' ) end [2025-02-23 14:19:17] Production.INFO: ProcessCDR(1,14540321,1,1,2) [2025-02-23 14:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540321', 'tblTempUsageDetail_20' ) start [2025-02-23 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540321', 'tblTempUsageDetail_20' ) end [2025-02-23 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:19:22] Production.INFO: ==26790== Releasing lock... [2025-02-23 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:19:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:20:06 [end_date_ymd] => 2025-02-23 14:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:20:06' and `end` < '2025-02-23 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-02-23 14:20:18] Production.INFO: count ==1390 [2025-02-23 14:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:20:06 - End Time 2025-02-23 14:20:06 [2025-02-23 14:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540326', 'tblTempUsageDetail_20' ) start [2025-02-23 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540326', 'tblTempUsageDetail_20' ) end [2025-02-23 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540326', 'tblTempVendorCDR_20' ) start [2025-02-23 14:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540326', 'tblTempVendorCDR_20' ) end [2025-02-23 14:20:18] Production.INFO: ProcessCDR(1,14540326,1,1,2) [2025-02-23 14:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540326', 'tblTempUsageDetail_20' ) start [2025-02-23 14:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540326', 'tblTempUsageDetail_20' ) end [2025-02-23 14:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:20:23] Production.INFO: ==26881== Releasing lock... [2025-02-23 14:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:20:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:21:06 [end_date_ymd] => 2025-02-23 14:21:06 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:21:06' and `end` < '2025-02-23 14: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-02-23 14:21:18] Production.INFO: count ==1296 [2025-02-23 14:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:21:06 - End Time 2025-02-23 14:21:06 [2025-02-23 14:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540332', 'tblTempUsageDetail_20' ) start [2025-02-23 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540332', 'tblTempUsageDetail_20' ) end [2025-02-23 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540332', 'tblTempVendorCDR_20' ) start [2025-02-23 14:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540332', 'tblTempVendorCDR_20' ) end [2025-02-23 14:21:18] Production.INFO: ProcessCDR(1,14540332,1,1,2) [2025-02-23 14:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540332', 'tblTempUsageDetail_20' ) start [2025-02-23 14:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540332', 'tblTempUsageDetail_20' ) end [2025-02-23 14:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:21:24] Production.INFO: ==26967== Releasing lock... [2025-02-23 14:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:21:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:22:04 [end_date_ymd] => 2025-02-23 14:22:04 [RateCDR] => 1 ) [2025-02-23 14:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:22:04' and `end` < '2025-02-23 14:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:22:16] Production.INFO: count ==1299 [2025-02-23 14:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:22:04 - End Time 2025-02-23 14:22:04 [2025-02-23 14:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540337', 'tblTempUsageDetail_20' ) start [2025-02-23 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540337', 'tblTempUsageDetail_20' ) end [2025-02-23 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540337', 'tblTempVendorCDR_20' ) start [2025-02-23 14:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540337', 'tblTempVendorCDR_20' ) end [2025-02-23 14:22:17] Production.INFO: ProcessCDR(1,14540337,1,1,2) [2025-02-23 14:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540337', 'tblTempUsageDetail_20' ) start [2025-02-23 14:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540337', 'tblTempUsageDetail_20' ) end [2025-02-23 14:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:22:20] Production.INFO: ==27056== Releasing lock... [2025-02-23 14:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:22:20] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:23:05 [end_date_ymd] => 2025-02-23 14:23:05 [RateCDR] => 1 ) [2025-02-23 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:23:05' and `end` < '2025-02-23 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:23:17] Production.INFO: count ==1301 [2025-02-23 14:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:23:05 - End Time 2025-02-23 14:23:05 [2025-02-23 14:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540342', 'tblTempUsageDetail_20' ) start [2025-02-23 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540342', 'tblTempUsageDetail_20' ) end [2025-02-23 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540342', 'tblTempVendorCDR_20' ) start [2025-02-23 14:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540342', 'tblTempVendorCDR_20' ) end [2025-02-23 14:23:17] Production.INFO: ProcessCDR(1,14540342,1,1,2) [2025-02-23 14:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540342', 'tblTempUsageDetail_20' ) start [2025-02-23 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540342', 'tblTempUsageDetail_20' ) end [2025-02-23 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:23:22] Production.INFO: ==27144== Releasing lock... [2025-02-23 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:23:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:24:05 [end_date_ymd] => 2025-02-23 14:24:05 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:24:05' and `end` < '2025-02-23 14: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-02-23 14:24:17] Production.INFO: count ==1303 [2025-02-23 14:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:24:05 - End Time 2025-02-23 14:24:05 [2025-02-23 14:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540347', 'tblTempUsageDetail_20' ) start [2025-02-23 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540347', 'tblTempUsageDetail_20' ) end [2025-02-23 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540347', 'tblTempVendorCDR_20' ) start [2025-02-23 14:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540347', 'tblTempVendorCDR_20' ) end [2025-02-23 14:24:17] Production.INFO: ProcessCDR(1,14540347,1,1,2) [2025-02-23 14:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540347', 'tblTempUsageDetail_20' ) start [2025-02-23 14:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540347', 'tblTempUsageDetail_20' ) end [2025-02-23 14:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:24:20] Production.INFO: ==27233== Releasing lock... [2025-02-23 14:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:24:20] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:25:05 [end_date_ymd] => 2025-02-23 14:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:25:05' and `end` < '2025-02-23 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-02-23 14:25:17] Production.INFO: count ==1310 [2025-02-23 14:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:25:05 - End Time 2025-02-23 14:25:05 [2025-02-23 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540352', 'tblTempUsageDetail_20' ) start [2025-02-23 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540352', 'tblTempUsageDetail_20' ) end [2025-02-23 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540352', 'tblTempVendorCDR_20' ) start [2025-02-23 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540352', 'tblTempVendorCDR_20' ) end [2025-02-23 14:25:17] Production.INFO: ProcessCDR(1,14540352,1,1,2) [2025-02-23 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540352', 'tblTempUsageDetail_20' ) start [2025-02-23 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540352', 'tblTempUsageDetail_20' ) end [2025-02-23 14:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:25:21] Production.INFO: ==27318== Releasing lock... [2025-02-23 14:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:25:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:26:06 [end_date_ymd] => 2025-02-23 14:26:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:26:06' and `end` < '2025-02-23 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-02-23 14:26:17] Production.INFO: count ==1313 [2025-02-23 14:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:26:06 - End Time 2025-02-23 14:26:06 [2025-02-23 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540357', 'tblTempUsageDetail_20' ) start [2025-02-23 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540357', 'tblTempUsageDetail_20' ) end [2025-02-23 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540357', 'tblTempVendorCDR_20' ) start [2025-02-23 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540357', 'tblTempVendorCDR_20' ) end [2025-02-23 14:26:18] Production.INFO: ProcessCDR(1,14540357,1,1,2) [2025-02-23 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540357', 'tblTempUsageDetail_20' ) start [2025-02-23 14:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540357', 'tblTempUsageDetail_20' ) end [2025-02-23 14:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:26:21] Production.INFO: ==27408== Releasing lock... [2025-02-23 14:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:26:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:27:05 [end_date_ymd] => 2025-02-23 14:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:27:05' and `end` < '2025-02-23 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-02-23 14:27:17] Production.INFO: count ==1315 [2025-02-23 14:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:27:05 - End Time 2025-02-23 14:27:05 [2025-02-23 14:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540362', 'tblTempUsageDetail_20' ) start [2025-02-23 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540362', 'tblTempUsageDetail_20' ) end [2025-02-23 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540362', 'tblTempVendorCDR_20' ) start [2025-02-23 14:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540362', 'tblTempVendorCDR_20' ) end [2025-02-23 14:27:17] Production.INFO: ProcessCDR(1,14540362,1,1,2) [2025-02-23 14:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540362', 'tblTempUsageDetail_20' ) start [2025-02-23 14:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540362', 'tblTempUsageDetail_20' ) end [2025-02-23 14:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:27:20] Production.INFO: ==27486== Releasing lock... [2025-02-23 14:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:27:20] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:28:06 [end_date_ymd] => 2025-02-23 14:28:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:28:06' and `end` < '2025-02-23 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-02-23 14:28:18] Production.INFO: count ==1317 [2025-02-23 14:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:28:06 - End Time 2025-02-23 14:28:06 [2025-02-23 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540367', 'tblTempUsageDetail_20' ) start [2025-02-23 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540367', 'tblTempUsageDetail_20' ) end [2025-02-23 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540367', 'tblTempVendorCDR_20' ) start [2025-02-23 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540367', 'tblTempVendorCDR_20' ) end [2025-02-23 14:28:18] Production.INFO: ProcessCDR(1,14540367,1,1,2) [2025-02-23 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540367', 'tblTempUsageDetail_20' ) start [2025-02-23 14:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540367', 'tblTempUsageDetail_20' ) end [2025-02-23 14:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:28:23] Production.INFO: ==27579== Releasing lock... [2025-02-23 14:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:28:23] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:29:05 [end_date_ymd] => 2025-02-23 14:29:05 [RateCDR] => 1 ) [2025-02-23 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:29:05' and `end` < '2025-02-23 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:29:18] Production.INFO: count ==1318 [2025-02-23 14:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:29:05 - End Time 2025-02-23 14:29:05 [2025-02-23 14:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540372', 'tblTempUsageDetail_20' ) start [2025-02-23 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540372', 'tblTempUsageDetail_20' ) end [2025-02-23 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540372', 'tblTempVendorCDR_20' ) start [2025-02-23 14:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540372', 'tblTempVendorCDR_20' ) end [2025-02-23 14:29:18] Production.INFO: ProcessCDR(1,14540372,1,1,2) [2025-02-23 14:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540372', 'tblTempUsageDetail_20' ) start [2025-02-23 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540372', 'tblTempUsageDetail_20' ) end [2025-02-23 14:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:29:23] Production.INFO: ==27660== Releasing lock... [2025-02-23 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:29:23] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:30:06 [end_date_ymd] => 2025-02-23 14:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:30:06' and `end` < '2025-02-23 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-02-23 14:30:18] Production.INFO: count ==1338 [2025-02-23 14:30:19] Production.ERROR: pbx CDR StartTime 2025-02-23 11:30:06 - End Time 2025-02-23 14:30:06 [2025-02-23 14:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540378', 'tblTempUsageDetail_20' ) start [2025-02-23 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540378', 'tblTempUsageDetail_20' ) end [2025-02-23 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540378', 'tblTempVendorCDR_20' ) start [2025-02-23 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540378', 'tblTempVendorCDR_20' ) end [2025-02-23 14:30:19] Production.INFO: ProcessCDR(1,14540378,1,1,2) [2025-02-23 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540378', 'tblTempUsageDetail_20' ) start [2025-02-23 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540378', 'tblTempUsageDetail_20' ) end [2025-02-23 14:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:30:22] Production.INFO: ==27796== Releasing lock... [2025-02-23 14:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:31:05 [end_date_ymd] => 2025-02-23 14:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:31:05' and `end` < '2025-02-23 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-02-23 14:31:17] Production.INFO: count ==1425 [2025-02-23 14:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:31:05 - End Time 2025-02-23 14:31:05 [2025-02-23 14:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540383', 'tblTempUsageDetail_20' ) start [2025-02-23 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540383', 'tblTempUsageDetail_20' ) end [2025-02-23 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540383', 'tblTempVendorCDR_20' ) start [2025-02-23 14:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540383', 'tblTempVendorCDR_20' ) end [2025-02-23 14:31:18] Production.INFO: ProcessCDR(1,14540383,1,1,2) [2025-02-23 14:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540383', 'tblTempUsageDetail_20' ) start [2025-02-23 14:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540383', 'tblTempUsageDetail_20' ) end [2025-02-23 14:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:31:22] Production.INFO: ==27888== Releasing lock... [2025-02-23 14:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:31:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:32:06 [end_date_ymd] => 2025-02-23 14:32:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:32:06' and `end` < '2025-02-23 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-02-23 14:32:18] Production.INFO: count ==1424 [2025-02-23 14:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:32:06 - End Time 2025-02-23 14:32:06 [2025-02-23 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540388', 'tblTempUsageDetail_20' ) start [2025-02-23 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540388', 'tblTempUsageDetail_20' ) end [2025-02-23 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540388', 'tblTempVendorCDR_20' ) start [2025-02-23 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540388', 'tblTempVendorCDR_20' ) end [2025-02-23 14:32:18] Production.INFO: ProcessCDR(1,14540388,1,1,2) [2025-02-23 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540388', 'tblTempUsageDetail_20' ) start [2025-02-23 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540388', 'tblTempUsageDetail_20' ) end [2025-02-23 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:32:23] Production.INFO: ==27974== Releasing lock... [2025-02-23 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:32:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:33:05 [end_date_ymd] => 2025-02-23 14:33:05 [RateCDR] => 1 ) [2025-02-23 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:33:05' and `end` < '2025-02-23 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:33:17] Production.INFO: count ==1424 [2025-02-23 14:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:33:05 - End Time 2025-02-23 14:33:05 [2025-02-23 14:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540393', 'tblTempUsageDetail_20' ) start [2025-02-23 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540393', 'tblTempUsageDetail_20' ) end [2025-02-23 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540393', 'tblTempVendorCDR_20' ) start [2025-02-23 14:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540393', 'tblTempVendorCDR_20' ) end [2025-02-23 14:33:17] Production.INFO: ProcessCDR(1,14540393,1,1,2) [2025-02-23 14:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540393', 'tblTempUsageDetail_20' ) start [2025-02-23 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540393', 'tblTempUsageDetail_20' ) end [2025-02-23 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:33:22] Production.INFO: ==28061== Releasing lock... [2025-02-23 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:33:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:34:06 [end_date_ymd] => 2025-02-23 14:34:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:34:06' and `end` < '2025-02-23 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-02-23 14:34:18] Production.INFO: count ==1421 [2025-02-23 14:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:34:06 - End Time 2025-02-23 14:34:06 [2025-02-23 14:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540398', 'tblTempUsageDetail_20' ) start [2025-02-23 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540398', 'tblTempUsageDetail_20' ) end [2025-02-23 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540398', 'tblTempVendorCDR_20' ) start [2025-02-23 14:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540398', 'tblTempVendorCDR_20' ) end [2025-02-23 14:34:18] Production.INFO: ProcessCDR(1,14540398,1,1,2) [2025-02-23 14:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540398', 'tblTempUsageDetail_20' ) start [2025-02-23 14:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540398', 'tblTempUsageDetail_20' ) end [2025-02-23 14:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:34:22] Production.INFO: ==28147== Releasing lock... [2025-02-23 14:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:34:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:35:05 [end_date_ymd] => 2025-02-23 14:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:35:05' and `end` < '2025-02-23 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-02-23 14:35:17] Production.INFO: count ==1421 [2025-02-23 14:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:35:05 - End Time 2025-02-23 14:35:05 [2025-02-23 14:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540403', 'tblTempUsageDetail_20' ) start [2025-02-23 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540403', 'tblTempUsageDetail_20' ) end [2025-02-23 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540403', 'tblTempVendorCDR_20' ) start [2025-02-23 14:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540403', 'tblTempVendorCDR_20' ) end [2025-02-23 14:35:17] Production.INFO: ProcessCDR(1,14540403,1,1,2) [2025-02-23 14:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540403', 'tblTempUsageDetail_20' ) start [2025-02-23 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540403', 'tblTempUsageDetail_20' ) end [2025-02-23 14:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:35:22] Production.INFO: ==28246== Releasing lock... [2025-02-23 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:36:05 [end_date_ymd] => 2025-02-23 14:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:36:05' and `end` < '2025-02-23 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-02-23 14:36:17] Production.INFO: count ==1421 [2025-02-23 14:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:36:05 - End Time 2025-02-23 14:36:05 [2025-02-23 14:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540408', 'tblTempUsageDetail_20' ) start [2025-02-23 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540408', 'tblTempUsageDetail_20' ) end [2025-02-23 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540408', 'tblTempVendorCDR_20' ) start [2025-02-23 14:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540408', 'tblTempVendorCDR_20' ) end [2025-02-23 14:36:18] Production.INFO: ProcessCDR(1,14540408,1,1,2) [2025-02-23 14:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540408', 'tblTempUsageDetail_20' ) start [2025-02-23 14:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540408', 'tblTempUsageDetail_20' ) end [2025-02-23 14:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:36:21] Production.INFO: ==28334== Releasing lock... [2025-02-23 14:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:36:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:37:05 [end_date_ymd] => 2025-02-23 14:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:37:05' and `end` < '2025-02-23 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-02-23 14:37:17] Production.INFO: count ==1422 [2025-02-23 14:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:37:05 - End Time 2025-02-23 14:37:05 [2025-02-23 14:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540413', 'tblTempUsageDetail_20' ) start [2025-02-23 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540413', 'tblTempUsageDetail_20' ) end [2025-02-23 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540413', 'tblTempVendorCDR_20' ) start [2025-02-23 14:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540413', 'tblTempVendorCDR_20' ) end [2025-02-23 14:37:18] Production.INFO: ProcessCDR(1,14540413,1,1,2) [2025-02-23 14:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540413', 'tblTempUsageDetail_20' ) start [2025-02-23 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540413', 'tblTempUsageDetail_20' ) end [2025-02-23 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:37:22] Production.INFO: ==28414== Releasing lock... [2025-02-23 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:37:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:38:05 [end_date_ymd] => 2025-02-23 14:38:05 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:38:05' and `end` < '2025-02-23 14: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-02-23 14:38:18] Production.INFO: count ==1422 [2025-02-23 14:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:38:05 - End Time 2025-02-23 14:38:05 [2025-02-23 14:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540418', 'tblTempUsageDetail_20' ) start [2025-02-23 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540418', 'tblTempUsageDetail_20' ) end [2025-02-23 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540418', 'tblTempVendorCDR_20' ) start [2025-02-23 14:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540418', 'tblTempVendorCDR_20' ) end [2025-02-23 14:38:18] Production.INFO: ProcessCDR(1,14540418,1,1,2) [2025-02-23 14:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540418', 'tblTempUsageDetail_20' ) start [2025-02-23 14:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540418', 'tblTempUsageDetail_20' ) end [2025-02-23 14:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:38:21] Production.INFO: ==28505== Releasing lock... [2025-02-23 14:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:38:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:39:05 [end_date_ymd] => 2025-02-23 14:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:39:05' and `end` < '2025-02-23 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-02-23 14:39:17] Production.INFO: count ==1424 [2025-02-23 14:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:39:05 - End Time 2025-02-23 14:39:05 [2025-02-23 14:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540423', 'tblTempUsageDetail_20' ) start [2025-02-23 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540423', 'tblTempUsageDetail_20' ) end [2025-02-23 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540423', 'tblTempVendorCDR_20' ) start [2025-02-23 14:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540423', 'tblTempVendorCDR_20' ) end [2025-02-23 14:39:17] Production.INFO: ProcessCDR(1,14540423,1,1,2) [2025-02-23 14:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540423', 'tblTempUsageDetail_20' ) start [2025-02-23 14:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540423', 'tblTempUsageDetail_20' ) end [2025-02-23 14:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:39:20] Production.INFO: ==28599== Releasing lock... [2025-02-23 14:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:39:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:40:07 [end_date_ymd] => 2025-02-23 14:40:07 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:40:07' and `end` < '2025-02-23 14: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-02-23 14:40:19] Production.INFO: count ==1424 [2025-02-23 14:40:19] Production.ERROR: pbx CDR StartTime 2025-02-23 11:40:07 - End Time 2025-02-23 14:40:07 [2025-02-23 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540429', 'tblTempUsageDetail_20' ) start [2025-02-23 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540429', 'tblTempUsageDetail_20' ) end [2025-02-23 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540429', 'tblTempVendorCDR_20' ) start [2025-02-23 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540429', 'tblTempVendorCDR_20' ) end [2025-02-23 14:40:19] Production.INFO: ProcessCDR(1,14540429,1,1,2) [2025-02-23 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540429', 'tblTempUsageDetail_20' ) start [2025-02-23 14:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540429', 'tblTempUsageDetail_20' ) end [2025-02-23 14:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:40:24] Production.INFO: ==28693== Releasing lock... [2025-02-23 14:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:40:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:41:05 [end_date_ymd] => 2025-02-23 14:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:41:05' and `end` < '2025-02-23 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-02-23 14:41:17] Production.INFO: count ==1411 [2025-02-23 14:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:41:05 - End Time 2025-02-23 14:41:05 [2025-02-23 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540434', 'tblTempUsageDetail_20' ) start [2025-02-23 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540434', 'tblTempUsageDetail_20' ) end [2025-02-23 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540434', 'tblTempVendorCDR_20' ) start [2025-02-23 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540434', 'tblTempVendorCDR_20' ) end [2025-02-23 14:41:18] Production.INFO: ProcessCDR(1,14540434,1,1,2) [2025-02-23 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540434', 'tblTempUsageDetail_20' ) start [2025-02-23 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540434', 'tblTempUsageDetail_20' ) end [2025-02-23 14:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:41:21] Production.INFO: ==28782== Releasing lock... [2025-02-23 14:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:41:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:42:05 [end_date_ymd] => 2025-02-23 14:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:42:05' and `end` < '2025-02-23 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-02-23 14:42:17] Production.INFO: count ==1412 [2025-02-23 14:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:42:05 - End Time 2025-02-23 14:42:05 [2025-02-23 14:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540439', 'tblTempUsageDetail_20' ) start [2025-02-23 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540439', 'tblTempUsageDetail_20' ) end [2025-02-23 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540439', 'tblTempVendorCDR_20' ) start [2025-02-23 14:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540439', 'tblTempVendorCDR_20' ) end [2025-02-23 14:42:17] Production.INFO: ProcessCDR(1,14540439,1,1,2) [2025-02-23 14:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540439', 'tblTempUsageDetail_20' ) start [2025-02-23 14:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540439', 'tblTempUsageDetail_20' ) end [2025-02-23 14:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:42:22] Production.INFO: ==28872== Releasing lock... [2025-02-23 14:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:42:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:43:04 [end_date_ymd] => 2025-02-23 14:43:04 [RateCDR] => 1 ) [2025-02-23 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:43:04' and `end` < '2025-02-23 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:43:16] Production.INFO: count ==1412 [2025-02-23 14:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:43:04 - End Time 2025-02-23 14:43:04 [2025-02-23 14:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540444', 'tblTempUsageDetail_20' ) start [2025-02-23 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540444', 'tblTempUsageDetail_20' ) end [2025-02-23 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540444', 'tblTempVendorCDR_20' ) start [2025-02-23 14:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540444', 'tblTempVendorCDR_20' ) end [2025-02-23 14:43:17] Production.INFO: ProcessCDR(1,14540444,1,1,2) [2025-02-23 14:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540444', 'tblTempUsageDetail_20' ) start [2025-02-23 14:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540444', 'tblTempUsageDetail_20' ) end [2025-02-23 14:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:43:20] Production.INFO: ==28955== Releasing lock... [2025-02-23 14:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:43:20] Production.INFO: 39 MB #Memory Used# [2025-02-23 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:44:05 [end_date_ymd] => 2025-02-23 14:44:05 [RateCDR] => 1 ) [2025-02-23 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:44:05' and `end` < '2025-02-23 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:44:17] Production.INFO: count ==1412 [2025-02-23 14:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:44:05 - End Time 2025-02-23 14:44:05 [2025-02-23 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540449', 'tblTempUsageDetail_20' ) start [2025-02-23 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540449', 'tblTempUsageDetail_20' ) end [2025-02-23 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540449', 'tblTempVendorCDR_20' ) start [2025-02-23 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540449', 'tblTempVendorCDR_20' ) end [2025-02-23 14:44:18] Production.INFO: ProcessCDR(1,14540449,1,1,2) [2025-02-23 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540449', 'tblTempUsageDetail_20' ) start [2025-02-23 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540449', 'tblTempUsageDetail_20' ) end [2025-02-23 14:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:44:21] Production.INFO: ==29041== Releasing lock... [2025-02-23 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:44:21] Production.INFO: 39 MB #Memory Used# [2025-02-23 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:45:06 [end_date_ymd] => 2025-02-23 14:45:06 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:45:06' and `end` < '2025-02-23 14: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-02-23 14:45:18] Production.INFO: count ==1415 [2025-02-23 14:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:45:06 - End Time 2025-02-23 14:45:06 [2025-02-23 14:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540454', 'tblTempUsageDetail_20' ) start [2025-02-23 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540454', 'tblTempUsageDetail_20' ) end [2025-02-23 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540454', 'tblTempVendorCDR_20' ) start [2025-02-23 14:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540454', 'tblTempVendorCDR_20' ) end [2025-02-23 14:45:18] Production.INFO: ProcessCDR(1,14540454,1,1,2) [2025-02-23 14:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540454', 'tblTempUsageDetail_20' ) start [2025-02-23 14:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540454', 'tblTempUsageDetail_20' ) end [2025-02-23 14:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:45:23] Production.INFO: ==29173== Releasing lock... [2025-02-23 14:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:45:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:46:05 [end_date_ymd] => 2025-02-23 14:46:05 [RateCDR] => 1 ) [2025-02-23 14:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:46:05' and `end` < '2025-02-23 14:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:46:17] Production.INFO: count ==1419 [2025-02-23 14:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:46:05 - End Time 2025-02-23 14:46:05 [2025-02-23 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540459', 'tblTempUsageDetail_20' ) start [2025-02-23 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540459', 'tblTempUsageDetail_20' ) end [2025-02-23 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540459', 'tblTempVendorCDR_20' ) start [2025-02-23 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540459', 'tblTempVendorCDR_20' ) end [2025-02-23 14:46:18] Production.INFO: ProcessCDR(1,14540459,1,1,2) [2025-02-23 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540459', 'tblTempUsageDetail_20' ) start [2025-02-23 14:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540459', 'tblTempUsageDetail_20' ) end [2025-02-23 14:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:46:23] Production.INFO: ==29265== Releasing lock... [2025-02-23 14:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:46:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:47:06 [end_date_ymd] => 2025-02-23 14:47:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:47:06' and `end` < '2025-02-23 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-02-23 14:47:18] Production.INFO: count ==1391 [2025-02-23 14:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:47:06 - End Time 2025-02-23 14:47:06 [2025-02-23 14:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540464', 'tblTempUsageDetail_20' ) start [2025-02-23 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540464', 'tblTempUsageDetail_20' ) end [2025-02-23 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540464', 'tblTempVendorCDR_20' ) start [2025-02-23 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540464', 'tblTempVendorCDR_20' ) end [2025-02-23 14:47:19] Production.INFO: ProcessCDR(1,14540464,1,1,2) [2025-02-23 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540464', 'tblTempUsageDetail_20' ) start [2025-02-23 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540464', 'tblTempUsageDetail_20' ) end [2025-02-23 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:47:22] Production.INFO: ==29349== Releasing lock... [2025-02-23 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:47:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:48:05 [end_date_ymd] => 2025-02-23 14:48:05 [RateCDR] => 1 ) [2025-02-23 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:48:05' and `end` < '2025-02-23 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:48:17] Production.INFO: count ==1283 [2025-02-23 14:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:48:05 - End Time 2025-02-23 14:48:05 [2025-02-23 14:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540469', 'tblTempUsageDetail_20' ) start [2025-02-23 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540469', 'tblTempUsageDetail_20' ) end [2025-02-23 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540469', 'tblTempVendorCDR_20' ) start [2025-02-23 14:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540469', 'tblTempVendorCDR_20' ) end [2025-02-23 14:48:18] Production.INFO: ProcessCDR(1,14540469,1,1,2) [2025-02-23 14:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540469', 'tblTempUsageDetail_20' ) start [2025-02-23 14:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540469', 'tblTempUsageDetail_20' ) end [2025-02-23 14:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:48:21] Production.INFO: ==29441== Releasing lock... [2025-02-23 14:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:48:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:49:05 [end_date_ymd] => 2025-02-23 14:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:49:05' and `end` < '2025-02-23 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-02-23 14:49:17] Production.INFO: count ==1291 [2025-02-23 14:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:49:05 - End Time 2025-02-23 14:49:05 [2025-02-23 14:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540474', 'tblTempUsageDetail_20' ) start [2025-02-23 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540474', 'tblTempUsageDetail_20' ) end [2025-02-23 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540474', 'tblTempVendorCDR_20' ) start [2025-02-23 14:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540474', 'tblTempVendorCDR_20' ) end [2025-02-23 14:49:18] Production.INFO: ProcessCDR(1,14540474,1,1,2) [2025-02-23 14:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540474', 'tblTempUsageDetail_20' ) start [2025-02-23 14:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540474', 'tblTempUsageDetail_20' ) end [2025-02-23 14:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:49:21] Production.INFO: ==29533== Releasing lock... [2025-02-23 14:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:49:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:50:05 [end_date_ymd] => 2025-02-23 14:50:05 [RateCDR] => 1 ) [2025-02-23 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:50:05' and `end` < '2025-02-23 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:50:17] Production.INFO: count ==1290 [2025-02-23 14:50:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:50:05 - End Time 2025-02-23 14:50:05 [2025-02-23 14:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540478', 'tblTempUsageDetail_20' ) start [2025-02-23 14:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540478', 'tblTempUsageDetail_20' ) end [2025-02-23 14:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540478', 'tblTempVendorCDR_20' ) start [2025-02-23 14:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540478', 'tblTempVendorCDR_20' ) end [2025-02-23 14:50:17] Production.INFO: ProcessCDR(1,14540478,1,1,2) [2025-02-23 14:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540478', 'tblTempUsageDetail_20' ) start [2025-02-23 14:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540478', 'tblTempUsageDetail_20' ) end [2025-02-23 14:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:50:21] Production.INFO: ==29621== Releasing lock... [2025-02-23 14:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:50:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:51:05 [end_date_ymd] => 2025-02-23 14:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:51:05' and `end` < '2025-02-23 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-02-23 14:51:17] Production.INFO: count ==1304 [2025-02-23 14:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:51:05 - End Time 2025-02-23 14:51:05 [2025-02-23 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540485', 'tblTempUsageDetail_20' ) start [2025-02-23 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540485', 'tblTempUsageDetail_20' ) end [2025-02-23 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540485', 'tblTempVendorCDR_20' ) start [2025-02-23 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540485', 'tblTempVendorCDR_20' ) end [2025-02-23 14:51:18] Production.INFO: ProcessCDR(1,14540485,1,1,2) [2025-02-23 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540485', 'tblTempUsageDetail_20' ) start [2025-02-23 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540485', 'tblTempUsageDetail_20' ) end [2025-02-23 14:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:51:21] Production.INFO: ==29713== Releasing lock... [2025-02-23 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:51:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:52:05 [end_date_ymd] => 2025-02-23 14:52:05 [RateCDR] => 1 ) [2025-02-23 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:52:05' and `end` < '2025-02-23 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:52:17] Production.INFO: count ==1309 [2025-02-23 14:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:52:05 - End Time 2025-02-23 14:52:05 [2025-02-23 14:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540490', 'tblTempUsageDetail_20' ) start [2025-02-23 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540490', 'tblTempUsageDetail_20' ) end [2025-02-23 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540490', 'tblTempVendorCDR_20' ) start [2025-02-23 14:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540490', 'tblTempVendorCDR_20' ) end [2025-02-23 14:52:18] Production.INFO: ProcessCDR(1,14540490,1,1,2) [2025-02-23 14:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540490', 'tblTempUsageDetail_20' ) start [2025-02-23 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540490', 'tblTempUsageDetail_20' ) end [2025-02-23 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:52:22] Production.INFO: ==29803== Releasing lock... [2025-02-23 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:52:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:53:05 [end_date_ymd] => 2025-02-23 14:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:53:05' and `end` < '2025-02-23 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-02-23 14:53:17] Production.INFO: count ==1312 [2025-02-23 14:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:53:05 - End Time 2025-02-23 14:53:05 [2025-02-23 14:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540495', 'tblTempUsageDetail_20' ) start [2025-02-23 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540495', 'tblTempUsageDetail_20' ) end [2025-02-23 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540495', 'tblTempVendorCDR_20' ) start [2025-02-23 14:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540495', 'tblTempVendorCDR_20' ) end [2025-02-23 14:53:18] Production.INFO: ProcessCDR(1,14540495,1,1,2) [2025-02-23 14:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540495', 'tblTempUsageDetail_20' ) start [2025-02-23 14:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540495', 'tblTempUsageDetail_20' ) end [2025-02-23 14:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:53:22] Production.INFO: ==29909== Releasing lock... [2025-02-23 14:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:54:05 [end_date_ymd] => 2025-02-23 14:54:05 [RateCDR] => 1 ) [2025-02-23 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:54:05' and `end` < '2025-02-23 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:54:17] Production.INFO: count ==1318 [2025-02-23 14:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:54:05 - End Time 2025-02-23 14:54:05 [2025-02-23 14:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540500', 'tblTempUsageDetail_20' ) start [2025-02-23 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540500', 'tblTempUsageDetail_20' ) end [2025-02-23 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540500', 'tblTempVendorCDR_20' ) start [2025-02-23 14:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540500', 'tblTempVendorCDR_20' ) end [2025-02-23 14:54:17] Production.INFO: ProcessCDR(1,14540500,1,1,2) [2025-02-23 14:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540500', 'tblTempUsageDetail_20' ) start [2025-02-23 14:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540500', 'tblTempUsageDetail_20' ) end [2025-02-23 14:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:54:21] Production.INFO: ==29989== Releasing lock... [2025-02-23 14:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:54:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:55:06 [end_date_ymd] => 2025-02-23 14:55:06 [RateCDR] => 1 ) [2025-02-23 14: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-02-23 11:55:06' and `end` < '2025-02-23 14: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-02-23 14:55:18] Production.INFO: count ==1318 [2025-02-23 14:55:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:55:06 - End Time 2025-02-23 14:55:06 [2025-02-23 14:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540505', 'tblTempUsageDetail_20' ) start [2025-02-23 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540505', 'tblTempUsageDetail_20' ) end [2025-02-23 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540505', 'tblTempVendorCDR_20' ) start [2025-02-23 14:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540505', 'tblTempVendorCDR_20' ) end [2025-02-23 14:55:18] Production.INFO: ProcessCDR(1,14540505,1,1,2) [2025-02-23 14:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540505', 'tblTempUsageDetail_20' ) start [2025-02-23 14:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540505', 'tblTempUsageDetail_20' ) end [2025-02-23 14:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:55:23] Production.INFO: ==30078== Releasing lock... [2025-02-23 14:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:55:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:56:05 [end_date_ymd] => 2025-02-23 14:56:05 [RateCDR] => 1 ) [2025-02-23 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:56:05' and `end` < '2025-02-23 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:56:17] Production.INFO: count ==1317 [2025-02-23 14:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:56:05 - End Time 2025-02-23 14:56:05 [2025-02-23 14:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540510', 'tblTempUsageDetail_20' ) start [2025-02-23 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540510', 'tblTempUsageDetail_20' ) end [2025-02-23 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540510', 'tblTempVendorCDR_20' ) start [2025-02-23 14:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540510', 'tblTempVendorCDR_20' ) end [2025-02-23 14:56:17] Production.INFO: ProcessCDR(1,14540510,1,1,2) [2025-02-23 14:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540510', 'tblTempUsageDetail_20' ) start [2025-02-23 14:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540510', 'tblTempUsageDetail_20' ) end [2025-02-23 14:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:56:21] Production.INFO: ==30174== Releasing lock... [2025-02-23 14:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:56:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:57:05 [end_date_ymd] => 2025-02-23 14:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:57:05' and `end` < '2025-02-23 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-02-23 14:57:17] Production.INFO: count ==1320 [2025-02-23 14:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 11:57:05 - End Time 2025-02-23 14:57:05 [2025-02-23 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540515', 'tblTempUsageDetail_20' ) start [2025-02-23 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540515', 'tblTempUsageDetail_20' ) end [2025-02-23 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540515', 'tblTempVendorCDR_20' ) start [2025-02-23 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540515', 'tblTempVendorCDR_20' ) end [2025-02-23 14:57:18] Production.INFO: ProcessCDR(1,14540515,1,1,2) [2025-02-23 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540515', 'tblTempUsageDetail_20' ) start [2025-02-23 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540515', 'tblTempUsageDetail_20' ) end [2025-02-23 14:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:57:21] Production.INFO: ==30254== Releasing lock... [2025-02-23 14:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:57:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:58:05 [end_date_ymd] => 2025-02-23 14:58:05 [RateCDR] => 1 ) [2025-02-23 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 11:58:05' and `end` < '2025-02-23 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 14:58:16] Production.INFO: count ==1324 [2025-02-23 14:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:58:05 - End Time 2025-02-23 14:58:05 [2025-02-23 14:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540520', 'tblTempUsageDetail_20' ) start [2025-02-23 14:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540520', 'tblTempUsageDetail_20' ) end [2025-02-23 14:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540520', 'tblTempVendorCDR_20' ) start [2025-02-23 14:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540520', 'tblTempVendorCDR_20' ) end [2025-02-23 14:58:17] Production.INFO: ProcessCDR(1,14540520,1,1,2) [2025-02-23 14:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540520', 'tblTempUsageDetail_20' ) start [2025-02-23 14:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540520', 'tblTempUsageDetail_20' ) end [2025-02-23 14:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:58:20] Production.INFO: ==30340== Releasing lock... [2025-02-23 14:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:58:20] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 11:59:05 [end_date_ymd] => 2025-02-23 14:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 11:59:05' and `end` < '2025-02-23 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-02-23 14:59:17] Production.INFO: count ==1238 [2025-02-23 14:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 11:59:05 - End Time 2025-02-23 14:59:05 [2025-02-23 14:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 14:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540524', 'tblTempUsageDetail_20' ) start [2025-02-23 14:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540524', 'tblTempUsageDetail_20' ) end [2025-02-23 14:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540524', 'tblTempVendorCDR_20' ) start [2025-02-23 14:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540524', 'tblTempVendorCDR_20' ) end [2025-02-23 14:59:17] Production.INFO: ProcessCDR(1,14540524,1,1,2) [2025-02-23 14:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 14:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 14:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540524', 'tblTempUsageDetail_20' ) start [2025-02-23 14:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540524', 'tblTempUsageDetail_20' ) end [2025-02-23 14:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 14:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 14:59:20] Production.INFO: ==30440== Releasing lock... [2025-02-23 14:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 14:59:20] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:00:07 [end_date_ymd] => 2025-02-23 15:00:07 [RateCDR] => 1 ) [2025-02-23 15: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-02-23 12:00:07' and `end` < '2025-02-23 15: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-02-23 15:00:19] Production.INFO: count ==1210 [2025-02-23 15:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 12:00:07 - End Time 2025-02-23 15:00:07 [2025-02-23 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540531', 'tblTempUsageDetail_20' ) start [2025-02-23 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540531', 'tblTempUsageDetail_20' ) end [2025-02-23 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540531', 'tblTempVendorCDR_20' ) start [2025-02-23 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540531', 'tblTempVendorCDR_20' ) end [2025-02-23 15:00:19] Production.INFO: ProcessCDR(1,14540531,1,1,2) [2025-02-23 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540531', 'tblTempUsageDetail_20' ) start [2025-02-23 15:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540531', 'tblTempUsageDetail_20' ) end [2025-02-23 15:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:00:24] Production.INFO: ==30568== Releasing lock... [2025-02-23 15:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:00:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:01:05 [end_date_ymd] => 2025-02-23 15:01:05 [RateCDR] => 1 ) [2025-02-23 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:01:05' and `end` < '2025-02-23 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:01:17] Production.INFO: count ==1211 [2025-02-23 15:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:01:05 - End Time 2025-02-23 15:01:05 [2025-02-23 15:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540536', 'tblTempUsageDetail_20' ) start [2025-02-23 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540536', 'tblTempUsageDetail_20' ) end [2025-02-23 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540536', 'tblTempVendorCDR_20' ) start [2025-02-23 15:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540536', 'tblTempVendorCDR_20' ) end [2025-02-23 15:01:17] Production.INFO: ProcessCDR(1,14540536,1,1,2) [2025-02-23 15:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540536', 'tblTempUsageDetail_20' ) start [2025-02-23 15:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540536', 'tblTempUsageDetail_20' ) end [2025-02-23 15:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:01:20] Production.INFO: ==30662== Releasing lock... [2025-02-23 15:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:01:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:02:06 [end_date_ymd] => 2025-02-23 15:02:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:02:06' and `end` < '2025-02-23 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-02-23 15:02:18] Production.INFO: count ==1203 [2025-02-23 15:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:02:06 - End Time 2025-02-23 15:02:06 [2025-02-23 15:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540541', 'tblTempUsageDetail_20' ) start [2025-02-23 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540541', 'tblTempUsageDetail_20' ) end [2025-02-23 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540541', 'tblTempVendorCDR_20' ) start [2025-02-23 15:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540541', 'tblTempVendorCDR_20' ) end [2025-02-23 15:02:18] Production.INFO: ProcessCDR(1,14540541,1,1,2) [2025-02-23 15:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540541', 'tblTempUsageDetail_20' ) start [2025-02-23 15:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540541', 'tblTempUsageDetail_20' ) end [2025-02-23 15:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:02:23] Production.INFO: ==30823== Releasing lock... [2025-02-23 15:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:02:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:03:05 [end_date_ymd] => 2025-02-23 15:03:05 [RateCDR] => 1 ) [2025-02-23 15:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:03:05' and `end` < '2025-02-23 15:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:03:17] Production.INFO: count ==1204 [2025-02-23 15:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:03:05 - End Time 2025-02-23 15:03:05 [2025-02-23 15:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540546', 'tblTempUsageDetail_20' ) start [2025-02-23 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540546', 'tblTempUsageDetail_20' ) end [2025-02-23 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540546', 'tblTempVendorCDR_20' ) start [2025-02-23 15:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540546', 'tblTempVendorCDR_20' ) end [2025-02-23 15:03:17] Production.INFO: ProcessCDR(1,14540546,1,1,2) [2025-02-23 15:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540546', 'tblTempUsageDetail_20' ) start [2025-02-23 15:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540546', 'tblTempUsageDetail_20' ) end [2025-02-23 15:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:03:22] Production.INFO: ==30906== Releasing lock... [2025-02-23 15:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:03:22] Production.INFO: 37 MB #Memory Used# [2025-02-23 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:04:06 [end_date_ymd] => 2025-02-23 15:04:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:04:06' and `end` < '2025-02-23 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-02-23 15:04:18] Production.INFO: count ==1209 [2025-02-23 15:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:04:06 - End Time 2025-02-23 15:04:06 [2025-02-23 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540551', 'tblTempUsageDetail_20' ) start [2025-02-23 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540551', 'tblTempUsageDetail_20' ) end [2025-02-23 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540551', 'tblTempVendorCDR_20' ) start [2025-02-23 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540551', 'tblTempVendorCDR_20' ) end [2025-02-23 15:04:18] Production.INFO: ProcessCDR(1,14540551,1,1,2) [2025-02-23 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540551', 'tblTempUsageDetail_20' ) start [2025-02-23 15:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540551', 'tblTempUsageDetail_20' ) end [2025-02-23 15:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:04:22] Production.INFO: ==30989== Releasing lock... [2025-02-23 15:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:04:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:05:05 [end_date_ymd] => 2025-02-23 15:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:05:05' and `end` < '2025-02-23 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-02-23 15:05:17] Production.INFO: count ==1201 [2025-02-23 15:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:05:05 - End Time 2025-02-23 15:05:05 [2025-02-23 15:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540556', 'tblTempUsageDetail_20' ) start [2025-02-23 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540556', 'tblTempUsageDetail_20' ) end [2025-02-23 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540556', 'tblTempVendorCDR_20' ) start [2025-02-23 15:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540556', 'tblTempVendorCDR_20' ) end [2025-02-23 15:05:17] Production.INFO: ProcessCDR(1,14540556,1,1,2) [2025-02-23 15:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540556', 'tblTempUsageDetail_20' ) start [2025-02-23 15:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540556', 'tblTempUsageDetail_20' ) end [2025-02-23 15:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:05:20] Production.INFO: ==31143== Releasing lock... [2025-02-23 15:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:05:20] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:06:05 [end_date_ymd] => 2025-02-23 15:06:05 [RateCDR] => 1 ) [2025-02-23 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:06:05' and `end` < '2025-02-23 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:06:17] Production.INFO: count ==1200 [2025-02-23 15:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:06:05 - End Time 2025-02-23 15:06:05 [2025-02-23 15:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540561', 'tblTempUsageDetail_20' ) start [2025-02-23 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540561', 'tblTempUsageDetail_20' ) end [2025-02-23 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540561', 'tblTempVendorCDR_20' ) start [2025-02-23 15:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540561', 'tblTempVendorCDR_20' ) end [2025-02-23 15:06:18] Production.INFO: ProcessCDR(1,14540561,1,1,2) [2025-02-23 15:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540561', 'tblTempUsageDetail_20' ) start [2025-02-23 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540561', 'tblTempUsageDetail_20' ) end [2025-02-23 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:06:22] Production.INFO: ==31226== Releasing lock... [2025-02-23 15:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:07:05 [end_date_ymd] => 2025-02-23 15:07:05 [RateCDR] => 1 ) [2025-02-23 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:07:05' and `end` < '2025-02-23 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:07:17] Production.INFO: count ==1201 [2025-02-23 15:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:07:05 - End Time 2025-02-23 15:07:05 [2025-02-23 15:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540566', 'tblTempUsageDetail_20' ) start [2025-02-23 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540566', 'tblTempUsageDetail_20' ) end [2025-02-23 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540566', 'tblTempVendorCDR_20' ) start [2025-02-23 15:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540566', 'tblTempVendorCDR_20' ) end [2025-02-23 15:07:17] Production.INFO: ProcessCDR(1,14540566,1,1,2) [2025-02-23 15:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540566', 'tblTempUsageDetail_20' ) start [2025-02-23 15:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540566', 'tblTempUsageDetail_20' ) end [2025-02-23 15:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:07:22] Production.INFO: ==31314== Releasing lock... [2025-02-23 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:08:06 [end_date_ymd] => 2025-02-23 15:08:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:08:06' and `end` < '2025-02-23 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-02-23 15:08:18] Production.INFO: count ==1203 [2025-02-23 15:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:08:06 - End Time 2025-02-23 15:08:06 [2025-02-23 15:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540571', 'tblTempUsageDetail_20' ) start [2025-02-23 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540571', 'tblTempUsageDetail_20' ) end [2025-02-23 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540571', 'tblTempVendorCDR_20' ) start [2025-02-23 15:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540571', 'tblTempVendorCDR_20' ) end [2025-02-23 15:08:18] Production.INFO: ProcessCDR(1,14540571,1,1,2) [2025-02-23 15:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540571', 'tblTempUsageDetail_20' ) start [2025-02-23 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540571', 'tblTempUsageDetail_20' ) end [2025-02-23 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:08:22] Production.INFO: ==31436== Releasing lock... [2025-02-23 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:08:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:09:05 [end_date_ymd] => 2025-02-23 15:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:09:05' and `end` < '2025-02-23 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-02-23 15:09:17] Production.INFO: count ==1208 [2025-02-23 15:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:09:05 - End Time 2025-02-23 15:09:05 [2025-02-23 15:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540576', 'tblTempUsageDetail_20' ) start [2025-02-23 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540576', 'tblTempUsageDetail_20' ) end [2025-02-23 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540576', 'tblTempVendorCDR_20' ) start [2025-02-23 15:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540576', 'tblTempVendorCDR_20' ) end [2025-02-23 15:09:17] Production.INFO: ProcessCDR(1,14540576,1,1,2) [2025-02-23 15:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540576', 'tblTempUsageDetail_20' ) start [2025-02-23 15:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540576', 'tblTempUsageDetail_20' ) end [2025-02-23 15:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:09:22] Production.INFO: ==31551== Releasing lock... [2025-02-23 15:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:09:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:10:06 [end_date_ymd] => 2025-02-23 15:10:06 [RateCDR] => 1 ) [2025-02-23 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:10:06' and `end` < '2025-02-23 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:10:18] Production.INFO: count ==1209 [2025-02-23 15:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 12:10:06 - End Time 2025-02-23 15:10:06 [2025-02-23 15:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540582', 'tblTempUsageDetail_20' ) start [2025-02-23 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540582', 'tblTempUsageDetail_20' ) end [2025-02-23 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540582', 'tblTempVendorCDR_20' ) start [2025-02-23 15:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540582', 'tblTempVendorCDR_20' ) end [2025-02-23 15:10:19] Production.INFO: ProcessCDR(1,14540582,1,1,2) [2025-02-23 15:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540582', 'tblTempUsageDetail_20' ) start [2025-02-23 15:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540582', 'tblTempUsageDetail_20' ) end [2025-02-23 15:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:10:23] Production.INFO: ==31637== Releasing lock... [2025-02-23 15:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:10:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:11:04 [end_date_ymd] => 2025-02-23 15:11:04 [RateCDR] => 1 ) [2025-02-23 15: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-02-23 12:11:04' and `end` < '2025-02-23 15: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-02-23 15:11:16] Production.INFO: count ==1252 [2025-02-23 15:11:16] Production.ERROR: pbx CDR StartTime 2025-02-23 12:11:04 - End Time 2025-02-23 15:11:04 [2025-02-23 15:11:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540587', 'tblTempUsageDetail_20' ) start [2025-02-23 15:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540587', 'tblTempUsageDetail_20' ) end [2025-02-23 15:11:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540587', 'tblTempVendorCDR_20' ) start [2025-02-23 15:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540587', 'tblTempVendorCDR_20' ) end [2025-02-23 15:11:17] Production.INFO: ProcessCDR(1,14540587,1,1,2) [2025-02-23 15:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540587', 'tblTempUsageDetail_20' ) start [2025-02-23 15:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540587', 'tblTempUsageDetail_20' ) end [2025-02-23 15:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:11:21] Production.INFO: ==31714== Releasing lock... [2025-02-23 15:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:11:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:12:05 [end_date_ymd] => 2025-02-23 15:12:05 [RateCDR] => 1 ) [2025-02-23 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:12:05' and `end` < '2025-02-23 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:12:17] Production.INFO: count ==1254 [2025-02-23 15:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:12:05 - End Time 2025-02-23 15:12:05 [2025-02-23 15:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540592', 'tblTempUsageDetail_20' ) start [2025-02-23 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540592', 'tblTempUsageDetail_20' ) end [2025-02-23 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540592', 'tblTempVendorCDR_20' ) start [2025-02-23 15:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540592', 'tblTempVendorCDR_20' ) end [2025-02-23 15:12:17] Production.INFO: ProcessCDR(1,14540592,1,1,2) [2025-02-23 15:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540592', 'tblTempUsageDetail_20' ) start [2025-02-23 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540592', 'tblTempUsageDetail_20' ) end [2025-02-23 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:12:22] Production.INFO: ==31875== Releasing lock... [2025-02-23 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:13:06 [end_date_ymd] => 2025-02-23 15:13:06 [RateCDR] => 1 ) [2025-02-23 15: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-02-23 12:13:06' and `end` < '2025-02-23 15: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-02-23 15:13:18] Production.INFO: count ==1257 [2025-02-23 15:13:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:13:06 - End Time 2025-02-23 15:13:06 [2025-02-23 15:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540597', 'tblTempUsageDetail_20' ) start [2025-02-23 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540597', 'tblTempUsageDetail_20' ) end [2025-02-23 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540597', 'tblTempVendorCDR_20' ) start [2025-02-23 15:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540597', 'tblTempVendorCDR_20' ) end [2025-02-23 15:13:18] Production.INFO: ProcessCDR(1,14540597,1,1,2) [2025-02-23 15:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540597', 'tblTempUsageDetail_20' ) start [2025-02-23 15:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540597', 'tblTempUsageDetail_20' ) end [2025-02-23 15:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:13:21] Production.INFO: ==31959== Releasing lock... [2025-02-23 15:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:13:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:14:05 [end_date_ymd] => 2025-02-23 15:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:14:05' and `end` < '2025-02-23 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-02-23 15:14:17] Production.INFO: count ==1255 [2025-02-23 15:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:14:05 - End Time 2025-02-23 15:14:05 [2025-02-23 15:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540602', 'tblTempUsageDetail_20' ) start [2025-02-23 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540602', 'tblTempUsageDetail_20' ) end [2025-02-23 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540602', 'tblTempVendorCDR_20' ) start [2025-02-23 15:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540602', 'tblTempVendorCDR_20' ) end [2025-02-23 15:14:17] Production.INFO: ProcessCDR(1,14540602,1,1,2) [2025-02-23 15:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540602', 'tblTempUsageDetail_20' ) start [2025-02-23 15:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540602', 'tblTempUsageDetail_20' ) end [2025-02-23 15:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:14:22] Production.INFO: ==32039== Releasing lock... [2025-02-23 15:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:14:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:15:05 [end_date_ymd] => 2025-02-23 15:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:15:05' and `end` < '2025-02-23 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-02-23 15:15:17] Production.INFO: count ==1270 [2025-02-23 15:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:15:05 - End Time 2025-02-23 15:15:05 [2025-02-23 15:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540607', 'tblTempUsageDetail_20' ) start [2025-02-23 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540607', 'tblTempUsageDetail_20' ) end [2025-02-23 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540607', 'tblTempVendorCDR_20' ) start [2025-02-23 15:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540607', 'tblTempVendorCDR_20' ) end [2025-02-23 15:15:17] Production.INFO: ProcessCDR(1,14540607,1,1,2) [2025-02-23 15:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540607', 'tblTempUsageDetail_20' ) start [2025-02-23 15:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540607', 'tblTempUsageDetail_20' ) end [2025-02-23 15:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:15:22] Production.INFO: ==32198== Releasing lock... [2025-02-23 15:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:15:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:16:05 [end_date_ymd] => 2025-02-23 15:16:05 [RateCDR] => 1 ) [2025-02-23 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:16:05' and `end` < '2025-02-23 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:16:17] Production.INFO: count ==1270 [2025-02-23 15:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:16:05 - End Time 2025-02-23 15:16:05 [2025-02-23 15:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540612', 'tblTempUsageDetail_20' ) start [2025-02-23 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540612', 'tblTempUsageDetail_20' ) end [2025-02-23 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540612', 'tblTempVendorCDR_20' ) start [2025-02-23 15:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540612', 'tblTempVendorCDR_20' ) end [2025-02-23 15:16:17] Production.INFO: ProcessCDR(1,14540612,1,1,2) [2025-02-23 15:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540612', 'tblTempUsageDetail_20' ) start [2025-02-23 15:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540612', 'tblTempUsageDetail_20' ) end [2025-02-23 15:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:16:22] Production.INFO: ==32316== Releasing lock... [2025-02-23 15:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:16:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:17:04 [end_date_ymd] => 2025-02-23 15:17:04 [RateCDR] => 1 ) [2025-02-23 15:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:17:04' and `end` < '2025-02-23 15:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:17:16] Production.INFO: count ==1270 [2025-02-23 15:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:17:04 - End Time 2025-02-23 15:17:04 [2025-02-23 15:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540617', 'tblTempUsageDetail_20' ) start [2025-02-23 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540617', 'tblTempUsageDetail_20' ) end [2025-02-23 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540617', 'tblTempVendorCDR_20' ) start [2025-02-23 15:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540617', 'tblTempVendorCDR_20' ) end [2025-02-23 15:17:17] Production.INFO: ProcessCDR(1,14540617,1,1,2) [2025-02-23 15:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540617', 'tblTempUsageDetail_20' ) start [2025-02-23 15:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540617', 'tblTempUsageDetail_20' ) end [2025-02-23 15:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:17:21] Production.INFO: ==32392== Releasing lock... [2025-02-23 15:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:17:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:18:05 [end_date_ymd] => 2025-02-23 15:18:05 [RateCDR] => 1 ) [2025-02-23 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:18:05' and `end` < '2025-02-23 15: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-02-23 15:18:17] Production.INFO: count ==1271 [2025-02-23 15:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:18:05 - End Time 2025-02-23 15:18:05 [2025-02-23 15:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540622', 'tblTempUsageDetail_20' ) start [2025-02-23 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540622', 'tblTempUsageDetail_20' ) end [2025-02-23 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540622', 'tblTempVendorCDR_20' ) start [2025-02-23 15:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540622', 'tblTempVendorCDR_20' ) end [2025-02-23 15:18:18] Production.INFO: ProcessCDR(1,14540622,1,1,2) [2025-02-23 15:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540622', 'tblTempUsageDetail_20' ) start [2025-02-23 15:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540622', 'tblTempUsageDetail_20' ) end [2025-02-23 15:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:18:22] Production.INFO: ==32479== Releasing lock... [2025-02-23 15:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:18:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:19:06 [end_date_ymd] => 2025-02-23 15:19:06 [RateCDR] => 1 ) [2025-02-23 15: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-02-23 12:19:06' and `end` < '2025-02-23 15: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-02-23 15:19:18] Production.INFO: count ==1271 [2025-02-23 15:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:19:06 - End Time 2025-02-23 15:19:06 [2025-02-23 15:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540627', 'tblTempUsageDetail_20' ) start [2025-02-23 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540627', 'tblTempUsageDetail_20' ) end [2025-02-23 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540627', 'tblTempVendorCDR_20' ) start [2025-02-23 15:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540627', 'tblTempVendorCDR_20' ) end [2025-02-23 15:19:18] Production.INFO: ProcessCDR(1,14540627,1,1,2) [2025-02-23 15:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540627', 'tblTempUsageDetail_20' ) start [2025-02-23 15:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540627', 'tblTempUsageDetail_20' ) end [2025-02-23 15:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:19:23] Production.INFO: ==32555== Releasing lock... [2025-02-23 15:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:19:23] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:20:05 [end_date_ymd] => 2025-02-23 15:20:05 [RateCDR] => 1 ) [2025-02-23 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:20:05' and `end` < '2025-02-23 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:20:17] Production.INFO: count ==1272 [2025-02-23 15:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:20:05 - End Time 2025-02-23 15:20:05 [2025-02-23 15:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540632', 'tblTempUsageDetail_20' ) start [2025-02-23 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540632', 'tblTempUsageDetail_20' ) end [2025-02-23 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540632', 'tblTempVendorCDR_20' ) start [2025-02-23 15:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540632', 'tblTempVendorCDR_20' ) end [2025-02-23 15:20:18] Production.INFO: ProcessCDR(1,14540632,1,1,2) [2025-02-23 15:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540632', 'tblTempUsageDetail_20' ) start [2025-02-23 15:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540632', 'tblTempUsageDetail_20' ) end [2025-02-23 15:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:20:23] Production.INFO: ==32632== Releasing lock... [2025-02-23 15:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:20:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:21:05 [end_date_ymd] => 2025-02-23 15:21:05 [RateCDR] => 1 ) [2025-02-23 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:21:05' and `end` < '2025-02-23 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:21:17] Production.INFO: count ==1261 [2025-02-23 15:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:21:05 - End Time 2025-02-23 15:21:05 [2025-02-23 15:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540638', 'tblTempUsageDetail_20' ) start [2025-02-23 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540638', 'tblTempUsageDetail_20' ) end [2025-02-23 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540638', 'tblTempVendorCDR_20' ) start [2025-02-23 15:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540638', 'tblTempVendorCDR_20' ) end [2025-02-23 15:21:18] Production.INFO: ProcessCDR(1,14540638,1,1,2) [2025-02-23 15:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540638', 'tblTempUsageDetail_20' ) start [2025-02-23 15:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540638', 'tblTempUsageDetail_20' ) end [2025-02-23 15:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:21:21] Production.INFO: ==32718== Releasing lock... [2025-02-23 15:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:21:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:22:05 [end_date_ymd] => 2025-02-23 15:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:22:05' and `end` < '2025-02-23 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-02-23 15:22:17] Production.INFO: count ==1260 [2025-02-23 15:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:22:05 - End Time 2025-02-23 15:22:05 [2025-02-23 15:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540643', 'tblTempUsageDetail_20' ) start [2025-02-23 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540643', 'tblTempUsageDetail_20' ) end [2025-02-23 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540643', 'tblTempVendorCDR_20' ) start [2025-02-23 15:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540643', 'tblTempVendorCDR_20' ) end [2025-02-23 15:22:17] Production.INFO: ProcessCDR(1,14540643,1,1,2) [2025-02-23 15:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540643', 'tblTempUsageDetail_20' ) start [2025-02-23 15:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540643', 'tblTempUsageDetail_20' ) end [2025-02-23 15:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:22:20] Production.INFO: ==337== Releasing lock... [2025-02-23 15:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:22:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:23:05 [end_date_ymd] => 2025-02-23 15:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:23:05' and `end` < '2025-02-23 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-02-23 15:23:18] Production.INFO: count ==1255 [2025-02-23 15:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:23:05 - End Time 2025-02-23 15:23:05 [2025-02-23 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540648', 'tblTempUsageDetail_20' ) start [2025-02-23 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540648', 'tblTempUsageDetail_20' ) end [2025-02-23 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540648', 'tblTempVendorCDR_20' ) start [2025-02-23 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540648', 'tblTempVendorCDR_20' ) end [2025-02-23 15:23:18] Production.INFO: ProcessCDR(1,14540648,1,1,2) [2025-02-23 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540648', 'tblTempUsageDetail_20' ) start [2025-02-23 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540648', 'tblTempUsageDetail_20' ) end [2025-02-23 15:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:23:21] Production.INFO: ==432== Releasing lock... [2025-02-23 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:23:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:24:05 [end_date_ymd] => 2025-02-23 15:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:24:05' and `end` < '2025-02-23 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-02-23 15:24:17] Production.INFO: count ==1256 [2025-02-23 15:24:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:24:05 - End Time 2025-02-23 15:24:05 [2025-02-23 15:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540653', 'tblTempUsageDetail_20' ) start [2025-02-23 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540653', 'tblTempUsageDetail_20' ) end [2025-02-23 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540653', 'tblTempVendorCDR_20' ) start [2025-02-23 15:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540653', 'tblTempVendorCDR_20' ) end [2025-02-23 15:24:17] Production.INFO: ProcessCDR(1,14540653,1,1,2) [2025-02-23 15:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540653', 'tblTempUsageDetail_20' ) start [2025-02-23 15:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540653', 'tblTempUsageDetail_20' ) end [2025-02-23 15:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:24:22] Production.INFO: ==510== Releasing lock... [2025-02-23 15:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:24:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:25:05 [end_date_ymd] => 2025-02-23 15:25:05 [RateCDR] => 1 ) [2025-02-23 15: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-02-23 12:25:05' and `end` < '2025-02-23 15: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-02-23 15:25:17] Production.INFO: count ==1257 [2025-02-23 15:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:25:05 - End Time 2025-02-23 15:25:05 [2025-02-23 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540658', 'tblTempUsageDetail_20' ) start [2025-02-23 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540658', 'tblTempUsageDetail_20' ) end [2025-02-23 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540658', 'tblTempVendorCDR_20' ) start [2025-02-23 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540658', 'tblTempVendorCDR_20' ) end [2025-02-23 15:25:18] Production.INFO: ProcessCDR(1,14540658,1,1,2) [2025-02-23 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540658', 'tblTempUsageDetail_20' ) start [2025-02-23 15:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540658', 'tblTempUsageDetail_20' ) end [2025-02-23 15:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:25:22] Production.INFO: ==586== Releasing lock... [2025-02-23 15:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:25:22] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:26:05 [end_date_ymd] => 2025-02-23 15:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:26:05' and `end` < '2025-02-23 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-02-23 15:26:17] Production.INFO: count ==1257 [2025-02-23 15:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:26:05 - End Time 2025-02-23 15:26:05 [2025-02-23 15:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540663', 'tblTempUsageDetail_20' ) start [2025-02-23 15:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540663', 'tblTempUsageDetail_20' ) end [2025-02-23 15:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540663', 'tblTempVendorCDR_20' ) start [2025-02-23 15:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540663', 'tblTempVendorCDR_20' ) end [2025-02-23 15:26:17] Production.INFO: ProcessCDR(1,14540663,1,1,2) [2025-02-23 15:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540663', 'tblTempUsageDetail_20' ) start [2025-02-23 15:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540663', 'tblTempUsageDetail_20' ) end [2025-02-23 15:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:26:21] Production.INFO: ==677== Releasing lock... [2025-02-23 15:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:26:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:27:06 [end_date_ymd] => 2025-02-23 15:27:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:27:06' and `end` < '2025-02-23 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-02-23 15:27:18] Production.INFO: count ==1258 [2025-02-23 15:27:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:27:06 - End Time 2025-02-23 15:27:06 [2025-02-23 15:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540668', 'tblTempUsageDetail_20' ) start [2025-02-23 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540668', 'tblTempUsageDetail_20' ) end [2025-02-23 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540668', 'tblTempVendorCDR_20' ) start [2025-02-23 15:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540668', 'tblTempVendorCDR_20' ) end [2025-02-23 15:27:18] Production.INFO: ProcessCDR(1,14540668,1,1,2) [2025-02-23 15:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540668', 'tblTempUsageDetail_20' ) start [2025-02-23 15:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540668', 'tblTempUsageDetail_20' ) end [2025-02-23 15:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:27:21] Production.INFO: ==770== Releasing lock... [2025-02-23 15:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:27:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:28:05 [end_date_ymd] => 2025-02-23 15:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:28:05' and `end` < '2025-02-23 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-02-23 15:28:17] Production.INFO: count ==1269 [2025-02-23 15:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:28:05 - End Time 2025-02-23 15:28:05 [2025-02-23 15:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540673', 'tblTempUsageDetail_20' ) start [2025-02-23 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540673', 'tblTempUsageDetail_20' ) end [2025-02-23 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540673', 'tblTempVendorCDR_20' ) start [2025-02-23 15:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540673', 'tblTempVendorCDR_20' ) end [2025-02-23 15:28:17] Production.INFO: ProcessCDR(1,14540673,1,1,2) [2025-02-23 15:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540673', 'tblTempUsageDetail_20' ) start [2025-02-23 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540673', 'tblTempUsageDetail_20' ) end [2025-02-23 15:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:28:21] Production.INFO: ==845== Releasing lock... [2025-02-23 15:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:28:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:29:05 [end_date_ymd] => 2025-02-23 15:29:05 [RateCDR] => 1 ) [2025-02-23 15: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-02-23 12:29:05' and `end` < '2025-02-23 15: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-02-23 15:29:17] Production.INFO: count ==1264 [2025-02-23 15:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:29:05 - End Time 2025-02-23 15:29:05 [2025-02-23 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540678', 'tblTempUsageDetail_20' ) start [2025-02-23 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540678', 'tblTempUsageDetail_20' ) end [2025-02-23 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540678', 'tblTempVendorCDR_20' ) start [2025-02-23 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540678', 'tblTempVendorCDR_20' ) end [2025-02-23 15:29:18] Production.INFO: ProcessCDR(1,14540678,1,1,2) [2025-02-23 15:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540678', 'tblTempUsageDetail_20' ) start [2025-02-23 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540678', 'tblTempUsageDetail_20' ) end [2025-02-23 15:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:29:22] Production.INFO: ==918== Releasing lock... [2025-02-23 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:29:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:30:06 [end_date_ymd] => 2025-02-23 15:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:30:06' and `end` < '2025-02-23 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-02-23 15:30:18] Production.INFO: count ==1265 [2025-02-23 15:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:30:06 - End Time 2025-02-23 15:30:06 [2025-02-23 15:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540684', 'tblTempUsageDetail_20' ) start [2025-02-23 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540684', 'tblTempUsageDetail_20' ) end [2025-02-23 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540684', 'tblTempVendorCDR_20' ) start [2025-02-23 15:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540684', 'tblTempVendorCDR_20' ) end [2025-02-23 15:30:18] Production.INFO: ProcessCDR(1,14540684,1,1,2) [2025-02-23 15:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540684', 'tblTempUsageDetail_20' ) start [2025-02-23 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540684', 'tblTempUsageDetail_20' ) end [2025-02-23 15:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:30:23] Production.INFO: ==997== Releasing lock... [2025-02-23 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:30:23] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:31:05 [end_date_ymd] => 2025-02-23 15:31:05 [RateCDR] => 1 ) [2025-02-23 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:31:05' and `end` < '2025-02-23 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:31:17] Production.INFO: count ==1304 [2025-02-23 15:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:31:05 - End Time 2025-02-23 15:31:05 [2025-02-23 15:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540689', 'tblTempUsageDetail_20' ) start [2025-02-23 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540689', 'tblTempUsageDetail_20' ) end [2025-02-23 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540689', 'tblTempVendorCDR_20' ) start [2025-02-23 15:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540689', 'tblTempVendorCDR_20' ) end [2025-02-23 15:31:17] Production.INFO: ProcessCDR(1,14540689,1,1,2) [2025-02-23 15:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540689', 'tblTempUsageDetail_20' ) start [2025-02-23 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540689', 'tblTempUsageDetail_20' ) end [2025-02-23 15:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:31:21] Production.INFO: ==1113== Releasing lock... [2025-02-23 15:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:32:05 [end_date_ymd] => 2025-02-23 15:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:32:05' and `end` < '2025-02-23 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-02-23 15:32:17] Production.INFO: count ==1305 [2025-02-23 15:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:32:05 - End Time 2025-02-23 15:32:05 [2025-02-23 15:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540694', 'tblTempUsageDetail_20' ) start [2025-02-23 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540694', 'tblTempUsageDetail_20' ) end [2025-02-23 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540694', 'tblTempVendorCDR_20' ) start [2025-02-23 15:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540694', 'tblTempVendorCDR_20' ) end [2025-02-23 15:32:17] Production.INFO: ProcessCDR(1,14540694,1,1,2) [2025-02-23 15:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540694', 'tblTempUsageDetail_20' ) start [2025-02-23 15:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540694', 'tblTempUsageDetail_20' ) end [2025-02-23 15:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:32:22] Production.INFO: ==1197== Releasing lock... [2025-02-23 15:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:32:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:33:05 [end_date_ymd] => 2025-02-23 15:33:05 [RateCDR] => 1 ) [2025-02-23 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:33:05' and `end` < '2025-02-23 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:33:17] Production.INFO: count ==1308 [2025-02-23 15:33:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:33:05 - End Time 2025-02-23 15:33:05 [2025-02-23 15:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540699', 'tblTempUsageDetail_20' ) start [2025-02-23 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540699', 'tblTempUsageDetail_20' ) end [2025-02-23 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540699', 'tblTempVendorCDR_20' ) start [2025-02-23 15:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540699', 'tblTempVendorCDR_20' ) end [2025-02-23 15:33:17] Production.INFO: ProcessCDR(1,14540699,1,1,2) [2025-02-23 15:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540699', 'tblTempUsageDetail_20' ) start [2025-02-23 15:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540699', 'tblTempUsageDetail_20' ) end [2025-02-23 15:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:33:21] Production.INFO: ==1287== Releasing lock... [2025-02-23 15:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:33:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:34:05 [end_date_ymd] => 2025-02-23 15:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:34:05' and `end` < '2025-02-23 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-02-23 15:34:17] Production.INFO: count ==1307 [2025-02-23 15:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:34:05 - End Time 2025-02-23 15:34:05 [2025-02-23 15:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540704', 'tblTempUsageDetail_20' ) start [2025-02-23 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540704', 'tblTempUsageDetail_20' ) end [2025-02-23 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540704', 'tblTempVendorCDR_20' ) start [2025-02-23 15:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540704', 'tblTempVendorCDR_20' ) end [2025-02-23 15:34:18] Production.INFO: ProcessCDR(1,14540704,1,1,2) [2025-02-23 15:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540704', 'tblTempUsageDetail_20' ) start [2025-02-23 15:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540704', 'tblTempUsageDetail_20' ) end [2025-02-23 15:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:34:21] Production.INFO: ==1360== Releasing lock... [2025-02-23 15:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:34:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:35:05 [end_date_ymd] => 2025-02-23 15:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:35:05' and `end` < '2025-02-23 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-02-23 15:35:17] Production.INFO: count ==1311 [2025-02-23 15:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:35:05 - End Time 2025-02-23 15:35:05 [2025-02-23 15:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540709', 'tblTempUsageDetail_20' ) start [2025-02-23 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540709', 'tblTempUsageDetail_20' ) end [2025-02-23 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540709', 'tblTempVendorCDR_20' ) start [2025-02-23 15:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540709', 'tblTempVendorCDR_20' ) end [2025-02-23 15:35:17] Production.INFO: ProcessCDR(1,14540709,1,1,2) [2025-02-23 15:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540709', 'tblTempUsageDetail_20' ) start [2025-02-23 15:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540709', 'tblTempUsageDetail_20' ) end [2025-02-23 15:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:35:22] Production.INFO: ==1442== Releasing lock... [2025-02-23 15:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:35:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:36:05 [end_date_ymd] => 2025-02-23 15:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:36:05' and `end` < '2025-02-23 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-02-23 15:36:17] Production.INFO: count ==1311 [2025-02-23 15:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:36:05 - End Time 2025-02-23 15:36:05 [2025-02-23 15:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540714', 'tblTempUsageDetail_20' ) start [2025-02-23 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540714', 'tblTempUsageDetail_20' ) end [2025-02-23 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540714', 'tblTempVendorCDR_20' ) start [2025-02-23 15:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540714', 'tblTempVendorCDR_20' ) end [2025-02-23 15:36:18] Production.INFO: ProcessCDR(1,14540714,1,1,2) [2025-02-23 15:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540714', 'tblTempUsageDetail_20' ) start [2025-02-23 15:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540714', 'tblTempUsageDetail_20' ) end [2025-02-23 15:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:36:21] Production.INFO: ==1549== Releasing lock... [2025-02-23 15:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:36:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:37:04 [end_date_ymd] => 2025-02-23 15:37:04 [RateCDR] => 1 ) [2025-02-23 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:37:04' and `end` < '2025-02-23 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:37:16] Production.INFO: count ==1310 [2025-02-23 15:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:37:04 - End Time 2025-02-23 15:37:04 [2025-02-23 15:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540719', 'tblTempUsageDetail_20' ) start [2025-02-23 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540719', 'tblTempUsageDetail_20' ) end [2025-02-23 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540719', 'tblTempVendorCDR_20' ) start [2025-02-23 15:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540719', 'tblTempVendorCDR_20' ) end [2025-02-23 15:37:17] Production.INFO: ProcessCDR(1,14540719,1,1,2) [2025-02-23 15:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540719', 'tblTempUsageDetail_20' ) start [2025-02-23 15:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540719', 'tblTempUsageDetail_20' ) end [2025-02-23 15:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:37:20] Production.INFO: ==1628== Releasing lock... [2025-02-23 15:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:37:20] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:38:05 [end_date_ymd] => 2025-02-23 15:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:38:05' and `end` < '2025-02-23 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-02-23 15:38:17] Production.INFO: count ==1306 [2025-02-23 15:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:38:05 - End Time 2025-02-23 15:38:05 [2025-02-23 15:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540724', 'tblTempUsageDetail_20' ) start [2025-02-23 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540724', 'tblTempUsageDetail_20' ) end [2025-02-23 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540724', 'tblTempVendorCDR_20' ) start [2025-02-23 15:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540724', 'tblTempVendorCDR_20' ) end [2025-02-23 15:38:17] Production.INFO: ProcessCDR(1,14540724,1,1,2) [2025-02-23 15:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540724', 'tblTempUsageDetail_20' ) start [2025-02-23 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540724', 'tblTempUsageDetail_20' ) end [2025-02-23 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:38:22] Production.INFO: ==1705== Releasing lock... [2025-02-23 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:38:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:39:05 [end_date_ymd] => 2025-02-23 15:39:05 [RateCDR] => 1 ) [2025-02-23 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:39:05' and `end` < '2025-02-23 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:39:17] Production.INFO: count ==1303 [2025-02-23 15:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:39:05 - End Time 2025-02-23 15:39:05 [2025-02-23 15:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540729', 'tblTempUsageDetail_20' ) start [2025-02-23 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540729', 'tblTempUsageDetail_20' ) end [2025-02-23 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540729', 'tblTempVendorCDR_20' ) start [2025-02-23 15:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540729', 'tblTempVendorCDR_20' ) end [2025-02-23 15:39:17] Production.INFO: ProcessCDR(1,14540729,1,1,2) [2025-02-23 15:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540729', 'tblTempUsageDetail_20' ) start [2025-02-23 15:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540729', 'tblTempUsageDetail_20' ) end [2025-02-23 15:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:39:20] Production.INFO: ==1776== Releasing lock... [2025-02-23 15:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:39:20] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:40:06 [end_date_ymd] => 2025-02-23 15:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:40:06' and `end` < '2025-02-23 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-02-23 15:40:18] Production.INFO: count ==1305 [2025-02-23 15:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:40:06 - End Time 2025-02-23 15:40:06 [2025-02-23 15:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540735', 'tblTempUsageDetail_20' ) start [2025-02-23 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540735', 'tblTempUsageDetail_20' ) end [2025-02-23 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540735', 'tblTempVendorCDR_20' ) start [2025-02-23 15:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540735', 'tblTempVendorCDR_20' ) end [2025-02-23 15:40:18] Production.INFO: ProcessCDR(1,14540735,1,1,2) [2025-02-23 15:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540735', 'tblTempUsageDetail_20' ) start [2025-02-23 15:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540735', 'tblTempUsageDetail_20' ) end [2025-02-23 15:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:40:21] Production.INFO: ==1855== Releasing lock... [2025-02-23 15:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:40:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:41:05 [end_date_ymd] => 2025-02-23 15:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:41:05' and `end` < '2025-02-23 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-02-23 15:41:17] Production.INFO: count ==1304 [2025-02-23 15:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:41:05 - End Time 2025-02-23 15:41:05 [2025-02-23 15:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540740', 'tblTempUsageDetail_20' ) start [2025-02-23 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540740', 'tblTempUsageDetail_20' ) end [2025-02-23 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540740', 'tblTempVendorCDR_20' ) start [2025-02-23 15:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540740', 'tblTempVendorCDR_20' ) end [2025-02-23 15:41:17] Production.INFO: ProcessCDR(1,14540740,1,1,2) [2025-02-23 15:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540740', 'tblTempUsageDetail_20' ) start [2025-02-23 15:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540740', 'tblTempUsageDetail_20' ) end [2025-02-23 15:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:41:21] Production.INFO: ==1930== Releasing lock... [2025-02-23 15:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:41:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:42:05 [end_date_ymd] => 2025-02-23 15:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:42:05' and `end` < '2025-02-23 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-02-23 15:42:17] Production.INFO: count ==1304 [2025-02-23 15:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:42:05 - End Time 2025-02-23 15:42:05 [2025-02-23 15:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540745', 'tblTempUsageDetail_20' ) start [2025-02-23 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540745', 'tblTempUsageDetail_20' ) end [2025-02-23 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540745', 'tblTempVendorCDR_20' ) start [2025-02-23 15:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540745', 'tblTempVendorCDR_20' ) end [2025-02-23 15:42:17] Production.INFO: ProcessCDR(1,14540745,1,1,2) [2025-02-23 15:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540745', 'tblTempUsageDetail_20' ) start [2025-02-23 15:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540745', 'tblTempUsageDetail_20' ) end [2025-02-23 15:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:42:20] Production.INFO: ==2009== Releasing lock... [2025-02-23 15:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:42:20] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:43:06 [end_date_ymd] => 2025-02-23 15:43:06 [RateCDR] => 1 ) [2025-02-23 15:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:43:06' and `end` < '2025-02-23 15:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:43:17] Production.INFO: count ==1304 [2025-02-23 15:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:43:06 - End Time 2025-02-23 15:43:06 [2025-02-23 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540750', 'tblTempUsageDetail_20' ) start [2025-02-23 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540750', 'tblTempUsageDetail_20' ) end [2025-02-23 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540750', 'tblTempVendorCDR_20' ) start [2025-02-23 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540750', 'tblTempVendorCDR_20' ) end [2025-02-23 15:43:18] Production.INFO: ProcessCDR(1,14540750,1,1,2) [2025-02-23 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540750', 'tblTempUsageDetail_20' ) start [2025-02-23 15:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540750', 'tblTempUsageDetail_20' ) end [2025-02-23 15:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:43:21] Production.INFO: ==2080== Releasing lock... [2025-02-23 15:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:43:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:44:05 [end_date_ymd] => 2025-02-23 15:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:44:05' and `end` < '2025-02-23 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-02-23 15:44:17] Production.INFO: count ==1304 [2025-02-23 15:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:44:05 - End Time 2025-02-23 15:44:05 [2025-02-23 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540755', 'tblTempUsageDetail_20' ) start [2025-02-23 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540755', 'tblTempUsageDetail_20' ) end [2025-02-23 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540755', 'tblTempVendorCDR_20' ) start [2025-02-23 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540755', 'tblTempVendorCDR_20' ) end [2025-02-23 15:44:18] Production.INFO: ProcessCDR(1,14540755,1,1,2) [2025-02-23 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540755', 'tblTempUsageDetail_20' ) start [2025-02-23 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540755', 'tblTempUsageDetail_20' ) end [2025-02-23 15:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:44:21] Production.INFO: ==2152== Releasing lock... [2025-02-23 15:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:44:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:45:05 [end_date_ymd] => 2025-02-23 15:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:45:05' and `end` < '2025-02-23 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-02-23 15:45:17] Production.INFO: count ==1303 [2025-02-23 15:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:45:05 - End Time 2025-02-23 15:45:05 [2025-02-23 15:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540760', 'tblTempUsageDetail_20' ) start [2025-02-23 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540760', 'tblTempUsageDetail_20' ) end [2025-02-23 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540760', 'tblTempVendorCDR_20' ) start [2025-02-23 15:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540760', 'tblTempVendorCDR_20' ) end [2025-02-23 15:45:17] Production.INFO: ProcessCDR(1,14540760,1,1,2) [2025-02-23 15:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540760', 'tblTempUsageDetail_20' ) start [2025-02-23 15:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540760', 'tblTempUsageDetail_20' ) end [2025-02-23 15:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:45:21] Production.INFO: ==2225== Releasing lock... [2025-02-23 15:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:46:05 [end_date_ymd] => 2025-02-23 15:46:05 [RateCDR] => 1 ) [2025-02-23 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:46:05' and `end` < '2025-02-23 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:46:17] Production.INFO: count ==1302 [2025-02-23 15:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:46:05 - End Time 2025-02-23 15:46:05 [2025-02-23 15:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540765', 'tblTempUsageDetail_20' ) start [2025-02-23 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540765', 'tblTempUsageDetail_20' ) end [2025-02-23 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540765', 'tblTempVendorCDR_20' ) start [2025-02-23 15:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540765', 'tblTempVendorCDR_20' ) end [2025-02-23 15:46:18] Production.INFO: ProcessCDR(1,14540765,1,1,2) [2025-02-23 15:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540765', 'tblTempUsageDetail_20' ) start [2025-02-23 15:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540765', 'tblTempUsageDetail_20' ) end [2025-02-23 15:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:46:21] Production.INFO: ==2300== Releasing lock... [2025-02-23 15:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:46:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:47:05 [end_date_ymd] => 2025-02-23 15:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:47:05' and `end` < '2025-02-23 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-02-23 15:47:17] Production.INFO: count ==1303 [2025-02-23 15:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:47:05 - End Time 2025-02-23 15:47:05 [2025-02-23 15:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540770', 'tblTempUsageDetail_20' ) start [2025-02-23 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540770', 'tblTempUsageDetail_20' ) end [2025-02-23 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540770', 'tblTempVendorCDR_20' ) start [2025-02-23 15:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540770', 'tblTempVendorCDR_20' ) end [2025-02-23 15:47:18] Production.INFO: ProcessCDR(1,14540770,1,1,2) [2025-02-23 15:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540770', 'tblTempUsageDetail_20' ) start [2025-02-23 15:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540770', 'tblTempUsageDetail_20' ) end [2025-02-23 15:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:47:22] Production.INFO: ==2412== Releasing lock... [2025-02-23 15:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:47:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:48:05 [end_date_ymd] => 2025-02-23 15:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:48:05' and `end` < '2025-02-23 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-02-23 15:48:17] Production.INFO: count ==1308 [2025-02-23 15:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:48:05 - End Time 2025-02-23 15:48:05 [2025-02-23 15:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540775', 'tblTempUsageDetail_20' ) start [2025-02-23 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540775', 'tblTempUsageDetail_20' ) end [2025-02-23 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540775', 'tblTempVendorCDR_20' ) start [2025-02-23 15:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540775', 'tblTempVendorCDR_20' ) end [2025-02-23 15:48:17] Production.INFO: ProcessCDR(1,14540775,1,1,2) [2025-02-23 15:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540775', 'tblTempUsageDetail_20' ) start [2025-02-23 15:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540775', 'tblTempUsageDetail_20' ) end [2025-02-23 15:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:48:22] Production.INFO: ==2483== Releasing lock... [2025-02-23 15:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:49:05 [end_date_ymd] => 2025-02-23 15:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:49:05' and `end` < '2025-02-23 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-02-23 15:49:17] Production.INFO: count ==1311 [2025-02-23 15:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:49:05 - End Time 2025-02-23 15:49:05 [2025-02-23 15:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540780', 'tblTempUsageDetail_20' ) start [2025-02-23 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540780', 'tblTempUsageDetail_20' ) end [2025-02-23 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540780', 'tblTempVendorCDR_20' ) start [2025-02-23 15:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540780', 'tblTempVendorCDR_20' ) end [2025-02-23 15:49:18] Production.INFO: ProcessCDR(1,14540780,1,1,2) [2025-02-23 15:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540780', 'tblTempUsageDetail_20' ) start [2025-02-23 15:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540780', 'tblTempUsageDetail_20' ) end [2025-02-23 15:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:49:22] Production.INFO: ==2559== Releasing lock... [2025-02-23 15:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:49:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:50:06 [end_date_ymd] => 2025-02-23 15:50:06 [RateCDR] => 1 ) [2025-02-23 15:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:50:06' and `end` < '2025-02-23 15:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:50:18] Production.INFO: count ==1317 [2025-02-23 15:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:50:06 - End Time 2025-02-23 15:50:06 [2025-02-23 15:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540785', 'tblTempUsageDetail_20' ) start [2025-02-23 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540785', 'tblTempUsageDetail_20' ) end [2025-02-23 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540785', 'tblTempVendorCDR_20' ) start [2025-02-23 15:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540785', 'tblTempVendorCDR_20' ) end [2025-02-23 15:50:18] Production.INFO: ProcessCDR(1,14540785,1,1,2) [2025-02-23 15:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540785', 'tblTempUsageDetail_20' ) start [2025-02-23 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540785', 'tblTempUsageDetail_20' ) end [2025-02-23 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:50:23] Production.INFO: ==2639== Releasing lock... [2025-02-23 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:50:23] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:51:06 [end_date_ymd] => 2025-02-23 15:51:06 [RateCDR] => 1 ) [2025-02-23 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:51:06' and `end` < '2025-02-23 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:51:18] Production.INFO: count ==1337 [2025-02-23 15:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:51:06 - End Time 2025-02-23 15:51:06 [2025-02-23 15:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540791', 'tblTempUsageDetail_20' ) start [2025-02-23 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540791', 'tblTempUsageDetail_20' ) end [2025-02-23 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540791', 'tblTempVendorCDR_20' ) start [2025-02-23 15:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540791', 'tblTempVendorCDR_20' ) end [2025-02-23 15:51:18] Production.INFO: ProcessCDR(1,14540791,1,1,2) [2025-02-23 15:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540791', 'tblTempUsageDetail_20' ) start [2025-02-23 15:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540791', 'tblTempUsageDetail_20' ) end [2025-02-23 15:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:51:21] Production.INFO: ==2717== Releasing lock... [2025-02-23 15:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:51:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:52:05 [end_date_ymd] => 2025-02-23 15:52:05 [RateCDR] => 1 ) [2025-02-23 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:52:05' and `end` < '2025-02-23 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:52:17] Production.INFO: count ==1338 [2025-02-23 15:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:52:05 - End Time 2025-02-23 15:52:05 [2025-02-23 15:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540796', 'tblTempUsageDetail_20' ) start [2025-02-23 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540796', 'tblTempUsageDetail_20' ) end [2025-02-23 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540796', 'tblTempVendorCDR_20' ) start [2025-02-23 15:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540796', 'tblTempVendorCDR_20' ) end [2025-02-23 15:52:17] Production.INFO: ProcessCDR(1,14540796,1,1,2) [2025-02-23 15:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540796', 'tblTempUsageDetail_20' ) start [2025-02-23 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540796', 'tblTempUsageDetail_20' ) end [2025-02-23 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:52:22] Production.INFO: ==2789== Releasing lock... [2025-02-23 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:53:05 [end_date_ymd] => 2025-02-23 15:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:53:05' and `end` < '2025-02-23 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-02-23 15:53:17] Production.INFO: count ==1338 [2025-02-23 15:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:53:05 - End Time 2025-02-23 15:53:05 [2025-02-23 15:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540801', 'tblTempUsageDetail_20' ) start [2025-02-23 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540801', 'tblTempUsageDetail_20' ) end [2025-02-23 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540801', 'tblTempVendorCDR_20' ) start [2025-02-23 15:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540801', 'tblTempVendorCDR_20' ) end [2025-02-23 15:53:17] Production.INFO: ProcessCDR(1,14540801,1,1,2) [2025-02-23 15:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540801', 'tblTempUsageDetail_20' ) start [2025-02-23 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540801', 'tblTempUsageDetail_20' ) end [2025-02-23 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:53:22] Production.INFO: ==2859== Releasing lock... [2025-02-23 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:54:05 [end_date_ymd] => 2025-02-23 15:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:54:05' and `end` < '2025-02-23 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-02-23 15:54:17] Production.INFO: count ==1336 [2025-02-23 15:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:54:05 - End Time 2025-02-23 15:54:05 [2025-02-23 15:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540806', 'tblTempUsageDetail_20' ) start [2025-02-23 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540806', 'tblTempUsageDetail_20' ) end [2025-02-23 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540806', 'tblTempVendorCDR_20' ) start [2025-02-23 15:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540806', 'tblTempVendorCDR_20' ) end [2025-02-23 15:54:17] Production.INFO: ProcessCDR(1,14540806,1,1,2) [2025-02-23 15:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540806', 'tblTempUsageDetail_20' ) start [2025-02-23 15:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540806', 'tblTempUsageDetail_20' ) end [2025-02-23 15:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:54:22] Production.INFO: ==2928== Releasing lock... [2025-02-23 15:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:54:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:55:05 [end_date_ymd] => 2025-02-23 15:55:05 [RateCDR] => 1 ) [2025-02-23 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:55:05' and `end` < '2025-02-23 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:55:17] Production.INFO: count ==1335 [2025-02-23 15:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:55:05 - End Time 2025-02-23 15:55:05 [2025-02-23 15:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540811', 'tblTempUsageDetail_20' ) start [2025-02-23 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540811', 'tblTempUsageDetail_20' ) end [2025-02-23 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540811', 'tblTempVendorCDR_20' ) start [2025-02-23 15:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540811', 'tblTempVendorCDR_20' ) end [2025-02-23 15:55:17] Production.INFO: ProcessCDR(1,14540811,1,1,2) [2025-02-23 15:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540811', 'tblTempUsageDetail_20' ) start [2025-02-23 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540811', 'tblTempUsageDetail_20' ) end [2025-02-23 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:55:21] Production.INFO: ==2999== Releasing lock... [2025-02-23 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:55:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:56:05 [end_date_ymd] => 2025-02-23 15:56:05 [RateCDR] => 1 ) [2025-02-23 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:56:05' and `end` < '2025-02-23 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:56:17] Production.INFO: count ==1329 [2025-02-23 15:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 12:56:05 - End Time 2025-02-23 15:56:05 [2025-02-23 15:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540816', 'tblTempUsageDetail_20' ) start [2025-02-23 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540816', 'tblTempUsageDetail_20' ) end [2025-02-23 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540816', 'tblTempVendorCDR_20' ) start [2025-02-23 15:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540816', 'tblTempVendorCDR_20' ) end [2025-02-23 15:56:17] Production.INFO: ProcessCDR(1,14540816,1,1,2) [2025-02-23 15:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540816', 'tblTempUsageDetail_20' ) start [2025-02-23 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540816', 'tblTempUsageDetail_20' ) end [2025-02-23 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:56:22] Production.INFO: ==3075== Releasing lock... [2025-02-23 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:56:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:57:05 [end_date_ymd] => 2025-02-23 15:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:57:05' and `end` < '2025-02-23 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-02-23 15:57:17] Production.INFO: count ==1333 [2025-02-23 15:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:57:05 - End Time 2025-02-23 15:57:05 [2025-02-23 15:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540821', 'tblTempUsageDetail_20' ) start [2025-02-23 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540821', 'tblTempUsageDetail_20' ) end [2025-02-23 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540821', 'tblTempVendorCDR_20' ) start [2025-02-23 15:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540821', 'tblTempVendorCDR_20' ) end [2025-02-23 15:57:18] Production.INFO: ProcessCDR(1,14540821,1,1,2) [2025-02-23 15:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540821', 'tblTempUsageDetail_20' ) start [2025-02-23 15:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540821', 'tblTempUsageDetail_20' ) end [2025-02-23 15:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:57:21] Production.INFO: ==3150== Releasing lock... [2025-02-23 15:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:57:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:58:05 [end_date_ymd] => 2025-02-23 15:58:05 [RateCDR] => 1 ) [2025-02-23 15:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 12:58:05' and `end` < '2025-02-23 15:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 15:58:18] Production.INFO: count ==1335 [2025-02-23 15:58:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:58:05 - End Time 2025-02-23 15:58:05 [2025-02-23 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540826', 'tblTempUsageDetail_20' ) start [2025-02-23 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540826', 'tblTempUsageDetail_20' ) end [2025-02-23 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540826', 'tblTempVendorCDR_20' ) start [2025-02-23 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540826', 'tblTempVendorCDR_20' ) end [2025-02-23 15:58:18] Production.INFO: ProcessCDR(1,14540826,1,1,2) [2025-02-23 15:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540826', 'tblTempUsageDetail_20' ) start [2025-02-23 15:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540826', 'tblTempUsageDetail_20' ) end [2025-02-23 15:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:58:23] Production.INFO: ==3223== Releasing lock... [2025-02-23 15:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:58:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 12:59:05 [end_date_ymd] => 2025-02-23 15:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 12:59:05' and `end` < '2025-02-23 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-02-23 15:59:17] Production.INFO: count ==1350 [2025-02-23 15:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 12:59:05 - End Time 2025-02-23 15:59:05 [2025-02-23 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540831', 'tblTempUsageDetail_20' ) start [2025-02-23 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540831', 'tblTempUsageDetail_20' ) end [2025-02-23 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540831', 'tblTempVendorCDR_20' ) start [2025-02-23 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540831', 'tblTempVendorCDR_20' ) end [2025-02-23 15:59:18] Production.INFO: ProcessCDR(1,14540831,1,1,2) [2025-02-23 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 15:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540831', 'tblTempUsageDetail_20' ) start [2025-02-23 15:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540831', 'tblTempUsageDetail_20' ) end [2025-02-23 15:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 15:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 15:59:22] Production.INFO: ==3295== Releasing lock... [2025-02-23 15:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 15:59:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:00:06 [end_date_ymd] => 2025-02-23 16:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:00:06' and `end` < '2025-02-23 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-02-23 16:00:18] Production.INFO: count ==1348 [2025-02-23 16:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 13:00:06 - End Time 2025-02-23 16:00:06 [2025-02-23 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540837', 'tblTempUsageDetail_20' ) start [2025-02-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540837', 'tblTempUsageDetail_20' ) end [2025-02-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540837', 'tblTempVendorCDR_20' ) start [2025-02-23 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540837', 'tblTempVendorCDR_20' ) end [2025-02-23 16:00:19] Production.INFO: ProcessCDR(1,14540837,1,1,2) [2025-02-23 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540837', 'tblTempUsageDetail_20' ) start [2025-02-23 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540837', 'tblTempUsageDetail_20' ) end [2025-02-23 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:00:23] Production.INFO: ==3373== Releasing lock... [2025-02-23 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:01:05 [end_date_ymd] => 2025-02-23 16:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:01:05' and `end` < '2025-02-23 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-02-23 16:01:17] Production.INFO: count ==1383 [2025-02-23 16:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:01:05 - End Time 2025-02-23 16:01:05 [2025-02-23 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540842', 'tblTempUsageDetail_20' ) start [2025-02-23 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540842', 'tblTempUsageDetail_20' ) end [2025-02-23 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540842', 'tblTempVendorCDR_20' ) start [2025-02-23 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540842', 'tblTempVendorCDR_20' ) end [2025-02-23 16:01:18] Production.INFO: ProcessCDR(1,14540842,1,1,2) [2025-02-23 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540842', 'tblTempUsageDetail_20' ) start [2025-02-23 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540842', 'tblTempUsageDetail_20' ) end [2025-02-23 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:01:22] Production.INFO: ==3458== Releasing lock... [2025-02-23 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:01:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:02:05 [end_date_ymd] => 2025-02-23 16:02:05 [RateCDR] => 1 ) [2025-02-23 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:02:05' and `end` < '2025-02-23 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:02:17] Production.INFO: count ==1385 [2025-02-23 16:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:02:05 - End Time 2025-02-23 16:02:05 [2025-02-23 16:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540847', 'tblTempUsageDetail_20' ) start [2025-02-23 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540847', 'tblTempUsageDetail_20' ) end [2025-02-23 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540847', 'tblTempVendorCDR_20' ) start [2025-02-23 16:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540847', 'tblTempVendorCDR_20' ) end [2025-02-23 16:02:18] Production.INFO: ProcessCDR(1,14540847,1,1,2) [2025-02-23 16:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540847', 'tblTempUsageDetail_20' ) start [2025-02-23 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540847', 'tblTempUsageDetail_20' ) end [2025-02-23 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:02:22] Production.INFO: ==3566== Releasing lock... [2025-02-23 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:02:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:03:04 [end_date_ymd] => 2025-02-23 16:03:04 [RateCDR] => 1 ) [2025-02-23 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:03:04' and `end` < '2025-02-23 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:03:16] Production.INFO: count ==1382 [2025-02-23 16:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:03:04 - End Time 2025-02-23 16:03:04 [2025-02-23 16:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540852', 'tblTempUsageDetail_20' ) start [2025-02-23 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540852', 'tblTempUsageDetail_20' ) end [2025-02-23 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540852', 'tblTempVendorCDR_20' ) start [2025-02-23 16:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540852', 'tblTempVendorCDR_20' ) end [2025-02-23 16:03:17] Production.INFO: ProcessCDR(1,14540852,1,1,2) [2025-02-23 16:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540852', 'tblTempUsageDetail_20' ) start [2025-02-23 16:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540852', 'tblTempUsageDetail_20' ) end [2025-02-23 16:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:03:21] Production.INFO: ==3640== Releasing lock... [2025-02-23 16:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:03:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:04:05 [end_date_ymd] => 2025-02-23 16:04:05 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:04:05' and `end` < '2025-02-23 16: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-02-23 16:04:17] Production.INFO: count ==1383 [2025-02-23 16:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:04:05 - End Time 2025-02-23 16:04:05 [2025-02-23 16:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540857', 'tblTempUsageDetail_20' ) start [2025-02-23 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540857', 'tblTempUsageDetail_20' ) end [2025-02-23 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540857', 'tblTempVendorCDR_20' ) start [2025-02-23 16:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540857', 'tblTempVendorCDR_20' ) end [2025-02-23 16:04:18] Production.INFO: ProcessCDR(1,14540857,1,1,2) [2025-02-23 16:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540857', 'tblTempUsageDetail_20' ) start [2025-02-23 16:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540857', 'tblTempUsageDetail_20' ) end [2025-02-23 16:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:04:22] Production.INFO: ==3715== Releasing lock... [2025-02-23 16:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:04:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:05:06 [end_date_ymd] => 2025-02-23 16:05:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:05:06' and `end` < '2025-02-23 16: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-02-23 16:05:18] Production.INFO: count ==1381 [2025-02-23 16:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:05:06 - End Time 2025-02-23 16:05:06 [2025-02-23 16:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540862', 'tblTempUsageDetail_20' ) start [2025-02-23 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540862', 'tblTempUsageDetail_20' ) end [2025-02-23 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540862', 'tblTempVendorCDR_20' ) start [2025-02-23 16:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540862', 'tblTempVendorCDR_20' ) end [2025-02-23 16:05:18] Production.INFO: ProcessCDR(1,14540862,1,1,2) [2025-02-23 16:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540862', 'tblTempUsageDetail_20' ) start [2025-02-23 16:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540862', 'tblTempUsageDetail_20' ) end [2025-02-23 16:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:05:22] Production.INFO: ==3788== Releasing lock... [2025-02-23 16:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:05:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:06:05 [end_date_ymd] => 2025-02-23 16:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:06:05' and `end` < '2025-02-23 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-02-23 16:06:17] Production.INFO: count ==1379 [2025-02-23 16:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:06:05 - End Time 2025-02-23 16:06:05 [2025-02-23 16:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540867', 'tblTempUsageDetail_20' ) start [2025-02-23 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540867', 'tblTempUsageDetail_20' ) end [2025-02-23 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540867', 'tblTempVendorCDR_20' ) start [2025-02-23 16:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540867', 'tblTempVendorCDR_20' ) end [2025-02-23 16:06:17] Production.INFO: ProcessCDR(1,14540867,1,1,2) [2025-02-23 16:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540867', 'tblTempUsageDetail_20' ) start [2025-02-23 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540867', 'tblTempUsageDetail_20' ) end [2025-02-23 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:06:22] Production.INFO: ==3860== Releasing lock... [2025-02-23 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:06:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:07:05 [end_date_ymd] => 2025-02-23 16:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:07:05' and `end` < '2025-02-23 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-02-23 16:07:17] Production.INFO: count ==1384 [2025-02-23 16:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:07:05 - End Time 2025-02-23 16:07:05 [2025-02-23 16:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540872', 'tblTempUsageDetail_20' ) start [2025-02-23 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540872', 'tblTempUsageDetail_20' ) end [2025-02-23 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540872', 'tblTempVendorCDR_20' ) start [2025-02-23 16:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540872', 'tblTempVendorCDR_20' ) end [2025-02-23 16:07:18] Production.INFO: ProcessCDR(1,14540872,1,1,2) [2025-02-23 16:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540872', 'tblTempUsageDetail_20' ) start [2025-02-23 16:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540872', 'tblTempUsageDetail_20' ) end [2025-02-23 16:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:07:23] Production.INFO: ==3929== Releasing lock... [2025-02-23 16:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:07:23] Production.INFO: 39 MB #Memory Used# [2025-02-23 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:08:05 [end_date_ymd] => 2025-02-23 16:08:05 [RateCDR] => 1 ) [2025-02-23 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:08:05' and `end` < '2025-02-23 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:08:17] Production.INFO: count ==1387 [2025-02-23 16:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:08:05 - End Time 2025-02-23 16:08:05 [2025-02-23 16:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540877', 'tblTempUsageDetail_20' ) start [2025-02-23 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540877', 'tblTempUsageDetail_20' ) end [2025-02-23 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540877', 'tblTempVendorCDR_20' ) start [2025-02-23 16:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540877', 'tblTempVendorCDR_20' ) end [2025-02-23 16:08:17] Production.INFO: ProcessCDR(1,14540877,1,1,2) [2025-02-23 16:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540877', 'tblTempUsageDetail_20' ) start [2025-02-23 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540877', 'tblTempUsageDetail_20' ) end [2025-02-23 16:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:08:22] Production.INFO: ==4005== Releasing lock... [2025-02-23 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:08:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:09:06 [end_date_ymd] => 2025-02-23 16:09:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:09:06' and `end` < '2025-02-23 16: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-02-23 16:09:18] Production.INFO: count ==1388 [2025-02-23 16:09:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:09:06 - End Time 2025-02-23 16:09:06 [2025-02-23 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540882', 'tblTempUsageDetail_20' ) start [2025-02-23 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540882', 'tblTempUsageDetail_20' ) end [2025-02-23 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540882', 'tblTempVendorCDR_20' ) start [2025-02-23 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540882', 'tblTempVendorCDR_20' ) end [2025-02-23 16:09:18] Production.INFO: ProcessCDR(1,14540882,1,1,2) [2025-02-23 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540882', 'tblTempUsageDetail_20' ) start [2025-02-23 16:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540882', 'tblTempUsageDetail_20' ) end [2025-02-23 16:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:09:23] Production.INFO: ==4079== Releasing lock... [2025-02-23 16:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:09:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:10:06 [end_date_ymd] => 2025-02-23 16:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:10:06' and `end` < '2025-02-23 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-02-23 16:10:18] Production.INFO: count ==1389 [2025-02-23 16:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 13:10:06 - End Time 2025-02-23 16:10:06 [2025-02-23 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540888', 'tblTempUsageDetail_20' ) start [2025-02-23 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540888', 'tblTempUsageDetail_20' ) end [2025-02-23 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540888', 'tblTempVendorCDR_20' ) start [2025-02-23 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540888', 'tblTempVendorCDR_20' ) end [2025-02-23 16:10:19] Production.INFO: ProcessCDR(1,14540888,1,1,2) [2025-02-23 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540888', 'tblTempUsageDetail_20' ) start [2025-02-23 16:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540888', 'tblTempUsageDetail_20' ) end [2025-02-23 16:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:10:23] Production.INFO: ==4158== Releasing lock... [2025-02-23 16:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:10:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:11:05 [end_date_ymd] => 2025-02-23 16:11:05 [RateCDR] => 1 ) [2025-02-23 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:11:05' and `end` < '2025-02-23 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:11:17] Production.INFO: count ==1384 [2025-02-23 16:11:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:11:05 - End Time 2025-02-23 16:11:05 [2025-02-23 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540893', 'tblTempUsageDetail_20' ) start [2025-02-23 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540893', 'tblTempUsageDetail_20' ) end [2025-02-23 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540893', 'tblTempVendorCDR_20' ) start [2025-02-23 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540893', 'tblTempVendorCDR_20' ) end [2025-02-23 16:11:18] Production.INFO: ProcessCDR(1,14540893,1,1,2) [2025-02-23 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540893', 'tblTempUsageDetail_20' ) start [2025-02-23 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540893', 'tblTempUsageDetail_20' ) end [2025-02-23 16:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:11:21] Production.INFO: ==4232== Releasing lock... [2025-02-23 16:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:11:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:12:05 [end_date_ymd] => 2025-02-23 16:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:12:05' and `end` < '2025-02-23 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-02-23 16:12:17] Production.INFO: count ==1380 [2025-02-23 16:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:12:05 - End Time 2025-02-23 16:12:05 [2025-02-23 16:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540898', 'tblTempUsageDetail_20' ) start [2025-02-23 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540898', 'tblTempUsageDetail_20' ) end [2025-02-23 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540898', 'tblTempVendorCDR_20' ) start [2025-02-23 16:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540898', 'tblTempVendorCDR_20' ) end [2025-02-23 16:12:17] Production.INFO: ProcessCDR(1,14540898,1,1,2) [2025-02-23 16:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540898', 'tblTempUsageDetail_20' ) start [2025-02-23 16:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540898', 'tblTempUsageDetail_20' ) end [2025-02-23 16:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:12:22] Production.INFO: ==4301== Releasing lock... [2025-02-23 16:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:12:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:13:05 [end_date_ymd] => 2025-02-23 16:13:05 [RateCDR] => 1 ) [2025-02-23 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:13:05' and `end` < '2025-02-23 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:13:17] Production.INFO: count ==1374 [2025-02-23 16:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:13:05 - End Time 2025-02-23 16:13:05 [2025-02-23 16:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540903', 'tblTempUsageDetail_20' ) start [2025-02-23 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540903', 'tblTempUsageDetail_20' ) end [2025-02-23 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540903', 'tblTempVendorCDR_20' ) start [2025-02-23 16:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540903', 'tblTempVendorCDR_20' ) end [2025-02-23 16:13:17] Production.INFO: ProcessCDR(1,14540903,1,1,2) [2025-02-23 16:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540903', 'tblTempUsageDetail_20' ) start [2025-02-23 16:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540903', 'tblTempUsageDetail_20' ) end [2025-02-23 16:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:13:22] Production.INFO: ==4374== Releasing lock... [2025-02-23 16:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:13:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 16:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:14:04 [end_date_ymd] => 2025-02-23 16:14:04 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:14:04' and `end` < '2025-02-23 16: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-02-23 16:14:16] Production.INFO: count ==1377 [2025-02-23 16:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:14:04 - End Time 2025-02-23 16:14:04 [2025-02-23 16:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540908', 'tblTempUsageDetail_20' ) start [2025-02-23 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540908', 'tblTempUsageDetail_20' ) end [2025-02-23 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540908', 'tblTempVendorCDR_20' ) start [2025-02-23 16:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540908', 'tblTempVendorCDR_20' ) end [2025-02-23 16:14:17] Production.INFO: ProcessCDR(1,14540908,1,1,2) [2025-02-23 16:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540908', 'tblTempUsageDetail_20' ) start [2025-02-23 16:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540908', 'tblTempUsageDetail_20' ) end [2025-02-23 16:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:14:21] Production.INFO: ==4446== Releasing lock... [2025-02-23 16:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:14:21] Production.INFO: 39 MB #Memory Used# [2025-02-23 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:15:05 [end_date_ymd] => 2025-02-23 16:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:15:05' and `end` < '2025-02-23 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-02-23 16:15:17] Production.INFO: count ==1387 [2025-02-23 16:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:15:05 - End Time 2025-02-23 16:15:05 [2025-02-23 16:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540913', 'tblTempUsageDetail_20' ) start [2025-02-23 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540913', 'tblTempUsageDetail_20' ) end [2025-02-23 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540913', 'tblTempVendorCDR_20' ) start [2025-02-23 16:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540913', 'tblTempVendorCDR_20' ) end [2025-02-23 16:15:18] Production.INFO: ProcessCDR(1,14540913,1,1,2) [2025-02-23 16:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540913', 'tblTempUsageDetail_20' ) start [2025-02-23 16:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540913', 'tblTempUsageDetail_20' ) end [2025-02-23 16:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:15:23] Production.INFO: ==4520== Releasing lock... [2025-02-23 16:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:15:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:16:05 [end_date_ymd] => 2025-02-23 16:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:16:05' and `end` < '2025-02-23 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-02-23 16:16:17] Production.INFO: count ==1385 [2025-02-23 16:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:16:05 - End Time 2025-02-23 16:16:05 [2025-02-23 16:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540918', 'tblTempUsageDetail_20' ) start [2025-02-23 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540918', 'tblTempUsageDetail_20' ) end [2025-02-23 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540918', 'tblTempVendorCDR_20' ) start [2025-02-23 16:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540918', 'tblTempVendorCDR_20' ) end [2025-02-23 16:16:17] Production.INFO: ProcessCDR(1,14540918,1,1,2) [2025-02-23 16:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540918', 'tblTempUsageDetail_20' ) start [2025-02-23 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540918', 'tblTempUsageDetail_20' ) end [2025-02-23 16:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:16:22] Production.INFO: ==4596== Releasing lock... [2025-02-23 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:16:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:17:05 [end_date_ymd] => 2025-02-23 16:17:05 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:17:05' and `end` < '2025-02-23 16: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-02-23 16:17:17] Production.INFO: count ==1391 [2025-02-23 16:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:17:05 - End Time 2025-02-23 16:17:05 [2025-02-23 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540923', 'tblTempUsageDetail_20' ) start [2025-02-23 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540923', 'tblTempUsageDetail_20' ) end [2025-02-23 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540923', 'tblTempVendorCDR_20' ) start [2025-02-23 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540923', 'tblTempVendorCDR_20' ) end [2025-02-23 16:17:18] Production.INFO: ProcessCDR(1,14540923,1,1,2) [2025-02-23 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540923', 'tblTempUsageDetail_20' ) start [2025-02-23 16:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540923', 'tblTempUsageDetail_20' ) end [2025-02-23 16:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:17:23] Production.INFO: ==4677== Releasing lock... [2025-02-23 16:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:17:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:18:05 [end_date_ymd] => 2025-02-23 16:18:05 [RateCDR] => 1 ) [2025-02-23 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:18:05' and `end` < '2025-02-23 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:18:17] Production.INFO: count ==1392 [2025-02-23 16:18:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:18:05 - End Time 2025-02-23 16:18:05 [2025-02-23 16:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540928', 'tblTempUsageDetail_20' ) start [2025-02-23 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540928', 'tblTempUsageDetail_20' ) end [2025-02-23 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540928', 'tblTempVendorCDR_20' ) start [2025-02-23 16:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540928', 'tblTempVendorCDR_20' ) end [2025-02-23 16:18:17] Production.INFO: ProcessCDR(1,14540928,1,1,2) [2025-02-23 16:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540928', 'tblTempUsageDetail_20' ) start [2025-02-23 16:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540928', 'tblTempUsageDetail_20' ) end [2025-02-23 16:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:18:22] Production.INFO: ==4801== Releasing lock... [2025-02-23 16:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:19:05 [end_date_ymd] => 2025-02-23 16:19:05 [RateCDR] => 1 ) [2025-02-23 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:19:05' and `end` < '2025-02-23 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:19:17] Production.INFO: count ==1389 [2025-02-23 16:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:19:05 - End Time 2025-02-23 16:19:05 [2025-02-23 16:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540933', 'tblTempUsageDetail_20' ) start [2025-02-23 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540933', 'tblTempUsageDetail_20' ) end [2025-02-23 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540933', 'tblTempVendorCDR_20' ) start [2025-02-23 16:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540933', 'tblTempVendorCDR_20' ) end [2025-02-23 16:19:17] Production.INFO: ProcessCDR(1,14540933,1,1,2) [2025-02-23 16:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540933', 'tblTempUsageDetail_20' ) start [2025-02-23 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540933', 'tblTempUsageDetail_20' ) end [2025-02-23 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:19:22] Production.INFO: ==4877== Releasing lock... [2025-02-23 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:19:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:20:06 [end_date_ymd] => 2025-02-23 16:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:20:06' and `end` < '2025-02-23 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-02-23 16:20:18] Production.INFO: count ==1380 [2025-02-23 16:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:20:06 - End Time 2025-02-23 16:20:06 [2025-02-23 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540939', 'tblTempUsageDetail_20' ) start [2025-02-23 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540939', 'tblTempUsageDetail_20' ) end [2025-02-23 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540939', 'tblTempVendorCDR_20' ) start [2025-02-23 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540939', 'tblTempVendorCDR_20' ) end [2025-02-23 16:20:18] Production.INFO: ProcessCDR(1,14540939,1,1,2) [2025-02-23 16:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540939', 'tblTempUsageDetail_20' ) start [2025-02-23 16:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540939', 'tblTempUsageDetail_20' ) end [2025-02-23 16:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:20:23] Production.INFO: ==4951== Releasing lock... [2025-02-23 16:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:20:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:21:05 [end_date_ymd] => 2025-02-23 16:21:05 [RateCDR] => 1 ) [2025-02-23 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:21:05' and `end` < '2025-02-23 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:21:17] Production.INFO: count ==1408 [2025-02-23 16:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:21:05 - End Time 2025-02-23 16:21:05 [2025-02-23 16:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540944', 'tblTempUsageDetail_20' ) start [2025-02-23 16:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540944', 'tblTempUsageDetail_20' ) end [2025-02-23 16:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540944', 'tblTempVendorCDR_20' ) start [2025-02-23 16:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540944', 'tblTempVendorCDR_20' ) end [2025-02-23 16:21:17] Production.INFO: ProcessCDR(1,14540944,1,1,2) [2025-02-23 16:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540944', 'tblTempUsageDetail_20' ) start [2025-02-23 16:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540944', 'tblTempUsageDetail_20' ) end [2025-02-23 16:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:21:20] Production.INFO: ==5026== Releasing lock... [2025-02-23 16:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:21:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:22:05 [end_date_ymd] => 2025-02-23 16:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:22:05' and `end` < '2025-02-23 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-02-23 16:22:17] Production.INFO: count ==1412 [2025-02-23 16:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:22:05 - End Time 2025-02-23 16:22:05 [2025-02-23 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540949', 'tblTempUsageDetail_20' ) start [2025-02-23 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540949', 'tblTempUsageDetail_20' ) end [2025-02-23 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540949', 'tblTempVendorCDR_20' ) start [2025-02-23 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540949', 'tblTempVendorCDR_20' ) end [2025-02-23 16:22:18] Production.INFO: ProcessCDR(1,14540949,1,1,2) [2025-02-23 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540949', 'tblTempUsageDetail_20' ) start [2025-02-23 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540949', 'tblTempUsageDetail_20' ) end [2025-02-23 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:22:23] Production.INFO: ==5097== Releasing lock... [2025-02-23 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:22:23] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:23:05 [end_date_ymd] => 2025-02-23 16:23:05 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:23:05' and `end` < '2025-02-23 16: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-02-23 16:23:17] Production.INFO: count ==1412 [2025-02-23 16:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:23:05 - End Time 2025-02-23 16:23:05 [2025-02-23 16:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540954', 'tblTempUsageDetail_20' ) start [2025-02-23 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540954', 'tblTempUsageDetail_20' ) end [2025-02-23 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540954', 'tblTempVendorCDR_20' ) start [2025-02-23 16:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540954', 'tblTempVendorCDR_20' ) end [2025-02-23 16:23:17] Production.INFO: ProcessCDR(1,14540954,1,1,2) [2025-02-23 16:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540954', 'tblTempUsageDetail_20' ) start [2025-02-23 16:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540954', 'tblTempUsageDetail_20' ) end [2025-02-23 16:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:23:20] Production.INFO: ==5172== Releasing lock... [2025-02-23 16:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:23:20] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:24:05 [end_date_ymd] => 2025-02-23 16:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:24:05' and `end` < '2025-02-23 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-02-23 16:24:17] Production.INFO: count ==1411 [2025-02-23 16:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:24:05 - End Time 2025-02-23 16:24:05 [2025-02-23 16:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540959', 'tblTempUsageDetail_20' ) start [2025-02-23 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540959', 'tblTempUsageDetail_20' ) end [2025-02-23 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540959', 'tblTempVendorCDR_20' ) start [2025-02-23 16:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540959', 'tblTempVendorCDR_20' ) end [2025-02-23 16:24:18] Production.INFO: ProcessCDR(1,14540959,1,1,2) [2025-02-23 16:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540959', 'tblTempUsageDetail_20' ) start [2025-02-23 16:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540959', 'tblTempUsageDetail_20' ) end [2025-02-23 16:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:24:22] Production.INFO: ==5243== Releasing lock... [2025-02-23 16:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:24:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:25:06 [end_date_ymd] => 2025-02-23 16:25:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:25:06' and `end` < '2025-02-23 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-02-23 16:25:18] Production.INFO: count ==1405 [2025-02-23 16:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:25:06 - End Time 2025-02-23 16:25:06 [2025-02-23 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540964', 'tblTempUsageDetail_20' ) start [2025-02-23 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540964', 'tblTempUsageDetail_20' ) end [2025-02-23 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540964', 'tblTempVendorCDR_20' ) start [2025-02-23 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540964', 'tblTempVendorCDR_20' ) end [2025-02-23 16:25:18] Production.INFO: ProcessCDR(1,14540964,1,1,2) [2025-02-23 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540964', 'tblTempUsageDetail_20' ) start [2025-02-23 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540964', 'tblTempUsageDetail_20' ) end [2025-02-23 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:25:23] Production.INFO: ==5313== Releasing lock... [2025-02-23 16:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:25:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:26:05 [end_date_ymd] => 2025-02-23 16:26:05 [RateCDR] => 1 ) [2025-02-23 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:26:05' and `end` < '2025-02-23 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:26:17] Production.INFO: count ==1400 [2025-02-23 16:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:26:05 - End Time 2025-02-23 16:26:05 [2025-02-23 16:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540969', 'tblTempUsageDetail_20' ) start [2025-02-23 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540969', 'tblTempUsageDetail_20' ) end [2025-02-23 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540969', 'tblTempVendorCDR_20' ) start [2025-02-23 16:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540969', 'tblTempVendorCDR_20' ) end [2025-02-23 16:26:18] Production.INFO: ProcessCDR(1,14540969,1,1,2) [2025-02-23 16:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540969', 'tblTempUsageDetail_20' ) start [2025-02-23 16:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540969', 'tblTempUsageDetail_20' ) end [2025-02-23 16:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:26:22] Production.INFO: ==5385== Releasing lock... [2025-02-23 16:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:26:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:27:05 [end_date_ymd] => 2025-02-23 16:27:05 [RateCDR] => 1 ) [2025-02-23 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:27:05' and `end` < '2025-02-23 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:27:17] Production.INFO: count ==1394 [2025-02-23 16:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:27:05 - End Time 2025-02-23 16:27:05 [2025-02-23 16:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540974', 'tblTempUsageDetail_20' ) start [2025-02-23 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540974', 'tblTempUsageDetail_20' ) end [2025-02-23 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540974', 'tblTempVendorCDR_20' ) start [2025-02-23 16:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540974', 'tblTempVendorCDR_20' ) end [2025-02-23 16:27:18] Production.INFO: ProcessCDR(1,14540974,1,1,2) [2025-02-23 16:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540974', 'tblTempUsageDetail_20' ) start [2025-02-23 16:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540974', 'tblTempUsageDetail_20' ) end [2025-02-23 16:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:27:21] Production.INFO: ==5457== Releasing lock... [2025-02-23 16:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:27:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:28:05 [end_date_ymd] => 2025-02-23 16:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:28:05' and `end` < '2025-02-23 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-02-23 16:28:17] Production.INFO: count ==1380 [2025-02-23 16:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:28:05 - End Time 2025-02-23 16:28:05 [2025-02-23 16:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540979', 'tblTempUsageDetail_20' ) start [2025-02-23 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540979', 'tblTempUsageDetail_20' ) end [2025-02-23 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540979', 'tblTempVendorCDR_20' ) start [2025-02-23 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540979', 'tblTempVendorCDR_20' ) end [2025-02-23 16:28:18] Production.INFO: ProcessCDR(1,14540979,1,1,2) [2025-02-23 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540979', 'tblTempUsageDetail_20' ) start [2025-02-23 16:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540979', 'tblTempUsageDetail_20' ) end [2025-02-23 16:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:28:21] Production.INFO: ==5530== Releasing lock... [2025-02-23 16:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:28:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:29:06 [end_date_ymd] => 2025-02-23 16:29:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:29:06' and `end` < '2025-02-23 16: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-02-23 16:29:18] Production.INFO: count ==1380 [2025-02-23 16:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:29:06 - End Time 2025-02-23 16:29:06 [2025-02-23 16:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540984', 'tblTempUsageDetail_20' ) start [2025-02-23 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540984', 'tblTempUsageDetail_20' ) end [2025-02-23 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540984', 'tblTempVendorCDR_20' ) start [2025-02-23 16:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540984', 'tblTempVendorCDR_20' ) end [2025-02-23 16:29:18] Production.INFO: ProcessCDR(1,14540984,1,1,2) [2025-02-23 16:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540984', 'tblTempUsageDetail_20' ) start [2025-02-23 16:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540984', 'tblTempUsageDetail_20' ) end [2025-02-23 16:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:29:21] Production.INFO: ==5611== Releasing lock... [2025-02-23 16:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:29:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:30:05 [end_date_ymd] => 2025-02-23 16:30:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:30:05' and `end` < '2025-02-23 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-02-23 16:30:17] Production.INFO: count ==1372 [2025-02-23 16:30:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:30:05 - End Time 2025-02-23 16:30:05 [2025-02-23 16:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540990', 'tblTempUsageDetail_20' ) start [2025-02-23 16:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540990', 'tblTempUsageDetail_20' ) end [2025-02-23 16:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540990', 'tblTempVendorCDR_20' ) start [2025-02-23 16:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540990', 'tblTempVendorCDR_20' ) end [2025-02-23 16:30:17] Production.INFO: ProcessCDR(1,14540990,1,1,2) [2025-02-23 16:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540990', 'tblTempUsageDetail_20' ) start [2025-02-23 16:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540990', 'tblTempUsageDetail_20' ) end [2025-02-23 16:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:30:22] Production.INFO: ==5682== Releasing lock... [2025-02-23 16:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:31:05 [end_date_ymd] => 2025-02-23 16:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:31:05' and `end` < '2025-02-23 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-02-23 16:31:17] Production.INFO: count ==1380 [2025-02-23 16:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:31:05 - End Time 2025-02-23 16:31:05 [2025-02-23 16:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540995', 'tblTempUsageDetail_20' ) start [2025-02-23 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14540995', 'tblTempUsageDetail_20' ) end [2025-02-23 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540995', 'tblTempVendorCDR_20' ) start [2025-02-23 16:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14540995', 'tblTempVendorCDR_20' ) end [2025-02-23 16:31:18] Production.INFO: ProcessCDR(1,14540995,1,1,2) [2025-02-23 16:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14540995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14540995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14540995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14540995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540995', 'tblTempUsageDetail_20' ) start [2025-02-23 16:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14540995', 'tblTempUsageDetail_20' ) end [2025-02-23 16:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:31:22] Production.INFO: ==5760== Releasing lock... [2025-02-23 16:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:31:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:32:05 [end_date_ymd] => 2025-02-23 16:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:32:05' and `end` < '2025-02-23 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-02-23 16:32:17] Production.INFO: count ==1378 [2025-02-23 16:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:32:05 - End Time 2025-02-23 16:32:05 [2025-02-23 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541000', 'tblTempUsageDetail_20' ) start [2025-02-23 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541000', 'tblTempUsageDetail_20' ) end [2025-02-23 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541000', 'tblTempVendorCDR_20' ) start [2025-02-23 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541000', 'tblTempVendorCDR_20' ) end [2025-02-23 16:32:18] Production.INFO: ProcessCDR(1,14541000,1,1,2) [2025-02-23 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541000', 'tblTempUsageDetail_20' ) start [2025-02-23 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541000', 'tblTempUsageDetail_20' ) end [2025-02-23 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:32:22] Production.INFO: ==5834== Releasing lock... [2025-02-23 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:32:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:33:05 [end_date_ymd] => 2025-02-23 16:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:33:05' and `end` < '2025-02-23 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-02-23 16:33:17] Production.INFO: count ==1374 [2025-02-23 16:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:33:05 - End Time 2025-02-23 16:33:05 [2025-02-23 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541005', 'tblTempUsageDetail_20' ) start [2025-02-23 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541005', 'tblTempUsageDetail_20' ) end [2025-02-23 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541005', 'tblTempVendorCDR_20' ) start [2025-02-23 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541005', 'tblTempVendorCDR_20' ) end [2025-02-23 16:33:18] Production.INFO: ProcessCDR(1,14541005,1,1,2) [2025-02-23 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541005', 'tblTempUsageDetail_20' ) start [2025-02-23 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541005', 'tblTempUsageDetail_20' ) end [2025-02-23 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:33:22] Production.INFO: ==5946== Releasing lock... [2025-02-23 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:33:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:34:05 [end_date_ymd] => 2025-02-23 16:34:05 [RateCDR] => 1 ) [2025-02-23 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:34:05' and `end` < '2025-02-23 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:34:17] Production.INFO: count ==1422 [2025-02-23 16:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:34:05 - End Time 2025-02-23 16:34:05 [2025-02-23 16:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541010', 'tblTempUsageDetail_20' ) start [2025-02-23 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541010', 'tblTempUsageDetail_20' ) end [2025-02-23 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541010', 'tblTempVendorCDR_20' ) start [2025-02-23 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541010', 'tblTempVendorCDR_20' ) end [2025-02-23 16:34:17] Production.INFO: ProcessCDR(1,14541010,1,1,2) [2025-02-23 16:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541010', 'tblTempUsageDetail_20' ) start [2025-02-23 16:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541010', 'tblTempUsageDetail_20' ) end [2025-02-23 16:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:34:22] Production.INFO: ==6017== Releasing lock... [2025-02-23 16:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:34:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:35:05 [end_date_ymd] => 2025-02-23 16:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:35:05' and `end` < '2025-02-23 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-02-23 16:35:17] Production.INFO: count ==1409 [2025-02-23 16:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:35:05 - End Time 2025-02-23 16:35:05 [2025-02-23 16:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541015', 'tblTempUsageDetail_20' ) start [2025-02-23 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541015', 'tblTempUsageDetail_20' ) end [2025-02-23 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541015', 'tblTempVendorCDR_20' ) start [2025-02-23 16:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541015', 'tblTempVendorCDR_20' ) end [2025-02-23 16:35:18] Production.INFO: ProcessCDR(1,14541015,1,1,2) [2025-02-23 16:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541015', 'tblTempUsageDetail_20' ) start [2025-02-23 16:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541015', 'tblTempUsageDetail_20' ) end [2025-02-23 16:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:35:21] Production.INFO: ==6087== Releasing lock... [2025-02-23 16:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:35:21] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:36:05 [end_date_ymd] => 2025-02-23 16:36:05 [RateCDR] => 1 ) [2025-02-23 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:36:05' and `end` < '2025-02-23 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:36:17] Production.INFO: count ==1452 [2025-02-23 16:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:36:05 - End Time 2025-02-23 16:36:05 [2025-02-23 16:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541020', 'tblTempUsageDetail_20' ) start [2025-02-23 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541020', 'tblTempUsageDetail_20' ) end [2025-02-23 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541020', 'tblTempVendorCDR_20' ) start [2025-02-23 16:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541020', 'tblTempVendorCDR_20' ) end [2025-02-23 16:36:17] Production.INFO: ProcessCDR(1,14541020,1,1,2) [2025-02-23 16:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541020', 'tblTempUsageDetail_20' ) start [2025-02-23 16:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541020', 'tblTempUsageDetail_20' ) end [2025-02-23 16:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:36:20] Production.INFO: ==6158== Releasing lock... [2025-02-23 16:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:36:20] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:37:06 [end_date_ymd] => 2025-02-23 16:37:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:37:06' and `end` < '2025-02-23 16: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-02-23 16:37:18] Production.INFO: count ==1445 [2025-02-23 16:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:37:06 - End Time 2025-02-23 16:37:06 [2025-02-23 16:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541025', 'tblTempUsageDetail_20' ) start [2025-02-23 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541025', 'tblTempUsageDetail_20' ) end [2025-02-23 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541025', 'tblTempVendorCDR_20' ) start [2025-02-23 16:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541025', 'tblTempVendorCDR_20' ) end [2025-02-23 16:37:18] Production.INFO: ProcessCDR(1,14541025,1,1,2) [2025-02-23 16:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541025', 'tblTempUsageDetail_20' ) start [2025-02-23 16:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541025', 'tblTempUsageDetail_20' ) end [2025-02-23 16:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:37:23] Production.INFO: ==6233== Releasing lock... [2025-02-23 16:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:37:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:38:05 [end_date_ymd] => 2025-02-23 16:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:38:05' and `end` < '2025-02-23 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-02-23 16:38:17] Production.INFO: count ==1440 [2025-02-23 16:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:38:05 - End Time 2025-02-23 16:38:05 [2025-02-23 16:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541030', 'tblTempUsageDetail_20' ) start [2025-02-23 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541030', 'tblTempUsageDetail_20' ) end [2025-02-23 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541030', 'tblTempVendorCDR_20' ) start [2025-02-23 16:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541030', 'tblTempVendorCDR_20' ) end [2025-02-23 16:38:17] Production.INFO: ProcessCDR(1,14541030,1,1,2) [2025-02-23 16:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541030', 'tblTempUsageDetail_20' ) start [2025-02-23 16:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541030', 'tblTempUsageDetail_20' ) end [2025-02-23 16:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:38:22] Production.INFO: ==6310== Releasing lock... [2025-02-23 16:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:38:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:39:05 [end_date_ymd] => 2025-02-23 16:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:39:05' and `end` < '2025-02-23 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-02-23 16:39:17] Production.INFO: count ==1438 [2025-02-23 16:39:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:39:05 - End Time 2025-02-23 16:39:05 [2025-02-23 16:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541035', 'tblTempUsageDetail_20' ) start [2025-02-23 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541035', 'tblTempUsageDetail_20' ) end [2025-02-23 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541035', 'tblTempVendorCDR_20' ) start [2025-02-23 16:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541035', 'tblTempVendorCDR_20' ) end [2025-02-23 16:39:18] Production.INFO: ProcessCDR(1,14541035,1,1,2) [2025-02-23 16:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541035', 'tblTempUsageDetail_20' ) start [2025-02-23 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541035', 'tblTempUsageDetail_20' ) end [2025-02-23 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:39:22] Production.INFO: ==6380== Releasing lock... [2025-02-23 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:40:06 [end_date_ymd] => 2025-02-23 16:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:40:06' and `end` < '2025-02-23 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-02-23 16:40:18] Production.INFO: count ==1533 [2025-02-23 16:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:40:06 - End Time 2025-02-23 16:40:06 [2025-02-23 16:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541041', 'tblTempUsageDetail_20' ) start [2025-02-23 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541041', 'tblTempUsageDetail_20' ) end [2025-02-23 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541041', 'tblTempVendorCDR_20' ) start [2025-02-23 16:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541041', 'tblTempVendorCDR_20' ) end [2025-02-23 16:40:18] Production.INFO: ProcessCDR(1,14541041,1,1,2) [2025-02-23 16:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541041', 'tblTempUsageDetail_20' ) start [2025-02-23 16:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541041', 'tblTempUsageDetail_20' ) end [2025-02-23 16:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:40:23] Production.INFO: ==6456== Releasing lock... [2025-02-23 16:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-23 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:41:05 [end_date_ymd] => 2025-02-23 16:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:41:05' and `end` < '2025-02-23 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-02-23 16:41:17] Production.INFO: count ==1498 [2025-02-23 16:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:41:05 - End Time 2025-02-23 16:41:05 [2025-02-23 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541046', 'tblTempUsageDetail_20' ) start [2025-02-23 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541046', 'tblTempUsageDetail_20' ) end [2025-02-23 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541046', 'tblTempVendorCDR_20' ) start [2025-02-23 16:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541046', 'tblTempVendorCDR_20' ) end [2025-02-23 16:41:18] Production.INFO: ProcessCDR(1,14541046,1,1,2) [2025-02-23 16:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541046', 'tblTempUsageDetail_20' ) start [2025-02-23 16:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541046', 'tblTempUsageDetail_20' ) end [2025-02-23 16:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:41:21] Production.INFO: ==6532== Releasing lock... [2025-02-23 16:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:41:21] Production.INFO: 39.5 MB #Memory Used# [2025-02-23 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:42:05 [end_date_ymd] => 2025-02-23 16:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:42:05' and `end` < '2025-02-23 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-02-23 16:42:17] Production.INFO: count ==1496 [2025-02-23 16:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:42:05 - End Time 2025-02-23 16:42:05 [2025-02-23 16:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541051', 'tblTempUsageDetail_20' ) start [2025-02-23 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541051', 'tblTempUsageDetail_20' ) end [2025-02-23 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541051', 'tblTempVendorCDR_20' ) start [2025-02-23 16:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541051', 'tblTempVendorCDR_20' ) end [2025-02-23 16:42:18] Production.INFO: ProcessCDR(1,14541051,1,1,2) [2025-02-23 16:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541051', 'tblTempUsageDetail_20' ) start [2025-02-23 16:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541051', 'tblTempUsageDetail_20' ) end [2025-02-23 16:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:42:21] Production.INFO: ==6607== Releasing lock... [2025-02-23 16:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:42:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:43:05 [end_date_ymd] => 2025-02-23 16:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:43:05' and `end` < '2025-02-23 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-02-23 16:43:17] Production.INFO: count ==1496 [2025-02-23 16:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:43:05 - End Time 2025-02-23 16:43:05 [2025-02-23 16:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541056', 'tblTempUsageDetail_20' ) start [2025-02-23 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541056', 'tblTempUsageDetail_20' ) end [2025-02-23 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541056', 'tblTempVendorCDR_20' ) start [2025-02-23 16:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541056', 'tblTempVendorCDR_20' ) end [2025-02-23 16:43:18] Production.INFO: ProcessCDR(1,14541056,1,1,2) [2025-02-23 16:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541056', 'tblTempUsageDetail_20' ) start [2025-02-23 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541056', 'tblTempUsageDetail_20' ) end [2025-02-23 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:43:23] Production.INFO: ==6681== Releasing lock... [2025-02-23 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:43:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:44:05 [end_date_ymd] => 2025-02-23 16:44:05 [RateCDR] => 1 ) [2025-02-23 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:44:05' and `end` < '2025-02-23 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:44:17] Production.INFO: count ==1494 [2025-02-23 16:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:44:05 - End Time 2025-02-23 16:44:05 [2025-02-23 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541061', 'tblTempUsageDetail_20' ) start [2025-02-23 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541061', 'tblTempUsageDetail_20' ) end [2025-02-23 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541061', 'tblTempVendorCDR_20' ) start [2025-02-23 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541061', 'tblTempVendorCDR_20' ) end [2025-02-23 16:44:18] Production.INFO: ProcessCDR(1,14541061,1,1,2) [2025-02-23 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541061', 'tblTempUsageDetail_20' ) start [2025-02-23 16:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541061', 'tblTempUsageDetail_20' ) end [2025-02-23 16:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:44:22] Production.INFO: ==6750== Releasing lock... [2025-02-23 16:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:44:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:45:04 [end_date_ymd] => 2025-02-23 16:45:04 [RateCDR] => 1 ) [2025-02-23 16:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:45:04' and `end` < '2025-02-23 16:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:45:16] Production.INFO: count ==1491 [2025-02-23 16:45:16] Production.ERROR: pbx CDR StartTime 2025-02-23 13:45:04 - End Time 2025-02-23 16:45:04 [2025-02-23 16:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541066', 'tblTempUsageDetail_20' ) start [2025-02-23 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541066', 'tblTempUsageDetail_20' ) end [2025-02-23 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541066', 'tblTempVendorCDR_20' ) start [2025-02-23 16:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541066', 'tblTempVendorCDR_20' ) end [2025-02-23 16:45:17] Production.INFO: ProcessCDR(1,14541066,1,1,2) [2025-02-23 16:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541066', 'tblTempUsageDetail_20' ) start [2025-02-23 16:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541066', 'tblTempUsageDetail_20' ) end [2025-02-23 16:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:45:20] Production.INFO: ==6826== Releasing lock... [2025-02-23 16:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:45:20] Production.INFO: 39.5 MB #Memory Used# [2025-02-23 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:46:05 [end_date_ymd] => 2025-02-23 16:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:46:05' and `end` < '2025-02-23 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-02-23 16:46:17] Production.INFO: count ==1489 [2025-02-23 16:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:46:05 - End Time 2025-02-23 16:46:05 [2025-02-23 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541071', 'tblTempUsageDetail_20' ) start [2025-02-23 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541071', 'tblTempUsageDetail_20' ) end [2025-02-23 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541071', 'tblTempVendorCDR_20' ) start [2025-02-23 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541071', 'tblTempVendorCDR_20' ) end [2025-02-23 16:46:18] Production.INFO: ProcessCDR(1,14541071,1,1,2) [2025-02-23 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541071', 'tblTempUsageDetail_20' ) start [2025-02-23 16:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541071', 'tblTempUsageDetail_20' ) end [2025-02-23 16:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:46:21] Production.INFO: ==6898== Releasing lock... [2025-02-23 16:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:46:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:47:05 [end_date_ymd] => 2025-02-23 16:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:47:05' and `end` < '2025-02-23 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-02-23 16:47:17] Production.INFO: count ==1489 [2025-02-23 16:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:47:05 - End Time 2025-02-23 16:47:05 [2025-02-23 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541076', 'tblTempUsageDetail_20' ) start [2025-02-23 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541076', 'tblTempUsageDetail_20' ) end [2025-02-23 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541076', 'tblTempVendorCDR_20' ) start [2025-02-23 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541076', 'tblTempVendorCDR_20' ) end [2025-02-23 16:47:18] Production.INFO: ProcessCDR(1,14541076,1,1,2) [2025-02-23 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541076', 'tblTempUsageDetail_20' ) start [2025-02-23 16:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541076', 'tblTempUsageDetail_20' ) end [2025-02-23 16:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:47:22] Production.INFO: ==6973== Releasing lock... [2025-02-23 16:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:47:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-23 16:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:48:04 [end_date_ymd] => 2025-02-23 16:48:04 [RateCDR] => 1 ) [2025-02-23 16:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:48:04' and `end` < '2025-02-23 16:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:48:16] Production.INFO: count ==1488 [2025-02-23 16:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:48:04 - End Time 2025-02-23 16:48:04 [2025-02-23 16:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541081', 'tblTempUsageDetail_20' ) start [2025-02-23 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541081', 'tblTempUsageDetail_20' ) end [2025-02-23 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541081', 'tblTempVendorCDR_20' ) start [2025-02-23 16:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541081', 'tblTempVendorCDR_20' ) end [2025-02-23 16:48:17] Production.INFO: ProcessCDR(1,14541081,1,1,2) [2025-02-23 16:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541081', 'tblTempUsageDetail_20' ) start [2025-02-23 16:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541081', 'tblTempUsageDetail_20' ) end [2025-02-23 16:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:48:20] Production.INFO: ==7045== Releasing lock... [2025-02-23 16:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:48:20] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:49:06 [end_date_ymd] => 2025-02-23 16:49:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:49:06' and `end` < '2025-02-23 16: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-02-23 16:49:17] Production.INFO: count ==1599 [2025-02-23 16:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:49:06 - End Time 2025-02-23 16:49:06 [2025-02-23 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541086', 'tblTempUsageDetail_20' ) start [2025-02-23 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541086', 'tblTempUsageDetail_20' ) end [2025-02-23 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541086', 'tblTempVendorCDR_20' ) start [2025-02-23 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541086', 'tblTempVendorCDR_20' ) end [2025-02-23 16:49:18] Production.INFO: ProcessCDR(1,14541086,1,1,2) [2025-02-23 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541086', 'tblTempUsageDetail_20' ) start [2025-02-23 16:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541086', 'tblTempUsageDetail_20' ) end [2025-02-23 16:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:49:23] Production.INFO: ==7162== Releasing lock... [2025-02-23 16:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:49:23] Production.INFO: 40 MB #Memory Used# [2025-02-23 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:50:05 [end_date_ymd] => 2025-02-23 16:50:05 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:50:05' and `end` < '2025-02-23 16: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-02-23 16:50:17] Production.INFO: count ==1602 [2025-02-23 16:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:50:05 - End Time 2025-02-23 16:50:05 [2025-02-23 16:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541091', 'tblTempUsageDetail_20' ) start [2025-02-23 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541091', 'tblTempUsageDetail_20' ) end [2025-02-23 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541091', 'tblTempVendorCDR_20' ) start [2025-02-23 16:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541091', 'tblTempVendorCDR_20' ) end [2025-02-23 16:50:18] Production.INFO: ProcessCDR(1,14541091,1,1,2) [2025-02-23 16:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541091', 'tblTempUsageDetail_20' ) start [2025-02-23 16:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541091', 'tblTempUsageDetail_20' ) end [2025-02-23 16:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:50:21] Production.INFO: ==7232== Releasing lock... [2025-02-23 16:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:50:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:51:05 [end_date_ymd] => 2025-02-23 16:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:51:05' and `end` < '2025-02-23 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-02-23 16:51:17] Production.INFO: count ==1632 [2025-02-23 16:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:51:05 - End Time 2025-02-23 16:51:05 [2025-02-23 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541097', 'tblTempUsageDetail_20' ) start [2025-02-23 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541097', 'tblTempUsageDetail_20' ) end [2025-02-23 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541097', 'tblTempVendorCDR_20' ) start [2025-02-23 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541097', 'tblTempVendorCDR_20' ) end [2025-02-23 16:51:18] Production.INFO: ProcessCDR(1,14541097,1,1,2) [2025-02-23 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541097', 'tblTempUsageDetail_20' ) start [2025-02-23 16:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541097', 'tblTempUsageDetail_20' ) end [2025-02-23 16:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:51:23] Production.INFO: ==7308== Releasing lock... [2025-02-23 16:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:51:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:52:06 [end_date_ymd] => 2025-02-23 16:52:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:52:06' and `end` < '2025-02-23 16: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-02-23 16:52:18] Production.INFO: count ==1620 [2025-02-23 16:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:52:06 - End Time 2025-02-23 16:52:06 [2025-02-23 16:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541102', 'tblTempUsageDetail_20' ) start [2025-02-23 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541102', 'tblTempUsageDetail_20' ) end [2025-02-23 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541102', 'tblTempVendorCDR_20' ) start [2025-02-23 16:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541102', 'tblTempVendorCDR_20' ) end [2025-02-23 16:52:18] Production.INFO: ProcessCDR(1,14541102,1,1,2) [2025-02-23 16:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541102', 'tblTempUsageDetail_20' ) start [2025-02-23 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541102', 'tblTempUsageDetail_20' ) end [2025-02-23 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:52:23] Production.INFO: ==7381== Releasing lock... [2025-02-23 16:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:52:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-23 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:53:05 [end_date_ymd] => 2025-02-23 16:53:05 [RateCDR] => 1 ) [2025-02-23 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:53:05' and `end` < '2025-02-23 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:53:17] Production.INFO: count ==1620 [2025-02-23 16:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:53:05 - End Time 2025-02-23 16:53:05 [2025-02-23 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541107', 'tblTempUsageDetail_20' ) start [2025-02-23 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541107', 'tblTempUsageDetail_20' ) end [2025-02-23 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541107', 'tblTempVendorCDR_20' ) start [2025-02-23 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541107', 'tblTempVendorCDR_20' ) end [2025-02-23 16:53:18] Production.INFO: ProcessCDR(1,14541107,1,1,2) [2025-02-23 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541107', 'tblTempUsageDetail_20' ) start [2025-02-23 16:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541107', 'tblTempUsageDetail_20' ) end [2025-02-23 16:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:53:23] Production.INFO: ==7452== Releasing lock... [2025-02-23 16:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:53:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:54:06 [end_date_ymd] => 2025-02-23 16:54:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:54:06' and `end` < '2025-02-23 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-02-23 16:54:18] Production.INFO: count ==1631 [2025-02-23 16:54:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:54:06 - End Time 2025-02-23 16:54:06 [2025-02-23 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541112', 'tblTempUsageDetail_20' ) start [2025-02-23 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541112', 'tblTempUsageDetail_20' ) end [2025-02-23 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541112', 'tblTempVendorCDR_20' ) start [2025-02-23 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541112', 'tblTempVendorCDR_20' ) end [2025-02-23 16:54:18] Production.INFO: ProcessCDR(1,14541112,1,1,2) [2025-02-23 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541112', 'tblTempUsageDetail_20' ) start [2025-02-23 16:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541112', 'tblTempUsageDetail_20' ) end [2025-02-23 16:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:54:23] Production.INFO: ==7521== Releasing lock... [2025-02-23 16:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:54:23] Production.INFO: 40 MB #Memory Used# [2025-02-23 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:55:05 [end_date_ymd] => 2025-02-23 16:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:55:05' and `end` < '2025-02-23 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-02-23 16:55:17] Production.INFO: count ==1634 [2025-02-23 16:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 13:55:05 - End Time 2025-02-23 16:55:05 [2025-02-23 16:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541117', 'tblTempUsageDetail_20' ) start [2025-02-23 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541117', 'tblTempUsageDetail_20' ) end [2025-02-23 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541117', 'tblTempVendorCDR_20' ) start [2025-02-23 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541117', 'tblTempVendorCDR_20' ) end [2025-02-23 16:55:18] Production.INFO: ProcessCDR(1,14541117,1,1,2) [2025-02-23 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541117', 'tblTempUsageDetail_20' ) start [2025-02-23 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541117', 'tblTempUsageDetail_20' ) end [2025-02-23 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:55:22] Production.INFO: ==7591== Releasing lock... [2025-02-23 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:55:22] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:56:06 [end_date_ymd] => 2025-02-23 16:56:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:56:06' and `end` < '2025-02-23 16: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-02-23 16:56:18] Production.INFO: count ==1636 [2025-02-23 16:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:56:06 - End Time 2025-02-23 16:56:06 [2025-02-23 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541122', 'tblTempUsageDetail_20' ) start [2025-02-23 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541122', 'tblTempUsageDetail_20' ) end [2025-02-23 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541122', 'tblTempVendorCDR_20' ) start [2025-02-23 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541122', 'tblTempVendorCDR_20' ) end [2025-02-23 16:56:18] Production.INFO: ProcessCDR(1,14541122,1,1,2) [2025-02-23 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541122', 'tblTempUsageDetail_20' ) start [2025-02-23 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541122', 'tblTempUsageDetail_20' ) end [2025-02-23 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:56:23] Production.INFO: ==7665== Releasing lock... [2025-02-23 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:56:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:57:06 [end_date_ymd] => 2025-02-23 16:57:06 [RateCDR] => 1 ) [2025-02-23 16: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-02-23 13:57:06' and `end` < '2025-02-23 16: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-02-23 16:57:18] Production.INFO: count ==1642 [2025-02-23 16:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:57:06 - End Time 2025-02-23 16:57:06 [2025-02-23 16:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541127', 'tblTempUsageDetail_20' ) start [2025-02-23 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541127', 'tblTempUsageDetail_20' ) end [2025-02-23 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541127', 'tblTempVendorCDR_20' ) start [2025-02-23 16:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541127', 'tblTempVendorCDR_20' ) end [2025-02-23 16:57:18] Production.INFO: ProcessCDR(1,14541127,1,1,2) [2025-02-23 16:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541127', 'tblTempUsageDetail_20' ) start [2025-02-23 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541127', 'tblTempUsageDetail_20' ) end [2025-02-23 16:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:57:23] Production.INFO: ==7736== Releasing lock... [2025-02-23 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:57:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:58:05 [end_date_ymd] => 2025-02-23 16:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 13:58:05' and `end` < '2025-02-23 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-02-23 16:58:18] Production.INFO: count ==1642 [2025-02-23 16:58:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:58:05 - End Time 2025-02-23 16:58:05 [2025-02-23 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541132', 'tblTempUsageDetail_20' ) start [2025-02-23 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541132', 'tblTempUsageDetail_20' ) end [2025-02-23 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541132', 'tblTempVendorCDR_20' ) start [2025-02-23 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541132', 'tblTempVendorCDR_20' ) end [2025-02-23 16:58:18] Production.INFO: ProcessCDR(1,14541132,1,1,2) [2025-02-23 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541132', 'tblTempUsageDetail_20' ) start [2025-02-23 16:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541132', 'tblTempUsageDetail_20' ) end [2025-02-23 16:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:58:23] Production.INFO: ==7807== Releasing lock... [2025-02-23 16:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:58:23] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 13:59:05 [end_date_ymd] => 2025-02-23 16:59:05 [RateCDR] => 1 ) [2025-02-23 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 13:59:05' and `end` < '2025-02-23 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 16:59:17] Production.INFO: count ==1637 [2025-02-23 16:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 13:59:05 - End Time 2025-02-23 16:59:05 [2025-02-23 16:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541137', 'tblTempUsageDetail_20' ) start [2025-02-23 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541137', 'tblTempUsageDetail_20' ) end [2025-02-23 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541137', 'tblTempVendorCDR_20' ) start [2025-02-23 16:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541137', 'tblTempVendorCDR_20' ) end [2025-02-23 16:59:18] Production.INFO: ProcessCDR(1,14541137,1,1,2) [2025-02-23 16:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 16:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541137', 'tblTempUsageDetail_20' ) start [2025-02-23 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541137', 'tblTempUsageDetail_20' ) end [2025-02-23 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 16:59:23] Production.INFO: ==7880== Releasing lock... [2025-02-23 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 16:59:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:00:07 [end_date_ymd] => 2025-02-23 17:00:07 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:00:07' and `end` < '2025-02-23 17: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-02-23 17:00:19] Production.INFO: count ==1715 [2025-02-23 17:00:20] Production.ERROR: pbx CDR StartTime 2025-02-23 14:00:07 - End Time 2025-02-23 17:00:07 [2025-02-23 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541143', 'tblTempUsageDetail_20' ) start [2025-02-23 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541143', 'tblTempUsageDetail_20' ) end [2025-02-23 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541143', 'tblTempVendorCDR_20' ) start [2025-02-23 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541143', 'tblTempVendorCDR_20' ) end [2025-02-23 17:00:20] Production.INFO: ProcessCDR(1,14541143,1,1,2) [2025-02-23 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541143', 'tblTempUsageDetail_20' ) start [2025-02-23 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541143', 'tblTempUsageDetail_20' ) end [2025-02-23 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:00:25] Production.INFO: ==7958== Releasing lock... [2025-02-23 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:00:25] Production.INFO: 41 MB #Memory Used# [2025-02-23 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:01:05 [end_date_ymd] => 2025-02-23 17:01:05 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:01:05' and `end` < '2025-02-23 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:01:17] Production.INFO: count ==1703 [2025-02-23 17:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:01:05 - End Time 2025-02-23 17:01:05 [2025-02-23 17:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541148', 'tblTempUsageDetail_20' ) start [2025-02-23 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541148', 'tblTempUsageDetail_20' ) end [2025-02-23 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541148', 'tblTempVendorCDR_20' ) start [2025-02-23 17:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541148', 'tblTempVendorCDR_20' ) end [2025-02-23 17:01:18] Production.INFO: ProcessCDR(1,14541148,1,1,2) [2025-02-23 17:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541148', 'tblTempUsageDetail_20' ) start [2025-02-23 17:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541148', 'tblTempUsageDetail_20' ) end [2025-02-23 17:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:01:23] Production.INFO: ==8045== Releasing lock... [2025-02-23 17:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:01:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:02:06 [end_date_ymd] => 2025-02-23 17:02:06 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:02:06' and `end` < '2025-02-23 17: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-02-23 17:02:18] Production.INFO: count ==1702 [2025-02-23 17:02:19] Production.ERROR: pbx CDR StartTime 2025-02-23 14:02:06 - End Time 2025-02-23 17:02:06 [2025-02-23 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541153', 'tblTempUsageDetail_20' ) start [2025-02-23 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541153', 'tblTempUsageDetail_20' ) end [2025-02-23 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541153', 'tblTempVendorCDR_20' ) start [2025-02-23 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541153', 'tblTempVendorCDR_20' ) end [2025-02-23 17:02:19] Production.INFO: ProcessCDR(1,14541153,1,1,2) [2025-02-23 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541153', 'tblTempUsageDetail_20' ) start [2025-02-23 17:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541153', 'tblTempUsageDetail_20' ) end [2025-02-23 17:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:02:23] Production.INFO: ==8118== Releasing lock... [2025-02-23 17:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:02:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:03:05 [end_date_ymd] => 2025-02-23 17:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:03:05' and `end` < '2025-02-23 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-02-23 17:03:18] Production.INFO: count ==1688 [2025-02-23 17:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:03:05 - End Time 2025-02-23 17:03:05 [2025-02-23 17:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541158', 'tblTempUsageDetail_20' ) start [2025-02-23 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541158', 'tblTempUsageDetail_20' ) end [2025-02-23 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541158', 'tblTempVendorCDR_20' ) start [2025-02-23 17:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541158', 'tblTempVendorCDR_20' ) end [2025-02-23 17:03:18] Production.INFO: ProcessCDR(1,14541158,1,1,2) [2025-02-23 17:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541158', 'tblTempUsageDetail_20' ) start [2025-02-23 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541158', 'tblTempUsageDetail_20' ) end [2025-02-23 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:03:23] Production.INFO: ==8189== Releasing lock... [2025-02-23 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:03:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:04:06 [end_date_ymd] => 2025-02-23 17:04:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:04:06' and `end` < '2025-02-23 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-02-23 17:04:18] Production.INFO: count ==1682 [2025-02-23 17:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:04:06 - End Time 2025-02-23 17:04:06 [2025-02-23 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541163', 'tblTempUsageDetail_20' ) start [2025-02-23 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541163', 'tblTempUsageDetail_20' ) end [2025-02-23 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541163', 'tblTempVendorCDR_20' ) start [2025-02-23 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541163', 'tblTempVendorCDR_20' ) end [2025-02-23 17:04:18] Production.INFO: ProcessCDR(1,14541163,1,1,2) [2025-02-23 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541163', 'tblTempUsageDetail_20' ) start [2025-02-23 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541163', 'tblTempUsageDetail_20' ) end [2025-02-23 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:04:23] Production.INFO: ==8299== Releasing lock... [2025-02-23 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:04:23] Production.INFO: 41 MB #Memory Used# [2025-02-23 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:05:05 [end_date_ymd] => 2025-02-23 17:05:05 [RateCDR] => 1 ) [2025-02-23 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:05:05' and `end` < '2025-02-23 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:05:17] Production.INFO: count ==1685 [2025-02-23 17:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:05:05 - End Time 2025-02-23 17:05:05 [2025-02-23 17:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541168', 'tblTempUsageDetail_20' ) start [2025-02-23 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541168', 'tblTempUsageDetail_20' ) end [2025-02-23 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541168', 'tblTempVendorCDR_20' ) start [2025-02-23 17:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541168', 'tblTempVendorCDR_20' ) end [2025-02-23 17:05:17] Production.INFO: ProcessCDR(1,14541168,1,1,2) [2025-02-23 17:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541168', 'tblTempUsageDetail_20' ) start [2025-02-23 17:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541168', 'tblTempUsageDetail_20' ) end [2025-02-23 17:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:05:22] Production.INFO: ==8371== Releasing lock... [2025-02-23 17:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:05:22] Production.INFO: 41 MB #Memory Used# [2025-02-23 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:06:05 [end_date_ymd] => 2025-02-23 17:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:06:05' and `end` < '2025-02-23 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-02-23 17:06:17] Production.INFO: count ==1707 [2025-02-23 17:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:06:05 - End Time 2025-02-23 17:06:05 [2025-02-23 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541173', 'tblTempUsageDetail_20' ) start [2025-02-23 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541173', 'tblTempUsageDetail_20' ) end [2025-02-23 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541173', 'tblTempVendorCDR_20' ) start [2025-02-23 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541173', 'tblTempVendorCDR_20' ) end [2025-02-23 17:06:18] Production.INFO: ProcessCDR(1,14541173,1,1,2) [2025-02-23 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541173', 'tblTempUsageDetail_20' ) start [2025-02-23 17:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541173', 'tblTempUsageDetail_20' ) end [2025-02-23 17:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:06:23] Production.INFO: ==8443== Releasing lock... [2025-02-23 17:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:06:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:07:05 [end_date_ymd] => 2025-02-23 17:07:05 [RateCDR] => 1 ) [2025-02-23 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:07:05' and `end` < '2025-02-23 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:07:17] Production.INFO: count ==1693 [2025-02-23 17:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:07:05 - End Time 2025-02-23 17:07:05 [2025-02-23 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541178', 'tblTempUsageDetail_20' ) start [2025-02-23 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541178', 'tblTempUsageDetail_20' ) end [2025-02-23 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541178', 'tblTempVendorCDR_20' ) start [2025-02-23 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541178', 'tblTempVendorCDR_20' ) end [2025-02-23 17:07:18] Production.INFO: ProcessCDR(1,14541178,1,1,2) [2025-02-23 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541178', 'tblTempUsageDetail_20' ) start [2025-02-23 17:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541178', 'tblTempUsageDetail_20' ) end [2025-02-23 17:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:07:22] Production.INFO: ==8513== Releasing lock... [2025-02-23 17:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:07:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:08:05 [end_date_ymd] => 2025-02-23 17:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:08:05' and `end` < '2025-02-23 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-02-23 17:08:17] Production.INFO: count ==1691 [2025-02-23 17:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:08:05 - End Time 2025-02-23 17:08:05 [2025-02-23 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541183', 'tblTempUsageDetail_20' ) start [2025-02-23 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541183', 'tblTempUsageDetail_20' ) end [2025-02-23 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541183', 'tblTempVendorCDR_20' ) start [2025-02-23 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541183', 'tblTempVendorCDR_20' ) end [2025-02-23 17:08:18] Production.INFO: ProcessCDR(1,14541183,1,1,2) [2025-02-23 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541183', 'tblTempUsageDetail_20' ) start [2025-02-23 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541183', 'tblTempUsageDetail_20' ) end [2025-02-23 17:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:08:23] Production.INFO: ==8591== Releasing lock... [2025-02-23 17:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:08:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:09:05 [end_date_ymd] => 2025-02-23 17:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:09:05' and `end` < '2025-02-23 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-02-23 17:09:17] Production.INFO: count ==1691 [2025-02-23 17:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:09:05 - End Time 2025-02-23 17:09:05 [2025-02-23 17:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541188', 'tblTempUsageDetail_20' ) start [2025-02-23 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541188', 'tblTempUsageDetail_20' ) end [2025-02-23 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541188', 'tblTempVendorCDR_20' ) start [2025-02-23 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541188', 'tblTempVendorCDR_20' ) end [2025-02-23 17:09:18] Production.INFO: ProcessCDR(1,14541188,1,1,2) [2025-02-23 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541188', 'tblTempUsageDetail_20' ) start [2025-02-23 17:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541188', 'tblTempUsageDetail_20' ) end [2025-02-23 17:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:09:22] Production.INFO: ==8660== Releasing lock... [2025-02-23 17:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:09:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:10:05 [end_date_ymd] => 2025-02-23 17:10:05 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:10:05' and `end` < '2025-02-23 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:10:17] Production.INFO: count ==1694 [2025-02-23 17:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:10:05 - End Time 2025-02-23 17:10:05 [2025-02-23 17:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541193', 'tblTempUsageDetail_20' ) start [2025-02-23 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541193', 'tblTempUsageDetail_20' ) end [2025-02-23 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541193', 'tblTempVendorCDR_20' ) start [2025-02-23 17:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541193', 'tblTempVendorCDR_20' ) end [2025-02-23 17:10:18] Production.INFO: ProcessCDR(1,14541193,1,1,2) [2025-02-23 17:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541193', 'tblTempUsageDetail_20' ) start [2025-02-23 17:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541193', 'tblTempUsageDetail_20' ) end [2025-02-23 17:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:10:23] Production.INFO: ==8736== Releasing lock... [2025-02-23 17:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:10:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:11:05 [end_date_ymd] => 2025-02-23 17:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:11:05' and `end` < '2025-02-23 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-02-23 17:11:17] Production.INFO: count ==1734 [2025-02-23 17:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:11:05 - End Time 2025-02-23 17:11:05 [2025-02-23 17:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541199', 'tblTempUsageDetail_20' ) start [2025-02-23 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541199', 'tblTempUsageDetail_20' ) end [2025-02-23 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541199', 'tblTempVendorCDR_20' ) start [2025-02-23 17:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541199', 'tblTempVendorCDR_20' ) end [2025-02-23 17:11:17] Production.INFO: ProcessCDR(1,14541199,1,1,2) [2025-02-23 17:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541199', 'tblTempUsageDetail_20' ) start [2025-02-23 17:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541199', 'tblTempUsageDetail_20' ) end [2025-02-23 17:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:11:22] Production.INFO: ==8811== Releasing lock... [2025-02-23 17:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:11:22] Production.INFO: 41 MB #Memory Used# [2025-02-23 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:12:05 [end_date_ymd] => 2025-02-23 17:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:12:05' and `end` < '2025-02-23 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-02-23 17:12:17] Production.INFO: count ==1736 [2025-02-23 17:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:12:05 - End Time 2025-02-23 17:12:05 [2025-02-23 17:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541204', 'tblTempUsageDetail_20' ) start [2025-02-23 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541204', 'tblTempUsageDetail_20' ) end [2025-02-23 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541204', 'tblTempVendorCDR_20' ) start [2025-02-23 17:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541204', 'tblTempVendorCDR_20' ) end [2025-02-23 17:12:18] Production.INFO: ProcessCDR(1,14541204,1,1,2) [2025-02-23 17:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541204', 'tblTempUsageDetail_20' ) start [2025-02-23 17:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541204', 'tblTempUsageDetail_20' ) end [2025-02-23 17:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:12:22] Production.INFO: ==8886== Releasing lock... [2025-02-23 17:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:12:22] Production.INFO: 41 MB #Memory Used# [2025-02-23 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:13:04 [end_date_ymd] => 2025-02-23 17:13:04 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:13:04' and `end` < '2025-02-23 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:13:17] Production.INFO: count ==1737 [2025-02-23 17:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:13:04 - End Time 2025-02-23 17:13:04 [2025-02-23 17:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541209', 'tblTempUsageDetail_20' ) start [2025-02-23 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541209', 'tblTempUsageDetail_20' ) end [2025-02-23 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541209', 'tblTempVendorCDR_20' ) start [2025-02-23 17:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541209', 'tblTempVendorCDR_20' ) end [2025-02-23 17:13:17] Production.INFO: ProcessCDR(1,14541209,1,1,2) [2025-02-23 17:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541209', 'tblTempUsageDetail_20' ) start [2025-02-23 17:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541209', 'tblTempUsageDetail_20' ) end [2025-02-23 17:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:13:22] Production.INFO: ==8960== Releasing lock... [2025-02-23 17:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:13:22] Production.INFO: 41 MB #Memory Used# [2025-02-23 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:14:05 [end_date_ymd] => 2025-02-23 17:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:14:05' and `end` < '2025-02-23 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-02-23 17:14:17] Production.INFO: count ==1764 [2025-02-23 17:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:14:05 - End Time 2025-02-23 17:14:05 [2025-02-23 17:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541214', 'tblTempUsageDetail_20' ) start [2025-02-23 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541214', 'tblTempUsageDetail_20' ) end [2025-02-23 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541214', 'tblTempVendorCDR_20' ) start [2025-02-23 17:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541214', 'tblTempVendorCDR_20' ) end [2025-02-23 17:14:17] Production.INFO: ProcessCDR(1,14541214,1,1,2) [2025-02-23 17:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541214', 'tblTempUsageDetail_20' ) start [2025-02-23 17:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541214', 'tblTempUsageDetail_20' ) end [2025-02-23 17:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:14:22] Production.INFO: ==9035== Releasing lock... [2025-02-23 17:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:14:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-23 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:15:06 [end_date_ymd] => 2025-02-23 17:15:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:15:06' and `end` < '2025-02-23 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-02-23 17:15:18] Production.INFO: count ==1764 [2025-02-23 17:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:15:06 - End Time 2025-02-23 17:15:06 [2025-02-23 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541219', 'tblTempUsageDetail_20' ) start [2025-02-23 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541219', 'tblTempUsageDetail_20' ) end [2025-02-23 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541219', 'tblTempVendorCDR_20' ) start [2025-02-23 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541219', 'tblTempVendorCDR_20' ) end [2025-02-23 17:15:18] Production.INFO: ProcessCDR(1,14541219,1,1,2) [2025-02-23 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541219', 'tblTempUsageDetail_20' ) start [2025-02-23 17:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541219', 'tblTempUsageDetail_20' ) end [2025-02-23 17:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:15:23] Production.INFO: ==9108== Releasing lock... [2025-02-23 17:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:15:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:16:05 [end_date_ymd] => 2025-02-23 17:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:16:05' and `end` < '2025-02-23 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-02-23 17:16:17] Production.INFO: count ==1764 [2025-02-23 17:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:16:05 - End Time 2025-02-23 17:16:05 [2025-02-23 17:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541224', 'tblTempUsageDetail_20' ) start [2025-02-23 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541224', 'tblTempUsageDetail_20' ) end [2025-02-23 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541224', 'tblTempVendorCDR_20' ) start [2025-02-23 17:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541224', 'tblTempVendorCDR_20' ) end [2025-02-23 17:16:18] Production.INFO: ProcessCDR(1,14541224,1,1,2) [2025-02-23 17:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541224', 'tblTempUsageDetail_20' ) start [2025-02-23 17:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541224', 'tblTempUsageDetail_20' ) end [2025-02-23 17:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:16:21] Production.INFO: ==9178== Releasing lock... [2025-02-23 17:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:16:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:17:06 [end_date_ymd] => 2025-02-23 17:17:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:17:06' and `end` < '2025-02-23 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-02-23 17:17:18] Production.INFO: count ==1763 [2025-02-23 17:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:17:06 - End Time 2025-02-23 17:17:06 [2025-02-23 17:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541229', 'tblTempUsageDetail_20' ) start [2025-02-23 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541229', 'tblTempUsageDetail_20' ) end [2025-02-23 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541229', 'tblTempVendorCDR_20' ) start [2025-02-23 17:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541229', 'tblTempVendorCDR_20' ) end [2025-02-23 17:17:18] Production.INFO: ProcessCDR(1,14541229,1,1,2) [2025-02-23 17:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541229', 'tblTempUsageDetail_20' ) start [2025-02-23 17:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541229', 'tblTempUsageDetail_20' ) end [2025-02-23 17:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:17:23] Production.INFO: ==9249== Releasing lock... [2025-02-23 17:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:17:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:18:05 [end_date_ymd] => 2025-02-23 17:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:18:05' and `end` < '2025-02-23 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-02-23 17:18:17] Production.INFO: count ==1761 [2025-02-23 17:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:18:05 - End Time 2025-02-23 17:18:05 [2025-02-23 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541234', 'tblTempUsageDetail_20' ) start [2025-02-23 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541234', 'tblTempUsageDetail_20' ) end [2025-02-23 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541234', 'tblTempVendorCDR_20' ) start [2025-02-23 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541234', 'tblTempVendorCDR_20' ) end [2025-02-23 17:18:18] Production.INFO: ProcessCDR(1,14541234,1,1,2) [2025-02-23 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541234', 'tblTempUsageDetail_20' ) start [2025-02-23 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541234', 'tblTempUsageDetail_20' ) end [2025-02-23 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:18:22] Production.INFO: ==9317== Releasing lock... [2025-02-23 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:18:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:19:05 [end_date_ymd] => 2025-02-23 17:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:19:05' and `end` < '2025-02-23 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-02-23 17:19:17] Production.INFO: count ==1760 [2025-02-23 17:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:19:05 - End Time 2025-02-23 17:19:05 [2025-02-23 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541239', 'tblTempUsageDetail_20' ) start [2025-02-23 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541239', 'tblTempUsageDetail_20' ) end [2025-02-23 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541239', 'tblTempVendorCDR_20' ) start [2025-02-23 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541239', 'tblTempVendorCDR_20' ) end [2025-02-23 17:19:18] Production.INFO: ProcessCDR(1,14541239,1,1,2) [2025-02-23 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541239', 'tblTempUsageDetail_20' ) start [2025-02-23 17:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541239', 'tblTempUsageDetail_20' ) end [2025-02-23 17:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:19:21] Production.INFO: ==9390== Releasing lock... [2025-02-23 17:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:19:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:20:05 [end_date_ymd] => 2025-02-23 17:20:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:20:05' and `end` < '2025-02-23 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-02-23 17:20:17] Production.INFO: count ==1758 [2025-02-23 17:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:20:05 - End Time 2025-02-23 17:20:05 [2025-02-23 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541245', 'tblTempUsageDetail_20' ) start [2025-02-23 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541245', 'tblTempUsageDetail_20' ) end [2025-02-23 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541245', 'tblTempVendorCDR_20' ) start [2025-02-23 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541245', 'tblTempVendorCDR_20' ) end [2025-02-23 17:20:18] Production.INFO: ProcessCDR(1,14541245,1,1,2) [2025-02-23 17:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541245', 'tblTempUsageDetail_20' ) start [2025-02-23 17:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541245', 'tblTempUsageDetail_20' ) end [2025-02-23 17:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:20:23] Production.INFO: ==9502== Releasing lock... [2025-02-23 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:20:23] Production.INFO: 41.5 MB #Memory Used# [2025-02-23 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:21:06 [end_date_ymd] => 2025-02-23 17:21:06 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:21:06' and `end` < '2025-02-23 17: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-02-23 17:21:18] Production.INFO: count ==1765 [2025-02-23 17:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:21:06 - End Time 2025-02-23 17:21:06 [2025-02-23 17:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541250', 'tblTempUsageDetail_20' ) start [2025-02-23 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541250', 'tblTempUsageDetail_20' ) end [2025-02-23 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541250', 'tblTempVendorCDR_20' ) start [2025-02-23 17:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541250', 'tblTempVendorCDR_20' ) end [2025-02-23 17:21:18] Production.INFO: ProcessCDR(1,14541250,1,1,2) [2025-02-23 17:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541250', 'tblTempUsageDetail_20' ) start [2025-02-23 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541250', 'tblTempUsageDetail_20' ) end [2025-02-23 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:21:23] Production.INFO: ==9575== Releasing lock... [2025-02-23 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:21:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:22:05 [end_date_ymd] => 2025-02-23 17:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:22:05' and `end` < '2025-02-23 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-02-23 17:22:17] Production.INFO: count ==1764 [2025-02-23 17:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:22:05 - End Time 2025-02-23 17:22:05 [2025-02-23 17:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541255', 'tblTempUsageDetail_20' ) start [2025-02-23 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541255', 'tblTempUsageDetail_20' ) end [2025-02-23 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541255', 'tblTempVendorCDR_20' ) start [2025-02-23 17:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541255', 'tblTempVendorCDR_20' ) end [2025-02-23 17:22:18] Production.INFO: ProcessCDR(1,14541255,1,1,2) [2025-02-23 17:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541255', 'tblTempUsageDetail_20' ) start [2025-02-23 17:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541255', 'tblTempUsageDetail_20' ) end [2025-02-23 17:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:22:23] Production.INFO: ==9645== Releasing lock... [2025-02-23 17:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:22:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:23:05 [end_date_ymd] => 2025-02-23 17:23:05 [RateCDR] => 1 ) [2025-02-23 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:23:05' and `end` < '2025-02-23 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:23:17] Production.INFO: count ==1766 [2025-02-23 17:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:23:05 - End Time 2025-02-23 17:23:05 [2025-02-23 17:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541260', 'tblTempUsageDetail_20' ) start [2025-02-23 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541260', 'tblTempUsageDetail_20' ) end [2025-02-23 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541260', 'tblTempVendorCDR_20' ) start [2025-02-23 17:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541260', 'tblTempVendorCDR_20' ) end [2025-02-23 17:23:18] Production.INFO: ProcessCDR(1,14541260,1,1,2) [2025-02-23 17:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541260', 'tblTempUsageDetail_20' ) start [2025-02-23 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541260', 'tblTempUsageDetail_20' ) end [2025-02-23 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:23:22] Production.INFO: ==9716== Releasing lock... [2025-02-23 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:23:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:24:06 [end_date_ymd] => 2025-02-23 17:24:06 [RateCDR] => 1 ) [2025-02-23 17:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:24:06' and `end` < '2025-02-23 17:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:24:18] Production.INFO: count ==1763 [2025-02-23 17:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:24:06 - End Time 2025-02-23 17:24:06 [2025-02-23 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541265', 'tblTempUsageDetail_20' ) start [2025-02-23 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541265', 'tblTempUsageDetail_20' ) end [2025-02-23 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541265', 'tblTempVendorCDR_20' ) start [2025-02-23 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541265', 'tblTempVendorCDR_20' ) end [2025-02-23 17:24:18] Production.INFO: ProcessCDR(1,14541265,1,1,2) [2025-02-23 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541265', 'tblTempUsageDetail_20' ) start [2025-02-23 17:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541265', 'tblTempUsageDetail_20' ) end [2025-02-23 17:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:24:23] Production.INFO: ==9789== Releasing lock... [2025-02-23 17:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:24:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:25:04 [end_date_ymd] => 2025-02-23 17:25:04 [RateCDR] => 1 ) [2025-02-23 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:25:04' and `end` < '2025-02-23 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:25:16] Production.INFO: count ==1758 [2025-02-23 17:25:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:25:04 - End Time 2025-02-23 17:25:04 [2025-02-23 17:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541268', 'tblTempUsageDetail_20' ) start [2025-02-23 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541268', 'tblTempUsageDetail_20' ) end [2025-02-23 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541268', 'tblTempVendorCDR_20' ) start [2025-02-23 17:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541268', 'tblTempVendorCDR_20' ) end [2025-02-23 17:25:17] Production.INFO: ProcessCDR(1,14541268,1,1,2) [2025-02-23 17:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541268', 'tblTempUsageDetail_20' ) start [2025-02-23 17:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541268', 'tblTempUsageDetail_20' ) end [2025-02-23 17:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:25:22] Production.INFO: ==9860== Releasing lock... [2025-02-23 17:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:25:22] Production.INFO: 41.5 MB #Memory Used# [2025-02-23 17:26:23] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:26:23 [end_date_ymd] => 2025-02-23 17:26:23 [RateCDR] => 1 ) [2025-02-23 17:26:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:26:23' and `end` < '2025-02-23 17:26:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:26:35] Production.INFO: count ==1755 [2025-02-23 17:26:47] Production.ERROR: pbx CDR StartTime 2025-02-23 14:26:23 - End Time 2025-02-23 17:26:23 [2025-02-23 17:26:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:26:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541275', 'tblTempUsageDetail_20' ) start [2025-02-23 17:26:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541275', 'tblTempUsageDetail_20' ) end [2025-02-23 17:26:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541275', 'tblTempVendorCDR_20' ) start [2025-02-23 17:26:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541275', 'tblTempVendorCDR_20' ) end [2025-02-23 17:26:49] Production.INFO: ProcessCDR(1,14541275,1,1,2) [2025-02-23 17:26:49] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:26:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:26:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541275', 'tblTempUsageDetail_20' ) start [2025-02-23 17:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541275', 'tblTempUsageDetail_20' ) end [2025-02-23 17:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:27:31] Production.INFO: ==9956== Releasing lock... [2025-02-23 17:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:27:31] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 17:28:13] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:28:13 [end_date_ymd] => 2025-02-23 17:28:13 [RateCDR] => 1 ) [2025-02-23 17:28:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:28:13' and `end` < '2025-02-23 17:28:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:28:25] Production.INFO: count ==1839 [2025-02-23 17:28:38] Production.ERROR: pbx CDR StartTime 2025-02-23 14:28:13 - End Time 2025-02-23 17:28:13 [2025-02-23 17:28:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541283', 'tblTempUsageDetail_20' ) start [2025-02-23 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541283', 'tblTempUsageDetail_20' ) end [2025-02-23 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541283', 'tblTempVendorCDR_20' ) start [2025-02-23 17:28:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541283', 'tblTempVendorCDR_20' ) end [2025-02-23 17:28:41] Production.INFO: ProcessCDR(1,14541283,1,1,2) [2025-02-23 17:28:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:28:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:28:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:29:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:29:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541283', 'tblTempUsageDetail_20' ) start [2025-02-23 17:29:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541283', 'tblTempUsageDetail_20' ) end [2025-02-23 17:29:03] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:29:03] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:29:05] Production.INFO: ==10147== Releasing lock... [2025-02-23 17:29:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:29:05] Production.INFO: 41.75 MB #Memory Used# [2025-02-23 17:30:17] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:30:17 [end_date_ymd] => 2025-02-23 17:30:17 [RateCDR] => 1 ) [2025-02-23 17:30:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:30:17' and `end` < '2025-02-23 17:30:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:30:29] Production.INFO: count ==1863 [2025-02-23 17:30:38] Production.ERROR: pbx CDR StartTime 2025-02-23 14:30:17 - End Time 2025-02-23 17:30:17 [2025-02-23 17:30:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:30:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541292', 'tblTempUsageDetail_20' ) start [2025-02-23 17:30:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541292', 'tblTempUsageDetail_20' ) end [2025-02-23 17:30:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541292', 'tblTempVendorCDR_20' ) start [2025-02-23 17:30:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541292', 'tblTempVendorCDR_20' ) end [2025-02-23 17:30:42] Production.INFO: ProcessCDR(1,14541292,1,1,2) [2025-02-23 17:30:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:31:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:31:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:32:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:32:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541292', 'tblTempUsageDetail_20' ) start [2025-02-23 17:32:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541292', 'tblTempUsageDetail_20' ) end [2025-02-23 17:32:10] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:32:10] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:32:10] Production.INFO: ==10336== Releasing lock... [2025-02-23 17:32:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:32:10] Production.INFO: 42.5 MB #Memory Used# [2025-02-23 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:33:05 [end_date_ymd] => 2025-02-23 17:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:33:05' and `end` < '2025-02-23 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-02-23 17:33:17] Production.INFO: count ==1882 [2025-02-23 17:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:33:05 - End Time 2025-02-23 17:33:05 [2025-02-23 17:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541303', 'tblTempUsageDetail_20' ) start [2025-02-23 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541303', 'tblTempUsageDetail_20' ) end [2025-02-23 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541303', 'tblTempVendorCDR_20' ) start [2025-02-23 17:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541303', 'tblTempVendorCDR_20' ) end [2025-02-23 17:33:18] Production.INFO: ProcessCDR(1,14541303,1,1,2) [2025-02-23 17:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541303', 'tblTempUsageDetail_20' ) start [2025-02-23 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541303', 'tblTempUsageDetail_20' ) end [2025-02-23 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:33:23] Production.INFO: ==10616== Releasing lock... [2025-02-23 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:33:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-23 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:34:05 [end_date_ymd] => 2025-02-23 17:34:05 [RateCDR] => 1 ) [2025-02-23 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:34:05' and `end` < '2025-02-23 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:34:17] Production.INFO: count ==1889 [2025-02-23 17:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:34:05 - End Time 2025-02-23 17:34:05 [2025-02-23 17:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541308', 'tblTempUsageDetail_20' ) start [2025-02-23 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541308', 'tblTempUsageDetail_20' ) end [2025-02-23 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541308', 'tblTempVendorCDR_20' ) start [2025-02-23 17:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541308', 'tblTempVendorCDR_20' ) end [2025-02-23 17:34:18] Production.INFO: ProcessCDR(1,14541308,1,1,2) [2025-02-23 17:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541308', 'tblTempUsageDetail_20' ) start [2025-02-23 17:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541308', 'tblTempUsageDetail_20' ) end [2025-02-23 17:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:34:22] Production.INFO: ==10716== Releasing lock... [2025-02-23 17:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:34:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-23 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:35:06 [end_date_ymd] => 2025-02-23 17:35:06 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:35:06' and `end` < '2025-02-23 17: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-02-23 17:35:18] Production.INFO: count ==2077 [2025-02-23 17:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:35:06 - End Time 2025-02-23 17:35:06 [2025-02-23 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541313', 'tblTempUsageDetail_20' ) start [2025-02-23 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541313', 'tblTempUsageDetail_20' ) end [2025-02-23 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541313', 'tblTempVendorCDR_20' ) start [2025-02-23 17:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541313', 'tblTempVendorCDR_20' ) end [2025-02-23 17:35:19] Production.INFO: ProcessCDR(1,14541313,1,1,2) [2025-02-23 17:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541313', 'tblTempUsageDetail_20' ) start [2025-02-23 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541313', 'tblTempUsageDetail_20' ) end [2025-02-23 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:35:24] Production.INFO: ==10850== Releasing lock... [2025-02-23 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:35:24] Production.INFO: 43.75 MB #Memory Used# [2025-02-23 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:36:05 [end_date_ymd] => 2025-02-23 17:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:36:05' and `end` < '2025-02-23 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-02-23 17:36:17] Production.INFO: count ==2077 [2025-02-23 17:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:36:05 - End Time 2025-02-23 17:36:05 [2025-02-23 17:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541318', 'tblTempUsageDetail_20' ) start [2025-02-23 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541318', 'tblTempUsageDetail_20' ) end [2025-02-23 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541318', 'tblTempVendorCDR_20' ) start [2025-02-23 17:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541318', 'tblTempVendorCDR_20' ) end [2025-02-23 17:36:18] Production.INFO: ProcessCDR(1,14541318,1,1,2) [2025-02-23 17:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541318', 'tblTempUsageDetail_20' ) start [2025-02-23 17:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541318', 'tblTempUsageDetail_20' ) end [2025-02-23 17:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:36:21] Production.INFO: ==10945== Releasing lock... [2025-02-23 17:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:36:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-23 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:37:05 [end_date_ymd] => 2025-02-23 17:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:37:05' and `end` < '2025-02-23 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-02-23 17:37:17] Production.INFO: count ==2077 [2025-02-23 17:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:37:05 - End Time 2025-02-23 17:37:05 [2025-02-23 17:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541323', 'tblTempUsageDetail_20' ) start [2025-02-23 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541323', 'tblTempUsageDetail_20' ) end [2025-02-23 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541323', 'tblTempVendorCDR_20' ) start [2025-02-23 17:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541323', 'tblTempVendorCDR_20' ) end [2025-02-23 17:37:18] Production.INFO: ProcessCDR(1,14541323,1,1,2) [2025-02-23 17:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541323', 'tblTempUsageDetail_20' ) start [2025-02-23 17:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541323', 'tblTempUsageDetail_20' ) end [2025-02-23 17:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:37:23] Production.INFO: ==11041== Releasing lock... [2025-02-23 17:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:37:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-23 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:38:05 [end_date_ymd] => 2025-02-23 17:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:38:05' and `end` < '2025-02-23 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-02-23 17:38:17] Production.INFO: count ==2079 [2025-02-23 17:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:38:05 - End Time 2025-02-23 17:38:05 [2025-02-23 17:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541328', 'tblTempUsageDetail_20' ) start [2025-02-23 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541328', 'tblTempUsageDetail_20' ) end [2025-02-23 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541328', 'tblTempVendorCDR_20' ) start [2025-02-23 17:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541328', 'tblTempVendorCDR_20' ) end [2025-02-23 17:38:18] Production.INFO: ProcessCDR(1,14541328,1,1,2) [2025-02-23 17:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541328', 'tblTempUsageDetail_20' ) start [2025-02-23 17:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541328', 'tblTempUsageDetail_20' ) end [2025-02-23 17:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:38:21] Production.INFO: ==11139== Releasing lock... [2025-02-23 17:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:38:21] Production.INFO: 44 MB #Memory Used# [2025-02-23 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:39:06 [end_date_ymd] => 2025-02-23 17:39:06 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:39:06' and `end` < '2025-02-23 17: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-02-23 17:39:18] Production.INFO: count ==2080 [2025-02-23 17:39:19] Production.ERROR: pbx CDR StartTime 2025-02-23 14:39:06 - End Time 2025-02-23 17:39:06 [2025-02-23 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541333', 'tblTempUsageDetail_20' ) start [2025-02-23 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541333', 'tblTempUsageDetail_20' ) end [2025-02-23 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541333', 'tblTempVendorCDR_20' ) start [2025-02-23 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541333', 'tblTempVendorCDR_20' ) end [2025-02-23 17:39:19] Production.INFO: ProcessCDR(1,14541333,1,1,2) [2025-02-23 17:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541333', 'tblTempUsageDetail_20' ) start [2025-02-23 17:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541333', 'tblTempUsageDetail_20' ) end [2025-02-23 17:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:39:23] Production.INFO: ==11237== Releasing lock... [2025-02-23 17:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:39:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-23 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:40:05 [end_date_ymd] => 2025-02-23 17:40:05 [RateCDR] => 1 ) [2025-02-23 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:40:05' and `end` < '2025-02-23 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:40:17] Production.INFO: count ==2082 [2025-02-23 17:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:40:05 - End Time 2025-02-23 17:40:05 [2025-02-23 17:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541339', 'tblTempUsageDetail_20' ) start [2025-02-23 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541339', 'tblTempUsageDetail_20' ) end [2025-02-23 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541339', 'tblTempVendorCDR_20' ) start [2025-02-23 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541339', 'tblTempVendorCDR_20' ) end [2025-02-23 17:40:18] Production.INFO: ProcessCDR(1,14541339,1,1,2) [2025-02-23 17:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541339', 'tblTempUsageDetail_20' ) start [2025-02-23 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541339', 'tblTempUsageDetail_20' ) end [2025-02-23 17:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:40:22] Production.INFO: ==11336== Releasing lock... [2025-02-23 17:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:40:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-23 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:41:05 [end_date_ymd] => 2025-02-23 17:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:41:05' and `end` < '2025-02-23 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-02-23 17:41:17] Production.INFO: count ==2150 [2025-02-23 17:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:41:05 - End Time 2025-02-23 17:41:05 [2025-02-23 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541344', 'tblTempUsageDetail_20' ) start [2025-02-23 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541344', 'tblTempUsageDetail_20' ) end [2025-02-23 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541344', 'tblTempVendorCDR_20' ) start [2025-02-23 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541344', 'tblTempVendorCDR_20' ) end [2025-02-23 17:41:18] Production.INFO: ProcessCDR(1,14541344,1,1,2) [2025-02-23 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541344', 'tblTempUsageDetail_20' ) start [2025-02-23 17:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541344', 'tblTempUsageDetail_20' ) end [2025-02-23 17:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:41:23] Production.INFO: ==11436== Releasing lock... [2025-02-23 17:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:41:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:42:06 [end_date_ymd] => 2025-02-23 17:42:06 [RateCDR] => 1 ) [2025-02-23 17:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:42:06' and `end` < '2025-02-23 17:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:42:18] Production.INFO: count ==2153 [2025-02-23 17:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:42:06 - End Time 2025-02-23 17:42:06 [2025-02-23 17:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541349', 'tblTempUsageDetail_20' ) start [2025-02-23 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541349', 'tblTempUsageDetail_20' ) end [2025-02-23 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541349', 'tblTempVendorCDR_20' ) start [2025-02-23 17:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541349', 'tblTempVendorCDR_20' ) end [2025-02-23 17:42:18] Production.INFO: ProcessCDR(1,14541349,1,1,2) [2025-02-23 17:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541349', 'tblTempUsageDetail_20' ) start [2025-02-23 17:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541349', 'tblTempUsageDetail_20' ) end [2025-02-23 17:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:42:23] Production.INFO: ==11538== Releasing lock... [2025-02-23 17:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:42:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:43:05 [end_date_ymd] => 2025-02-23 17:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:43:05' and `end` < '2025-02-23 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-02-23 17:43:17] Production.INFO: count ==2160 [2025-02-23 17:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:43:05 - End Time 2025-02-23 17:43:05 [2025-02-23 17:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541354', 'tblTempUsageDetail_20' ) start [2025-02-23 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541354', 'tblTempUsageDetail_20' ) end [2025-02-23 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541354', 'tblTempVendorCDR_20' ) start [2025-02-23 17:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541354', 'tblTempVendorCDR_20' ) end [2025-02-23 17:43:18] Production.INFO: ProcessCDR(1,14541354,1,1,2) [2025-02-23 17:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541354', 'tblTempUsageDetail_20' ) start [2025-02-23 17:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541354', 'tblTempUsageDetail_20' ) end [2025-02-23 17:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:43:23] Production.INFO: ==11634== Releasing lock... [2025-02-23 17:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:43:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:44:06 [end_date_ymd] => 2025-02-23 17:44:06 [RateCDR] => 1 ) [2025-02-23 17: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-02-23 14:44:06' and `end` < '2025-02-23 17: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-02-23 17:44:18] Production.INFO: count ==2277 [2025-02-23 17:44:19] Production.ERROR: pbx CDR StartTime 2025-02-23 14:44:06 - End Time 2025-02-23 17:44:06 [2025-02-23 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541359', 'tblTempUsageDetail_20' ) start [2025-02-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541359', 'tblTempUsageDetail_20' ) end [2025-02-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541359', 'tblTempVendorCDR_20' ) start [2025-02-23 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541359', 'tblTempVendorCDR_20' ) end [2025-02-23 17:44:19] Production.INFO: ProcessCDR(1,14541359,1,1,2) [2025-02-23 17:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541359', 'tblTempUsageDetail_20' ) start [2025-02-23 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541359', 'tblTempUsageDetail_20' ) end [2025-02-23 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:44:24] Production.INFO: ==11726== Releasing lock... [2025-02-23 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:44:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-23 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:45:05 [end_date_ymd] => 2025-02-23 17:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:45:05' and `end` < '2025-02-23 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-02-23 17:45:17] Production.INFO: count ==2273 [2025-02-23 17:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:45:05 - End Time 2025-02-23 17:45:05 [2025-02-23 17:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541364', 'tblTempUsageDetail_20' ) start [2025-02-23 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541364', 'tblTempUsageDetail_20' ) end [2025-02-23 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541364', 'tblTempVendorCDR_20' ) start [2025-02-23 17:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541364', 'tblTempVendorCDR_20' ) end [2025-02-23 17:45:18] Production.INFO: ProcessCDR(1,14541364,1,1,2) [2025-02-23 17:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541364', 'tblTempUsageDetail_20' ) start [2025-02-23 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541364', 'tblTempUsageDetail_20' ) end [2025-02-23 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:45:23] Production.INFO: ==11802== Releasing lock... [2025-02-23 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:45:23] Production.INFO: 45 MB #Memory Used# [2025-02-23 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:46:05 [end_date_ymd] => 2025-02-23 17:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:46:05' and `end` < '2025-02-23 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-02-23 17:46:17] Production.INFO: count ==2272 [2025-02-23 17:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:46:05 - End Time 2025-02-23 17:46:05 [2025-02-23 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541369', 'tblTempUsageDetail_20' ) start [2025-02-23 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541369', 'tblTempUsageDetail_20' ) end [2025-02-23 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541369', 'tblTempVendorCDR_20' ) start [2025-02-23 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541369', 'tblTempVendorCDR_20' ) end [2025-02-23 17:46:18] Production.INFO: ProcessCDR(1,14541369,1,1,2) [2025-02-23 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541369', 'tblTempUsageDetail_20' ) start [2025-02-23 17:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541369', 'tblTempUsageDetail_20' ) end [2025-02-23 17:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:46:23] Production.INFO: ==11875== Releasing lock... [2025-02-23 17:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:46:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:47:05 [end_date_ymd] => 2025-02-23 17:47:05 [RateCDR] => 1 ) [2025-02-23 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:47:05' and `end` < '2025-02-23 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:47:17] Production.INFO: count ==2272 [2025-02-23 17:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:47:05 - End Time 2025-02-23 17:47:05 [2025-02-23 17:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541374', 'tblTempUsageDetail_20' ) start [2025-02-23 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541374', 'tblTempUsageDetail_20' ) end [2025-02-23 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541374', 'tblTempVendorCDR_20' ) start [2025-02-23 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541374', 'tblTempVendorCDR_20' ) end [2025-02-23 17:47:18] Production.INFO: ProcessCDR(1,14541374,1,1,2) [2025-02-23 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541374', 'tblTempUsageDetail_20' ) start [2025-02-23 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541374', 'tblTempUsageDetail_20' ) end [2025-02-23 17:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:47:21] Production.INFO: ==11951== Releasing lock... [2025-02-23 17:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:47:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:48:05 [end_date_ymd] => 2025-02-23 17:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:48:05' and `end` < '2025-02-23 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-02-23 17:48:17] Production.INFO: count ==2271 [2025-02-23 17:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:48:05 - End Time 2025-02-23 17:48:05 [2025-02-23 17:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541379', 'tblTempUsageDetail_20' ) start [2025-02-23 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541379', 'tblTempUsageDetail_20' ) end [2025-02-23 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541379', 'tblTempVendorCDR_20' ) start [2025-02-23 17:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541379', 'tblTempVendorCDR_20' ) end [2025-02-23 17:48:18] Production.INFO: ProcessCDR(1,14541379,1,1,2) [2025-02-23 17:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541379', 'tblTempUsageDetail_20' ) start [2025-02-23 17:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541379', 'tblTempUsageDetail_20' ) end [2025-02-23 17:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:48:23] Production.INFO: ==12021== Releasing lock... [2025-02-23 17:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:48:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:49:05 [end_date_ymd] => 2025-02-23 17:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:49:05' and `end` < '2025-02-23 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-02-23 17:49:17] Production.INFO: count ==2259 [2025-02-23 17:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:49:05 - End Time 2025-02-23 17:49:05 [2025-02-23 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541384', 'tblTempUsageDetail_20' ) start [2025-02-23 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541384', 'tblTempUsageDetail_20' ) end [2025-02-23 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541384', 'tblTempVendorCDR_20' ) start [2025-02-23 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541384', 'tblTempVendorCDR_20' ) end [2025-02-23 17:49:18] Production.INFO: ProcessCDR(1,14541384,1,1,2) [2025-02-23 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541384', 'tblTempUsageDetail_20' ) start [2025-02-23 17:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541384', 'tblTempUsageDetail_20' ) end [2025-02-23 17:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:49:21] Production.INFO: ==12098== Releasing lock... [2025-02-23 17:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:49:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:50:06 [end_date_ymd] => 2025-02-23 17:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:50:06' and `end` < '2025-02-23 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-02-23 17:50:18] Production.INFO: count ==2258 [2025-02-23 17:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:50:06 - End Time 2025-02-23 17:50:06 [2025-02-23 17:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541389', 'tblTempUsageDetail_20' ) start [2025-02-23 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541389', 'tblTempUsageDetail_20' ) end [2025-02-23 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541389', 'tblTempVendorCDR_20' ) start [2025-02-23 17:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541389', 'tblTempVendorCDR_20' ) end [2025-02-23 17:50:18] Production.INFO: ProcessCDR(1,14541389,1,1,2) [2025-02-23 17:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541389', 'tblTempUsageDetail_20' ) start [2025-02-23 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541389', 'tblTempUsageDetail_20' ) end [2025-02-23 17:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:50:22] Production.INFO: ==12211== Releasing lock... [2025-02-23 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:50:22] Production.INFO: 45 MB #Memory Used# [2025-02-23 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:51:05 [end_date_ymd] => 2025-02-23 17:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:51:05' and `end` < '2025-02-23 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-02-23 17:51:17] Production.INFO: count ==2231 [2025-02-23 17:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 14:51:05 - End Time 2025-02-23 17:51:05 [2025-02-23 17:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541395', 'tblTempUsageDetail_20' ) start [2025-02-23 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541395', 'tblTempUsageDetail_20' ) end [2025-02-23 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541395', 'tblTempVendorCDR_20' ) start [2025-02-23 17:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541395', 'tblTempVendorCDR_20' ) end [2025-02-23 17:51:17] Production.INFO: ProcessCDR(1,14541395,1,1,2) [2025-02-23 17:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541395', 'tblTempUsageDetail_20' ) start [2025-02-23 17:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541395', 'tblTempUsageDetail_20' ) end [2025-02-23 17:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:51:21] Production.INFO: ==12292== Releasing lock... [2025-02-23 17:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:51:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:52:05 [end_date_ymd] => 2025-02-23 17:52:05 [RateCDR] => 1 ) [2025-02-23 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:52:05' and `end` < '2025-02-23 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:52:17] Production.INFO: count ==2228 [2025-02-23 17:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:52:05 - End Time 2025-02-23 17:52:05 [2025-02-23 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541400', 'tblTempUsageDetail_20' ) start [2025-02-23 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541400', 'tblTempUsageDetail_20' ) end [2025-02-23 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541400', 'tblTempVendorCDR_20' ) start [2025-02-23 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541400', 'tblTempVendorCDR_20' ) end [2025-02-23 17:52:18] Production.INFO: ProcessCDR(1,14541400,1,1,2) [2025-02-23 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541400', 'tblTempUsageDetail_20' ) start [2025-02-23 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541400', 'tblTempUsageDetail_20' ) end [2025-02-23 17:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:52:21] Production.INFO: ==12368== Releasing lock... [2025-02-23 17:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:52:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:53:05 [end_date_ymd] => 2025-02-23 17:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:53:05' and `end` < '2025-02-23 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-02-23 17:53:18] Production.INFO: count ==2229 [2025-02-23 17:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:53:05 - End Time 2025-02-23 17:53:05 [2025-02-23 17:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541405', 'tblTempUsageDetail_20' ) start [2025-02-23 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541405', 'tblTempUsageDetail_20' ) end [2025-02-23 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541405', 'tblTempVendorCDR_20' ) start [2025-02-23 17:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541405', 'tblTempVendorCDR_20' ) end [2025-02-23 17:53:18] Production.INFO: ProcessCDR(1,14541405,1,1,2) [2025-02-23 17:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541405', 'tblTempUsageDetail_20' ) start [2025-02-23 17:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541405', 'tblTempUsageDetail_20' ) end [2025-02-23 17:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:53:22] Production.INFO: ==12447== Releasing lock... [2025-02-23 17:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:53:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:54:05 [end_date_ymd] => 2025-02-23 17:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:54:05' and `end` < '2025-02-23 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-02-23 17:54:17] Production.INFO: count ==2218 [2025-02-23 17:54:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:54:05 - End Time 2025-02-23 17:54:05 [2025-02-23 17:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541410', 'tblTempUsageDetail_20' ) start [2025-02-23 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541410', 'tblTempUsageDetail_20' ) end [2025-02-23 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541410', 'tblTempVendorCDR_20' ) start [2025-02-23 17:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541410', 'tblTempVendorCDR_20' ) end [2025-02-23 17:54:18] Production.INFO: ProcessCDR(1,14541410,1,1,2) [2025-02-23 17:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541410', 'tblTempUsageDetail_20' ) start [2025-02-23 17:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541410', 'tblTempUsageDetail_20' ) end [2025-02-23 17:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:54:21] Production.INFO: ==12521== Releasing lock... [2025-02-23 17:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:54:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:55:05 [end_date_ymd] => 2025-02-23 17:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:55:05' and `end` < '2025-02-23 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-02-23 17:55:17] Production.INFO: count ==2217 [2025-02-23 17:55:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:55:05 - End Time 2025-02-23 17:55:05 [2025-02-23 17:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541415', 'tblTempUsageDetail_20' ) start [2025-02-23 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541415', 'tblTempUsageDetail_20' ) end [2025-02-23 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541415', 'tblTempVendorCDR_20' ) start [2025-02-23 17:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541415', 'tblTempVendorCDR_20' ) end [2025-02-23 17:55:18] Production.INFO: ProcessCDR(1,14541415,1,1,2) [2025-02-23 17:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541415', 'tblTempUsageDetail_20' ) start [2025-02-23 17:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541415', 'tblTempUsageDetail_20' ) end [2025-02-23 17:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:55:21] Production.INFO: ==12597== Releasing lock... [2025-02-23 17:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:55:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:56:05 [end_date_ymd] => 2025-02-23 17:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:56:05' and `end` < '2025-02-23 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-02-23 17:56:17] Production.INFO: count ==2217 [2025-02-23 17:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:56:05 - End Time 2025-02-23 17:56:05 [2025-02-23 17:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541420', 'tblTempUsageDetail_20' ) start [2025-02-23 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541420', 'tblTempUsageDetail_20' ) end [2025-02-23 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541420', 'tblTempVendorCDR_20' ) start [2025-02-23 17:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541420', 'tblTempVendorCDR_20' ) end [2025-02-23 17:56:18] Production.INFO: ProcessCDR(1,14541420,1,1,2) [2025-02-23 17:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541420', 'tblTempUsageDetail_20' ) start [2025-02-23 17:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541420', 'tblTempUsageDetail_20' ) end [2025-02-23 17:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:56:21] Production.INFO: ==12677== Releasing lock... [2025-02-23 17:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:56:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:57:05 [end_date_ymd] => 2025-02-23 17:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:57:05' and `end` < '2025-02-23 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-02-23 17:57:17] Production.INFO: count ==2216 [2025-02-23 17:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:57:05 - End Time 2025-02-23 17:57:05 [2025-02-23 17:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541425', 'tblTempUsageDetail_20' ) start [2025-02-23 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541425', 'tblTempUsageDetail_20' ) end [2025-02-23 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541425', 'tblTempVendorCDR_20' ) start [2025-02-23 17:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541425', 'tblTempVendorCDR_20' ) end [2025-02-23 17:57:18] Production.INFO: ProcessCDR(1,14541425,1,1,2) [2025-02-23 17:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541425', 'tblTempUsageDetail_20' ) start [2025-02-23 17:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541425', 'tblTempUsageDetail_20' ) end [2025-02-23 17:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:57:21] Production.INFO: ==12753== Releasing lock... [2025-02-23 17:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:57:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:58:06 [end_date_ymd] => 2025-02-23 17:58:06 [RateCDR] => 1 ) [2025-02-23 17:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 14:58:06' and `end` < '2025-02-23 17:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 17:58:18] Production.INFO: count ==2211 [2025-02-23 17:58:19] Production.ERROR: pbx CDR StartTime 2025-02-23 14:58:06 - End Time 2025-02-23 17:58:06 [2025-02-23 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541430', 'tblTempUsageDetail_20' ) start [2025-02-23 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541430', 'tblTempUsageDetail_20' ) end [2025-02-23 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541430', 'tblTempVendorCDR_20' ) start [2025-02-23 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541430', 'tblTempVendorCDR_20' ) end [2025-02-23 17:58:19] Production.INFO: ProcessCDR(1,14541430,1,1,2) [2025-02-23 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541430', 'tblTempUsageDetail_20' ) start [2025-02-23 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541430', 'tblTempUsageDetail_20' ) end [2025-02-23 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:58:22] Production.INFO: ==12825== Releasing lock... [2025-02-23 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:58:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 14:59:05 [end_date_ymd] => 2025-02-23 17:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 14:59:05' and `end` < '2025-02-23 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-02-23 17:59:17] Production.INFO: count ==2213 [2025-02-23 17:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 14:59:05 - End Time 2025-02-23 17:59:05 [2025-02-23 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541435', 'tblTempUsageDetail_20' ) start [2025-02-23 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541435', 'tblTempUsageDetail_20' ) end [2025-02-23 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541435', 'tblTempVendorCDR_20' ) start [2025-02-23 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541435', 'tblTempVendorCDR_20' ) end [2025-02-23 17:59:18] Production.INFO: ProcessCDR(1,14541435,1,1,2) [2025-02-23 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 17:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541435', 'tblTempUsageDetail_20' ) start [2025-02-23 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541435', 'tblTempUsageDetail_20' ) end [2025-02-23 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 17:59:22] Production.INFO: ==12904== Releasing lock... [2025-02-23 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 17:59:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:00:07 [end_date_ymd] => 2025-02-23 18:00:07 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:00:07' and `end` < '2025-02-23 18: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-02-23 18:00:19] Production.INFO: count ==2202 [2025-02-23 18:00:20] Production.ERROR: pbx CDR StartTime 2025-02-23 15:00:07 - End Time 2025-02-23 18:00:07 [2025-02-23 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541441', 'tblTempUsageDetail_20' ) start [2025-02-23 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541441', 'tblTempUsageDetail_20' ) end [2025-02-23 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541441', 'tblTempVendorCDR_20' ) start [2025-02-23 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541441', 'tblTempVendorCDR_20' ) end [2025-02-23 18:00:20] Production.INFO: ProcessCDR(1,14541441,1,1,2) [2025-02-23 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541441', 'tblTempUsageDetail_20' ) start [2025-02-23 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541441', 'tblTempUsageDetail_20' ) end [2025-02-23 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:00:24] Production.INFO: ==12987== Releasing lock... [2025-02-23 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:00:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:01:05 [end_date_ymd] => 2025-02-23 18:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:01:05' and `end` < '2025-02-23 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-02-23 18:01:17] Production.INFO: count ==2210 [2025-02-23 18:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:01:05 - End Time 2025-02-23 18:01:05 [2025-02-23 18:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541446', 'tblTempUsageDetail_20' ) start [2025-02-23 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541446', 'tblTempUsageDetail_20' ) end [2025-02-23 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541446', 'tblTempVendorCDR_20' ) start [2025-02-23 18:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541446', 'tblTempVendorCDR_20' ) end [2025-02-23 18:01:18] Production.INFO: ProcessCDR(1,14541446,1,1,2) [2025-02-23 18:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541446', 'tblTempUsageDetail_20' ) start [2025-02-23 18:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541446', 'tblTempUsageDetail_20' ) end [2025-02-23 18:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:01:21] Production.INFO: ==13076== Releasing lock... [2025-02-23 18:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:01:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:02:05 [end_date_ymd] => 2025-02-23 18:02:05 [RateCDR] => 1 ) [2025-02-23 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:02:05' and `end` < '2025-02-23 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:02:17] Production.INFO: count ==2210 [2025-02-23 18:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:02:05 - End Time 2025-02-23 18:02:05 [2025-02-23 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541451', 'tblTempUsageDetail_20' ) start [2025-02-23 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541451', 'tblTempUsageDetail_20' ) end [2025-02-23 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541451', 'tblTempVendorCDR_20' ) start [2025-02-23 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541451', 'tblTempVendorCDR_20' ) end [2025-02-23 18:02:18] Production.INFO: ProcessCDR(1,14541451,1,1,2) [2025-02-23 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541451', 'tblTempUsageDetail_20' ) start [2025-02-23 18:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541451', 'tblTempUsageDetail_20' ) end [2025-02-23 18:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:02:21] Production.INFO: ==13149== Releasing lock... [2025-02-23 18:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:02:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:03:05 [end_date_ymd] => 2025-02-23 18:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:03:05' and `end` < '2025-02-23 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-02-23 18:03:17] Production.INFO: count ==2205 [2025-02-23 18:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:03:05 - End Time 2025-02-23 18:03:05 [2025-02-23 18:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541456', 'tblTempUsageDetail_20' ) start [2025-02-23 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541456', 'tblTempUsageDetail_20' ) end [2025-02-23 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541456', 'tblTempVendorCDR_20' ) start [2025-02-23 18:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541456', 'tblTempVendorCDR_20' ) end [2025-02-23 18:03:18] Production.INFO: ProcessCDR(1,14541456,1,1,2) [2025-02-23 18:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541456', 'tblTempUsageDetail_20' ) start [2025-02-23 18:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541456', 'tblTempUsageDetail_20' ) end [2025-02-23 18:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:03:21] Production.INFO: ==13226== Releasing lock... [2025-02-23 18:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:03:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:04:05 [end_date_ymd] => 2025-02-23 18:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:04:05' and `end` < '2025-02-23 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-02-23 18:04:17] Production.INFO: count ==2201 [2025-02-23 18:04:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:04:05 - End Time 2025-02-23 18:04:05 [2025-02-23 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541461', 'tblTempUsageDetail_20' ) start [2025-02-23 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541461', 'tblTempUsageDetail_20' ) end [2025-02-23 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541461', 'tblTempVendorCDR_20' ) start [2025-02-23 18:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541461', 'tblTempVendorCDR_20' ) end [2025-02-23 18:04:18] Production.INFO: ProcessCDR(1,14541461,1,1,2) [2025-02-23 18:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541461', 'tblTempUsageDetail_20' ) start [2025-02-23 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541461', 'tblTempUsageDetail_20' ) end [2025-02-23 18:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:04:21] Production.INFO: ==13302== Releasing lock... [2025-02-23 18:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:04:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:05:05 [end_date_ymd] => 2025-02-23 18:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:05:05' and `end` < '2025-02-23 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-02-23 18:05:17] Production.INFO: count ==2207 [2025-02-23 18:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:05:05 - End Time 2025-02-23 18:05:05 [2025-02-23 18:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541466', 'tblTempUsageDetail_20' ) start [2025-02-23 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541466', 'tblTempUsageDetail_20' ) end [2025-02-23 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541466', 'tblTempVendorCDR_20' ) start [2025-02-23 18:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541466', 'tblTempVendorCDR_20' ) end [2025-02-23 18:05:18] Production.INFO: ProcessCDR(1,14541466,1,1,2) [2025-02-23 18:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541466', 'tblTempUsageDetail_20' ) start [2025-02-23 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541466', 'tblTempUsageDetail_20' ) end [2025-02-23 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:05:23] Production.INFO: ==13377== Releasing lock... [2025-02-23 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:05:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:06:04 [end_date_ymd] => 2025-02-23 18:06:04 [RateCDR] => 1 ) [2025-02-23 18:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:06:04' and `end` < '2025-02-23 18:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:06:16] Production.INFO: count ==2207 [2025-02-23 18:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:06:04 - End Time 2025-02-23 18:06:04 [2025-02-23 18:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541471', 'tblTempUsageDetail_20' ) start [2025-02-23 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541471', 'tblTempUsageDetail_20' ) end [2025-02-23 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541471', 'tblTempVendorCDR_20' ) start [2025-02-23 18:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541471', 'tblTempVendorCDR_20' ) end [2025-02-23 18:06:17] Production.INFO: ProcessCDR(1,14541471,1,1,2) [2025-02-23 18:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541471', 'tblTempUsageDetail_20' ) start [2025-02-23 18:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541471', 'tblTempUsageDetail_20' ) end [2025-02-23 18:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:06:22] Production.INFO: ==13496== Releasing lock... [2025-02-23 18:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:06:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:07:05 [end_date_ymd] => 2025-02-23 18:07:05 [RateCDR] => 1 ) [2025-02-23 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:07:05' and `end` < '2025-02-23 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:07:17] Production.INFO: count ==2204 [2025-02-23 18:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:07:05 - End Time 2025-02-23 18:07:05 [2025-02-23 18:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541476', 'tblTempUsageDetail_20' ) start [2025-02-23 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541476', 'tblTempUsageDetail_20' ) end [2025-02-23 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541476', 'tblTempVendorCDR_20' ) start [2025-02-23 18:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541476', 'tblTempVendorCDR_20' ) end [2025-02-23 18:07:18] Production.INFO: ProcessCDR(1,14541476,1,1,2) [2025-02-23 18:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541476', 'tblTempUsageDetail_20' ) start [2025-02-23 18:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541476', 'tblTempUsageDetail_20' ) end [2025-02-23 18:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:07:21] Production.INFO: ==13568== Releasing lock... [2025-02-23 18:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:07:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:08:05 [end_date_ymd] => 2025-02-23 18:08:05 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:08:05' and `end` < '2025-02-23 18: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-02-23 18:08:17] Production.INFO: count ==2199 [2025-02-23 18:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:08:05 - End Time 2025-02-23 18:08:05 [2025-02-23 18:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541481', 'tblTempUsageDetail_20' ) start [2025-02-23 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541481', 'tblTempUsageDetail_20' ) end [2025-02-23 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541481', 'tblTempVendorCDR_20' ) start [2025-02-23 18:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541481', 'tblTempVendorCDR_20' ) end [2025-02-23 18:08:18] Production.INFO: ProcessCDR(1,14541481,1,1,2) [2025-02-23 18:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541481', 'tblTempUsageDetail_20' ) start [2025-02-23 18:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541481', 'tblTempUsageDetail_20' ) end [2025-02-23 18:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:08:21] Production.INFO: ==13645== Releasing lock... [2025-02-23 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:08:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:09:05 [end_date_ymd] => 2025-02-23 18:09:05 [RateCDR] => 1 ) [2025-02-23 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:09:05' and `end` < '2025-02-23 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:09:17] Production.INFO: count ==2200 [2025-02-23 18:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:09:05 - End Time 2025-02-23 18:09:05 [2025-02-23 18:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541486', 'tblTempUsageDetail_20' ) start [2025-02-23 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541486', 'tblTempUsageDetail_20' ) end [2025-02-23 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541486', 'tblTempVendorCDR_20' ) start [2025-02-23 18:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541486', 'tblTempVendorCDR_20' ) end [2025-02-23 18:09:18] Production.INFO: ProcessCDR(1,14541486,1,1,2) [2025-02-23 18:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541486', 'tblTempUsageDetail_20' ) start [2025-02-23 18:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541486', 'tblTempUsageDetail_20' ) end [2025-02-23 18:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:09:22] Production.INFO: ==13717== Releasing lock... [2025-02-23 18:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:09:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:10:06 [end_date_ymd] => 2025-02-23 18:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:10:06' and `end` < '2025-02-23 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-02-23 18:10:18] Production.INFO: count ==2199 [2025-02-23 18:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 15:10:06 - End Time 2025-02-23 18:10:06 [2025-02-23 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541492', 'tblTempUsageDetail_20' ) start [2025-02-23 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541492', 'tblTempUsageDetail_20' ) end [2025-02-23 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541492', 'tblTempVendorCDR_20' ) start [2025-02-23 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541492', 'tblTempVendorCDR_20' ) end [2025-02-23 18:10:19] Production.INFO: ProcessCDR(1,14541492,1,1,2) [2025-02-23 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541492', 'tblTempUsageDetail_20' ) start [2025-02-23 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541492', 'tblTempUsageDetail_20' ) end [2025-02-23 18:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:10:22] Production.INFO: ==13802== Releasing lock... [2025-02-23 18:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:10:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:11:04 [end_date_ymd] => 2025-02-23 18:11:04 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:11:04' and `end` < '2025-02-23 18: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-02-23 18:11:16] Production.INFO: count ==2172 [2025-02-23 18:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:11:04 - End Time 2025-02-23 18:11:04 [2025-02-23 18:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541497', 'tblTempUsageDetail_20' ) start [2025-02-23 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541497', 'tblTempUsageDetail_20' ) end [2025-02-23 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541497', 'tblTempVendorCDR_20' ) start [2025-02-23 18:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541497', 'tblTempVendorCDR_20' ) end [2025-02-23 18:11:17] Production.INFO: ProcessCDR(1,14541497,1,1,2) [2025-02-23 18:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541497', 'tblTempUsageDetail_20' ) start [2025-02-23 18:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541497', 'tblTempUsageDetail_20' ) end [2025-02-23 18:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:11:22] Production.INFO: ==13880== Releasing lock... [2025-02-23 18:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:11:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:12:05 [end_date_ymd] => 2025-02-23 18:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:12:05' and `end` < '2025-02-23 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-02-23 18:12:17] Production.INFO: count ==2170 [2025-02-23 18:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:12:05 - End Time 2025-02-23 18:12:05 [2025-02-23 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541502', 'tblTempUsageDetail_20' ) start [2025-02-23 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541502', 'tblTempUsageDetail_20' ) end [2025-02-23 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541502', 'tblTempVendorCDR_20' ) start [2025-02-23 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541502', 'tblTempVendorCDR_20' ) end [2025-02-23 18:12:18] Production.INFO: ProcessCDR(1,14541502,1,1,2) [2025-02-23 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541502', 'tblTempUsageDetail_20' ) start [2025-02-23 18:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541502', 'tblTempUsageDetail_20' ) end [2025-02-23 18:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:12:21] Production.INFO: ==13955== Releasing lock... [2025-02-23 18:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:12:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:13:05 [end_date_ymd] => 2025-02-23 18:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:13:05' and `end` < '2025-02-23 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-02-23 18:13:17] Production.INFO: count ==2171 [2025-02-23 18:13:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:13:05 - End Time 2025-02-23 18:13:05 [2025-02-23 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541507', 'tblTempUsageDetail_20' ) start [2025-02-23 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541507', 'tblTempUsageDetail_20' ) end [2025-02-23 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541507', 'tblTempVendorCDR_20' ) start [2025-02-23 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541507', 'tblTempVendorCDR_20' ) end [2025-02-23 18:13:18] Production.INFO: ProcessCDR(1,14541507,1,1,2) [2025-02-23 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541507', 'tblTempUsageDetail_20' ) start [2025-02-23 18:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541507', 'tblTempUsageDetail_20' ) end [2025-02-23 18:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:13:21] Production.INFO: ==14031== Releasing lock... [2025-02-23 18:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:13:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:14:05 [end_date_ymd] => 2025-02-23 18:14:05 [RateCDR] => 1 ) [2025-02-23 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:14:05' and `end` < '2025-02-23 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:14:17] Production.INFO: count ==2158 [2025-02-23 18:14:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:14:05 - End Time 2025-02-23 18:14:05 [2025-02-23 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541512', 'tblTempUsageDetail_20' ) start [2025-02-23 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541512', 'tblTempUsageDetail_20' ) end [2025-02-23 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541512', 'tblTempVendorCDR_20' ) start [2025-02-23 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541512', 'tblTempVendorCDR_20' ) end [2025-02-23 18:14:18] Production.INFO: ProcessCDR(1,14541512,1,1,2) [2025-02-23 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541512', 'tblTempUsageDetail_20' ) start [2025-02-23 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541512', 'tblTempUsageDetail_20' ) end [2025-02-23 18:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:14:21] Production.INFO: ==14105== Releasing lock... [2025-02-23 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:14:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:15:04 [end_date_ymd] => 2025-02-23 18:15:04 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:15:04' and `end` < '2025-02-23 18: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-02-23 18:15:16] Production.INFO: count ==2156 [2025-02-23 18:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:15:04 - End Time 2025-02-23 18:15:04 [2025-02-23 18:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541517', 'tblTempUsageDetail_20' ) start [2025-02-23 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541517', 'tblTempUsageDetail_20' ) end [2025-02-23 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541517', 'tblTempVendorCDR_20' ) start [2025-02-23 18:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541517', 'tblTempVendorCDR_20' ) end [2025-02-23 18:15:17] Production.INFO: ProcessCDR(1,14541517,1,1,2) [2025-02-23 18:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541517', 'tblTempUsageDetail_20' ) start [2025-02-23 18:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541517', 'tblTempUsageDetail_20' ) end [2025-02-23 18:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:15:21] Production.INFO: ==14182== Releasing lock... [2025-02-23 18:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:15:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:16:05 [end_date_ymd] => 2025-02-23 18:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:16:05' and `end` < '2025-02-23 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-02-23 18:16:17] Production.INFO: count ==2156 [2025-02-23 18:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:16:05 - End Time 2025-02-23 18:16:05 [2025-02-23 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541522', 'tblTempUsageDetail_20' ) start [2025-02-23 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541522', 'tblTempUsageDetail_20' ) end [2025-02-23 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541522', 'tblTempVendorCDR_20' ) start [2025-02-23 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541522', 'tblTempVendorCDR_20' ) end [2025-02-23 18:16:18] Production.INFO: ProcessCDR(1,14541522,1,1,2) [2025-02-23 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541522', 'tblTempUsageDetail_20' ) start [2025-02-23 18:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541522', 'tblTempUsageDetail_20' ) end [2025-02-23 18:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:16:23] Production.INFO: ==14256== Releasing lock... [2025-02-23 18:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:16:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:17:05 [end_date_ymd] => 2025-02-23 18:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:17:05' and `end` < '2025-02-23 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-02-23 18:17:17] Production.INFO: count ==2162 [2025-02-23 18:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:17:05 - End Time 2025-02-23 18:17:05 [2025-02-23 18:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541527', 'tblTempUsageDetail_20' ) start [2025-02-23 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541527', 'tblTempUsageDetail_20' ) end [2025-02-23 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541527', 'tblTempVendorCDR_20' ) start [2025-02-23 18:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541527', 'tblTempVendorCDR_20' ) end [2025-02-23 18:17:18] Production.INFO: ProcessCDR(1,14541527,1,1,2) [2025-02-23 18:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541527', 'tblTempUsageDetail_20' ) start [2025-02-23 18:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541527', 'tblTempUsageDetail_20' ) end [2025-02-23 18:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:17:21] Production.INFO: ==14331== Releasing lock... [2025-02-23 18:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:17:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:18:05 [end_date_ymd] => 2025-02-23 18:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:18:05' and `end` < '2025-02-23 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-02-23 18:18:17] Production.INFO: count ==2158 [2025-02-23 18:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:18:05 - End Time 2025-02-23 18:18:05 [2025-02-23 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541532', 'tblTempUsageDetail_20' ) start [2025-02-23 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541532', 'tblTempUsageDetail_20' ) end [2025-02-23 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541532', 'tblTempVendorCDR_20' ) start [2025-02-23 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541532', 'tblTempVendorCDR_20' ) end [2025-02-23 18:18:18] Production.INFO: ProcessCDR(1,14541532,1,1,2) [2025-02-23 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541532', 'tblTempUsageDetail_20' ) start [2025-02-23 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541532', 'tblTempUsageDetail_20' ) end [2025-02-23 18:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:18:21] Production.INFO: ==14409== Releasing lock... [2025-02-23 18:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:18:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:19:05 [end_date_ymd] => 2025-02-23 18:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:19:05' and `end` < '2025-02-23 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-02-23 18:19:17] Production.INFO: count ==2159 [2025-02-23 18:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:19:05 - End Time 2025-02-23 18:19:05 [2025-02-23 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541537', 'tblTempUsageDetail_20' ) start [2025-02-23 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541537', 'tblTempUsageDetail_20' ) end [2025-02-23 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541537', 'tblTempVendorCDR_20' ) start [2025-02-23 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541537', 'tblTempVendorCDR_20' ) end [2025-02-23 18:19:18] Production.INFO: ProcessCDR(1,14541537,1,1,2) [2025-02-23 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541537', 'tblTempUsageDetail_20' ) start [2025-02-23 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541537', 'tblTempUsageDetail_20' ) end [2025-02-23 18:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:19:21] Production.INFO: ==14489== Releasing lock... [2025-02-23 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:19:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:20:06 [end_date_ymd] => 2025-02-23 18:20:06 [RateCDR] => 1 ) [2025-02-23 18:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:20:06' and `end` < '2025-02-23 18:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:20:18] Production.INFO: count ==2157 [2025-02-23 18:20:19] Production.ERROR: pbx CDR StartTime 2025-02-23 15:20:06 - End Time 2025-02-23 18:20:06 [2025-02-23 18:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541543', 'tblTempUsageDetail_20' ) start [2025-02-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541543', 'tblTempUsageDetail_20' ) end [2025-02-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541543', 'tblTempVendorCDR_20' ) start [2025-02-23 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541543', 'tblTempVendorCDR_20' ) end [2025-02-23 18:20:19] Production.INFO: ProcessCDR(1,14541543,1,1,2) [2025-02-23 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541543', 'tblTempUsageDetail_20' ) start [2025-02-23 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541543', 'tblTempUsageDetail_20' ) end [2025-02-23 18:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:20:22] Production.INFO: ==14564== Releasing lock... [2025-02-23 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:20:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:21:06 [end_date_ymd] => 2025-02-23 18:21:06 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:21:06' and `end` < '2025-02-23 18: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-02-23 18:21:18] Production.INFO: count ==2179 [2025-02-23 18:21:19] Production.ERROR: pbx CDR StartTime 2025-02-23 15:21:06 - End Time 2025-02-23 18:21:06 [2025-02-23 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541548', 'tblTempUsageDetail_20' ) start [2025-02-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541548', 'tblTempUsageDetail_20' ) end [2025-02-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541548', 'tblTempVendorCDR_20' ) start [2025-02-23 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541548', 'tblTempVendorCDR_20' ) end [2025-02-23 18:21:19] Production.INFO: ProcessCDR(1,14541548,1,1,2) [2025-02-23 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541548', 'tblTempUsageDetail_20' ) start [2025-02-23 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541548', 'tblTempUsageDetail_20' ) end [2025-02-23 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:21:22] Production.INFO: ==14678== Releasing lock... [2025-02-23 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:21:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:22:05 [end_date_ymd] => 2025-02-23 18:22:05 [RateCDR] => 1 ) [2025-02-23 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:22:05' and `end` < '2025-02-23 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:22:17] Production.INFO: count ==2179 [2025-02-23 18:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:22:05 - End Time 2025-02-23 18:22:05 [2025-02-23 18:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541553', 'tblTempUsageDetail_20' ) start [2025-02-23 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541553', 'tblTempUsageDetail_20' ) end [2025-02-23 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541553', 'tblTempVendorCDR_20' ) start [2025-02-23 18:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541553', 'tblTempVendorCDR_20' ) end [2025-02-23 18:22:18] Production.INFO: ProcessCDR(1,14541553,1,1,2) [2025-02-23 18:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541553', 'tblTempUsageDetail_20' ) start [2025-02-23 18:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541553', 'tblTempUsageDetail_20' ) end [2025-02-23 18:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:22:21] Production.INFO: ==14755== Releasing lock... [2025-02-23 18:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:22:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:23:05 [end_date_ymd] => 2025-02-23 18:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:23:05' and `end` < '2025-02-23 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-02-23 18:23:17] Production.INFO: count ==2180 [2025-02-23 18:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:23:05 - End Time 2025-02-23 18:23:05 [2025-02-23 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541558', 'tblTempUsageDetail_20' ) start [2025-02-23 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541558', 'tblTempUsageDetail_20' ) end [2025-02-23 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541558', 'tblTempVendorCDR_20' ) start [2025-02-23 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541558', 'tblTempVendorCDR_20' ) end [2025-02-23 18:23:18] Production.INFO: ProcessCDR(1,14541558,1,1,2) [2025-02-23 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541558', 'tblTempUsageDetail_20' ) start [2025-02-23 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541558', 'tblTempUsageDetail_20' ) end [2025-02-23 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:23:23] Production.INFO: ==14831== Releasing lock... [2025-02-23 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:23:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:24:05 [end_date_ymd] => 2025-02-23 18:24:05 [RateCDR] => 1 ) [2025-02-23 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:24:05' and `end` < '2025-02-23 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:24:17] Production.INFO: count ==2179 [2025-02-23 18:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:24:05 - End Time 2025-02-23 18:24:05 [2025-02-23 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541563', 'tblTempUsageDetail_20' ) start [2025-02-23 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541563', 'tblTempUsageDetail_20' ) end [2025-02-23 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541563', 'tblTempVendorCDR_20' ) start [2025-02-23 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541563', 'tblTempVendorCDR_20' ) end [2025-02-23 18:24:18] Production.INFO: ProcessCDR(1,14541563,1,1,2) [2025-02-23 18:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541563', 'tblTempUsageDetail_20' ) start [2025-02-23 18:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541563', 'tblTempUsageDetail_20' ) end [2025-02-23 18:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:24:21] Production.INFO: ==14912== Releasing lock... [2025-02-23 18:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:24:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:25:05 [end_date_ymd] => 2025-02-23 18:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:25:05' and `end` < '2025-02-23 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-02-23 18:25:17] Production.INFO: count ==2179 [2025-02-23 18:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:25:05 - End Time 2025-02-23 18:25:05 [2025-02-23 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541568', 'tblTempUsageDetail_20' ) start [2025-02-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541568', 'tblTempUsageDetail_20' ) end [2025-02-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541568', 'tblTempVendorCDR_20' ) start [2025-02-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541568', 'tblTempVendorCDR_20' ) end [2025-02-23 18:25:18] Production.INFO: ProcessCDR(1,14541568,1,1,2) [2025-02-23 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541568', 'tblTempUsageDetail_20' ) start [2025-02-23 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541568', 'tblTempUsageDetail_20' ) end [2025-02-23 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:25:23] Production.INFO: ==14992== Releasing lock... [2025-02-23 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:25:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:26:05 [end_date_ymd] => 2025-02-23 18:26:05 [RateCDR] => 1 ) [2025-02-23 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:26:05' and `end` < '2025-02-23 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:26:17] Production.INFO: count ==2183 [2025-02-23 18:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:26:05 - End Time 2025-02-23 18:26:05 [2025-02-23 18:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541573', 'tblTempUsageDetail_20' ) start [2025-02-23 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541573', 'tblTempUsageDetail_20' ) end [2025-02-23 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541573', 'tblTempVendorCDR_20' ) start [2025-02-23 18:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541573', 'tblTempVendorCDR_20' ) end [2025-02-23 18:26:17] Production.INFO: ProcessCDR(1,14541573,1,1,2) [2025-02-23 18:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541573', 'tblTempUsageDetail_20' ) start [2025-02-23 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541573', 'tblTempUsageDetail_20' ) end [2025-02-23 18:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:26:22] Production.INFO: ==15068== Releasing lock... [2025-02-23 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:26:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:27:05 [end_date_ymd] => 2025-02-23 18:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:27:05' and `end` < '2025-02-23 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-02-23 18:27:18] Production.INFO: count ==2180 [2025-02-23 18:27:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:27:05 - End Time 2025-02-23 18:27:05 [2025-02-23 18:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541578', 'tblTempUsageDetail_20' ) start [2025-02-23 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541578', 'tblTempUsageDetail_20' ) end [2025-02-23 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541578', 'tblTempVendorCDR_20' ) start [2025-02-23 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541578', 'tblTempVendorCDR_20' ) end [2025-02-23 18:27:18] Production.INFO: ProcessCDR(1,14541578,1,1,2) [2025-02-23 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541578', 'tblTempUsageDetail_20' ) start [2025-02-23 18:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541578', 'tblTempUsageDetail_20' ) end [2025-02-23 18:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:27:22] Production.INFO: ==15141== Releasing lock... [2025-02-23 18:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:27:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:28:05 [end_date_ymd] => 2025-02-23 18:28:05 [RateCDR] => 1 ) [2025-02-23 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:28:05' and `end` < '2025-02-23 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:28:17] Production.INFO: count ==2171 [2025-02-23 18:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:28:05 - End Time 2025-02-23 18:28:05 [2025-02-23 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541583', 'tblTempUsageDetail_20' ) start [2025-02-23 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541583', 'tblTempUsageDetail_20' ) end [2025-02-23 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541583', 'tblTempVendorCDR_20' ) start [2025-02-23 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541583', 'tblTempVendorCDR_20' ) end [2025-02-23 18:28:18] Production.INFO: ProcessCDR(1,14541583,1,1,2) [2025-02-23 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541583', 'tblTempUsageDetail_20' ) start [2025-02-23 18:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541583', 'tblTempUsageDetail_20' ) end [2025-02-23 18:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:28:22] Production.INFO: ==15215== Releasing lock... [2025-02-23 18:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:28:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:29:05 [end_date_ymd] => 2025-02-23 18:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:29:05' and `end` < '2025-02-23 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-02-23 18:29:17] Production.INFO: count ==2169 [2025-02-23 18:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:29:05 - End Time 2025-02-23 18:29:05 [2025-02-23 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541588', 'tblTempUsageDetail_20' ) start [2025-02-23 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541588', 'tblTempUsageDetail_20' ) end [2025-02-23 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541588', 'tblTempVendorCDR_20' ) start [2025-02-23 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541588', 'tblTempVendorCDR_20' ) end [2025-02-23 18:29:18] Production.INFO: ProcessCDR(1,14541588,1,1,2) [2025-02-23 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541588', 'tblTempUsageDetail_20' ) start [2025-02-23 18:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541588', 'tblTempUsageDetail_20' ) end [2025-02-23 18:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:29:22] Production.INFO: ==15293== Releasing lock... [2025-02-23 18:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:29:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:30:06 [end_date_ymd] => 2025-02-23 18:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:30:06' and `end` < '2025-02-23 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-02-23 18:30:18] Production.INFO: count ==2164 [2025-02-23 18:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:30:06 - End Time 2025-02-23 18:30:06 [2025-02-23 18:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541594', 'tblTempUsageDetail_20' ) start [2025-02-23 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541594', 'tblTempUsageDetail_20' ) end [2025-02-23 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541594', 'tblTempVendorCDR_20' ) start [2025-02-23 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541594', 'tblTempVendorCDR_20' ) end [2025-02-23 18:30:19] Production.INFO: ProcessCDR(1,14541594,1,1,2) [2025-02-23 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541594', 'tblTempUsageDetail_20' ) start [2025-02-23 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541594', 'tblTempUsageDetail_20' ) end [2025-02-23 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:30:22] Production.INFO: ==15371== Releasing lock... [2025-02-23 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:30:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:31:06 [end_date_ymd] => 2025-02-23 18:31:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:31:06' and `end` < '2025-02-23 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-02-23 18:31:18] Production.INFO: count ==2161 [2025-02-23 18:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:31:06 - End Time 2025-02-23 18:31:06 [2025-02-23 18:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541599', 'tblTempUsageDetail_20' ) start [2025-02-23 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541599', 'tblTempUsageDetail_20' ) end [2025-02-23 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541599', 'tblTempVendorCDR_20' ) start [2025-02-23 18:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541599', 'tblTempVendorCDR_20' ) end [2025-02-23 18:31:19] Production.INFO: ProcessCDR(1,14541599,1,1,2) [2025-02-23 18:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541599', 'tblTempUsageDetail_20' ) start [2025-02-23 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541599', 'tblTempUsageDetail_20' ) end [2025-02-23 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:31:23] Production.INFO: ==15448== Releasing lock... [2025-02-23 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:31:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:32:05 [end_date_ymd] => 2025-02-23 18:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:32:05' and `end` < '2025-02-23 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-02-23 18:32:17] Production.INFO: count ==2160 [2025-02-23 18:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:32:05 - End Time 2025-02-23 18:32:05 [2025-02-23 18:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541604', 'tblTempUsageDetail_20' ) start [2025-02-23 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541604', 'tblTempUsageDetail_20' ) end [2025-02-23 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541604', 'tblTempVendorCDR_20' ) start [2025-02-23 18:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541604', 'tblTempVendorCDR_20' ) end [2025-02-23 18:32:18] Production.INFO: ProcessCDR(1,14541604,1,1,2) [2025-02-23 18:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541604', 'tblTempUsageDetail_20' ) start [2025-02-23 18:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541604', 'tblTempUsageDetail_20' ) end [2025-02-23 18:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:32:21] Production.INFO: ==15522== Releasing lock... [2025-02-23 18:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:32:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:33:05 [end_date_ymd] => 2025-02-23 18:33:05 [RateCDR] => 1 ) [2025-02-23 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:33:05' and `end` < '2025-02-23 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:33:17] Production.INFO: count ==2157 [2025-02-23 18:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:33:05 - End Time 2025-02-23 18:33:05 [2025-02-23 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541609', 'tblTempUsageDetail_20' ) start [2025-02-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541609', 'tblTempUsageDetail_20' ) end [2025-02-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541609', 'tblTempVendorCDR_20' ) start [2025-02-23 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541609', 'tblTempVendorCDR_20' ) end [2025-02-23 18:33:18] Production.INFO: ProcessCDR(1,14541609,1,1,2) [2025-02-23 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541609', 'tblTempUsageDetail_20' ) start [2025-02-23 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541609', 'tblTempUsageDetail_20' ) end [2025-02-23 18:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:33:21] Production.INFO: ==15595== Releasing lock... [2025-02-23 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:33:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:34:06 [end_date_ymd] => 2025-02-23 18:34:06 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:34:06' and `end` < '2025-02-23 18: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-02-23 18:34:18] Production.INFO: count ==2158 [2025-02-23 18:34:19] Production.ERROR: pbx CDR StartTime 2025-02-23 15:34:06 - End Time 2025-02-23 18:34:06 [2025-02-23 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541614', 'tblTempUsageDetail_20' ) start [2025-02-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541614', 'tblTempUsageDetail_20' ) end [2025-02-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541614', 'tblTempVendorCDR_20' ) start [2025-02-23 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541614', 'tblTempVendorCDR_20' ) end [2025-02-23 18:34:19] Production.INFO: ProcessCDR(1,14541614,1,1,2) [2025-02-23 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541614', 'tblTempUsageDetail_20' ) start [2025-02-23 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541614', 'tblTempUsageDetail_20' ) end [2025-02-23 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:34:23] Production.INFO: ==15696== Releasing lock... [2025-02-23 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:34:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:35:05 [end_date_ymd] => 2025-02-23 18:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:35:05' and `end` < '2025-02-23 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-02-23 18:35:17] Production.INFO: count ==2155 [2025-02-23 18:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:35:05 - End Time 2025-02-23 18:35:05 [2025-02-23 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541619', 'tblTempUsageDetail_20' ) start [2025-02-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541619', 'tblTempUsageDetail_20' ) end [2025-02-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541619', 'tblTempVendorCDR_20' ) start [2025-02-23 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541619', 'tblTempVendorCDR_20' ) end [2025-02-23 18:35:18] Production.INFO: ProcessCDR(1,14541619,1,1,2) [2025-02-23 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541619', 'tblTempUsageDetail_20' ) start [2025-02-23 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541619', 'tblTempUsageDetail_20' ) end [2025-02-23 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:35:22] Production.INFO: ==15768== Releasing lock... [2025-02-23 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:35:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:36:05 [end_date_ymd] => 2025-02-23 18:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:36:05' and `end` < '2025-02-23 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-02-23 18:36:17] Production.INFO: count ==2161 [2025-02-23 18:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:36:05 - End Time 2025-02-23 18:36:05 [2025-02-23 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541624', 'tblTempUsageDetail_20' ) start [2025-02-23 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541624', 'tblTempUsageDetail_20' ) end [2025-02-23 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541624', 'tblTempVendorCDR_20' ) start [2025-02-23 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541624', 'tblTempVendorCDR_20' ) end [2025-02-23 18:36:18] Production.INFO: ProcessCDR(1,14541624,1,1,2) [2025-02-23 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541624', 'tblTempUsageDetail_20' ) start [2025-02-23 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541624', 'tblTempUsageDetail_20' ) end [2025-02-23 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:36:23] Production.INFO: ==15842== Releasing lock... [2025-02-23 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:36:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-23 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:37:05 [end_date_ymd] => 2025-02-23 18:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:37:05' and `end` < '2025-02-23 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-02-23 18:37:17] Production.INFO: count ==2180 [2025-02-23 18:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:37:05 - End Time 2025-02-23 18:37:05 [2025-02-23 18:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541629', 'tblTempUsageDetail_20' ) start [2025-02-23 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541629', 'tblTempUsageDetail_20' ) end [2025-02-23 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541629', 'tblTempVendorCDR_20' ) start [2025-02-23 18:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541629', 'tblTempVendorCDR_20' ) end [2025-02-23 18:37:18] Production.INFO: ProcessCDR(1,14541629,1,1,2) [2025-02-23 18:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541629', 'tblTempUsageDetail_20' ) start [2025-02-23 18:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541629', 'tblTempUsageDetail_20' ) end [2025-02-23 18:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:37:21] Production.INFO: ==15953== Releasing lock... [2025-02-23 18:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:37:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:38:05 [end_date_ymd] => 2025-02-23 18:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:38:05' and `end` < '2025-02-23 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-02-23 18:38:18] Production.INFO: count ==2182 [2025-02-23 18:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:38:05 - End Time 2025-02-23 18:38:05 [2025-02-23 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541634', 'tblTempUsageDetail_20' ) start [2025-02-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541634', 'tblTempUsageDetail_20' ) end [2025-02-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541634', 'tblTempVendorCDR_20' ) start [2025-02-23 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541634', 'tblTempVendorCDR_20' ) end [2025-02-23 18:38:18] Production.INFO: ProcessCDR(1,14541634,1,1,2) [2025-02-23 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541634', 'tblTempUsageDetail_20' ) start [2025-02-23 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541634', 'tblTempUsageDetail_20' ) end [2025-02-23 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:38:23] Production.INFO: ==16038== Releasing lock... [2025-02-23 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:38:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:39:05 [end_date_ymd] => 2025-02-23 18:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:39:05' and `end` < '2025-02-23 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-02-23 18:39:17] Production.INFO: count ==2183 [2025-02-23 18:39:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:39:05 - End Time 2025-02-23 18:39:05 [2025-02-23 18:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541639', 'tblTempUsageDetail_20' ) start [2025-02-23 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541639', 'tblTempUsageDetail_20' ) end [2025-02-23 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541639', 'tblTempVendorCDR_20' ) start [2025-02-23 18:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541639', 'tblTempVendorCDR_20' ) end [2025-02-23 18:39:18] Production.INFO: ProcessCDR(1,14541639,1,1,2) [2025-02-23 18:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541639', 'tblTempUsageDetail_20' ) start [2025-02-23 18:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541639', 'tblTempUsageDetail_20' ) end [2025-02-23 18:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:39:21] Production.INFO: ==16109== Releasing lock... [2025-02-23 18:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:39:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:40:06 [end_date_ymd] => 2025-02-23 18:40:06 [RateCDR] => 1 ) [2025-02-23 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:40:06' and `end` < '2025-02-23 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:40:18] Production.INFO: count ==2194 [2025-02-23 18:40:19] Production.ERROR: pbx CDR StartTime 2025-02-23 15:40:06 - End Time 2025-02-23 18:40:06 [2025-02-23 18:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541645', 'tblTempUsageDetail_20' ) start [2025-02-23 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541645', 'tblTempUsageDetail_20' ) end [2025-02-23 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541645', 'tblTempVendorCDR_20' ) start [2025-02-23 18:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541645', 'tblTempVendorCDR_20' ) end [2025-02-23 18:40:19] Production.INFO: ProcessCDR(1,14541645,1,1,2) [2025-02-23 18:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541645', 'tblTempUsageDetail_20' ) start [2025-02-23 18:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541645', 'tblTempUsageDetail_20' ) end [2025-02-23 18:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:40:22] Production.INFO: ==16184== Releasing lock... [2025-02-23 18:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:40:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:41:05 [end_date_ymd] => 2025-02-23 18:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:41:05' and `end` < '2025-02-23 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-02-23 18:41:17] Production.INFO: count ==2224 [2025-02-23 18:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:41:05 - End Time 2025-02-23 18:41:05 [2025-02-23 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541650', 'tblTempUsageDetail_20' ) start [2025-02-23 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541650', 'tblTempUsageDetail_20' ) end [2025-02-23 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541650', 'tblTempVendorCDR_20' ) start [2025-02-23 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541650', 'tblTempVendorCDR_20' ) end [2025-02-23 18:41:18] Production.INFO: ProcessCDR(1,14541650,1,1,2) [2025-02-23 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541650', 'tblTempUsageDetail_20' ) start [2025-02-23 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541650', 'tblTempUsageDetail_20' ) end [2025-02-23 18:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:41:21] Production.INFO: ==16262== Releasing lock... [2025-02-23 18:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:41:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:42:05 [end_date_ymd] => 2025-02-23 18:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:42:05' and `end` < '2025-02-23 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-02-23 18:42:18] Production.INFO: count ==2224 [2025-02-23 18:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:42:05 - End Time 2025-02-23 18:42:05 [2025-02-23 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541655', 'tblTempUsageDetail_20' ) start [2025-02-23 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541655', 'tblTempUsageDetail_20' ) end [2025-02-23 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541655', 'tblTempVendorCDR_20' ) start [2025-02-23 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541655', 'tblTempVendorCDR_20' ) end [2025-02-23 18:42:18] Production.INFO: ProcessCDR(1,14541655,1,1,2) [2025-02-23 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541655', 'tblTempUsageDetail_20' ) start [2025-02-23 18:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541655', 'tblTempUsageDetail_20' ) end [2025-02-23 18:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:42:22] Production.INFO: ==16338== Releasing lock... [2025-02-23 18:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:42:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:43:05 [end_date_ymd] => 2025-02-23 18:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:43:05' and `end` < '2025-02-23 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-02-23 18:43:17] Production.INFO: count ==2228 [2025-02-23 18:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:43:05 - End Time 2025-02-23 18:43:05 [2025-02-23 18:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541660', 'tblTempUsageDetail_20' ) start [2025-02-23 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541660', 'tblTempUsageDetail_20' ) end [2025-02-23 18:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541660', 'tblTempVendorCDR_20' ) start [2025-02-23 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541660', 'tblTempVendorCDR_20' ) end [2025-02-23 18:43:18] Production.INFO: ProcessCDR(1,14541660,1,1,2) [2025-02-23 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541660', 'tblTempUsageDetail_20' ) start [2025-02-23 18:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541660', 'tblTempUsageDetail_20' ) end [2025-02-23 18:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:43:21] Production.INFO: ==16410== Releasing lock... [2025-02-23 18:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:43:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:44:05 [end_date_ymd] => 2025-02-23 18:44:05 [RateCDR] => 1 ) [2025-02-23 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:44:05' and `end` < '2025-02-23 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:44:17] Production.INFO: count ==2228 [2025-02-23 18:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:44:05 - End Time 2025-02-23 18:44:05 [2025-02-23 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541665', 'tblTempUsageDetail_20' ) start [2025-02-23 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541665', 'tblTempUsageDetail_20' ) end [2025-02-23 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541665', 'tblTempVendorCDR_20' ) start [2025-02-23 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541665', 'tblTempVendorCDR_20' ) end [2025-02-23 18:44:18] Production.INFO: ProcessCDR(1,14541665,1,1,2) [2025-02-23 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541665', 'tblTempUsageDetail_20' ) start [2025-02-23 18:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541665', 'tblTempUsageDetail_20' ) end [2025-02-23 18:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:44:21] Production.INFO: ==16487== Releasing lock... [2025-02-23 18:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:44:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:45:05 [end_date_ymd] => 2025-02-23 18:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:45:05' and `end` < '2025-02-23 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-02-23 18:45:17] Production.INFO: count ==2229 [2025-02-23 18:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:45:05 - End Time 2025-02-23 18:45:05 [2025-02-23 18:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541670', 'tblTempUsageDetail_20' ) start [2025-02-23 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541670', 'tblTempUsageDetail_20' ) end [2025-02-23 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541670', 'tblTempVendorCDR_20' ) start [2025-02-23 18:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541670', 'tblTempVendorCDR_20' ) end [2025-02-23 18:45:17] Production.INFO: ProcessCDR(1,14541670,1,1,2) [2025-02-23 18:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541670', 'tblTempUsageDetail_20' ) start [2025-02-23 18:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541670', 'tblTempUsageDetail_20' ) end [2025-02-23 18:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:45:21] Production.INFO: ==16566== Releasing lock... [2025-02-23 18:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:45:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:46:05 [end_date_ymd] => 2025-02-23 18:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:46:05' and `end` < '2025-02-23 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-02-23 18:46:17] Production.INFO: count ==2234 [2025-02-23 18:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:46:05 - End Time 2025-02-23 18:46:05 [2025-02-23 18:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541675', 'tblTempUsageDetail_20' ) start [2025-02-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541675', 'tblTempUsageDetail_20' ) end [2025-02-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541675', 'tblTempVendorCDR_20' ) start [2025-02-23 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541675', 'tblTempVendorCDR_20' ) end [2025-02-23 18:46:18] Production.INFO: ProcessCDR(1,14541675,1,1,2) [2025-02-23 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541675', 'tblTempUsageDetail_20' ) start [2025-02-23 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541675', 'tblTempUsageDetail_20' ) end [2025-02-23 18:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:46:21] Production.INFO: ==16640== Releasing lock... [2025-02-23 18:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:46:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:47:05 [end_date_ymd] => 2025-02-23 18:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:47:05' and `end` < '2025-02-23 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-02-23 18:47:17] Production.INFO: count ==2231 [2025-02-23 18:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:47:05 - End Time 2025-02-23 18:47:05 [2025-02-23 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541680', 'tblTempUsageDetail_20' ) start [2025-02-23 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541680', 'tblTempUsageDetail_20' ) end [2025-02-23 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541680', 'tblTempVendorCDR_20' ) start [2025-02-23 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541680', 'tblTempVendorCDR_20' ) end [2025-02-23 18:47:18] Production.INFO: ProcessCDR(1,14541680,1,1,2) [2025-02-23 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541680', 'tblTempUsageDetail_20' ) start [2025-02-23 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541680', 'tblTempUsageDetail_20' ) end [2025-02-23 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:47:22] Production.INFO: ==16712== Releasing lock... [2025-02-23 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:47:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:48:05 [end_date_ymd] => 2025-02-23 18:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:48:05' and `end` < '2025-02-23 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-02-23 18:48:18] Production.INFO: count ==2229 [2025-02-23 18:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:48:05 - End Time 2025-02-23 18:48:05 [2025-02-23 18:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541685', 'tblTempUsageDetail_20' ) start [2025-02-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541685', 'tblTempUsageDetail_20' ) end [2025-02-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541685', 'tblTempVendorCDR_20' ) start [2025-02-23 18:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541685', 'tblTempVendorCDR_20' ) end [2025-02-23 18:48:18] Production.INFO: ProcessCDR(1,14541685,1,1,2) [2025-02-23 18:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541685', 'tblTempUsageDetail_20' ) start [2025-02-23 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541685', 'tblTempUsageDetail_20' ) end [2025-02-23 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:48:23] Production.INFO: ==16787== Releasing lock... [2025-02-23 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:48:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:49:05 [end_date_ymd] => 2025-02-23 18:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:49:05' and `end` < '2025-02-23 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-02-23 18:49:17] Production.INFO: count ==2230 [2025-02-23 18:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:49:05 - End Time 2025-02-23 18:49:05 [2025-02-23 18:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541690', 'tblTempUsageDetail_20' ) start [2025-02-23 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541690', 'tblTempUsageDetail_20' ) end [2025-02-23 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541690', 'tblTempVendorCDR_20' ) start [2025-02-23 18:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541690', 'tblTempVendorCDR_20' ) end [2025-02-23 18:49:17] Production.INFO: ProcessCDR(1,14541690,1,1,2) [2025-02-23 18:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541690', 'tblTempUsageDetail_20' ) start [2025-02-23 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541690', 'tblTempUsageDetail_20' ) end [2025-02-23 18:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:49:21] Production.INFO: ==16861== Releasing lock... [2025-02-23 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:49:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:50:06 [end_date_ymd] => 2025-02-23 18:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:50:06' and `end` < '2025-02-23 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-02-23 18:50:18] Production.INFO: count ==2226 [2025-02-23 18:50:19] Production.ERROR: pbx CDR StartTime 2025-02-23 15:50:06 - End Time 2025-02-23 18:50:06 [2025-02-23 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541696', 'tblTempUsageDetail_20' ) start [2025-02-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541696', 'tblTempUsageDetail_20' ) end [2025-02-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541696', 'tblTempVendorCDR_20' ) start [2025-02-23 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541696', 'tblTempVendorCDR_20' ) end [2025-02-23 18:50:19] Production.INFO: ProcessCDR(1,14541696,1,1,2) [2025-02-23 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541696', 'tblTempUsageDetail_20' ) start [2025-02-23 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541696', 'tblTempUsageDetail_20' ) end [2025-02-23 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:50:22] Production.INFO: ==16935== Releasing lock... [2025-02-23 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:50:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:51:06 [end_date_ymd] => 2025-02-23 18:51:06 [RateCDR] => 1 ) [2025-02-23 18: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-02-23 15:51:06' and `end` < '2025-02-23 18: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-02-23 18:51:18] Production.INFO: count ==2236 [2025-02-23 18:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:51:06 - End Time 2025-02-23 18:51:06 [2025-02-23 18:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541701', 'tblTempUsageDetail_20' ) start [2025-02-23 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541701', 'tblTempUsageDetail_20' ) end [2025-02-23 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541701', 'tblTempVendorCDR_20' ) start [2025-02-23 18:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541701', 'tblTempVendorCDR_20' ) end [2025-02-23 18:51:18] Production.INFO: ProcessCDR(1,14541701,1,1,2) [2025-02-23 18:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541701', 'tblTempUsageDetail_20' ) start [2025-02-23 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541701', 'tblTempUsageDetail_20' ) end [2025-02-23 18:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:51:22] Production.INFO: ==17013== Releasing lock... [2025-02-23 18:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:51:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:52:05 [end_date_ymd] => 2025-02-23 18:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:52:05' and `end` < '2025-02-23 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-02-23 18:52:17] Production.INFO: count ==2235 [2025-02-23 18:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:52:05 - End Time 2025-02-23 18:52:05 [2025-02-23 18:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541706', 'tblTempUsageDetail_20' ) start [2025-02-23 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541706', 'tblTempUsageDetail_20' ) end [2025-02-23 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541706', 'tblTempVendorCDR_20' ) start [2025-02-23 18:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541706', 'tblTempVendorCDR_20' ) end [2025-02-23 18:52:17] Production.INFO: ProcessCDR(1,14541706,1,1,2) [2025-02-23 18:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541706', 'tblTempUsageDetail_20' ) start [2025-02-23 18:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541706', 'tblTempUsageDetail_20' ) end [2025-02-23 18:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:52:21] Production.INFO: ==17129== Releasing lock... [2025-02-23 18:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:52:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:53:05 [end_date_ymd] => 2025-02-23 18:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:53:05' and `end` < '2025-02-23 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-02-23 18:53:17] Production.INFO: count ==2235 [2025-02-23 18:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:53:05 - End Time 2025-02-23 18:53:05 [2025-02-23 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541711', 'tblTempUsageDetail_20' ) start [2025-02-23 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541711', 'tblTempUsageDetail_20' ) end [2025-02-23 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541711', 'tblTempVendorCDR_20' ) start [2025-02-23 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541711', 'tblTempVendorCDR_20' ) end [2025-02-23 18:53:18] Production.INFO: ProcessCDR(1,14541711,1,1,2) [2025-02-23 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541711', 'tblTempUsageDetail_20' ) start [2025-02-23 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541711', 'tblTempUsageDetail_20' ) end [2025-02-23 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:53:22] Production.INFO: ==17210== Releasing lock... [2025-02-23 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:53:22] Production.INFO: 45 MB #Memory Used# [2025-02-23 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:54:05 [end_date_ymd] => 2025-02-23 18:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:54:05' and `end` < '2025-02-23 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-02-23 18:54:17] Production.INFO: count ==2233 [2025-02-23 18:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:54:05 - End Time 2025-02-23 18:54:05 [2025-02-23 18:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541716', 'tblTempUsageDetail_20' ) start [2025-02-23 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541716', 'tblTempUsageDetail_20' ) end [2025-02-23 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541716', 'tblTempVendorCDR_20' ) start [2025-02-23 18:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541716', 'tblTempVendorCDR_20' ) end [2025-02-23 18:54:17] Production.INFO: ProcessCDR(1,14541716,1,1,2) [2025-02-23 18:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541716', 'tblTempUsageDetail_20' ) start [2025-02-23 18:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541716', 'tblTempUsageDetail_20' ) end [2025-02-23 18:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:54:21] Production.INFO: ==17281== Releasing lock... [2025-02-23 18:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:54:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:55:05 [end_date_ymd] => 2025-02-23 18:55:05 [RateCDR] => 1 ) [2025-02-23 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 15:55:05' and `end` < '2025-02-23 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 18:55:17] Production.INFO: count ==2229 [2025-02-23 18:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 15:55:05 - End Time 2025-02-23 18:55:05 [2025-02-23 18:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541721', 'tblTempUsageDetail_20' ) start [2025-02-23 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541721', 'tblTempUsageDetail_20' ) end [2025-02-23 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541721', 'tblTempVendorCDR_20' ) start [2025-02-23 18:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541721', 'tblTempVendorCDR_20' ) end [2025-02-23 18:55:17] Production.INFO: ProcessCDR(1,14541721,1,1,2) [2025-02-23 18:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541721', 'tblTempUsageDetail_20' ) start [2025-02-23 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541721', 'tblTempUsageDetail_20' ) end [2025-02-23 18:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:55:21] Production.INFO: ==17353== Releasing lock... [2025-02-23 18:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:55:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:56:05 [end_date_ymd] => 2025-02-23 18:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:56:05' and `end` < '2025-02-23 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-02-23 18:56:17] Production.INFO: count ==2230 [2025-02-23 18:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:56:05 - End Time 2025-02-23 18:56:05 [2025-02-23 18:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541726', 'tblTempUsageDetail_20' ) start [2025-02-23 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541726', 'tblTempUsageDetail_20' ) end [2025-02-23 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541726', 'tblTempVendorCDR_20' ) start [2025-02-23 18:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541726', 'tblTempVendorCDR_20' ) end [2025-02-23 18:56:18] Production.INFO: ProcessCDR(1,14541726,1,1,2) [2025-02-23 18:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541726', 'tblTempUsageDetail_20' ) start [2025-02-23 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541726', 'tblTempUsageDetail_20' ) end [2025-02-23 18:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:56:21] Production.INFO: ==17427== Releasing lock... [2025-02-23 18:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:56:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:57:05 [end_date_ymd] => 2025-02-23 18:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:57:05' and `end` < '2025-02-23 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-02-23 18:57:17] Production.INFO: count ==2221 [2025-02-23 18:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:57:05 - End Time 2025-02-23 18:57:05 [2025-02-23 18:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541731', 'tblTempUsageDetail_20' ) start [2025-02-23 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541731', 'tblTempUsageDetail_20' ) end [2025-02-23 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541731', 'tblTempVendorCDR_20' ) start [2025-02-23 18:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541731', 'tblTempVendorCDR_20' ) end [2025-02-23 18:57:18] Production.INFO: ProcessCDR(1,14541731,1,1,2) [2025-02-23 18:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541731', 'tblTempUsageDetail_20' ) start [2025-02-23 18:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541731', 'tblTempUsageDetail_20' ) end [2025-02-23 18:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:57:21] Production.INFO: ==17503== Releasing lock... [2025-02-23 18:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:57:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:58:05 [end_date_ymd] => 2025-02-23 18:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:58:05' and `end` < '2025-02-23 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-02-23 18:58:17] Production.INFO: count ==2211 [2025-02-23 18:58:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:58:05 - End Time 2025-02-23 18:58:05 [2025-02-23 18:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541736', 'tblTempUsageDetail_20' ) start [2025-02-23 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541736', 'tblTempUsageDetail_20' ) end [2025-02-23 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541736', 'tblTempVendorCDR_20' ) start [2025-02-23 18:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541736', 'tblTempVendorCDR_20' ) end [2025-02-23 18:58:18] Production.INFO: ProcessCDR(1,14541736,1,1,2) [2025-02-23 18:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541736', 'tblTempUsageDetail_20' ) start [2025-02-23 18:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541736', 'tblTempUsageDetail_20' ) end [2025-02-23 18:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:58:21] Production.INFO: ==17573== Releasing lock... [2025-02-23 18:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:58:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 15:59:05 [end_date_ymd] => 2025-02-23 18:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 15:59:05' and `end` < '2025-02-23 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-02-23 18:59:17] Production.INFO: count ==2204 [2025-02-23 18:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 15:59:05 - End Time 2025-02-23 18:59:05 [2025-02-23 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541741', 'tblTempUsageDetail_20' ) start [2025-02-23 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541741', 'tblTempUsageDetail_20' ) end [2025-02-23 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541741', 'tblTempVendorCDR_20' ) start [2025-02-23 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541741', 'tblTempVendorCDR_20' ) end [2025-02-23 18:59:18] Production.INFO: ProcessCDR(1,14541741,1,1,2) [2025-02-23 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541741', 'tblTempUsageDetail_20' ) start [2025-02-23 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541741', 'tblTempUsageDetail_20' ) end [2025-02-23 18:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 18:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 18:59:21] Production.INFO: ==17648== Releasing lock... [2025-02-23 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 18:59:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:00:06 [end_date_ymd] => 2025-02-23 19:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:00:06' and `end` < '2025-02-23 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-02-23 19:00:18] Production.INFO: count ==2204 [2025-02-23 19:00:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:00:06 - End Time 2025-02-23 19:00:06 [2025-02-23 19:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541747', 'tblTempUsageDetail_20' ) start [2025-02-23 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541747', 'tblTempUsageDetail_20' ) end [2025-02-23 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541747', 'tblTempVendorCDR_20' ) start [2025-02-23 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541747', 'tblTempVendorCDR_20' ) end [2025-02-23 19:00:18] Production.INFO: ProcessCDR(1,14541747,1,1,2) [2025-02-23 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541747', 'tblTempUsageDetail_20' ) start [2025-02-23 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541747', 'tblTempUsageDetail_20' ) end [2025-02-23 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:00:22] Production.INFO: ==17722== Releasing lock... [2025-02-23 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:00:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:01:05 [end_date_ymd] => 2025-02-23 19:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:01:05' and `end` < '2025-02-23 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-02-23 19:01:17] Production.INFO: count ==2227 [2025-02-23 19:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:01:05 - End Time 2025-02-23 19:01:05 [2025-02-23 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541752', 'tblTempUsageDetail_20' ) start [2025-02-23 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541752', 'tblTempUsageDetail_20' ) end [2025-02-23 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541752', 'tblTempVendorCDR_20' ) start [2025-02-23 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541752', 'tblTempVendorCDR_20' ) end [2025-02-23 19:01:18] Production.INFO: ProcessCDR(1,14541752,1,1,2) [2025-02-23 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541752', 'tblTempUsageDetail_20' ) start [2025-02-23 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541752', 'tblTempUsageDetail_20' ) end [2025-02-23 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:01:22] Production.INFO: ==17889== Releasing lock... [2025-02-23 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:01:22] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:02:05 [end_date_ymd] => 2025-02-23 19:02:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:02:05' and `end` < '2025-02-23 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-02-23 19:02:17] Production.INFO: count ==2225 [2025-02-23 19:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:02:05 - End Time 2025-02-23 19:02:05 [2025-02-23 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541757', 'tblTempUsageDetail_20' ) start [2025-02-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541757', 'tblTempUsageDetail_20' ) end [2025-02-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541757', 'tblTempVendorCDR_20' ) start [2025-02-23 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541757', 'tblTempVendorCDR_20' ) end [2025-02-23 19:02:18] Production.INFO: ProcessCDR(1,14541757,1,1,2) [2025-02-23 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541757', 'tblTempUsageDetail_20' ) start [2025-02-23 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541757', 'tblTempUsageDetail_20' ) end [2025-02-23 19:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:02:21] Production.INFO: ==17960== Releasing lock... [2025-02-23 19:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:02:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:03:06 [end_date_ymd] => 2025-02-23 19:03:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:03:06' and `end` < '2025-02-23 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-02-23 19:03:18] Production.INFO: count ==2227 [2025-02-23 19:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:03:06 - End Time 2025-02-23 19:03:06 [2025-02-23 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541762', 'tblTempUsageDetail_20' ) start [2025-02-23 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541762', 'tblTempUsageDetail_20' ) end [2025-02-23 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541762', 'tblTempVendorCDR_20' ) start [2025-02-23 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541762', 'tblTempVendorCDR_20' ) end [2025-02-23 19:03:18] Production.INFO: ProcessCDR(1,14541762,1,1,2) [2025-02-23 19:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541762', 'tblTempUsageDetail_20' ) start [2025-02-23 19:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541762', 'tblTempUsageDetail_20' ) end [2025-02-23 19:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:03:21] Production.INFO: ==18030== Releasing lock... [2025-02-23 19:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:03:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-23 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:04:05 [end_date_ymd] => 2025-02-23 19:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:04:05' and `end` < '2025-02-23 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-02-23 19:04:17] Production.INFO: count ==2231 [2025-02-23 19:04:17] Production.ERROR: pbx CDR StartTime 2025-02-23 16:04:05 - End Time 2025-02-23 19:04:05 [2025-02-23 19:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541767', 'tblTempUsageDetail_20' ) start [2025-02-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541767', 'tblTempUsageDetail_20' ) end [2025-02-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541767', 'tblTempVendorCDR_20' ) start [2025-02-23 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541767', 'tblTempVendorCDR_20' ) end [2025-02-23 19:04:18] Production.INFO: ProcessCDR(1,14541767,1,1,2) [2025-02-23 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541767', 'tblTempUsageDetail_20' ) start [2025-02-23 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541767', 'tblTempUsageDetail_20' ) end [2025-02-23 19:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:04:21] Production.INFO: ==18107== Releasing lock... [2025-02-23 19:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:04:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-23 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:05:05 [end_date_ymd] => 2025-02-23 19:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:05:05' and `end` < '2025-02-23 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-02-23 19:05:17] Production.INFO: count ==2237 [2025-02-23 19:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:05:05 - End Time 2025-02-23 19:05:05 [2025-02-23 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541772', 'tblTempUsageDetail_20' ) start [2025-02-23 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541772', 'tblTempUsageDetail_20' ) end [2025-02-23 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541772', 'tblTempVendorCDR_20' ) start [2025-02-23 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541772', 'tblTempVendorCDR_20' ) end [2025-02-23 19:05:18] Production.INFO: ProcessCDR(1,14541772,1,1,2) [2025-02-23 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541772', 'tblTempUsageDetail_20' ) start [2025-02-23 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541772', 'tblTempUsageDetail_20' ) end [2025-02-23 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:05:23] Production.INFO: ==18257== Releasing lock... [2025-02-23 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:05:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:06:05 [end_date_ymd] => 2025-02-23 19:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:06:05' and `end` < '2025-02-23 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-02-23 19:06:17] Production.INFO: count ==2241 [2025-02-23 19:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:06:05 - End Time 2025-02-23 19:06:05 [2025-02-23 19:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541777', 'tblTempUsageDetail_20' ) start [2025-02-23 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541777', 'tblTempUsageDetail_20' ) end [2025-02-23 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541777', 'tblTempVendorCDR_20' ) start [2025-02-23 19:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541777', 'tblTempVendorCDR_20' ) end [2025-02-23 19:06:18] Production.INFO: ProcessCDR(1,14541777,1,1,2) [2025-02-23 19:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541777', 'tblTempUsageDetail_20' ) start [2025-02-23 19:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541777', 'tblTempUsageDetail_20' ) end [2025-02-23 19:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:06:21] Production.INFO: ==18330== Releasing lock... [2025-02-23 19:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:06:21] Production.INFO: 44.75 MB #Memory Used# [2025-02-23 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:07:05 [end_date_ymd] => 2025-02-23 19:07:05 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:07:05' and `end` < '2025-02-23 19: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-02-23 19:07:17] Production.INFO: count ==2242 [2025-02-23 19:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:07:05 - End Time 2025-02-23 19:07:05 [2025-02-23 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541782', 'tblTempUsageDetail_20' ) start [2025-02-23 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541782', 'tblTempUsageDetail_20' ) end [2025-02-23 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541782', 'tblTempVendorCDR_20' ) start [2025-02-23 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541782', 'tblTempVendorCDR_20' ) end [2025-02-23 19:07:18] Production.INFO: ProcessCDR(1,14541782,1,1,2) [2025-02-23 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541782', 'tblTempUsageDetail_20' ) start [2025-02-23 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541782', 'tblTempUsageDetail_20' ) end [2025-02-23 19:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:07:21] Production.INFO: ==18406== Releasing lock... [2025-02-23 19:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:07:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:08:05 [end_date_ymd] => 2025-02-23 19:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:08:05' and `end` < '2025-02-23 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-02-23 19:08:17] Production.INFO: count ==2247 [2025-02-23 19:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:08:05 - End Time 2025-02-23 19:08:05 [2025-02-23 19:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541787', 'tblTempUsageDetail_20' ) start [2025-02-23 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541787', 'tblTempUsageDetail_20' ) end [2025-02-23 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541787', 'tblTempVendorCDR_20' ) start [2025-02-23 19:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541787', 'tblTempVendorCDR_20' ) end [2025-02-23 19:08:18] Production.INFO: ProcessCDR(1,14541787,1,1,2) [2025-02-23 19:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541787', 'tblTempUsageDetail_20' ) start [2025-02-23 19:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541787', 'tblTempUsageDetail_20' ) end [2025-02-23 19:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:08:21] Production.INFO: ==18595== Releasing lock... [2025-02-23 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:08:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:09:05 [end_date_ymd] => 2025-02-23 19:09:05 [RateCDR] => 1 ) [2025-02-23 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:09:05' and `end` < '2025-02-23 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:09:17] Production.INFO: count ==2258 [2025-02-23 19:09:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:09:05 - End Time 2025-02-23 19:09:05 [2025-02-23 19:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541792', 'tblTempUsageDetail_20' ) start [2025-02-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541792', 'tblTempUsageDetail_20' ) end [2025-02-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541792', 'tblTempVendorCDR_20' ) start [2025-02-23 19:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541792', 'tblTempVendorCDR_20' ) end [2025-02-23 19:09:18] Production.INFO: ProcessCDR(1,14541792,1,1,2) [2025-02-23 19:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541792', 'tblTempUsageDetail_20' ) start [2025-02-23 19:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541792', 'tblTempUsageDetail_20' ) end [2025-02-23 19:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:09:21] Production.INFO: ==18668== Releasing lock... [2025-02-23 19:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:09:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:10:06 [end_date_ymd] => 2025-02-23 19:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:10:06' and `end` < '2025-02-23 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-02-23 19:10:18] Production.INFO: count ==2265 [2025-02-23 19:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:10:06 - End Time 2025-02-23 19:10:06 [2025-02-23 19:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541797', 'tblTempUsageDetail_20' ) start [2025-02-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541797', 'tblTempUsageDetail_20' ) end [2025-02-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541797', 'tblTempVendorCDR_20' ) start [2025-02-23 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541797', 'tblTempVendorCDR_20' ) end [2025-02-23 19:10:19] Production.INFO: ProcessCDR(1,14541797,1,1,2) [2025-02-23 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541797', 'tblTempUsageDetail_20' ) start [2025-02-23 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541797', 'tblTempUsageDetail_20' ) end [2025-02-23 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:10:22] Production.INFO: ==18743== Releasing lock... [2025-02-23 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:10:22] Production.INFO: 45 MB #Memory Used# [2025-02-23 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:11:05 [end_date_ymd] => 2025-02-23 19:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:11:05' and `end` < '2025-02-23 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-02-23 19:11:17] Production.INFO: count ==2305 [2025-02-23 19:11:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:11:05 - End Time 2025-02-23 19:11:05 [2025-02-23 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541803', 'tblTempUsageDetail_20' ) start [2025-02-23 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541803', 'tblTempUsageDetail_20' ) end [2025-02-23 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541803', 'tblTempVendorCDR_20' ) start [2025-02-23 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541803', 'tblTempVendorCDR_20' ) end [2025-02-23 19:11:18] Production.INFO: ProcessCDR(1,14541803,1,1,2) [2025-02-23 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541803', 'tblTempUsageDetail_20' ) start [2025-02-23 19:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541803', 'tblTempUsageDetail_20' ) end [2025-02-23 19:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:11:21] Production.INFO: ==18819== Releasing lock... [2025-02-23 19:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:11:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-23 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:12:05 [end_date_ymd] => 2025-02-23 19:12:05 [RateCDR] => 1 ) [2025-02-23 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:12:05' and `end` < '2025-02-23 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:12:17] Production.INFO: count ==2323 [2025-02-23 19:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:12:05 - End Time 2025-02-23 19:12:05 [2025-02-23 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541808', 'tblTempUsageDetail_20' ) start [2025-02-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541808', 'tblTempUsageDetail_20' ) end [2025-02-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541808', 'tblTempVendorCDR_20' ) start [2025-02-23 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541808', 'tblTempVendorCDR_20' ) end [2025-02-23 19:12:18] Production.INFO: ProcessCDR(1,14541808,1,1,2) [2025-02-23 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541808', 'tblTempUsageDetail_20' ) start [2025-02-23 19:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541808', 'tblTempUsageDetail_20' ) end [2025-02-23 19:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:12:21] Production.INFO: ==18968== Releasing lock... [2025-02-23 19:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:12:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-23 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:13:05 [end_date_ymd] => 2025-02-23 19:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:13:05' and `end` < '2025-02-23 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-02-23 19:13:17] Production.INFO: count ==2334 [2025-02-23 19:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 16:13:05 - End Time 2025-02-23 19:13:05 [2025-02-23 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541813', 'tblTempUsageDetail_20' ) start [2025-02-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541813', 'tblTempUsageDetail_20' ) end [2025-02-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541813', 'tblTempVendorCDR_20' ) start [2025-02-23 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541813', 'tblTempVendorCDR_20' ) end [2025-02-23 19:13:18] Production.INFO: ProcessCDR(1,14541813,1,1,2) [2025-02-23 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541813', 'tblTempUsageDetail_20' ) start [2025-02-23 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541813', 'tblTempUsageDetail_20' ) end [2025-02-23 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:13:21] Production.INFO: ==19039== Releasing lock... [2025-02-23 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:13:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-23 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:14:05 [end_date_ymd] => 2025-02-23 19:14:05 [RateCDR] => 1 ) [2025-02-23 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:14:05' and `end` < '2025-02-23 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:14:18] Production.INFO: count ==2334 [2025-02-23 19:14:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:14:05 - End Time 2025-02-23 19:14:05 [2025-02-23 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541818', 'tblTempUsageDetail_20' ) start [2025-02-23 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541818', 'tblTempUsageDetail_20' ) end [2025-02-23 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541818', 'tblTempVendorCDR_20' ) start [2025-02-23 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541818', 'tblTempVendorCDR_20' ) end [2025-02-23 19:14:18] Production.INFO: ProcessCDR(1,14541818,1,1,2) [2025-02-23 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541818', 'tblTempUsageDetail_20' ) start [2025-02-23 19:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541818', 'tblTempUsageDetail_20' ) end [2025-02-23 19:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:14:22] Production.INFO: ==19117== Releasing lock... [2025-02-23 19:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:14:22] Production.INFO: 45.5 MB #Memory Used# [2025-02-23 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:15:05 [end_date_ymd] => 2025-02-23 19:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:15:05' and `end` < '2025-02-23 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-02-23 19:15:17] Production.INFO: count ==2333 [2025-02-23 19:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:15:05 - End Time 2025-02-23 19:15:05 [2025-02-23 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541823', 'tblTempUsageDetail_20' ) start [2025-02-23 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541823', 'tblTempUsageDetail_20' ) end [2025-02-23 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541823', 'tblTempVendorCDR_20' ) start [2025-02-23 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541823', 'tblTempVendorCDR_20' ) end [2025-02-23 19:15:18] Production.INFO: ProcessCDR(1,14541823,1,1,2) [2025-02-23 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541823', 'tblTempUsageDetail_20' ) start [2025-02-23 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541823', 'tblTempUsageDetail_20' ) end [2025-02-23 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:15:23] Production.INFO: ==19268== Releasing lock... [2025-02-23 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:15:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-23 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:16:05 [end_date_ymd] => 2025-02-23 19:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:16:05' and `end` < '2025-02-23 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-02-23 19:16:17] Production.INFO: count ==2456 [2025-02-23 19:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:16:05 - End Time 2025-02-23 19:16:05 [2025-02-23 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541828', 'tblTempUsageDetail_20' ) start [2025-02-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541828', 'tblTempUsageDetail_20' ) end [2025-02-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541828', 'tblTempVendorCDR_20' ) start [2025-02-23 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541828', 'tblTempVendorCDR_20' ) end [2025-02-23 19:16:18] Production.INFO: ProcessCDR(1,14541828,1,1,2) [2025-02-23 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541828', 'tblTempUsageDetail_20' ) start [2025-02-23 19:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541828', 'tblTempUsageDetail_20' ) end [2025-02-23 19:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:16:22] Production.INFO: ==19340== Releasing lock... [2025-02-23 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:16:22] Production.INFO: 46.5 MB #Memory Used# [2025-02-23 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:17:05 [end_date_ymd] => 2025-02-23 19:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:17:05' and `end` < '2025-02-23 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-02-23 19:17:17] Production.INFO: count ==2464 [2025-02-23 19:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:17:05 - End Time 2025-02-23 19:17:05 [2025-02-23 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541833', 'tblTempUsageDetail_20' ) start [2025-02-23 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541833', 'tblTempUsageDetail_20' ) end [2025-02-23 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541833', 'tblTempVendorCDR_20' ) start [2025-02-23 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541833', 'tblTempVendorCDR_20' ) end [2025-02-23 19:17:18] Production.INFO: ProcessCDR(1,14541833,1,1,2) [2025-02-23 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541833', 'tblTempUsageDetail_20' ) start [2025-02-23 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541833', 'tblTempUsageDetail_20' ) end [2025-02-23 19:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:17:21] Production.INFO: ==19410== Releasing lock... [2025-02-23 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:17:21] Production.INFO: 46.5 MB #Memory Used# [2025-02-23 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:18:05 [end_date_ymd] => 2025-02-23 19:18:05 [RateCDR] => 1 ) [2025-02-23 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:18:05' and `end` < '2025-02-23 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:18:17] Production.INFO: count ==2470 [2025-02-23 19:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:18:05 - End Time 2025-02-23 19:18:05 [2025-02-23 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541838', 'tblTempUsageDetail_20' ) start [2025-02-23 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541838', 'tblTempUsageDetail_20' ) end [2025-02-23 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541838', 'tblTempVendorCDR_20' ) start [2025-02-23 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541838', 'tblTempVendorCDR_20' ) end [2025-02-23 19:18:18] Production.INFO: ProcessCDR(1,14541838,1,1,2) [2025-02-23 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541838', 'tblTempUsageDetail_20' ) start [2025-02-23 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541838', 'tblTempUsageDetail_20' ) end [2025-02-23 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:18:23] Production.INFO: ==19483== Releasing lock... [2025-02-23 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:18:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-23 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:19:06 [end_date_ymd] => 2025-02-23 19:19:06 [RateCDR] => 1 ) [2025-02-23 19:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:19:06' and `end` < '2025-02-23 19:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:19:18] Production.INFO: count ==2476 [2025-02-23 19:19:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:19:06 - End Time 2025-02-23 19:19:06 [2025-02-23 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541843', 'tblTempUsageDetail_20' ) start [2025-02-23 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541843', 'tblTempUsageDetail_20' ) end [2025-02-23 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541843', 'tblTempVendorCDR_20' ) start [2025-02-23 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541843', 'tblTempVendorCDR_20' ) end [2025-02-23 19:19:19] Production.INFO: ProcessCDR(1,14541843,1,1,2) [2025-02-23 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541843', 'tblTempUsageDetail_20' ) start [2025-02-23 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541843', 'tblTempUsageDetail_20' ) end [2025-02-23 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:19:24] Production.INFO: ==19555== Releasing lock... [2025-02-23 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-23 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:20:06 [end_date_ymd] => 2025-02-23 19:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:20:06' and `end` < '2025-02-23 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-02-23 19:20:18] Production.INFO: count ==2582 [2025-02-23 19:20:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:20:06 - End Time 2025-02-23 19:20:06 [2025-02-23 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541848', 'tblTempUsageDetail_20' ) start [2025-02-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541848', 'tblTempUsageDetail_20' ) end [2025-02-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541848', 'tblTempVendorCDR_20' ) start [2025-02-23 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541848', 'tblTempVendorCDR_20' ) end [2025-02-23 19:20:19] Production.INFO: ProcessCDR(1,14541848,1,1,2) [2025-02-23 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541848', 'tblTempUsageDetail_20' ) start [2025-02-23 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541848', 'tblTempUsageDetail_20' ) end [2025-02-23 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:20:22] Production.INFO: ==19628== Releasing lock... [2025-02-23 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:20:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-23 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:21:06 [end_date_ymd] => 2025-02-23 19:21:06 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:21:06' and `end` < '2025-02-23 19: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-02-23 19:21:18] Production.INFO: count ==2768 [2025-02-23 19:21:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:21:06 - End Time 2025-02-23 19:21:06 [2025-02-23 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541854', 'tblTempUsageDetail_20' ) start [2025-02-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541854', 'tblTempUsageDetail_20' ) end [2025-02-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541854', 'tblTempVendorCDR_20' ) start [2025-02-23 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541854', 'tblTempVendorCDR_20' ) end [2025-02-23 19:21:19] Production.INFO: ProcessCDR(1,14541854,1,1,2) [2025-02-23 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541854', 'tblTempUsageDetail_20' ) start [2025-02-23 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541854', 'tblTempUsageDetail_20' ) end [2025-02-23 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:21:22] Production.INFO: ==19706== Releasing lock... [2025-02-23 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:21:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:22:05 [end_date_ymd] => 2025-02-23 19:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:22:05' and `end` < '2025-02-23 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-02-23 19:22:17] Production.INFO: count ==3050 [2025-02-23 19:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:22:05 - End Time 2025-02-23 19:22:05 [2025-02-23 19:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541859', 'tblTempUsageDetail_20' ) start [2025-02-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541859', 'tblTempUsageDetail_20' ) end [2025-02-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541859', 'tblTempVendorCDR_20' ) start [2025-02-23 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541859', 'tblTempVendorCDR_20' ) end [2025-02-23 19:22:19] Production.INFO: ProcessCDR(1,14541859,1,1,2) [2025-02-23 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541859', 'tblTempUsageDetail_20' ) start [2025-02-23 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541859', 'tblTempUsageDetail_20' ) end [2025-02-23 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:22:22] Production.INFO: ==19777== Releasing lock... [2025-02-23 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:22:22] Production.INFO: 51 MB #Memory Used# [2025-02-23 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:23:05 [end_date_ymd] => 2025-02-23 19:23:05 [RateCDR] => 1 ) [2025-02-23 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:23:05' and `end` < '2025-02-23 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:23:17] Production.INFO: count ==3055 [2025-02-23 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:23:05 - End Time 2025-02-23 19:23:05 [2025-02-23 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541864', 'tblTempUsageDetail_20' ) start [2025-02-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541864', 'tblTempUsageDetail_20' ) end [2025-02-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541864', 'tblTempVendorCDR_20' ) start [2025-02-23 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541864', 'tblTempVendorCDR_20' ) end [2025-02-23 19:23:19] Production.INFO: ProcessCDR(1,14541864,1,1,2) [2025-02-23 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541864', 'tblTempUsageDetail_20' ) start [2025-02-23 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541864', 'tblTempUsageDetail_20' ) end [2025-02-23 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:23:22] Production.INFO: ==19894== Releasing lock... [2025-02-23 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:23:22] Production.INFO: 50.75 MB #Memory Used# [2025-02-23 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:24:06 [end_date_ymd] => 2025-02-23 19:24:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:24:06' and `end` < '2025-02-23 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-02-23 19:24:18] Production.INFO: count ==3061 [2025-02-23 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:24:06 - End Time 2025-02-23 19:24:06 [2025-02-23 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541869', 'tblTempUsageDetail_20' ) start [2025-02-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541869', 'tblTempUsageDetail_20' ) end [2025-02-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541869', 'tblTempVendorCDR_20' ) start [2025-02-23 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541869', 'tblTempVendorCDR_20' ) end [2025-02-23 19:24:19] Production.INFO: ProcessCDR(1,14541869,1,1,2) [2025-02-23 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541869', 'tblTempUsageDetail_20' ) start [2025-02-23 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541869', 'tblTempUsageDetail_20' ) end [2025-02-23 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:24:23] Production.INFO: ==19964== Releasing lock... [2025-02-23 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:24:23] Production.INFO: 52 MB #Memory Used# [2025-02-23 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:25:05 [end_date_ymd] => 2025-02-23 19:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:25:05' and `end` < '2025-02-23 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-02-23 19:25:17] Production.INFO: count ==3068 [2025-02-23 19:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:25:05 - End Time 2025-02-23 19:25:05 [2025-02-23 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541874', 'tblTempUsageDetail_20' ) start [2025-02-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541874', 'tblTempUsageDetail_20' ) end [2025-02-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541874', 'tblTempVendorCDR_20' ) start [2025-02-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541874', 'tblTempVendorCDR_20' ) end [2025-02-23 19:25:19] Production.INFO: ProcessCDR(1,14541874,1,1,2) [2025-02-23 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541874', 'tblTempUsageDetail_20' ) start [2025-02-23 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541874', 'tblTempUsageDetail_20' ) end [2025-02-23 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:25:23] Production.INFO: ==20036== Releasing lock... [2025-02-23 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:25:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-23 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:26:05 [end_date_ymd] => 2025-02-23 19:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:26:05' and `end` < '2025-02-23 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-02-23 19:26:17] Production.INFO: count ==3076 [2025-02-23 19:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:26:05 - End Time 2025-02-23 19:26:05 [2025-02-23 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541879', 'tblTempUsageDetail_20' ) start [2025-02-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541879', 'tblTempUsageDetail_20' ) end [2025-02-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541879', 'tblTempVendorCDR_20' ) start [2025-02-23 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541879', 'tblTempVendorCDR_20' ) end [2025-02-23 19:26:19] Production.INFO: ProcessCDR(1,14541879,1,1,2) [2025-02-23 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541879', 'tblTempUsageDetail_20' ) start [2025-02-23 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541879', 'tblTempUsageDetail_20' ) end [2025-02-23 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:26:22] Production.INFO: ==20107== Releasing lock... [2025-02-23 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:26:22] Production.INFO: 51 MB #Memory Used# [2025-02-23 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:27:05 [end_date_ymd] => 2025-02-23 19:27:05 [RateCDR] => 1 ) [2025-02-23 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:27:05' and `end` < '2025-02-23 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:27:17] Production.INFO: count ==3082 [2025-02-23 19:27:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:27:05 - End Time 2025-02-23 19:27:05 [2025-02-23 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541884', 'tblTempUsageDetail_20' ) start [2025-02-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541884', 'tblTempUsageDetail_20' ) end [2025-02-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541884', 'tblTempVendorCDR_20' ) start [2025-02-23 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541884', 'tblTempVendorCDR_20' ) end [2025-02-23 19:27:18] Production.INFO: ProcessCDR(1,14541884,1,1,2) [2025-02-23 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541884', 'tblTempUsageDetail_20' ) start [2025-02-23 19:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541884', 'tblTempUsageDetail_20' ) end [2025-02-23 19:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:27:21] Production.INFO: ==20178== Releasing lock... [2025-02-23 19:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:27:21] Production.INFO: 51.25 MB #Memory Used# [2025-02-23 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:28:05 [end_date_ymd] => 2025-02-23 19:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:28:05' and `end` < '2025-02-23 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-02-23 19:28:17] Production.INFO: count ==3102 [2025-02-23 19:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:28:05 - End Time 2025-02-23 19:28:05 [2025-02-23 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541889', 'tblTempUsageDetail_20' ) start [2025-02-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541889', 'tblTempUsageDetail_20' ) end [2025-02-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541889', 'tblTempVendorCDR_20' ) start [2025-02-23 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541889', 'tblTempVendorCDR_20' ) end [2025-02-23 19:28:18] Production.INFO: ProcessCDR(1,14541889,1,1,2) [2025-02-23 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541889', 'tblTempUsageDetail_20' ) start [2025-02-23 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541889', 'tblTempUsageDetail_20' ) end [2025-02-23 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:28:22] Production.INFO: ==20248== Releasing lock... [2025-02-23 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:28:22] Production.INFO: 51.5 MB #Memory Used# [2025-02-23 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:29:05 [end_date_ymd] => 2025-02-23 19:29:05 [RateCDR] => 1 ) [2025-02-23 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:29:05' and `end` < '2025-02-23 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:29:18] Production.INFO: count ==3101 [2025-02-23 19:29:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:29:05 - End Time 2025-02-23 19:29:05 [2025-02-23 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541894', 'tblTempUsageDetail_20' ) start [2025-02-23 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541894', 'tblTempUsageDetail_20' ) end [2025-02-23 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541894', 'tblTempVendorCDR_20' ) start [2025-02-23 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541894', 'tblTempVendorCDR_20' ) end [2025-02-23 19:29:19] Production.INFO: ProcessCDR(1,14541894,1,1,2) [2025-02-23 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541894', 'tblTempUsageDetail_20' ) start [2025-02-23 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541894', 'tblTempUsageDetail_20' ) end [2025-02-23 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:29:22] Production.INFO: ==20320== Releasing lock... [2025-02-23 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:29:22] Production.INFO: 52.25 MB #Memory Used# [2025-02-23 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:30:06 [end_date_ymd] => 2025-02-23 19:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:30:06' and `end` < '2025-02-23 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-02-23 19:30:18] Production.INFO: count ==3102 [2025-02-23 19:30:20] Production.ERROR: pbx CDR StartTime 2025-02-23 16:30:06 - End Time 2025-02-23 19:30:06 [2025-02-23 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541899', 'tblTempUsageDetail_20' ) start [2025-02-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541899', 'tblTempUsageDetail_20' ) end [2025-02-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541899', 'tblTempVendorCDR_20' ) start [2025-02-23 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541899', 'tblTempVendorCDR_20' ) end [2025-02-23 19:30:20] Production.INFO: ProcessCDR(1,14541899,1,1,2) [2025-02-23 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541899', 'tblTempUsageDetail_20' ) start [2025-02-23 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541899', 'tblTempUsageDetail_20' ) end [2025-02-23 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:30:23] Production.INFO: ==20394== Releasing lock... [2025-02-23 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:30:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-23 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:31:05 [end_date_ymd] => 2025-02-23 19:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:31:05' and `end` < '2025-02-23 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-02-23 19:31:17] Production.INFO: count ==3112 [2025-02-23 19:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:31:05 - End Time 2025-02-23 19:31:05 [2025-02-23 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541905', 'tblTempUsageDetail_20' ) start [2025-02-23 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541905', 'tblTempUsageDetail_20' ) end [2025-02-23 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541905', 'tblTempVendorCDR_20' ) start [2025-02-23 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541905', 'tblTempVendorCDR_20' ) end [2025-02-23 19:31:18] Production.INFO: ProcessCDR(1,14541905,1,1,2) [2025-02-23 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541905', 'tblTempUsageDetail_20' ) start [2025-02-23 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541905', 'tblTempUsageDetail_20' ) end [2025-02-23 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:31:21] Production.INFO: ==20468== Releasing lock... [2025-02-23 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:31:21] Production.INFO: 51.25 MB #Memory Used# [2025-02-23 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:32:05 [end_date_ymd] => 2025-02-23 19:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:32:05' and `end` < '2025-02-23 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-02-23 19:32:17] Production.INFO: count ==3095 [2025-02-23 19:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:32:05 - End Time 2025-02-23 19:32:05 [2025-02-23 19:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541910', 'tblTempUsageDetail_20' ) start [2025-02-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541910', 'tblTempUsageDetail_20' ) end [2025-02-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541910', 'tblTempVendorCDR_20' ) start [2025-02-23 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541910', 'tblTempVendorCDR_20' ) end [2025-02-23 19:32:19] Production.INFO: ProcessCDR(1,14541910,1,1,2) [2025-02-23 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541910', 'tblTempUsageDetail_20' ) start [2025-02-23 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541910', 'tblTempUsageDetail_20' ) end [2025-02-23 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:32:22] Production.INFO: ==20537== Releasing lock... [2025-02-23 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:32:22] Production.INFO: 51.25 MB #Memory Used# [2025-02-23 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:33:05 [end_date_ymd] => 2025-02-23 19:33:05 [RateCDR] => 1 ) [2025-02-23 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:33:05' and `end` < '2025-02-23 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:33:17] Production.INFO: count ==3066 [2025-02-23 19:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:33:05 - End Time 2025-02-23 19:33:05 [2025-02-23 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541915', 'tblTempUsageDetail_20' ) start [2025-02-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541915', 'tblTempUsageDetail_20' ) end [2025-02-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541915', 'tblTempVendorCDR_20' ) start [2025-02-23 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541915', 'tblTempVendorCDR_20' ) end [2025-02-23 19:33:18] Production.INFO: ProcessCDR(1,14541915,1,1,2) [2025-02-23 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541915', 'tblTempUsageDetail_20' ) start [2025-02-23 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541915', 'tblTempUsageDetail_20' ) end [2025-02-23 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:33:21] Production.INFO: ==20607== Releasing lock... [2025-02-23 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:33:21] Production.INFO: 51 MB #Memory Used# [2025-02-23 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:34:05 [end_date_ymd] => 2025-02-23 19:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:34:05' and `end` < '2025-02-23 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-02-23 19:34:17] Production.INFO: count ==3062 [2025-02-23 19:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:34:05 - End Time 2025-02-23 19:34:05 [2025-02-23 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541920', 'tblTempUsageDetail_20' ) start [2025-02-23 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541920', 'tblTempUsageDetail_20' ) end [2025-02-23 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541920', 'tblTempVendorCDR_20' ) start [2025-02-23 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541920', 'tblTempVendorCDR_20' ) end [2025-02-23 19:34:18] Production.INFO: ProcessCDR(1,14541920,1,1,2) [2025-02-23 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541920', 'tblTempUsageDetail_20' ) start [2025-02-23 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541920', 'tblTempUsageDetail_20' ) end [2025-02-23 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:34:22] Production.INFO: ==20680== Releasing lock... [2025-02-23 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:34:22] Production.INFO: 51 MB #Memory Used# [2025-02-23 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:35:04 [end_date_ymd] => 2025-02-23 19:35:04 [RateCDR] => 1 ) [2025-02-23 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:35:04' and `end` < '2025-02-23 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:35:17] Production.INFO: count ==3042 [2025-02-23 19:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:35:04 - End Time 2025-02-23 19:35:04 [2025-02-23 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541925', 'tblTempUsageDetail_20' ) start [2025-02-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541925', 'tblTempUsageDetail_20' ) end [2025-02-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541925', 'tblTempVendorCDR_20' ) start [2025-02-23 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541925', 'tblTempVendorCDR_20' ) end [2025-02-23 19:35:18] Production.INFO: ProcessCDR(1,14541925,1,1,2) [2025-02-23 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541925', 'tblTempUsageDetail_20' ) start [2025-02-23 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541925', 'tblTempUsageDetail_20' ) end [2025-02-23 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:35:21] Production.INFO: ==20755== Releasing lock... [2025-02-23 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:35:21] Production.INFO: 50.75 MB #Memory Used# [2025-02-23 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:36:06 [end_date_ymd] => 2025-02-23 19:36:06 [RateCDR] => 1 ) [2025-02-23 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:36:06' and `end` < '2025-02-23 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:36:18] Production.INFO: count ==3012 [2025-02-23 19:36:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:36:06 - End Time 2025-02-23 19:36:06 [2025-02-23 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541930', 'tblTempUsageDetail_20' ) start [2025-02-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541930', 'tblTempUsageDetail_20' ) end [2025-02-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541930', 'tblTempVendorCDR_20' ) start [2025-02-23 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541930', 'tblTempVendorCDR_20' ) end [2025-02-23 19:36:19] Production.INFO: ProcessCDR(1,14541930,1,1,2) [2025-02-23 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541930', 'tblTempUsageDetail_20' ) start [2025-02-23 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541930', 'tblTempUsageDetail_20' ) end [2025-02-23 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:36:22] Production.INFO: ==20828== Releasing lock... [2025-02-23 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:36:22] Production.INFO: 50.25 MB #Memory Used# [2025-02-23 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:37:04 [end_date_ymd] => 2025-02-23 19:37:04 [RateCDR] => 1 ) [2025-02-23 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:37:04' and `end` < '2025-02-23 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:37:17] Production.INFO: count ==2987 [2025-02-23 19:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:37:04 - End Time 2025-02-23 19:37:04 [2025-02-23 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541935', 'tblTempUsageDetail_20' ) start [2025-02-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541935', 'tblTempUsageDetail_20' ) end [2025-02-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541935', 'tblTempVendorCDR_20' ) start [2025-02-23 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541935', 'tblTempVendorCDR_20' ) end [2025-02-23 19:37:18] Production.INFO: ProcessCDR(1,14541935,1,1,2) [2025-02-23 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541935', 'tblTempUsageDetail_20' ) start [2025-02-23 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541935', 'tblTempUsageDetail_20' ) end [2025-02-23 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:37:21] Production.INFO: ==20900== Releasing lock... [2025-02-23 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:37:21] Production.INFO: 51.25 MB #Memory Used# [2025-02-23 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:38:05 [end_date_ymd] => 2025-02-23 19:38:05 [RateCDR] => 1 ) [2025-02-23 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:38:05' and `end` < '2025-02-23 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:38:17] Production.INFO: count ==3417 [2025-02-23 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:38:05 - End Time 2025-02-23 19:38:05 [2025-02-23 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541940', 'tblTempUsageDetail_20' ) start [2025-02-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541940', 'tblTempUsageDetail_20' ) end [2025-02-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541940', 'tblTempVendorCDR_20' ) start [2025-02-23 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541940', 'tblTempVendorCDR_20' ) end [2025-02-23 19:38:19] Production.INFO: ProcessCDR(1,14541940,1,1,2) [2025-02-23 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541940', 'tblTempUsageDetail_20' ) start [2025-02-23 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541940', 'tblTempUsageDetail_20' ) end [2025-02-23 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:38:23] Production.INFO: ==20974== Releasing lock... [2025-02-23 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:38:23] Production.INFO: 54.5 MB #Memory Used# [2025-02-23 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:39:05 [end_date_ymd] => 2025-02-23 19:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:39:05' and `end` < '2025-02-23 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-02-23 19:39:18] Production.INFO: count ==3382 [2025-02-23 19:39:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:39:05 - End Time 2025-02-23 19:39:05 [2025-02-23 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541945', 'tblTempUsageDetail_20' ) start [2025-02-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541945', 'tblTempUsageDetail_20' ) end [2025-02-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541945', 'tblTempVendorCDR_20' ) start [2025-02-23 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541945', 'tblTempVendorCDR_20' ) end [2025-02-23 19:39:19] Production.INFO: ProcessCDR(1,14541945,1,1,2) [2025-02-23 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541945', 'tblTempUsageDetail_20' ) start [2025-02-23 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541945', 'tblTempUsageDetail_20' ) end [2025-02-23 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:39:24] Production.INFO: ==21082== Releasing lock... [2025-02-23 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:39:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-23 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:40:05 [end_date_ymd] => 2025-02-23 19:40:05 [RateCDR] => 1 ) [2025-02-23 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:40:05' and `end` < '2025-02-23 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:40:18] Production.INFO: count ==3381 [2025-02-23 19:40:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:40:05 - End Time 2025-02-23 19:40:05 [2025-02-23 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541951', 'tblTempUsageDetail_20' ) start [2025-02-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541951', 'tblTempUsageDetail_20' ) end [2025-02-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541951', 'tblTempVendorCDR_20' ) start [2025-02-23 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541951', 'tblTempVendorCDR_20' ) end [2025-02-23 19:40:19] Production.INFO: ProcessCDR(1,14541951,1,1,2) [2025-02-23 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541951', 'tblTempUsageDetail_20' ) start [2025-02-23 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541951', 'tblTempUsageDetail_20' ) end [2025-02-23 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:40:24] Production.INFO: ==21156== Releasing lock... [2025-02-23 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:40:24] Production.INFO: 53.25 MB #Memory Used# [2025-02-23 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:41:05 [end_date_ymd] => 2025-02-23 19:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:41:05' and `end` < '2025-02-23 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-02-23 19:41:17] Production.INFO: count ==3403 [2025-02-23 19:41:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:41:05 - End Time 2025-02-23 19:41:05 [2025-02-23 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541956', 'tblTempUsageDetail_20' ) start [2025-02-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541956', 'tblTempUsageDetail_20' ) end [2025-02-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541956', 'tblTempVendorCDR_20' ) start [2025-02-23 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541956', 'tblTempVendorCDR_20' ) end [2025-02-23 19:41:19] Production.INFO: ProcessCDR(1,14541956,1,1,2) [2025-02-23 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541956', 'tblTempUsageDetail_20' ) start [2025-02-23 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541956', 'tblTempUsageDetail_20' ) end [2025-02-23 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:41:22] Production.INFO: ==21230== Releasing lock... [2025-02-23 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:41:22] Production.INFO: 54 MB #Memory Used# [2025-02-23 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:42:04 [end_date_ymd] => 2025-02-23 19:42:04 [RateCDR] => 1 ) [2025-02-23 19:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:42:04' and `end` < '2025-02-23 19:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:42:17] Production.INFO: count ==3398 [2025-02-23 19:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:42:04 - End Time 2025-02-23 19:42:04 [2025-02-23 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541961', 'tblTempUsageDetail_20' ) start [2025-02-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541961', 'tblTempUsageDetail_20' ) end [2025-02-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541961', 'tblTempVendorCDR_20' ) start [2025-02-23 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541961', 'tblTempVendorCDR_20' ) end [2025-02-23 19:42:18] Production.INFO: ProcessCDR(1,14541961,1,1,2) [2025-02-23 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541961', 'tblTempUsageDetail_20' ) start [2025-02-23 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541961', 'tblTempUsageDetail_20' ) end [2025-02-23 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:42:21] Production.INFO: ==21299== Releasing lock... [2025-02-23 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:42:21] Production.INFO: 53.5 MB #Memory Used# [2025-02-23 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:43:05 [end_date_ymd] => 2025-02-23 19:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:43:05' and `end` < '2025-02-23 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-02-23 19:43:17] Production.INFO: count ==3396 [2025-02-23 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:43:05 - End Time 2025-02-23 19:43:05 [2025-02-23 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541966', 'tblTempUsageDetail_20' ) start [2025-02-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541966', 'tblTempUsageDetail_20' ) end [2025-02-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541966', 'tblTempVendorCDR_20' ) start [2025-02-23 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541966', 'tblTempVendorCDR_20' ) end [2025-02-23 19:43:19] Production.INFO: ProcessCDR(1,14541966,1,1,2) [2025-02-23 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541966', 'tblTempUsageDetail_20' ) start [2025-02-23 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541966', 'tblTempUsageDetail_20' ) end [2025-02-23 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:43:22] Production.INFO: ==21374== Releasing lock... [2025-02-23 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:43:22] Production.INFO: 53.5 MB #Memory Used# [2025-02-23 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:44:05 [end_date_ymd] => 2025-02-23 19:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:44:05' and `end` < '2025-02-23 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-02-23 19:44:17] Production.INFO: count ==3397 [2025-02-23 19:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:44:05 - End Time 2025-02-23 19:44:05 [2025-02-23 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541971', 'tblTempUsageDetail_20' ) start [2025-02-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541971', 'tblTempUsageDetail_20' ) end [2025-02-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541971', 'tblTempVendorCDR_20' ) start [2025-02-23 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541971', 'tblTempVendorCDR_20' ) end [2025-02-23 19:44:18] Production.INFO: ProcessCDR(1,14541971,1,1,2) [2025-02-23 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541971', 'tblTempUsageDetail_20' ) start [2025-02-23 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541971', 'tblTempUsageDetail_20' ) end [2025-02-23 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:44:22] Production.INFO: ==21442== Releasing lock... [2025-02-23 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:44:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-23 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:45:05 [end_date_ymd] => 2025-02-23 19:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:45:05' and `end` < '2025-02-23 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-02-23 19:45:17] Production.INFO: count ==3401 [2025-02-23 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:45:05 - End Time 2025-02-23 19:45:05 [2025-02-23 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541976', 'tblTempUsageDetail_20' ) start [2025-02-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541976', 'tblTempUsageDetail_20' ) end [2025-02-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541976', 'tblTempVendorCDR_20' ) start [2025-02-23 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541976', 'tblTempVendorCDR_20' ) end [2025-02-23 19:45:19] Production.INFO: ProcessCDR(1,14541976,1,1,2) [2025-02-23 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541976', 'tblTempUsageDetail_20' ) start [2025-02-23 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541976', 'tblTempUsageDetail_20' ) end [2025-02-23 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:45:22] Production.INFO: ==21514== Releasing lock... [2025-02-23 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:45:22] Production.INFO: 53.5 MB #Memory Used# [2025-02-23 19:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:46:06 [end_date_ymd] => 2025-02-23 19:46:06 [RateCDR] => 1 ) [2025-02-23 19:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:46:06' and `end` < '2025-02-23 19:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:46:18] Production.INFO: count ==3387 [2025-02-23 19:46:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:46:06 - End Time 2025-02-23 19:46:06 [2025-02-23 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541981', 'tblTempUsageDetail_20' ) start [2025-02-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541981', 'tblTempUsageDetail_20' ) end [2025-02-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541981', 'tblTempVendorCDR_20' ) start [2025-02-23 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541981', 'tblTempVendorCDR_20' ) end [2025-02-23 19:46:19] Production.INFO: ProcessCDR(1,14541981,1,1,2) [2025-02-23 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541981', 'tblTempUsageDetail_20' ) start [2025-02-23 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541981', 'tblTempUsageDetail_20' ) end [2025-02-23 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:46:22] Production.INFO: ==21584== Releasing lock... [2025-02-23 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:46:22] Production.INFO: 54 MB #Memory Used# [2025-02-23 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:47:05 [end_date_ymd] => 2025-02-23 19:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:47:05' and `end` < '2025-02-23 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-02-23 19:47:17] Production.INFO: count ==3355 [2025-02-23 19:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:47:05 - End Time 2025-02-23 19:47:05 [2025-02-23 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541986', 'tblTempUsageDetail_20' ) start [2025-02-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541986', 'tblTempUsageDetail_20' ) end [2025-02-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541986', 'tblTempVendorCDR_20' ) start [2025-02-23 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541986', 'tblTempVendorCDR_20' ) end [2025-02-23 19:47:19] Production.INFO: ProcessCDR(1,14541986,1,1,2) [2025-02-23 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541986', 'tblTempUsageDetail_20' ) start [2025-02-23 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541986', 'tblTempUsageDetail_20' ) end [2025-02-23 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:47:23] Production.INFO: ==21656== Releasing lock... [2025-02-23 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:47:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-23 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:48:06 [end_date_ymd] => 2025-02-23 19:48:06 [RateCDR] => 1 ) [2025-02-23 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:48:06' and `end` < '2025-02-23 19: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-02-23 19:48:18] Production.INFO: count ==3324 [2025-02-23 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:48:06 - End Time 2025-02-23 19:48:06 [2025-02-23 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541991', 'tblTempUsageDetail_20' ) start [2025-02-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541991', 'tblTempUsageDetail_20' ) end [2025-02-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541991', 'tblTempVendorCDR_20' ) start [2025-02-23 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541991', 'tblTempVendorCDR_20' ) end [2025-02-23 19:48:19] Production.INFO: ProcessCDR(1,14541991,1,1,2) [2025-02-23 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541991', 'tblTempUsageDetail_20' ) start [2025-02-23 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541991', 'tblTempUsageDetail_20' ) end [2025-02-23 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:48:24] Production.INFO: ==21731== Releasing lock... [2025-02-23 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:48:24] Production.INFO: 53 MB #Memory Used# [2025-02-23 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:49:05 [end_date_ymd] => 2025-02-23 19:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:49:05' and `end` < '2025-02-23 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-02-23 19:49:17] Production.INFO: count ==3289 [2025-02-23 19:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:49:05 - End Time 2025-02-23 19:49:05 [2025-02-23 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541996', 'tblTempUsageDetail_20' ) start [2025-02-23 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14541996', 'tblTempUsageDetail_20' ) end [2025-02-23 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541996', 'tblTempVendorCDR_20' ) start [2025-02-23 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14541996', 'tblTempVendorCDR_20' ) end [2025-02-23 19:49:18] Production.INFO: ProcessCDR(1,14541996,1,1,2) [2025-02-23 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14541996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14541996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14541996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14541996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541996', 'tblTempUsageDetail_20' ) start [2025-02-23 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14541996', 'tblTempUsageDetail_20' ) end [2025-02-23 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:49:21] Production.INFO: ==21802== Releasing lock... [2025-02-23 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:49:21] Production.INFO: 53 MB #Memory Used# [2025-02-23 19:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:50:07 [end_date_ymd] => 2025-02-23 19:50:07 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:50:07' and `end` < '2025-02-23 19: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-02-23 19:50:19] Production.INFO: count ==3288 [2025-02-23 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-23 16:50:07 - End Time 2025-02-23 19:50:07 [2025-02-23 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542002', 'tblTempUsageDetail_20' ) start [2025-02-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542002', 'tblTempUsageDetail_20' ) end [2025-02-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542002', 'tblTempVendorCDR_20' ) start [2025-02-23 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542002', 'tblTempVendorCDR_20' ) end [2025-02-23 19:50:20] Production.INFO: ProcessCDR(1,14542002,1,1,2) [2025-02-23 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542002', 'tblTempUsageDetail_20' ) start [2025-02-23 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542002', 'tblTempUsageDetail_20' ) end [2025-02-23 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:50:24] Production.INFO: ==21878== Releasing lock... [2025-02-23 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:50:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-23 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:51:05 [end_date_ymd] => 2025-02-23 19:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:51:05' and `end` < '2025-02-23 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-02-23 19:51:17] Production.INFO: count ==3259 [2025-02-23 19:51:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:51:05 - End Time 2025-02-23 19:51:05 [2025-02-23 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542007', 'tblTempUsageDetail_20' ) start [2025-02-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542007', 'tblTempUsageDetail_20' ) end [2025-02-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542007', 'tblTempVendorCDR_20' ) start [2025-02-23 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542007', 'tblTempVendorCDR_20' ) end [2025-02-23 19:51:19] Production.INFO: ProcessCDR(1,14542007,1,1,2) [2025-02-23 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542007', 'tblTempUsageDetail_20' ) start [2025-02-23 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542007', 'tblTempUsageDetail_20' ) end [2025-02-23 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:51:22] Production.INFO: ==21952== Releasing lock... [2025-02-23 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:51:22] Production.INFO: 52.25 MB #Memory Used# [2025-02-23 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:52:06 [end_date_ymd] => 2025-02-23 19:52:06 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:52:06' and `end` < '2025-02-23 19: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-02-23 19:52:18] Production.INFO: count ==3261 [2025-02-23 19:52:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:52:06 - End Time 2025-02-23 19:52:06 [2025-02-23 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542012', 'tblTempUsageDetail_20' ) start [2025-02-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542012', 'tblTempUsageDetail_20' ) end [2025-02-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542012', 'tblTempVendorCDR_20' ) start [2025-02-23 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542012', 'tblTempVendorCDR_20' ) end [2025-02-23 19:52:19] Production.INFO: ProcessCDR(1,14542012,1,1,2) [2025-02-23 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542012', 'tblTempUsageDetail_20' ) start [2025-02-23 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542012', 'tblTempUsageDetail_20' ) end [2025-02-23 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:52:22] Production.INFO: ==22022== Releasing lock... [2025-02-23 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:52:22] Production.INFO: 52.75 MB #Memory Used# [2025-02-23 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:53:05 [end_date_ymd] => 2025-02-23 19:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:53:05' and `end` < '2025-02-23 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-02-23 19:53:17] Production.INFO: count ==3259 [2025-02-23 19:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:53:05 - End Time 2025-02-23 19:53:05 [2025-02-23 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542017', 'tblTempUsageDetail_20' ) start [2025-02-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542017', 'tblTempUsageDetail_20' ) end [2025-02-23 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542017', 'tblTempVendorCDR_20' ) start [2025-02-23 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542017', 'tblTempVendorCDR_20' ) end [2025-02-23 19:53:19] Production.INFO: ProcessCDR(1,14542017,1,1,2) [2025-02-23 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542017', 'tblTempUsageDetail_20' ) start [2025-02-23 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542017', 'tblTempUsageDetail_20' ) end [2025-02-23 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:53:22] Production.INFO: ==22092== Releasing lock... [2025-02-23 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:53:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-23 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:54:06 [end_date_ymd] => 2025-02-23 19:54:06 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:54:06' and `end` < '2025-02-23 19: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-02-23 19:54:17] Production.INFO: count ==3248 [2025-02-23 19:54:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:54:06 - End Time 2025-02-23 19:54:06 [2025-02-23 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542022', 'tblTempUsageDetail_20' ) start [2025-02-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542022', 'tblTempUsageDetail_20' ) end [2025-02-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542022', 'tblTempVendorCDR_20' ) start [2025-02-23 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542022', 'tblTempVendorCDR_20' ) end [2025-02-23 19:54:19] Production.INFO: ProcessCDR(1,14542022,1,1,2) [2025-02-23 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542022', 'tblTempUsageDetail_20' ) start [2025-02-23 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542022', 'tblTempUsageDetail_20' ) end [2025-02-23 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:54:22] Production.INFO: ==22202== Releasing lock... [2025-02-23 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:54:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-23 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:55:06 [end_date_ymd] => 2025-02-23 19:55:06 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:55:06' and `end` < '2025-02-23 19: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-02-23 19:55:18] Production.INFO: count ==3240 [2025-02-23 19:55:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:55:06 - End Time 2025-02-23 19:55:06 [2025-02-23 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542027', 'tblTempUsageDetail_20' ) start [2025-02-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542027', 'tblTempUsageDetail_20' ) end [2025-02-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542027', 'tblTempVendorCDR_20' ) start [2025-02-23 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542027', 'tblTempVendorCDR_20' ) end [2025-02-23 19:55:19] Production.INFO: ProcessCDR(1,14542027,1,1,2) [2025-02-23 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542027', 'tblTempUsageDetail_20' ) start [2025-02-23 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542027', 'tblTempUsageDetail_20' ) end [2025-02-23 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:55:22] Production.INFO: ==22274== Releasing lock... [2025-02-23 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:55:22] Production.INFO: 52 MB #Memory Used# [2025-02-23 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:56:06 [end_date_ymd] => 2025-02-23 19:56:06 [RateCDR] => 1 ) [2025-02-23 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 16:56:06' and `end` < '2025-02-23 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 19:56:18] Production.INFO: count ==3558 [2025-02-23 19:56:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:56:06 - End Time 2025-02-23 19:56:06 [2025-02-23 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542032', 'tblTempUsageDetail_20' ) start [2025-02-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542032', 'tblTempUsageDetail_20' ) end [2025-02-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542032', 'tblTempVendorCDR_20' ) start [2025-02-23 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542032', 'tblTempVendorCDR_20' ) end [2025-02-23 19:56:19] Production.INFO: ProcessCDR(1,14542032,1,1,2) [2025-02-23 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542032', 'tblTempUsageDetail_20' ) start [2025-02-23 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542032', 'tblTempUsageDetail_20' ) end [2025-02-23 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:56:23] Production.INFO: ==22346== Releasing lock... [2025-02-23 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:56:23] Production.INFO: 55 MB #Memory Used# [2025-02-23 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:57:05 [end_date_ymd] => 2025-02-23 19:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:57:05' and `end` < '2025-02-23 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-02-23 19:57:17] Production.INFO: count ==3575 [2025-02-23 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:57:05 - End Time 2025-02-23 19:57:05 [2025-02-23 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542037', 'tblTempUsageDetail_20' ) start [2025-02-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542037', 'tblTempUsageDetail_20' ) end [2025-02-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542037', 'tblTempVendorCDR_20' ) start [2025-02-23 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542037', 'tblTempVendorCDR_20' ) end [2025-02-23 19:57:19] Production.INFO: ProcessCDR(1,14542037,1,1,2) [2025-02-23 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542037', 'tblTempUsageDetail_20' ) start [2025-02-23 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542037', 'tblTempUsageDetail_20' ) end [2025-02-23 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:57:22] Production.INFO: ==22417== Releasing lock... [2025-02-23 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:57:22] Production.INFO: 54.5 MB #Memory Used# [2025-02-23 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:58:05 [end_date_ymd] => 2025-02-23 19:58:05 [RateCDR] => 1 ) [2025-02-23 19: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-02-23 16:58:05' and `end` < '2025-02-23 19: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-02-23 19:58:18] Production.INFO: count ==3540 [2025-02-23 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-23 16:58:05 - End Time 2025-02-23 19:58:05 [2025-02-23 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542042', 'tblTempUsageDetail_20' ) start [2025-02-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542042', 'tblTempUsageDetail_20' ) end [2025-02-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542042', 'tblTempVendorCDR_20' ) start [2025-02-23 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542042', 'tblTempVendorCDR_20' ) end [2025-02-23 19:58:19] Production.INFO: ProcessCDR(1,14542042,1,1,2) [2025-02-23 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542042', 'tblTempUsageDetail_20' ) start [2025-02-23 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542042', 'tblTempUsageDetail_20' ) end [2025-02-23 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:58:22] Production.INFO: ==22488== Releasing lock... [2025-02-23 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:58:22] Production.INFO: 54.25 MB #Memory Used# [2025-02-23 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 16:59:05 [end_date_ymd] => 2025-02-23 19:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 16:59:05' and `end` < '2025-02-23 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-02-23 19:59:17] Production.INFO: count ==3504 [2025-02-23 19:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 16:59:05 - End Time 2025-02-23 19:59:05 [2025-02-23 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542047', 'tblTempUsageDetail_20' ) start [2025-02-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542047', 'tblTempUsageDetail_20' ) end [2025-02-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542047', 'tblTempVendorCDR_20' ) start [2025-02-23 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542047', 'tblTempVendorCDR_20' ) end [2025-02-23 19:59:18] Production.INFO: ProcessCDR(1,14542047,1,1,2) [2025-02-23 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542047', 'tblTempUsageDetail_20' ) start [2025-02-23 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542047', 'tblTempUsageDetail_20' ) end [2025-02-23 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 19:59:23] Production.INFO: ==22556== Releasing lock... [2025-02-23 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 19:59:23] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:00:06 [end_date_ymd] => 2025-02-23 20:00:06 [RateCDR] => 1 ) [2025-02-23 20: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-02-23 17:00:06' and `end` < '2025-02-23 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-02-23 20:00:19] Production.INFO: count ==3499 [2025-02-23 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-23 17:00:06 - End Time 2025-02-23 20:00:06 [2025-02-23 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542053', 'tblTempUsageDetail_20' ) start [2025-02-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542053', 'tblTempUsageDetail_20' ) end [2025-02-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542053', 'tblTempVendorCDR_20' ) start [2025-02-23 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542053', 'tblTempVendorCDR_20' ) end [2025-02-23 20:00:20] Production.INFO: ProcessCDR(1,14542053,1,1,2) [2025-02-23 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542053', 'tblTempUsageDetail_20' ) start [2025-02-23 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542053', 'tblTempUsageDetail_20' ) end [2025-02-23 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:00:24] Production.INFO: ==22634== Releasing lock... [2025-02-23 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:00:24] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:01:05 [end_date_ymd] => 2025-02-23 20:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:01:05' and `end` < '2025-02-23 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-02-23 20:01:17] Production.INFO: count ==3492 [2025-02-23 20:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:01:05 - End Time 2025-02-23 20:01:05 [2025-02-23 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542058', 'tblTempUsageDetail_20' ) start [2025-02-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542058', 'tblTempUsageDetail_20' ) end [2025-02-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542058', 'tblTempVendorCDR_20' ) start [2025-02-23 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542058', 'tblTempVendorCDR_20' ) end [2025-02-23 20:01:18] Production.INFO: ProcessCDR(1,14542058,1,1,2) [2025-02-23 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542058', 'tblTempUsageDetail_20' ) start [2025-02-23 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542058', 'tblTempUsageDetail_20' ) end [2025-02-23 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:01:21] Production.INFO: ==22770== Releasing lock... [2025-02-23 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:01:21] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:02:06 [end_date_ymd] => 2025-02-23 20:02:06 [RateCDR] => 1 ) [2025-02-23 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:02:06' and `end` < '2025-02-23 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:02:18] Production.INFO: count ==3494 [2025-02-23 20:02:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:02:06 - End Time 2025-02-23 20:02:06 [2025-02-23 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542063', 'tblTempUsageDetail_20' ) start [2025-02-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542063', 'tblTempUsageDetail_20' ) end [2025-02-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542063', 'tblTempVendorCDR_20' ) start [2025-02-23 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542063', 'tblTempVendorCDR_20' ) end [2025-02-23 20:02:19] Production.INFO: ProcessCDR(1,14542063,1,1,2) [2025-02-23 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542063', 'tblTempUsageDetail_20' ) start [2025-02-23 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542063', 'tblTempUsageDetail_20' ) end [2025-02-23 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:02:23] Production.INFO: ==22855== Releasing lock... [2025-02-23 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:02:23] Production.INFO: 54.25 MB #Memory Used# [2025-02-23 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:03:05 [end_date_ymd] => 2025-02-23 20:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:03:05' and `end` < '2025-02-23 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-02-23 20:03:17] Production.INFO: count ==3492 [2025-02-23 20:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:03:05 - End Time 2025-02-23 20:03:05 [2025-02-23 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542068', 'tblTempUsageDetail_20' ) start [2025-02-23 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542068', 'tblTempUsageDetail_20' ) end [2025-02-23 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542068', 'tblTempVendorCDR_20' ) start [2025-02-23 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542068', 'tblTempVendorCDR_20' ) end [2025-02-23 20:03:18] Production.INFO: ProcessCDR(1,14542068,1,1,2) [2025-02-23 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542068', 'tblTempUsageDetail_20' ) start [2025-02-23 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542068', 'tblTempUsageDetail_20' ) end [2025-02-23 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:03:21] Production.INFO: ==22934== Releasing lock... [2025-02-23 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:03:21] Production.INFO: 54.25 MB #Memory Used# [2025-02-23 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:04:05 [end_date_ymd] => 2025-02-23 20:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:04:05' and `end` < '2025-02-23 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-02-23 20:04:17] Production.INFO: count ==3490 [2025-02-23 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:04:05 - End Time 2025-02-23 20:04:05 [2025-02-23 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542073', 'tblTempUsageDetail_20' ) start [2025-02-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542073', 'tblTempUsageDetail_20' ) end [2025-02-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542073', 'tblTempVendorCDR_20' ) start [2025-02-23 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542073', 'tblTempVendorCDR_20' ) end [2025-02-23 20:04:19] Production.INFO: ProcessCDR(1,14542073,1,1,2) [2025-02-23 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542073', 'tblTempUsageDetail_20' ) start [2025-02-23 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542073', 'tblTempUsageDetail_20' ) end [2025-02-23 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:04:24] Production.INFO: ==23012== Releasing lock... [2025-02-23 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:04:24] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:05:05 [end_date_ymd] => 2025-02-23 20:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:05:05' and `end` < '2025-02-23 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-02-23 20:05:17] Production.INFO: count ==3484 [2025-02-23 20:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:05:05 - End Time 2025-02-23 20:05:05 [2025-02-23 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542078', 'tblTempUsageDetail_20' ) start [2025-02-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542078', 'tblTempUsageDetail_20' ) end [2025-02-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542078', 'tblTempVendorCDR_20' ) start [2025-02-23 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542078', 'tblTempVendorCDR_20' ) end [2025-02-23 20:05:18] Production.INFO: ProcessCDR(1,14542078,1,1,2) [2025-02-23 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542078', 'tblTempUsageDetail_20' ) start [2025-02-23 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542078', 'tblTempUsageDetail_20' ) end [2025-02-23 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:05:21] Production.INFO: ==23084== Releasing lock... [2025-02-23 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:05:21] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:06:05 [end_date_ymd] => 2025-02-23 20:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:06:05' and `end` < '2025-02-23 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-02-23 20:06:17] Production.INFO: count ==3458 [2025-02-23 20:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:06:05 - End Time 2025-02-23 20:06:05 [2025-02-23 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542083', 'tblTempUsageDetail_20' ) start [2025-02-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542083', 'tblTempUsageDetail_20' ) end [2025-02-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542083', 'tblTempVendorCDR_20' ) start [2025-02-23 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542083', 'tblTempVendorCDR_20' ) end [2025-02-23 20:06:18] Production.INFO: ProcessCDR(1,14542083,1,1,2) [2025-02-23 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542083', 'tblTempUsageDetail_20' ) start [2025-02-23 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542083', 'tblTempUsageDetail_20' ) end [2025-02-23 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:06:21] Production.INFO: ==23160== Releasing lock... [2025-02-23 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:06:21] Production.INFO: 53.75 MB #Memory Used# [2025-02-23 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:07:05 [end_date_ymd] => 2025-02-23 20:07:05 [RateCDR] => 1 ) [2025-02-23 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:07:05' and `end` < '2025-02-23 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:07:17] Production.INFO: count ==3457 [2025-02-23 20:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:07:05 - End Time 2025-02-23 20:07:05 [2025-02-23 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542088', 'tblTempUsageDetail_20' ) start [2025-02-23 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542088', 'tblTempUsageDetail_20' ) end [2025-02-23 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542088', 'tblTempVendorCDR_20' ) start [2025-02-23 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542088', 'tblTempVendorCDR_20' ) end [2025-02-23 20:07:19] Production.INFO: ProcessCDR(1,14542088,1,1,2) [2025-02-23 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542088', 'tblTempUsageDetail_20' ) start [2025-02-23 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542088', 'tblTempUsageDetail_20' ) end [2025-02-23 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:07:22] Production.INFO: ==23233== Releasing lock... [2025-02-23 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:07:22] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:08:05 [end_date_ymd] => 2025-02-23 20:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:08:05' and `end` < '2025-02-23 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-02-23 20:08:17] Production.INFO: count ==3455 [2025-02-23 20:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:08:05 - End Time 2025-02-23 20:08:05 [2025-02-23 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542093', 'tblTempUsageDetail_20' ) start [2025-02-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542093', 'tblTempUsageDetail_20' ) end [2025-02-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542093', 'tblTempVendorCDR_20' ) start [2025-02-23 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542093', 'tblTempVendorCDR_20' ) end [2025-02-23 20:08:18] Production.INFO: ProcessCDR(1,14542093,1,1,2) [2025-02-23 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542093', 'tblTempUsageDetail_20' ) start [2025-02-23 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542093', 'tblTempUsageDetail_20' ) end [2025-02-23 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:08:22] Production.INFO: ==23305== Releasing lock... [2025-02-23 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:08:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-23 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:09:05 [end_date_ymd] => 2025-02-23 20:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:09:05' and `end` < '2025-02-23 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-02-23 20:09:18] Production.INFO: count ==3459 [2025-02-23 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:09:05 - End Time 2025-02-23 20:09:05 [2025-02-23 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542098', 'tblTempUsageDetail_20' ) start [2025-02-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542098', 'tblTempUsageDetail_20' ) end [2025-02-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542098', 'tblTempVendorCDR_20' ) start [2025-02-23 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542098', 'tblTempVendorCDR_20' ) end [2025-02-23 20:09:19] Production.INFO: ProcessCDR(1,14542098,1,1,2) [2025-02-23 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542098', 'tblTempUsageDetail_20' ) start [2025-02-23 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542098', 'tblTempUsageDetail_20' ) end [2025-02-23 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:09:23] Production.INFO: ==23423== Releasing lock... [2025-02-23 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:09:23] Production.INFO: 53.75 MB #Memory Used# [2025-02-23 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:10:06 [end_date_ymd] => 2025-02-23 20:10:06 [RateCDR] => 1 ) [2025-02-23 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:10:06' and `end` < '2025-02-23 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:10:18] Production.INFO: count ==3449 [2025-02-23 20:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:10:06 - End Time 2025-02-23 20:10:06 [2025-02-23 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542104', 'tblTempUsageDetail_20' ) start [2025-02-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542104', 'tblTempUsageDetail_20' ) end [2025-02-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542104', 'tblTempVendorCDR_20' ) start [2025-02-23 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542104', 'tblTempVendorCDR_20' ) end [2025-02-23 20:10:20] Production.INFO: ProcessCDR(1,14542104,1,1,2) [2025-02-23 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542104', 'tblTempUsageDetail_20' ) start [2025-02-23 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542104', 'tblTempUsageDetail_20' ) end [2025-02-23 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:10:23] Production.INFO: ==23499== Releasing lock... [2025-02-23 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:10:23] Production.INFO: 53.75 MB #Memory Used# [2025-02-23 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:11:05 [end_date_ymd] => 2025-02-23 20:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:11:05' and `end` < '2025-02-23 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-02-23 20:11:17] Production.INFO: count ==3403 [2025-02-23 20:11:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:11:05 - End Time 2025-02-23 20:11:05 [2025-02-23 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542109', 'tblTempUsageDetail_20' ) start [2025-02-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542109', 'tblTempUsageDetail_20' ) end [2025-02-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542109', 'tblTempVendorCDR_20' ) start [2025-02-23 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542109', 'tblTempVendorCDR_20' ) end [2025-02-23 20:11:19] Production.INFO: ProcessCDR(1,14542109,1,1,2) [2025-02-23 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542109', 'tblTempUsageDetail_20' ) start [2025-02-23 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542109', 'tblTempUsageDetail_20' ) end [2025-02-23 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:11:22] Production.INFO: ==23578== Releasing lock... [2025-02-23 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:11:22] Production.INFO: 54 MB #Memory Used# [2025-02-23 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:12:05 [end_date_ymd] => 2025-02-23 20:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:12:05' and `end` < '2025-02-23 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-02-23 20:12:17] Production.INFO: count ==3400 [2025-02-23 20:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:12:05 - End Time 2025-02-23 20:12:05 [2025-02-23 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542114', 'tblTempUsageDetail_20' ) start [2025-02-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542114', 'tblTempUsageDetail_20' ) end [2025-02-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542114', 'tblTempVendorCDR_20' ) start [2025-02-23 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542114', 'tblTempVendorCDR_20' ) end [2025-02-23 20:12:18] Production.INFO: ProcessCDR(1,14542114,1,1,2) [2025-02-23 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542114', 'tblTempUsageDetail_20' ) start [2025-02-23 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542114', 'tblTempUsageDetail_20' ) end [2025-02-23 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:12:21] Production.INFO: ==23653== Releasing lock... [2025-02-23 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:12:21] Production.INFO: 53.25 MB #Memory Used# [2025-02-23 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:13:05 [end_date_ymd] => 2025-02-23 20:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:13:05' and `end` < '2025-02-23 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-02-23 20:13:17] Production.INFO: count ==3396 [2025-02-23 20:13:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:13:05 - End Time 2025-02-23 20:13:05 [2025-02-23 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542119', 'tblTempUsageDetail_20' ) start [2025-02-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542119', 'tblTempUsageDetail_20' ) end [2025-02-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542119', 'tblTempVendorCDR_20' ) start [2025-02-23 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542119', 'tblTempVendorCDR_20' ) end [2025-02-23 20:13:19] Production.INFO: ProcessCDR(1,14542119,1,1,2) [2025-02-23 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542119', 'tblTempUsageDetail_20' ) start [2025-02-23 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542119', 'tblTempUsageDetail_20' ) end [2025-02-23 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:13:22] Production.INFO: ==23731== Releasing lock... [2025-02-23 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:13:22] Production.INFO: 53.25 MB #Memory Used# [2025-02-23 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:14:05 [end_date_ymd] => 2025-02-23 20:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:14:05' and `end` < '2025-02-23 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-02-23 20:14:17] Production.INFO: count ==3369 [2025-02-23 20:14:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:14:05 - End Time 2025-02-23 20:14:05 [2025-02-23 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542124', 'tblTempUsageDetail_20' ) start [2025-02-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542124', 'tblTempUsageDetail_20' ) end [2025-02-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542124', 'tblTempVendorCDR_20' ) start [2025-02-23 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542124', 'tblTempVendorCDR_20' ) end [2025-02-23 20:14:19] Production.INFO: ProcessCDR(1,14542124,1,1,2) [2025-02-23 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542124', 'tblTempUsageDetail_20' ) start [2025-02-23 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542124', 'tblTempUsageDetail_20' ) end [2025-02-23 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:14:23] Production.INFO: ==23803== Releasing lock... [2025-02-23 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:14:23] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:15:05 [end_date_ymd] => 2025-02-23 20:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:15:05' and `end` < '2025-02-23 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-02-23 20:15:17] Production.INFO: count ==3363 [2025-02-23 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:15:05 - End Time 2025-02-23 20:15:05 [2025-02-23 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542129', 'tblTempUsageDetail_20' ) start [2025-02-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542129', 'tblTempUsageDetail_20' ) end [2025-02-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542129', 'tblTempVendorCDR_20' ) start [2025-02-23 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542129', 'tblTempVendorCDR_20' ) end [2025-02-23 20:15:19] Production.INFO: ProcessCDR(1,14542129,1,1,2) [2025-02-23 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542129', 'tblTempUsageDetail_20' ) start [2025-02-23 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542129', 'tblTempUsageDetail_20' ) end [2025-02-23 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:15:22] Production.INFO: ==23882== Releasing lock... [2025-02-23 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:15:22] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:16:05 [end_date_ymd] => 2025-02-23 20:16:05 [RateCDR] => 1 ) [2025-02-23 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:16:05' and `end` < '2025-02-23 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:16:17] Production.INFO: count ==3367 [2025-02-23 20:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:16:05 - End Time 2025-02-23 20:16:05 [2025-02-23 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542134', 'tblTempUsageDetail_20' ) start [2025-02-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542134', 'tblTempUsageDetail_20' ) end [2025-02-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542134', 'tblTempVendorCDR_20' ) start [2025-02-23 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542134', 'tblTempVendorCDR_20' ) end [2025-02-23 20:16:18] Production.INFO: ProcessCDR(1,14542134,1,1,2) [2025-02-23 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542134', 'tblTempUsageDetail_20' ) start [2025-02-23 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542134', 'tblTempUsageDetail_20' ) end [2025-02-23 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:16:23] Production.INFO: ==23954== Releasing lock... [2025-02-23 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:16:23] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:17:05 [end_date_ymd] => 2025-02-23 20:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:17:05' and `end` < '2025-02-23 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-02-23 20:17:17] Production.INFO: count ==3363 [2025-02-23 20:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:17:05 - End Time 2025-02-23 20:17:05 [2025-02-23 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542139', 'tblTempUsageDetail_20' ) start [2025-02-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542139', 'tblTempUsageDetail_20' ) end [2025-02-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542139', 'tblTempVendorCDR_20' ) start [2025-02-23 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542139', 'tblTempVendorCDR_20' ) end [2025-02-23 20:17:18] Production.INFO: ProcessCDR(1,14542139,1,1,2) [2025-02-23 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542139', 'tblTempUsageDetail_20' ) start [2025-02-23 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542139', 'tblTempUsageDetail_20' ) end [2025-02-23 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:17:23] Production.INFO: ==24036== Releasing lock... [2025-02-23 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:17:23] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:18:06 [end_date_ymd] => 2025-02-23 20:18:06 [RateCDR] => 1 ) [2025-02-23 20: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-02-23 17:18:06' and `end` < '2025-02-23 20: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-02-23 20:18:18] Production.INFO: count ==3363 [2025-02-23 20:18:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:18:06 - End Time 2025-02-23 20:18:06 [2025-02-23 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542144', 'tblTempUsageDetail_20' ) start [2025-02-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542144', 'tblTempUsageDetail_20' ) end [2025-02-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542144', 'tblTempVendorCDR_20' ) start [2025-02-23 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542144', 'tblTempVendorCDR_20' ) end [2025-02-23 20:18:19] Production.INFO: ProcessCDR(1,14542144,1,1,2) [2025-02-23 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542144', 'tblTempUsageDetail_20' ) start [2025-02-23 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542144', 'tblTempUsageDetail_20' ) end [2025-02-23 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:18:24] Production.INFO: ==24123== Releasing lock... [2025-02-23 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:18:24] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:19:05 [end_date_ymd] => 2025-02-23 20:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:19:05' and `end` < '2025-02-23 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-02-23 20:19:17] Production.INFO: count ==3369 [2025-02-23 20:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:19:05 - End Time 2025-02-23 20:19:05 [2025-02-23 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542149', 'tblTempUsageDetail_20' ) start [2025-02-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542149', 'tblTempUsageDetail_20' ) end [2025-02-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542149', 'tblTempVendorCDR_20' ) start [2025-02-23 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542149', 'tblTempVendorCDR_20' ) end [2025-02-23 20:19:19] Production.INFO: ProcessCDR(1,14542149,1,1,2) [2025-02-23 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542149', 'tblTempUsageDetail_20' ) start [2025-02-23 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542149', 'tblTempUsageDetail_20' ) end [2025-02-23 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:19:22] Production.INFO: ==24195== Releasing lock... [2025-02-23 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:19:22] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:20:06 [end_date_ymd] => 2025-02-23 20:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:20:06' and `end` < '2025-02-23 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-02-23 20:20:19] Production.INFO: count ==3368 [2025-02-23 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-23 17:20:06 - End Time 2025-02-23 20:20:06 [2025-02-23 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542155', 'tblTempUsageDetail_20' ) start [2025-02-23 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542155', 'tblTempUsageDetail_20' ) end [2025-02-23 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542155', 'tblTempVendorCDR_20' ) start [2025-02-23 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542155', 'tblTempVendorCDR_20' ) end [2025-02-23 20:20:20] Production.INFO: ProcessCDR(1,14542155,1,1,2) [2025-02-23 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542155', 'tblTempUsageDetail_20' ) start [2025-02-23 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542155', 'tblTempUsageDetail_20' ) end [2025-02-23 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:20:23] Production.INFO: ==24275== Releasing lock... [2025-02-23 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:20:23] Production.INFO: 53 MB #Memory Used# [2025-02-23 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:21:05 [end_date_ymd] => 2025-02-23 20:21:05 [RateCDR] => 1 ) [2025-02-23 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:21:05' and `end` < '2025-02-23 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:21:17] Production.INFO: count ==3336 [2025-02-23 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:21:05 - End Time 2025-02-23 20:21:05 [2025-02-23 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542160', 'tblTempUsageDetail_20' ) start [2025-02-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542160', 'tblTempUsageDetail_20' ) end [2025-02-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542160', 'tblTempVendorCDR_20' ) start [2025-02-23 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542160', 'tblTempVendorCDR_20' ) end [2025-02-23 20:21:18] Production.INFO: ProcessCDR(1,14542160,1,1,2) [2025-02-23 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542160', 'tblTempUsageDetail_20' ) start [2025-02-23 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542160', 'tblTempUsageDetail_20' ) end [2025-02-23 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:21:21] Production.INFO: ==24351== Releasing lock... [2025-02-23 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:21:21] Production.INFO: 52.75 MB #Memory Used# [2025-02-23 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:22:05 [end_date_ymd] => 2025-02-23 20:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:22:05' and `end` < '2025-02-23 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-02-23 20:22:18] Production.INFO: count ==3330 [2025-02-23 20:22:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:22:05 - End Time 2025-02-23 20:22:05 [2025-02-23 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542165', 'tblTempUsageDetail_20' ) start [2025-02-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542165', 'tblTempUsageDetail_20' ) end [2025-02-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542165', 'tblTempVendorCDR_20' ) start [2025-02-23 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542165', 'tblTempVendorCDR_20' ) end [2025-02-23 20:22:19] Production.INFO: ProcessCDR(1,14542165,1,1,2) [2025-02-23 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542165', 'tblTempUsageDetail_20' ) start [2025-02-23 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542165', 'tblTempUsageDetail_20' ) end [2025-02-23 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:22:23] Production.INFO: ==24427== Releasing lock... [2025-02-23 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:22:23] Production.INFO: 52.75 MB #Memory Used# [2025-02-23 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:23:04 [end_date_ymd] => 2025-02-23 20:23:04 [RateCDR] => 1 ) [2025-02-23 20:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:23:04' and `end` < '2025-02-23 20:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:23:17] Production.INFO: count ==3318 [2025-02-23 20:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:23:04 - End Time 2025-02-23 20:23:04 [2025-02-23 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542170', 'tblTempUsageDetail_20' ) start [2025-02-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542170', 'tblTempUsageDetail_20' ) end [2025-02-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542170', 'tblTempVendorCDR_20' ) start [2025-02-23 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542170', 'tblTempVendorCDR_20' ) end [2025-02-23 20:23:18] Production.INFO: ProcessCDR(1,14542170,1,1,2) [2025-02-23 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542170', 'tblTempUsageDetail_20' ) start [2025-02-23 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542170', 'tblTempUsageDetail_20' ) end [2025-02-23 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:23:23] Production.INFO: ==24508== Releasing lock... [2025-02-23 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:23:23] Production.INFO: 52.75 MB #Memory Used# [2025-02-23 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:24:05 [end_date_ymd] => 2025-02-23 20:24:05 [RateCDR] => 1 ) [2025-02-23 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:24:05' and `end` < '2025-02-23 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:24:18] Production.INFO: count ==3286 [2025-02-23 20:24:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:24:05 - End Time 2025-02-23 20:24:05 [2025-02-23 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542175', 'tblTempUsageDetail_20' ) start [2025-02-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542175', 'tblTempUsageDetail_20' ) end [2025-02-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542175', 'tblTempVendorCDR_20' ) start [2025-02-23 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542175', 'tblTempVendorCDR_20' ) end [2025-02-23 20:24:19] Production.INFO: ProcessCDR(1,14542175,1,1,2) [2025-02-23 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542175', 'tblTempUsageDetail_20' ) start [2025-02-23 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542175', 'tblTempUsageDetail_20' ) end [2025-02-23 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:24:23] Production.INFO: ==24585== Releasing lock... [2025-02-23 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:24:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-23 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:25:05 [end_date_ymd] => 2025-02-23 20:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:25:05' and `end` < '2025-02-23 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-02-23 20:25:17] Production.INFO: count ==3253 [2025-02-23 20:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:25:05 - End Time 2025-02-23 20:25:05 [2025-02-23 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542180', 'tblTempUsageDetail_20' ) start [2025-02-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542180', 'tblTempUsageDetail_20' ) end [2025-02-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542180', 'tblTempVendorCDR_20' ) start [2025-02-23 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542180', 'tblTempVendorCDR_20' ) end [2025-02-23 20:25:18] Production.INFO: ProcessCDR(1,14542180,1,1,2) [2025-02-23 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542180', 'tblTempUsageDetail_20' ) start [2025-02-23 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542180', 'tblTempUsageDetail_20' ) end [2025-02-23 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:25:21] Production.INFO: ==24697== Releasing lock... [2025-02-23 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:25:21] Production.INFO: 52.25 MB #Memory Used# [2025-02-23 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:26:05 [end_date_ymd] => 2025-02-23 20:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:26:05' and `end` < '2025-02-23 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-02-23 20:26:17] Production.INFO: count ==3223 [2025-02-23 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:26:05 - End Time 2025-02-23 20:26:05 [2025-02-23 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542185', 'tblTempUsageDetail_20' ) start [2025-02-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542185', 'tblTempUsageDetail_20' ) end [2025-02-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542185', 'tblTempVendorCDR_20' ) start [2025-02-23 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542185', 'tblTempVendorCDR_20' ) end [2025-02-23 20:26:19] Production.INFO: ProcessCDR(1,14542185,1,1,2) [2025-02-23 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542185', 'tblTempUsageDetail_20' ) start [2025-02-23 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542185', 'tblTempUsageDetail_20' ) end [2025-02-23 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:26:23] Production.INFO: ==24772== Releasing lock... [2025-02-23 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:26:23] Production.INFO: 52 MB #Memory Used# [2025-02-23 20:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:27:06 [end_date_ymd] => 2025-02-23 20:27:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:27:06' and `end` < '2025-02-23 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-02-23 20:27:18] Production.INFO: count ==3199 [2025-02-23 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:27:06 - End Time 2025-02-23 20:27:06 [2025-02-23 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542190', 'tblTempUsageDetail_20' ) start [2025-02-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542190', 'tblTempUsageDetail_20' ) end [2025-02-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542190', 'tblTempVendorCDR_20' ) start [2025-02-23 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542190', 'tblTempVendorCDR_20' ) end [2025-02-23 20:27:19] Production.INFO: ProcessCDR(1,14542190,1,1,2) [2025-02-23 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542190', 'tblTempUsageDetail_20' ) start [2025-02-23 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542190', 'tblTempUsageDetail_20' ) end [2025-02-23 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:27:24] Production.INFO: ==24845== Releasing lock... [2025-02-23 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:27:24] Production.INFO: 51.75 MB #Memory Used# [2025-02-23 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:28:05 [end_date_ymd] => 2025-02-23 20:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:28:05' and `end` < '2025-02-23 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-02-23 20:28:17] Production.INFO: count ==3171 [2025-02-23 20:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:28:05 - End Time 2025-02-23 20:28:05 [2025-02-23 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542195', 'tblTempUsageDetail_20' ) start [2025-02-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542195', 'tblTempUsageDetail_20' ) end [2025-02-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542195', 'tblTempVendorCDR_20' ) start [2025-02-23 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542195', 'tblTempVendorCDR_20' ) end [2025-02-23 20:28:19] Production.INFO: ProcessCDR(1,14542195,1,1,2) [2025-02-23 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542195', 'tblTempUsageDetail_20' ) start [2025-02-23 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542195', 'tblTempUsageDetail_20' ) end [2025-02-23 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:28:23] Production.INFO: ==24920== Releasing lock... [2025-02-23 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:28:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-23 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:29:05 [end_date_ymd] => 2025-02-23 20:29:05 [RateCDR] => 1 ) [2025-02-23 20: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-02-23 17:29:05' and `end` < '2025-02-23 20: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-02-23 20:29:18] Production.INFO: count ==3158 [2025-02-23 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:29:05 - End Time 2025-02-23 20:29:05 [2025-02-23 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542200', 'tblTempUsageDetail_20' ) start [2025-02-23 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542200', 'tblTempUsageDetail_20' ) end [2025-02-23 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542200', 'tblTempVendorCDR_20' ) start [2025-02-23 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542200', 'tblTempVendorCDR_20' ) end [2025-02-23 20:29:19] Production.INFO: ProcessCDR(1,14542200,1,1,2) [2025-02-23 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542200', 'tblTempUsageDetail_20' ) start [2025-02-23 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542200', 'tblTempUsageDetail_20' ) end [2025-02-23 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:29:24] Production.INFO: ==24997== Releasing lock... [2025-02-23 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:29:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-23 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:30:06 [end_date_ymd] => 2025-02-23 20:30:06 [RateCDR] => 1 ) [2025-02-23 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:30:06' and `end` < '2025-02-23 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:30:18] Production.INFO: count ==3131 [2025-02-23 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:30:06 - End Time 2025-02-23 20:30:06 [2025-02-23 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542206', 'tblTempUsageDetail_20' ) start [2025-02-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542206', 'tblTempUsageDetail_20' ) end [2025-02-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542206', 'tblTempVendorCDR_20' ) start [2025-02-23 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542206', 'tblTempVendorCDR_20' ) end [2025-02-23 20:30:19] Production.INFO: ProcessCDR(1,14542206,1,1,2) [2025-02-23 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542206', 'tblTempUsageDetail_20' ) start [2025-02-23 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542206', 'tblTempUsageDetail_20' ) end [2025-02-23 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:30:24] Production.INFO: ==25075== Releasing lock... [2025-02-23 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:30:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-23 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:31:05 [end_date_ymd] => 2025-02-23 20:31:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:31:05' and `end` < '2025-02-23 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-02-23 20:31:17] Production.INFO: count ==3047 [2025-02-23 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:31:05 - End Time 2025-02-23 20:31:05 [2025-02-23 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542211', 'tblTempUsageDetail_20' ) start [2025-02-23 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542211', 'tblTempUsageDetail_20' ) end [2025-02-23 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542211', 'tblTempVendorCDR_20' ) start [2025-02-23 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542211', 'tblTempVendorCDR_20' ) end [2025-02-23 20:31:19] Production.INFO: ProcessCDR(1,14542211,1,1,2) [2025-02-23 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542211', 'tblTempUsageDetail_20' ) start [2025-02-23 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542211', 'tblTempUsageDetail_20' ) end [2025-02-23 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:31:22] Production.INFO: ==25152== Releasing lock... [2025-02-23 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:31:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-23 20:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:32:04 [end_date_ymd] => 2025-02-23 20:32:04 [RateCDR] => 1 ) [2025-02-23 20:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:32:04' and `end` < '2025-02-23 20:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:32:16] Production.INFO: count ==3008 [2025-02-23 20:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 17:32:04 - End Time 2025-02-23 20:32:04 [2025-02-23 20:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542215', 'tblTempUsageDetail_20' ) start [2025-02-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542215', 'tblTempUsageDetail_20' ) end [2025-02-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542215', 'tblTempVendorCDR_20' ) start [2025-02-23 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542215', 'tblTempVendorCDR_20' ) end [2025-02-23 20:32:18] Production.INFO: ProcessCDR(1,14542215,1,1,2) [2025-02-23 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542215', 'tblTempUsageDetail_20' ) start [2025-02-23 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542215', 'tblTempUsageDetail_20' ) end [2025-02-23 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:32:21] Production.INFO: ==25228== Releasing lock... [2025-02-23 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:32:21] Production.INFO: 50.25 MB #Memory Used# [2025-02-23 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:33:05 [end_date_ymd] => 2025-02-23 20:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:33:05' and `end` < '2025-02-23 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-02-23 20:33:17] Production.INFO: count ==2975 [2025-02-23 20:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:33:05 - End Time 2025-02-23 20:33:05 [2025-02-23 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542221', 'tblTempUsageDetail_20' ) start [2025-02-23 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542221', 'tblTempUsageDetail_20' ) end [2025-02-23 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542221', 'tblTempVendorCDR_20' ) start [2025-02-23 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542221', 'tblTempVendorCDR_20' ) end [2025-02-23 20:33:19] Production.INFO: ProcessCDR(1,14542221,1,1,2) [2025-02-23 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542221', 'tblTempUsageDetail_20' ) start [2025-02-23 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542221', 'tblTempUsageDetail_20' ) end [2025-02-23 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:33:22] Production.INFO: ==25303== Releasing lock... [2025-02-23 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:33:22] Production.INFO: 49.75 MB #Memory Used# [2025-02-23 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:34:05 [end_date_ymd] => 2025-02-23 20:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:34:05' and `end` < '2025-02-23 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-02-23 20:34:17] Production.INFO: count ==2944 [2025-02-23 20:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:34:05 - End Time 2025-02-23 20:34:05 [2025-02-23 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542226', 'tblTempUsageDetail_20' ) start [2025-02-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542226', 'tblTempUsageDetail_20' ) end [2025-02-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542226', 'tblTempVendorCDR_20' ) start [2025-02-23 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542226', 'tblTempVendorCDR_20' ) end [2025-02-23 20:34:18] Production.INFO: ProcessCDR(1,14542226,1,1,2) [2025-02-23 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542226', 'tblTempUsageDetail_20' ) start [2025-02-23 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542226', 'tblTempUsageDetail_20' ) end [2025-02-23 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:34:21] Production.INFO: ==25378== Releasing lock... [2025-02-23 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:34:21] Production.INFO: 49.5 MB #Memory Used# [2025-02-23 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:35:05 [end_date_ymd] => 2025-02-23 20:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:35:05' and `end` < '2025-02-23 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-02-23 20:35:17] Production.INFO: count ==2919 [2025-02-23 20:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:35:05 - End Time 2025-02-23 20:35:05 [2025-02-23 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542231', 'tblTempUsageDetail_20' ) start [2025-02-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542231', 'tblTempUsageDetail_20' ) end [2025-02-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542231', 'tblTempVendorCDR_20' ) start [2025-02-23 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542231', 'tblTempVendorCDR_20' ) end [2025-02-23 20:35:18] Production.INFO: ProcessCDR(1,14542231,1,1,2) [2025-02-23 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542231', 'tblTempUsageDetail_20' ) start [2025-02-23 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542231', 'tblTempUsageDetail_20' ) end [2025-02-23 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:35:22] Production.INFO: ==25451== Releasing lock... [2025-02-23 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:35:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-23 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:36:05 [end_date_ymd] => 2025-02-23 20:36:05 [RateCDR] => 1 ) [2025-02-23 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:36:05' and `end` < '2025-02-23 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:36:17] Production.INFO: count ==2919 [2025-02-23 20:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:36:05 - End Time 2025-02-23 20:36:05 [2025-02-23 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542236', 'tblTempUsageDetail_20' ) start [2025-02-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542236', 'tblTempUsageDetail_20' ) end [2025-02-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542236', 'tblTempVendorCDR_20' ) start [2025-02-23 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542236', 'tblTempVendorCDR_20' ) end [2025-02-23 20:36:18] Production.INFO: ProcessCDR(1,14542236,1,1,2) [2025-02-23 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542236', 'tblTempUsageDetail_20' ) start [2025-02-23 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542236', 'tblTempUsageDetail_20' ) end [2025-02-23 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:36:22] Production.INFO: ==25522== Releasing lock... [2025-02-23 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:36:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-23 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:37:05 [end_date_ymd] => 2025-02-23 20:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:37:05' and `end` < '2025-02-23 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-02-23 20:37:17] Production.INFO: count ==2918 [2025-02-23 20:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:37:05 - End Time 2025-02-23 20:37:05 [2025-02-23 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542241', 'tblTempUsageDetail_20' ) start [2025-02-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542241', 'tblTempUsageDetail_20' ) end [2025-02-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542241', 'tblTempVendorCDR_20' ) start [2025-02-23 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542241', 'tblTempVendorCDR_20' ) end [2025-02-23 20:37:18] Production.INFO: ProcessCDR(1,14542241,1,1,2) [2025-02-23 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542241', 'tblTempUsageDetail_20' ) start [2025-02-23 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542241', 'tblTempUsageDetail_20' ) end [2025-02-23 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:37:22] Production.INFO: ==25595== Releasing lock... [2025-02-23 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:37:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-23 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:38:06 [end_date_ymd] => 2025-02-23 20:38:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:38:06' and `end` < '2025-02-23 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-02-23 20:38:18] Production.INFO: count ==2917 [2025-02-23 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:38:06 - End Time 2025-02-23 20:38:06 [2025-02-23 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542246', 'tblTempUsageDetail_20' ) start [2025-02-23 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542246', 'tblTempUsageDetail_20' ) end [2025-02-23 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542246', 'tblTempVendorCDR_20' ) start [2025-02-23 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542246', 'tblTempVendorCDR_20' ) end [2025-02-23 20:38:20] Production.INFO: ProcessCDR(1,14542246,1,1,2) [2025-02-23 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542246', 'tblTempUsageDetail_20' ) start [2025-02-23 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542246', 'tblTempUsageDetail_20' ) end [2025-02-23 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:38:24] Production.INFO: ==25672== Releasing lock... [2025-02-23 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:38:24] Production.INFO: 49.5 MB #Memory Used# [2025-02-23 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:39:05 [end_date_ymd] => 2025-02-23 20:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:39:05' and `end` < '2025-02-23 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-02-23 20:39:17] Production.INFO: count ==2916 [2025-02-23 20:39:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:39:05 - End Time 2025-02-23 20:39:05 [2025-02-23 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542251', 'tblTempUsageDetail_20' ) start [2025-02-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542251', 'tblTempUsageDetail_20' ) end [2025-02-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542251', 'tblTempVendorCDR_20' ) start [2025-02-23 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542251', 'tblTempVendorCDR_20' ) end [2025-02-23 20:39:19] Production.INFO: ProcessCDR(1,14542251,1,1,2) [2025-02-23 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542251', 'tblTempUsageDetail_20' ) start [2025-02-23 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542251', 'tblTempUsageDetail_20' ) end [2025-02-23 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:39:22] Production.INFO: ==25746== Releasing lock... [2025-02-23 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:39:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-23 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:40:06 [end_date_ymd] => 2025-02-23 20:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:40:06' and `end` < '2025-02-23 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-02-23 20:40:18] Production.INFO: count ==2910 [2025-02-23 20:40:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:40:06 - End Time 2025-02-23 20:40:06 [2025-02-23 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542256', 'tblTempUsageDetail_20' ) start [2025-02-23 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542256', 'tblTempUsageDetail_20' ) end [2025-02-23 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542256', 'tblTempVendorCDR_20' ) start [2025-02-23 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542256', 'tblTempVendorCDR_20' ) end [2025-02-23 20:40:20] Production.INFO: ProcessCDR(1,14542256,1,1,2) [2025-02-23 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542256', 'tblTempUsageDetail_20' ) start [2025-02-23 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542256', 'tblTempUsageDetail_20' ) end [2025-02-23 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:40:23] Production.INFO: ==25865== Releasing lock... [2025-02-23 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:40:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-23 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:41:05 [end_date_ymd] => 2025-02-23 20:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:41:05' and `end` < '2025-02-23 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-02-23 20:41:17] Production.INFO: count ==2814 [2025-02-23 20:41:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:41:05 - End Time 2025-02-23 20:41:05 [2025-02-23 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542262', 'tblTempUsageDetail_20' ) start [2025-02-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542262', 'tblTempUsageDetail_20' ) end [2025-02-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542262', 'tblTempVendorCDR_20' ) start [2025-02-23 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542262', 'tblTempVendorCDR_20' ) end [2025-02-23 20:41:19] Production.INFO: ProcessCDR(1,14542262,1,1,2) [2025-02-23 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542262', 'tblTempUsageDetail_20' ) start [2025-02-23 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542262', 'tblTempUsageDetail_20' ) end [2025-02-23 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:41:22] Production.INFO: ==25952== Releasing lock... [2025-02-23 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:41:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:42:05 [end_date_ymd] => 2025-02-23 20:42:05 [RateCDR] => 1 ) [2025-02-23 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:42:05' and `end` < '2025-02-23 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:42:17] Production.INFO: count ==2780 [2025-02-23 20:42:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:42:05 - End Time 2025-02-23 20:42:05 [2025-02-23 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542267', 'tblTempUsageDetail_20' ) start [2025-02-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542267', 'tblTempUsageDetail_20' ) end [2025-02-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542267', 'tblTempVendorCDR_20' ) start [2025-02-23 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542267', 'tblTempVendorCDR_20' ) end [2025-02-23 20:42:18] Production.INFO: ProcessCDR(1,14542267,1,1,2) [2025-02-23 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542267', 'tblTempUsageDetail_20' ) start [2025-02-23 20:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542267', 'tblTempUsageDetail_20' ) end [2025-02-23 20:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:42:23] Production.INFO: ==26028== Releasing lock... [2025-02-23 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:42:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:43:05 [end_date_ymd] => 2025-02-23 20:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:43:05' and `end` < '2025-02-23 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-02-23 20:43:17] Production.INFO: count ==2746 [2025-02-23 20:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:43:05 - End Time 2025-02-23 20:43:05 [2025-02-23 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542272', 'tblTempUsageDetail_20' ) start [2025-02-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542272', 'tblTempUsageDetail_20' ) end [2025-02-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542272', 'tblTempVendorCDR_20' ) start [2025-02-23 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542272', 'tblTempVendorCDR_20' ) end [2025-02-23 20:43:18] Production.INFO: ProcessCDR(1,14542272,1,1,2) [2025-02-23 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542272', 'tblTempUsageDetail_20' ) start [2025-02-23 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542272', 'tblTempUsageDetail_20' ) end [2025-02-23 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:43:21] Production.INFO: ==26102== Releasing lock... [2025-02-23 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:43:21] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:44:05 [end_date_ymd] => 2025-02-23 20:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:44:05' and `end` < '2025-02-23 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-02-23 20:44:18] Production.INFO: count ==2724 [2025-02-23 20:44:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:44:05 - End Time 2025-02-23 20:44:05 [2025-02-23 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542277', 'tblTempUsageDetail_20' ) start [2025-02-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542277', 'tblTempUsageDetail_20' ) end [2025-02-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542277', 'tblTempVendorCDR_20' ) start [2025-02-23 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542277', 'tblTempVendorCDR_20' ) end [2025-02-23 20:44:19] Production.INFO: ProcessCDR(1,14542277,1,1,2) [2025-02-23 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542277', 'tblTempUsageDetail_20' ) start [2025-02-23 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542277', 'tblTempUsageDetail_20' ) end [2025-02-23 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:44:22] Production.INFO: ==26184== Releasing lock... [2025-02-23 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:44:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:45:05 [end_date_ymd] => 2025-02-23 20:45:05 [RateCDR] => 1 ) [2025-02-23 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:45:05' and `end` < '2025-02-23 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:45:17] Production.INFO: count ==2724 [2025-02-23 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:45:05 - End Time 2025-02-23 20:45:05 [2025-02-23 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542282', 'tblTempUsageDetail_20' ) start [2025-02-23 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542282', 'tblTempUsageDetail_20' ) end [2025-02-23 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542282', 'tblTempVendorCDR_20' ) start [2025-02-23 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542282', 'tblTempVendorCDR_20' ) end [2025-02-23 20:45:19] Production.INFO: ProcessCDR(1,14542282,1,1,2) [2025-02-23 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542282', 'tblTempUsageDetail_20' ) start [2025-02-23 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542282', 'tblTempUsageDetail_20' ) end [2025-02-23 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:45:23] Production.INFO: ==26264== Releasing lock... [2025-02-23 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:45:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:46:05 [end_date_ymd] => 2025-02-23 20:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:46:05' and `end` < '2025-02-23 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-02-23 20:46:17] Production.INFO: count ==2724 [2025-02-23 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:46:05 - End Time 2025-02-23 20:46:05 [2025-02-23 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542287', 'tblTempUsageDetail_20' ) start [2025-02-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542287', 'tblTempUsageDetail_20' ) end [2025-02-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542287', 'tblTempVendorCDR_20' ) start [2025-02-23 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542287', 'tblTempVendorCDR_20' ) end [2025-02-23 20:46:19] Production.INFO: ProcessCDR(1,14542287,1,1,2) [2025-02-23 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542287', 'tblTempUsageDetail_20' ) start [2025-02-23 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542287', 'tblTempUsageDetail_20' ) end [2025-02-23 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:46:23] Production.INFO: ==26346== Releasing lock... [2025-02-23 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:46:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:47:05 [end_date_ymd] => 2025-02-23 20:47:05 [RateCDR] => 1 ) [2025-02-23 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 17:47:05' and `end` < '2025-02-23 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 20:47:17] Production.INFO: count ==2725 [2025-02-23 20:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:47:05 - End Time 2025-02-23 20:47:05 [2025-02-23 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542292', 'tblTempUsageDetail_20' ) start [2025-02-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542292', 'tblTempUsageDetail_20' ) end [2025-02-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542292', 'tblTempVendorCDR_20' ) start [2025-02-23 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542292', 'tblTempVendorCDR_20' ) end [2025-02-23 20:47:18] Production.INFO: ProcessCDR(1,14542292,1,1,2) [2025-02-23 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542292', 'tblTempUsageDetail_20' ) start [2025-02-23 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542292', 'tblTempUsageDetail_20' ) end [2025-02-23 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:47:23] Production.INFO: ==26425== Releasing lock... [2025-02-23 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:47:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:48:06 [end_date_ymd] => 2025-02-23 20:48:06 [RateCDR] => 1 ) [2025-02-23 20: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-02-23 17:48:06' and `end` < '2025-02-23 20: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-02-23 20:48:18] Production.INFO: count ==2724 [2025-02-23 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:48:06 - End Time 2025-02-23 20:48:06 [2025-02-23 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542297', 'tblTempUsageDetail_20' ) start [2025-02-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542297', 'tblTempUsageDetail_20' ) end [2025-02-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542297', 'tblTempVendorCDR_20' ) start [2025-02-23 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542297', 'tblTempVendorCDR_20' ) end [2025-02-23 20:48:19] Production.INFO: ProcessCDR(1,14542297,1,1,2) [2025-02-23 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542297', 'tblTempUsageDetail_20' ) start [2025-02-23 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542297', 'tblTempUsageDetail_20' ) end [2025-02-23 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:48:23] Production.INFO: ==26502== Releasing lock... [2025-02-23 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:48:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:49:04 [end_date_ymd] => 2025-02-23 20:49:04 [RateCDR] => 1 ) [2025-02-23 20: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-02-23 17:49:04' and `end` < '2025-02-23 20: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-02-23 20:49:17] Production.INFO: count ==2727 [2025-02-23 20:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:49:04 - End Time 2025-02-23 20:49:04 [2025-02-23 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542301', 'tblTempUsageDetail_20' ) start [2025-02-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542301', 'tblTempUsageDetail_20' ) end [2025-02-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542301', 'tblTempVendorCDR_20' ) start [2025-02-23 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542301', 'tblTempVendorCDR_20' ) end [2025-02-23 20:49:18] Production.INFO: ProcessCDR(1,14542301,1,1,2) [2025-02-23 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542301', 'tblTempUsageDetail_20' ) start [2025-02-23 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542301', 'tblTempUsageDetail_20' ) end [2025-02-23 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:49:21] Production.INFO: ==26583== Releasing lock... [2025-02-23 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:49:21] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:50:06 [end_date_ymd] => 2025-02-23 20:50:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:50:06' and `end` < '2025-02-23 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-02-23 20:50:18] Production.INFO: count ==2742 [2025-02-23 20:50:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:50:06 - End Time 2025-02-23 20:50:06 [2025-02-23 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542307', 'tblTempUsageDetail_20' ) start [2025-02-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542307', 'tblTempUsageDetail_20' ) end [2025-02-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542307', 'tblTempVendorCDR_20' ) start [2025-02-23 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542307', 'tblTempVendorCDR_20' ) end [2025-02-23 20:50:19] Production.INFO: ProcessCDR(1,14542307,1,1,2) [2025-02-23 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542307', 'tblTempUsageDetail_20' ) start [2025-02-23 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542307', 'tblTempUsageDetail_20' ) end [2025-02-23 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:50:22] Production.INFO: ==26669== Releasing lock... [2025-02-23 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:50:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:51:06 [end_date_ymd] => 2025-02-23 20:51:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:51:06' and `end` < '2025-02-23 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-02-23 20:51:18] Production.INFO: count ==2736 [2025-02-23 20:51:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:51:06 - End Time 2025-02-23 20:51:06 [2025-02-23 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542313', 'tblTempUsageDetail_20' ) start [2025-02-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542313', 'tblTempUsageDetail_20' ) end [2025-02-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542313', 'tblTempVendorCDR_20' ) start [2025-02-23 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542313', 'tblTempVendorCDR_20' ) end [2025-02-23 20:51:19] Production.INFO: ProcessCDR(1,14542313,1,1,2) [2025-02-23 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542313', 'tblTempUsageDetail_20' ) start [2025-02-23 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542313', 'tblTempUsageDetail_20' ) end [2025-02-23 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:51:22] Production.INFO: ==26751== Releasing lock... [2025-02-23 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:51:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:52:05 [end_date_ymd] => 2025-02-23 20:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:52:05' and `end` < '2025-02-23 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-02-23 20:52:17] Production.INFO: count ==2737 [2025-02-23 20:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:52:05 - End Time 2025-02-23 20:52:05 [2025-02-23 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542318', 'tblTempUsageDetail_20' ) start [2025-02-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542318', 'tblTempUsageDetail_20' ) end [2025-02-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542318', 'tblTempVendorCDR_20' ) start [2025-02-23 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542318', 'tblTempVendorCDR_20' ) end [2025-02-23 20:52:18] Production.INFO: ProcessCDR(1,14542318,1,1,2) [2025-02-23 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542318', 'tblTempUsageDetail_20' ) start [2025-02-23 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542318', 'tblTempUsageDetail_20' ) end [2025-02-23 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:52:23] Production.INFO: ==26829== Releasing lock... [2025-02-23 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:52:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:53:06 [end_date_ymd] => 2025-02-23 20:53:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:53:06' and `end` < '2025-02-23 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-02-23 20:53:18] Production.INFO: count ==2734 [2025-02-23 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:53:06 - End Time 2025-02-23 20:53:06 [2025-02-23 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542323', 'tblTempUsageDetail_20' ) start [2025-02-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542323', 'tblTempUsageDetail_20' ) end [2025-02-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542323', 'tblTempVendorCDR_20' ) start [2025-02-23 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542323', 'tblTempVendorCDR_20' ) end [2025-02-23 20:53:19] Production.INFO: ProcessCDR(1,14542323,1,1,2) [2025-02-23 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542323', 'tblTempUsageDetail_20' ) start [2025-02-23 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542323', 'tblTempUsageDetail_20' ) end [2025-02-23 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:53:22] Production.INFO: ==26909== Releasing lock... [2025-02-23 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:53:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:54:05 [end_date_ymd] => 2025-02-23 20:54:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:54:05' and `end` < '2025-02-23 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-02-23 20:54:17] Production.INFO: count ==2734 [2025-02-23 20:54:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:54:05 - End Time 2025-02-23 20:54:05 [2025-02-23 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542328', 'tblTempUsageDetail_20' ) start [2025-02-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542328', 'tblTempUsageDetail_20' ) end [2025-02-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542328', 'tblTempVendorCDR_20' ) start [2025-02-23 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542328', 'tblTempVendorCDR_20' ) end [2025-02-23 20:54:19] Production.INFO: ProcessCDR(1,14542328,1,1,2) [2025-02-23 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542328', 'tblTempUsageDetail_20' ) start [2025-02-23 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542328', 'tblTempUsageDetail_20' ) end [2025-02-23 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:54:22] Production.INFO: ==26994== Releasing lock... [2025-02-23 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:54:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:55:05 [end_date_ymd] => 2025-02-23 20:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:55:05' and `end` < '2025-02-23 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-02-23 20:55:17] Production.INFO: count ==2734 [2025-02-23 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:55:05 - End Time 2025-02-23 20:55:05 [2025-02-23 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542333', 'tblTempUsageDetail_20' ) start [2025-02-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542333', 'tblTempUsageDetail_20' ) end [2025-02-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542333', 'tblTempVendorCDR_20' ) start [2025-02-23 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542333', 'tblTempVendorCDR_20' ) end [2025-02-23 20:55:19] Production.INFO: ProcessCDR(1,14542333,1,1,2) [2025-02-23 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542333', 'tblTempUsageDetail_20' ) start [2025-02-23 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542333', 'tblTempUsageDetail_20' ) end [2025-02-23 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:55:22] Production.INFO: ==27077== Releasing lock... [2025-02-23 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:55:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:56:05 [end_date_ymd] => 2025-02-23 20:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:56:05' and `end` < '2025-02-23 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-02-23 20:56:17] Production.INFO: count ==2734 [2025-02-23 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:56:05 - End Time 2025-02-23 20:56:05 [2025-02-23 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542338', 'tblTempUsageDetail_20' ) start [2025-02-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542338', 'tblTempUsageDetail_20' ) end [2025-02-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542338', 'tblTempVendorCDR_20' ) start [2025-02-23 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542338', 'tblTempVendorCDR_20' ) end [2025-02-23 20:56:18] Production.INFO: ProcessCDR(1,14542338,1,1,2) [2025-02-23 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542338', 'tblTempUsageDetail_20' ) start [2025-02-23 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542338', 'tblTempUsageDetail_20' ) end [2025-02-23 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:56:23] Production.INFO: ==27192== Releasing lock... [2025-02-23 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:56:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:57:06 [end_date_ymd] => 2025-02-23 20:57:06 [RateCDR] => 1 ) [2025-02-23 20: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-02-23 17:57:06' and `end` < '2025-02-23 20: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-02-23 20:57:18] Production.INFO: count ==2734 [2025-02-23 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-23 17:57:06 - End Time 2025-02-23 20:57:06 [2025-02-23 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542343', 'tblTempUsageDetail_20' ) start [2025-02-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542343', 'tblTempUsageDetail_20' ) end [2025-02-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542343', 'tblTempVendorCDR_20' ) start [2025-02-23 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542343', 'tblTempVendorCDR_20' ) end [2025-02-23 20:57:19] Production.INFO: ProcessCDR(1,14542343,1,1,2) [2025-02-23 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542343', 'tblTempUsageDetail_20' ) start [2025-02-23 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542343', 'tblTempUsageDetail_20' ) end [2025-02-23 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:57:22] Production.INFO: ==27272== Releasing lock... [2025-02-23 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:57:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:58:05 [end_date_ymd] => 2025-02-23 20:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:58:05' and `end` < '2025-02-23 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-02-23 20:58:17] Production.INFO: count ==2742 [2025-02-23 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:58:05 - End Time 2025-02-23 20:58:05 [2025-02-23 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542348', 'tblTempUsageDetail_20' ) start [2025-02-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542348', 'tblTempUsageDetail_20' ) end [2025-02-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542348', 'tblTempVendorCDR_20' ) start [2025-02-23 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542348', 'tblTempVendorCDR_20' ) end [2025-02-23 20:58:18] Production.INFO: ProcessCDR(1,14542348,1,1,2) [2025-02-23 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542348', 'tblTempUsageDetail_20' ) start [2025-02-23 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542348', 'tblTempUsageDetail_20' ) end [2025-02-23 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:58:22] Production.INFO: ==27350== Releasing lock... [2025-02-23 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:58:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 17:59:05 [end_date_ymd] => 2025-02-23 20:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 17:59:05' and `end` < '2025-02-23 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-02-23 20:59:17] Production.INFO: count ==2741 [2025-02-23 20:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 17:59:05 - End Time 2025-02-23 20:59:05 [2025-02-23 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542353', 'tblTempUsageDetail_20' ) start [2025-02-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542353', 'tblTempUsageDetail_20' ) end [2025-02-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542353', 'tblTempVendorCDR_20' ) start [2025-02-23 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542353', 'tblTempVendorCDR_20' ) end [2025-02-23 20:59:18] Production.INFO: ProcessCDR(1,14542353,1,1,2) [2025-02-23 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542353', 'tblTempUsageDetail_20' ) start [2025-02-23 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542353', 'tblTempUsageDetail_20' ) end [2025-02-23 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 20:59:22] Production.INFO: ==27434== Releasing lock... [2025-02-23 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 20:59:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:00:06 [end_date_ymd] => 2025-02-23 21:00:06 [RateCDR] => 1 ) [2025-02-23 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:00:06' and `end` < '2025-02-23 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:00:18] Production.INFO: count ==2742 [2025-02-23 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:00:06 - End Time 2025-02-23 21:00:06 [2025-02-23 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542359', 'tblTempUsageDetail_20' ) start [2025-02-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542359', 'tblTempUsageDetail_20' ) end [2025-02-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542359', 'tblTempVendorCDR_20' ) start [2025-02-23 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542359', 'tblTempVendorCDR_20' ) end [2025-02-23 21:00:19] Production.INFO: ProcessCDR(1,14542359,1,1,2) [2025-02-23 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542359', 'tblTempUsageDetail_20' ) start [2025-02-23 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542359', 'tblTempUsageDetail_20' ) end [2025-02-23 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:00:23] Production.INFO: ==27519== Releasing lock... [2025-02-23 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:00:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-23 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:01:06 [end_date_ymd] => 2025-02-23 21:01:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:01:06' and `end` < '2025-02-23 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-02-23 21:01:18] Production.INFO: count ==2715 [2025-02-23 21:01:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:01:06 - End Time 2025-02-23 21:01:06 [2025-02-23 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542364', 'tblTempUsageDetail_20' ) start [2025-02-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542364', 'tblTempUsageDetail_20' ) end [2025-02-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542364', 'tblTempVendorCDR_20' ) start [2025-02-23 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542364', 'tblTempVendorCDR_20' ) end [2025-02-23 21:01:19] Production.INFO: ProcessCDR(1,14542364,1,1,2) [2025-02-23 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542364', 'tblTempUsageDetail_20' ) start [2025-02-23 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542364', 'tblTempUsageDetail_20' ) end [2025-02-23 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:01:22] Production.INFO: ==27613== Releasing lock... [2025-02-23 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:01:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:02:05 [end_date_ymd] => 2025-02-23 21:02:05 [RateCDR] => 1 ) [2025-02-23 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:02:05' and `end` < '2025-02-23 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:02:17] Production.INFO: count ==2716 [2025-02-23 21:02:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:02:05 - End Time 2025-02-23 21:02:05 [2025-02-23 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542369', 'tblTempUsageDetail_20' ) start [2025-02-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542369', 'tblTempUsageDetail_20' ) end [2025-02-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542369', 'tblTempVendorCDR_20' ) start [2025-02-23 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542369', 'tblTempVendorCDR_20' ) end [2025-02-23 21:02:18] Production.INFO: ProcessCDR(1,14542369,1,1,2) [2025-02-23 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542369', 'tblTempUsageDetail_20' ) start [2025-02-23 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542369', 'tblTempUsageDetail_20' ) end [2025-02-23 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:02:21] Production.INFO: ==27692== Releasing lock... [2025-02-23 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:02:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:03:05 [end_date_ymd] => 2025-02-23 21:03:05 [RateCDR] => 1 ) [2025-02-23 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:03:05' and `end` < '2025-02-23 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:03:17] Production.INFO: count ==2716 [2025-02-23 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:03:05 - End Time 2025-02-23 21:03:05 [2025-02-23 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542374', 'tblTempUsageDetail_20' ) start [2025-02-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542374', 'tblTempUsageDetail_20' ) end [2025-02-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542374', 'tblTempVendorCDR_20' ) start [2025-02-23 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542374', 'tblTempVendorCDR_20' ) end [2025-02-23 21:03:18] Production.INFO: ProcessCDR(1,14542374,1,1,2) [2025-02-23 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542374', 'tblTempUsageDetail_20' ) start [2025-02-23 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542374', 'tblTempUsageDetail_20' ) end [2025-02-23 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:03:22] Production.INFO: ==27772== Releasing lock... [2025-02-23 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:03:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:04:05 [end_date_ymd] => 2025-02-23 21:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:04:05' and `end` < '2025-02-23 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-02-23 21:04:17] Production.INFO: count ==2714 [2025-02-23 21:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:04:05 - End Time 2025-02-23 21:04:05 [2025-02-23 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542379', 'tblTempUsageDetail_20' ) start [2025-02-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542379', 'tblTempUsageDetail_20' ) end [2025-02-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542379', 'tblTempVendorCDR_20' ) start [2025-02-23 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542379', 'tblTempVendorCDR_20' ) end [2025-02-23 21:04:18] Production.INFO: ProcessCDR(1,14542379,1,1,2) [2025-02-23 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542379', 'tblTempUsageDetail_20' ) start [2025-02-23 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542379', 'tblTempUsageDetail_20' ) end [2025-02-23 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:04:23] Production.INFO: ==27851== Releasing lock... [2025-02-23 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:04:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:05:05 [end_date_ymd] => 2025-02-23 21:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:05:05' and `end` < '2025-02-23 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-02-23 21:05:17] Production.INFO: count ==2713 [2025-02-23 21:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:05:05 - End Time 2025-02-23 21:05:05 [2025-02-23 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542384', 'tblTempUsageDetail_20' ) start [2025-02-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542384', 'tblTempUsageDetail_20' ) end [2025-02-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542384', 'tblTempVendorCDR_20' ) start [2025-02-23 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542384', 'tblTempVendorCDR_20' ) end [2025-02-23 21:05:18] Production.INFO: ProcessCDR(1,14542384,1,1,2) [2025-02-23 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542384', 'tblTempUsageDetail_20' ) start [2025-02-23 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542384', 'tblTempUsageDetail_20' ) end [2025-02-23 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:05:21] Production.INFO: ==27928== Releasing lock... [2025-02-23 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:05:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:06:04 [end_date_ymd] => 2025-02-23 21:06:04 [RateCDR] => 1 ) [2025-02-23 21:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:06:04' and `end` < '2025-02-23 21:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:06:17] Production.INFO: count ==2712 [2025-02-23 21:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:06:04 - End Time 2025-02-23 21:06:04 [2025-02-23 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542389', 'tblTempUsageDetail_20' ) start [2025-02-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542389', 'tblTempUsageDetail_20' ) end [2025-02-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542389', 'tblTempVendorCDR_20' ) start [2025-02-23 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542389', 'tblTempVendorCDR_20' ) end [2025-02-23 21:06:18] Production.INFO: ProcessCDR(1,14542389,1,1,2) [2025-02-23 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542389', 'tblTempUsageDetail_20' ) start [2025-02-23 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542389', 'tblTempUsageDetail_20' ) end [2025-02-23 21:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:06:21] Production.INFO: ==28001== Releasing lock... [2025-02-23 21:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:06:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:07:05 [end_date_ymd] => 2025-02-23 21:07:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:07:05' and `end` < '2025-02-23 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-02-23 21:07:17] Production.INFO: count ==2712 [2025-02-23 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:07:05 - End Time 2025-02-23 21:07:05 [2025-02-23 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542394', 'tblTempUsageDetail_20' ) start [2025-02-23 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542394', 'tblTempUsageDetail_20' ) end [2025-02-23 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542394', 'tblTempVendorCDR_20' ) start [2025-02-23 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542394', 'tblTempVendorCDR_20' ) end [2025-02-23 21:07:19] Production.INFO: ProcessCDR(1,14542394,1,1,2) [2025-02-23 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542394', 'tblTempUsageDetail_20' ) start [2025-02-23 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542394', 'tblTempUsageDetail_20' ) end [2025-02-23 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:07:22] Production.INFO: ==28082== Releasing lock... [2025-02-23 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:07:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:08:05 [end_date_ymd] => 2025-02-23 21:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:08:05' and `end` < '2025-02-23 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-02-23 21:08:17] Production.INFO: count ==2710 [2025-02-23 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:08:05 - End Time 2025-02-23 21:08:05 [2025-02-23 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542399', 'tblTempUsageDetail_20' ) start [2025-02-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542399', 'tblTempUsageDetail_20' ) end [2025-02-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542399', 'tblTempVendorCDR_20' ) start [2025-02-23 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542399', 'tblTempVendorCDR_20' ) end [2025-02-23 21:08:18] Production.INFO: ProcessCDR(1,14542399,1,1,2) [2025-02-23 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542399', 'tblTempUsageDetail_20' ) start [2025-02-23 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542399', 'tblTempUsageDetail_20' ) end [2025-02-23 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:08:21] Production.INFO: ==28161== Releasing lock... [2025-02-23 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:08:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:09:05 [end_date_ymd] => 2025-02-23 21:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:09:05' and `end` < '2025-02-23 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-02-23 21:09:17] Production.INFO: count ==2709 [2025-02-23 21:09:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:09:05 - End Time 2025-02-23 21:09:05 [2025-02-23 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542404', 'tblTempUsageDetail_20' ) start [2025-02-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542404', 'tblTempUsageDetail_20' ) end [2025-02-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542404', 'tblTempVendorCDR_20' ) start [2025-02-23 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542404', 'tblTempVendorCDR_20' ) end [2025-02-23 21:09:18] Production.INFO: ProcessCDR(1,14542404,1,1,2) [2025-02-23 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542404', 'tblTempUsageDetail_20' ) start [2025-02-23 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542404', 'tblTempUsageDetail_20' ) end [2025-02-23 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:09:23] Production.INFO: ==28240== Releasing lock... [2025-02-23 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:09:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:10:06 [end_date_ymd] => 2025-02-23 21:10:06 [RateCDR] => 1 ) [2025-02-23 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:10:06' and `end` < '2025-02-23 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:10:18] Production.INFO: count ==2708 [2025-02-23 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-23 18:10:06 - End Time 2025-02-23 21:10:06 [2025-02-23 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542410', 'tblTempUsageDetail_20' ) start [2025-02-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542410', 'tblTempUsageDetail_20' ) end [2025-02-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542410', 'tblTempVendorCDR_20' ) start [2025-02-23 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542410', 'tblTempVendorCDR_20' ) end [2025-02-23 21:10:20] Production.INFO: ProcessCDR(1,14542410,1,1,2) [2025-02-23 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542410', 'tblTempUsageDetail_20' ) start [2025-02-23 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542410', 'tblTempUsageDetail_20' ) end [2025-02-23 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:10:23] Production.INFO: ==28328== Releasing lock... [2025-02-23 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:10:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:11:05 [end_date_ymd] => 2025-02-23 21:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:11:05' and `end` < '2025-02-23 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-02-23 21:11:17] Production.INFO: count ==2691 [2025-02-23 21:11:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:11:05 - End Time 2025-02-23 21:11:05 [2025-02-23 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542415', 'tblTempUsageDetail_20' ) start [2025-02-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542415', 'tblTempUsageDetail_20' ) end [2025-02-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542415', 'tblTempVendorCDR_20' ) start [2025-02-23 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542415', 'tblTempVendorCDR_20' ) end [2025-02-23 21:11:18] Production.INFO: ProcessCDR(1,14542415,1,1,2) [2025-02-23 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542415', 'tblTempUsageDetail_20' ) start [2025-02-23 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542415', 'tblTempUsageDetail_20' ) end [2025-02-23 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:11:22] Production.INFO: ==28453== Releasing lock... [2025-02-23 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:11:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:12:06 [end_date_ymd] => 2025-02-23 21:12:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:12:06' and `end` < '2025-02-23 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-02-23 21:12:18] Production.INFO: count ==2695 [2025-02-23 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:12:06 - End Time 2025-02-23 21:12:06 [2025-02-23 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542420', 'tblTempUsageDetail_20' ) start [2025-02-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542420', 'tblTempUsageDetail_20' ) end [2025-02-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542420', 'tblTempVendorCDR_20' ) start [2025-02-23 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542420', 'tblTempVendorCDR_20' ) end [2025-02-23 21:12:19] Production.INFO: ProcessCDR(1,14542420,1,1,2) [2025-02-23 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542420', 'tblTempUsageDetail_20' ) start [2025-02-23 21:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542420', 'tblTempUsageDetail_20' ) end [2025-02-23 21:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:12:24] Production.INFO: ==28531== Releasing lock... [2025-02-23 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:12:24] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:13:05 [end_date_ymd] => 2025-02-23 21:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:13:05' and `end` < '2025-02-23 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-02-23 21:13:18] Production.INFO: count ==2694 [2025-02-23 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:13:05 - End Time 2025-02-23 21:13:05 [2025-02-23 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542425', 'tblTempUsageDetail_20' ) start [2025-02-23 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542425', 'tblTempUsageDetail_20' ) end [2025-02-23 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542425', 'tblTempVendorCDR_20' ) start [2025-02-23 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542425', 'tblTempVendorCDR_20' ) end [2025-02-23 21:13:19] Production.INFO: ProcessCDR(1,14542425,1,1,2) [2025-02-23 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542425', 'tblTempUsageDetail_20' ) start [2025-02-23 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542425', 'tblTempUsageDetail_20' ) end [2025-02-23 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:13:22] Production.INFO: ==28611== Releasing lock... [2025-02-23 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:13:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:14:05 [end_date_ymd] => 2025-02-23 21:14:05 [RateCDR] => 1 ) [2025-02-23 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:14:05' and `end` < '2025-02-23 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:14:18] Production.INFO: count ==2697 [2025-02-23 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:14:05 - End Time 2025-02-23 21:14:05 [2025-02-23 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542430', 'tblTempUsageDetail_20' ) start [2025-02-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542430', 'tblTempUsageDetail_20' ) end [2025-02-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542430', 'tblTempVendorCDR_20' ) start [2025-02-23 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542430', 'tblTempVendorCDR_20' ) end [2025-02-23 21:14:19] Production.INFO: ProcessCDR(1,14542430,1,1,2) [2025-02-23 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542430', 'tblTempUsageDetail_20' ) start [2025-02-23 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542430', 'tblTempUsageDetail_20' ) end [2025-02-23 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:14:22] Production.INFO: ==28694== Releasing lock... [2025-02-23 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:14:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:15:05 [end_date_ymd] => 2025-02-23 21:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:15:05' and `end` < '2025-02-23 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-02-23 21:15:17] Production.INFO: count ==2692 [2025-02-23 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:15:05 - End Time 2025-02-23 21:15:05 [2025-02-23 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542435', 'tblTempUsageDetail_20' ) start [2025-02-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542435', 'tblTempUsageDetail_20' ) end [2025-02-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542435', 'tblTempVendorCDR_20' ) start [2025-02-23 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542435', 'tblTempVendorCDR_20' ) end [2025-02-23 21:15:18] Production.INFO: ProcessCDR(1,14542435,1,1,2) [2025-02-23 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542435', 'tblTempUsageDetail_20' ) start [2025-02-23 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542435', 'tblTempUsageDetail_20' ) end [2025-02-23 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:15:21] Production.INFO: ==28775== Releasing lock... [2025-02-23 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:15:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:16:06 [end_date_ymd] => 2025-02-23 21:16:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:16:06' and `end` < '2025-02-23 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-02-23 21:16:18] Production.INFO: count ==2685 [2025-02-23 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:16:06 - End Time 2025-02-23 21:16:06 [2025-02-23 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542440', 'tblTempUsageDetail_20' ) start [2025-02-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542440', 'tblTempUsageDetail_20' ) end [2025-02-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542440', 'tblTempVendorCDR_20' ) start [2025-02-23 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542440', 'tblTempVendorCDR_20' ) end [2025-02-23 21:16:19] Production.INFO: ProcessCDR(1,14542440,1,1,2) [2025-02-23 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542440', 'tblTempUsageDetail_20' ) start [2025-02-23 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542440', 'tblTempUsageDetail_20' ) end [2025-02-23 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:16:22] Production.INFO: ==28857== Releasing lock... [2025-02-23 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:16:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:17:05 [end_date_ymd] => 2025-02-23 21:17:05 [RateCDR] => 1 ) [2025-02-23 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:17:05' and `end` < '2025-02-23 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-02-23 21:17:17] Production.INFO: count ==2683 [2025-02-23 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:17:05 - End Time 2025-02-23 21:17:05 [2025-02-23 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542445', 'tblTempUsageDetail_20' ) start [2025-02-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542445', 'tblTempUsageDetail_20' ) end [2025-02-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542445', 'tblTempVendorCDR_20' ) start [2025-02-23 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542445', 'tblTempVendorCDR_20' ) end [2025-02-23 21:17:18] Production.INFO: ProcessCDR(1,14542445,1,1,2) [2025-02-23 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542445', 'tblTempUsageDetail_20' ) start [2025-02-23 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542445', 'tblTempUsageDetail_20' ) end [2025-02-23 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:17:21] Production.INFO: ==28935== Releasing lock... [2025-02-23 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:17:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:18:05 [end_date_ymd] => 2025-02-23 21:18:05 [RateCDR] => 1 ) [2025-02-23 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:18:05' and `end` < '2025-02-23 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:18:17] Production.INFO: count ==2683 [2025-02-23 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:18:05 - End Time 2025-02-23 21:18:05 [2025-02-23 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542450', 'tblTempUsageDetail_20' ) start [2025-02-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542450', 'tblTempUsageDetail_20' ) end [2025-02-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542450', 'tblTempVendorCDR_20' ) start [2025-02-23 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542450', 'tblTempVendorCDR_20' ) end [2025-02-23 21:18:18] Production.INFO: ProcessCDR(1,14542450,1,1,2) [2025-02-23 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542450', 'tblTempUsageDetail_20' ) start [2025-02-23 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542450', 'tblTempUsageDetail_20' ) end [2025-02-23 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:18:21] Production.INFO: ==29016== Releasing lock... [2025-02-23 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:18:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:19:05 [end_date_ymd] => 2025-02-23 21:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:19:05' and `end` < '2025-02-23 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-02-23 21:19:17] Production.INFO: count ==2686 [2025-02-23 21:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:19:05 - End Time 2025-02-23 21:19:05 [2025-02-23 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542455', 'tblTempUsageDetail_20' ) start [2025-02-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542455', 'tblTempUsageDetail_20' ) end [2025-02-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542455', 'tblTempVendorCDR_20' ) start [2025-02-23 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542455', 'tblTempVendorCDR_20' ) end [2025-02-23 21:19:18] Production.INFO: ProcessCDR(1,14542455,1,1,2) [2025-02-23 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542455', 'tblTempUsageDetail_20' ) start [2025-02-23 21:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542455', 'tblTempUsageDetail_20' ) end [2025-02-23 21:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:19:23] Production.INFO: ==29098== Releasing lock... [2025-02-23 21:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:19:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:20:06 [end_date_ymd] => 2025-02-23 21:20:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:20:06' and `end` < '2025-02-23 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-02-23 21:20:18] Production.INFO: count ==2686 [2025-02-23 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:20:06 - End Time 2025-02-23 21:20:06 [2025-02-23 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542461', 'tblTempUsageDetail_20' ) start [2025-02-23 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542461', 'tblTempUsageDetail_20' ) end [2025-02-23 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542461', 'tblTempVendorCDR_20' ) start [2025-02-23 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542461', 'tblTempVendorCDR_20' ) end [2025-02-23 21:20:20] Production.INFO: ProcessCDR(1,14542461,1,1,2) [2025-02-23 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542461', 'tblTempUsageDetail_20' ) start [2025-02-23 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542461', 'tblTempUsageDetail_20' ) end [2025-02-23 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:20:23] Production.INFO: ==29187== Releasing lock... [2025-02-23 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:20:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:21:05 [end_date_ymd] => 2025-02-23 21:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:21:05' and `end` < '2025-02-23 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-02-23 21:21:17] Production.INFO: count ==2669 [2025-02-23 21:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:21:05 - End Time 2025-02-23 21:21:05 [2025-02-23 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542466', 'tblTempUsageDetail_20' ) start [2025-02-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542466', 'tblTempUsageDetail_20' ) end [2025-02-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542466', 'tblTempVendorCDR_20' ) start [2025-02-23 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542466', 'tblTempVendorCDR_20' ) end [2025-02-23 21:21:18] Production.INFO: ProcessCDR(1,14542466,1,1,2) [2025-02-23 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542466', 'tblTempUsageDetail_20' ) start [2025-02-23 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542466', 'tblTempUsageDetail_20' ) end [2025-02-23 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:21:22] Production.INFO: ==29270== Releasing lock... [2025-02-23 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:21:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:22:05 [end_date_ymd] => 2025-02-23 21:22:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:22:05' and `end` < '2025-02-23 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-02-23 21:22:17] Production.INFO: count ==2669 [2025-02-23 21:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:22:05 - End Time 2025-02-23 21:22:05 [2025-02-23 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542471', 'tblTempUsageDetail_20' ) start [2025-02-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542471', 'tblTempUsageDetail_20' ) end [2025-02-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542471', 'tblTempVendorCDR_20' ) start [2025-02-23 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542471', 'tblTempVendorCDR_20' ) end [2025-02-23 21:22:18] Production.INFO: ProcessCDR(1,14542471,1,1,2) [2025-02-23 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542471', 'tblTempUsageDetail_20' ) start [2025-02-23 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542471', 'tblTempUsageDetail_20' ) end [2025-02-23 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:22:22] Production.INFO: ==29355== Releasing lock... [2025-02-23 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:22:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:23:05 [end_date_ymd] => 2025-02-23 21:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:23:05' and `end` < '2025-02-23 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-02-23 21:23:17] Production.INFO: count ==2669 [2025-02-23 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:23:05 - End Time 2025-02-23 21:23:05 [2025-02-23 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542476', 'tblTempUsageDetail_20' ) start [2025-02-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542476', 'tblTempUsageDetail_20' ) end [2025-02-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542476', 'tblTempVendorCDR_20' ) start [2025-02-23 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542476', 'tblTempVendorCDR_20' ) end [2025-02-23 21:23:18] Production.INFO: ProcessCDR(1,14542476,1,1,2) [2025-02-23 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542476', 'tblTempUsageDetail_20' ) start [2025-02-23 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542476', 'tblTempUsageDetail_20' ) end [2025-02-23 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:23:23] Production.INFO: ==29438== Releasing lock... [2025-02-23 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:23:23] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:24:05 [end_date_ymd] => 2025-02-23 21:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:24:05' and `end` < '2025-02-23 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-02-23 21:24:17] Production.INFO: count ==2672 [2025-02-23 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:24:05 - End Time 2025-02-23 21:24:05 [2025-02-23 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542481', 'tblTempUsageDetail_20' ) start [2025-02-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542481', 'tblTempUsageDetail_20' ) end [2025-02-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542481', 'tblTempVendorCDR_20' ) start [2025-02-23 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542481', 'tblTempVendorCDR_20' ) end [2025-02-23 21:24:19] Production.INFO: ProcessCDR(1,14542481,1,1,2) [2025-02-23 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542481', 'tblTempUsageDetail_20' ) start [2025-02-23 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542481', 'tblTempUsageDetail_20' ) end [2025-02-23 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:24:22] Production.INFO: ==29519== Releasing lock... [2025-02-23 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:24:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:25:05 [end_date_ymd] => 2025-02-23 21:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:25:05' and `end` < '2025-02-23 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-02-23 21:25:17] Production.INFO: count ==2669 [2025-02-23 21:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:25:05 - End Time 2025-02-23 21:25:05 [2025-02-23 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542486', 'tblTempUsageDetail_20' ) start [2025-02-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542486', 'tblTempUsageDetail_20' ) end [2025-02-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542486', 'tblTempVendorCDR_20' ) start [2025-02-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542486', 'tblTempVendorCDR_20' ) end [2025-02-23 21:25:18] Production.INFO: ProcessCDR(1,14542486,1,1,2) [2025-02-23 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542486', 'tblTempUsageDetail_20' ) start [2025-02-23 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542486', 'tblTempUsageDetail_20' ) end [2025-02-23 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:25:22] Production.INFO: ==29601== Releasing lock... [2025-02-23 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:25:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:26:05 [end_date_ymd] => 2025-02-23 21:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:26:05' and `end` < '2025-02-23 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-02-23 21:26:17] Production.INFO: count ==2664 [2025-02-23 21:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:26:05 - End Time 2025-02-23 21:26:05 [2025-02-23 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542491', 'tblTempUsageDetail_20' ) start [2025-02-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542491', 'tblTempUsageDetail_20' ) end [2025-02-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542491', 'tblTempVendorCDR_20' ) start [2025-02-23 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542491', 'tblTempVendorCDR_20' ) end [2025-02-23 21:26:18] Production.INFO: ProcessCDR(1,14542491,1,1,2) [2025-02-23 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542491', 'tblTempUsageDetail_20' ) start [2025-02-23 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542491', 'tblTempUsageDetail_20' ) end [2025-02-23 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:26:21] Production.INFO: ==29681== Releasing lock... [2025-02-23 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:26:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:27:04 [end_date_ymd] => 2025-02-23 21:27:04 [RateCDR] => 1 ) [2025-02-23 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:27:04' and `end` < '2025-02-23 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:27:17] Production.INFO: count ==2670 [2025-02-23 21:27:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:27:04 - End Time 2025-02-23 21:27:04 [2025-02-23 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542495', 'tblTempUsageDetail_20' ) start [2025-02-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542495', 'tblTempUsageDetail_20' ) end [2025-02-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542495', 'tblTempVendorCDR_20' ) start [2025-02-23 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542495', 'tblTempVendorCDR_20' ) end [2025-02-23 21:27:18] Production.INFO: ProcessCDR(1,14542495,1,1,2) [2025-02-23 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542495', 'tblTempUsageDetail_20' ) start [2025-02-23 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542495', 'tblTempUsageDetail_20' ) end [2025-02-23 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:27:21] Production.INFO: ==29798== Releasing lock... [2025-02-23 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:27:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:28:05 [end_date_ymd] => 2025-02-23 21:28:05 [RateCDR] => 1 ) [2025-02-23 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:28:05' and `end` < '2025-02-23 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:28:16] Production.INFO: count ==2669 [2025-02-23 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:28:05 - End Time 2025-02-23 21:28:05 [2025-02-23 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542501', 'tblTempUsageDetail_20' ) start [2025-02-23 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542501', 'tblTempUsageDetail_20' ) end [2025-02-23 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542501', 'tblTempVendorCDR_20' ) start [2025-02-23 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542501', 'tblTempVendorCDR_20' ) end [2025-02-23 21:28:18] Production.INFO: ProcessCDR(1,14542501,1,1,2) [2025-02-23 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542501', 'tblTempUsageDetail_20' ) start [2025-02-23 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542501', 'tblTempUsageDetail_20' ) end [2025-02-23 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:28:21] Production.INFO: ==29883== Releasing lock... [2025-02-23 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:28:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:29:05 [end_date_ymd] => 2025-02-23 21:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:29:05' and `end` < '2025-02-23 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-02-23 21:29:17] Production.INFO: count ==2669 [2025-02-23 21:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:29:05 - End Time 2025-02-23 21:29:05 [2025-02-23 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542506', 'tblTempUsageDetail_20' ) start [2025-02-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542506', 'tblTempUsageDetail_20' ) end [2025-02-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542506', 'tblTempVendorCDR_20' ) start [2025-02-23 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542506', 'tblTempVendorCDR_20' ) end [2025-02-23 21:29:18] Production.INFO: ProcessCDR(1,14542506,1,1,2) [2025-02-23 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542506', 'tblTempUsageDetail_20' ) start [2025-02-23 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542506', 'tblTempUsageDetail_20' ) end [2025-02-23 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:29:22] Production.INFO: ==29964== Releasing lock... [2025-02-23 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:29:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:30:06 [end_date_ymd] => 2025-02-23 21:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:30:06' and `end` < '2025-02-23 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-02-23 21:30:18] Production.INFO: count ==2669 [2025-02-23 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:30:06 - End Time 2025-02-23 21:30:06 [2025-02-23 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542512', 'tblTempUsageDetail_20' ) start [2025-02-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542512', 'tblTempUsageDetail_20' ) end [2025-02-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542512', 'tblTempVendorCDR_20' ) start [2025-02-23 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542512', 'tblTempVendorCDR_20' ) end [2025-02-23 21:30:19] Production.INFO: ProcessCDR(1,14542512,1,1,2) [2025-02-23 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542512', 'tblTempUsageDetail_20' ) start [2025-02-23 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542512', 'tblTempUsageDetail_20' ) end [2025-02-23 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:30:22] Production.INFO: ==30053== Releasing lock... [2025-02-23 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:30:22] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:31:06 [end_date_ymd] => 2025-02-23 21:31:06 [RateCDR] => 1 ) [2025-02-23 21: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-02-23 18:31:06' and `end` < '2025-02-23 21: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-02-23 21:31:18] Production.INFO: count ==2641 [2025-02-23 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:31:06 - End Time 2025-02-23 21:31:06 [2025-02-23 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542517', 'tblTempUsageDetail_20' ) start [2025-02-23 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542517', 'tblTempUsageDetail_20' ) end [2025-02-23 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542517', 'tblTempVendorCDR_20' ) start [2025-02-23 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542517', 'tblTempVendorCDR_20' ) end [2025-02-23 21:31:19] Production.INFO: ProcessCDR(1,14542517,1,1,2) [2025-02-23 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542517', 'tblTempUsageDetail_20' ) start [2025-02-23 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542517', 'tblTempUsageDetail_20' ) end [2025-02-23 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:31:22] Production.INFO: ==30138== Releasing lock... [2025-02-23 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:31:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:32:05 [end_date_ymd] => 2025-02-23 21:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:32:05' and `end` < '2025-02-23 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-02-23 21:32:17] Production.INFO: count ==2641 [2025-02-23 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:32:05 - End Time 2025-02-23 21:32:05 [2025-02-23 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542522', 'tblTempUsageDetail_20' ) start [2025-02-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542522', 'tblTempUsageDetail_20' ) end [2025-02-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542522', 'tblTempVendorCDR_20' ) start [2025-02-23 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542522', 'tblTempVendorCDR_20' ) end [2025-02-23 21:32:19] Production.INFO: ProcessCDR(1,14542522,1,1,2) [2025-02-23 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542522', 'tblTempUsageDetail_20' ) start [2025-02-23 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542522', 'tblTempUsageDetail_20' ) end [2025-02-23 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:32:22] Production.INFO: ==30222== Releasing lock... [2025-02-23 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:32:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:33:05 [end_date_ymd] => 2025-02-23 21:33:05 [RateCDR] => 1 ) [2025-02-23 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:33:05' and `end` < '2025-02-23 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:33:17] Production.INFO: count ==2639 [2025-02-23 21:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:33:05 - End Time 2025-02-23 21:33:05 [2025-02-23 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542527', 'tblTempUsageDetail_20' ) start [2025-02-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542527', 'tblTempUsageDetail_20' ) end [2025-02-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542527', 'tblTempVendorCDR_20' ) start [2025-02-23 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542527', 'tblTempVendorCDR_20' ) end [2025-02-23 21:33:18] Production.INFO: ProcessCDR(1,14542527,1,1,2) [2025-02-23 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542527', 'tblTempUsageDetail_20' ) start [2025-02-23 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542527', 'tblTempUsageDetail_20' ) end [2025-02-23 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:33:21] Production.INFO: ==30303== Releasing lock... [2025-02-23 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:33:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:34:05 [end_date_ymd] => 2025-02-23 21:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:34:05' and `end` < '2025-02-23 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-02-23 21:34:17] Production.INFO: count ==2641 [2025-02-23 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:34:05 - End Time 2025-02-23 21:34:05 [2025-02-23 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542532', 'tblTempUsageDetail_20' ) start [2025-02-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542532', 'tblTempUsageDetail_20' ) end [2025-02-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542532', 'tblTempVendorCDR_20' ) start [2025-02-23 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542532', 'tblTempVendorCDR_20' ) end [2025-02-23 21:34:18] Production.INFO: ProcessCDR(1,14542532,1,1,2) [2025-02-23 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542532', 'tblTempUsageDetail_20' ) start [2025-02-23 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542532', 'tblTempUsageDetail_20' ) end [2025-02-23 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:34:21] Production.INFO: ==30382== Releasing lock... [2025-02-23 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:34:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:35:05 [end_date_ymd] => 2025-02-23 21:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:35:05' and `end` < '2025-02-23 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-02-23 21:35:17] Production.INFO: count ==2641 [2025-02-23 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:35:05 - End Time 2025-02-23 21:35:05 [2025-02-23 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542537', 'tblTempUsageDetail_20' ) start [2025-02-23 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542537', 'tblTempUsageDetail_20' ) end [2025-02-23 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542537', 'tblTempVendorCDR_20' ) start [2025-02-23 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542537', 'tblTempVendorCDR_20' ) end [2025-02-23 21:35:19] Production.INFO: ProcessCDR(1,14542537,1,1,2) [2025-02-23 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542537', 'tblTempUsageDetail_20' ) start [2025-02-23 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542537', 'tblTempUsageDetail_20' ) end [2025-02-23 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:35:23] Production.INFO: ==30464== Releasing lock... [2025-02-23 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:35:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:36:05 [end_date_ymd] => 2025-02-23 21:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:36:05' and `end` < '2025-02-23 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-02-23 21:36:17] Production.INFO: count ==2643 [2025-02-23 21:36:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:36:05 - End Time 2025-02-23 21:36:05 [2025-02-23 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542542', 'tblTempUsageDetail_20' ) start [2025-02-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542542', 'tblTempUsageDetail_20' ) end [2025-02-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542542', 'tblTempVendorCDR_20' ) start [2025-02-23 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542542', 'tblTempVendorCDR_20' ) end [2025-02-23 21:36:18] Production.INFO: ProcessCDR(1,14542542,1,1,2) [2025-02-23 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542542', 'tblTempUsageDetail_20' ) start [2025-02-23 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542542', 'tblTempUsageDetail_20' ) end [2025-02-23 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:36:21] Production.INFO: ==30541== Releasing lock... [2025-02-23 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:36:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:37:05 [end_date_ymd] => 2025-02-23 21:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:37:05' and `end` < '2025-02-23 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-02-23 21:37:17] Production.INFO: count ==2631 [2025-02-23 21:37:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:37:05 - End Time 2025-02-23 21:37:05 [2025-02-23 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542547', 'tblTempUsageDetail_20' ) start [2025-02-23 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542547', 'tblTempUsageDetail_20' ) end [2025-02-23 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542547', 'tblTempVendorCDR_20' ) start [2025-02-23 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542547', 'tblTempVendorCDR_20' ) end [2025-02-23 21:37:18] Production.INFO: ProcessCDR(1,14542547,1,1,2) [2025-02-23 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542547', 'tblTempUsageDetail_20' ) start [2025-02-23 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542547', 'tblTempUsageDetail_20' ) end [2025-02-23 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:37:22] Production.INFO: ==30622== Releasing lock... [2025-02-23 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:37:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:38:05 [end_date_ymd] => 2025-02-23 21:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:38:05' and `end` < '2025-02-23 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-02-23 21:38:17] Production.INFO: count ==2627 [2025-02-23 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:38:05 - End Time 2025-02-23 21:38:05 [2025-02-23 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542552', 'tblTempUsageDetail_20' ) start [2025-02-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542552', 'tblTempUsageDetail_20' ) end [2025-02-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542552', 'tblTempVendorCDR_20' ) start [2025-02-23 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542552', 'tblTempVendorCDR_20' ) end [2025-02-23 21:38:18] Production.INFO: ProcessCDR(1,14542552,1,1,2) [2025-02-23 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542552', 'tblTempUsageDetail_20' ) start [2025-02-23 21:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542552', 'tblTempUsageDetail_20' ) end [2025-02-23 21:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:38:21] Production.INFO: ==30702== Releasing lock... [2025-02-23 21:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:38:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:39:05 [end_date_ymd] => 2025-02-23 21:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:39:05' and `end` < '2025-02-23 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-02-23 21:39:17] Production.INFO: count ==2618 [2025-02-23 21:39:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:39:05 - End Time 2025-02-23 21:39:05 [2025-02-23 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542557', 'tblTempUsageDetail_20' ) start [2025-02-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542557', 'tblTempUsageDetail_20' ) end [2025-02-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542557', 'tblTempVendorCDR_20' ) start [2025-02-23 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542557', 'tblTempVendorCDR_20' ) end [2025-02-23 21:39:18] Production.INFO: ProcessCDR(1,14542557,1,1,2) [2025-02-23 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542557', 'tblTempUsageDetail_20' ) start [2025-02-23 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542557', 'tblTempUsageDetail_20' ) end [2025-02-23 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:39:21] Production.INFO: ==30782== Releasing lock... [2025-02-23 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:39:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:40:06 [end_date_ymd] => 2025-02-23 21:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:40:06' and `end` < '2025-02-23 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-02-23 21:40:18] Production.INFO: count ==2611 [2025-02-23 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:40:06 - End Time 2025-02-23 21:40:06 [2025-02-23 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542563', 'tblTempUsageDetail_20' ) start [2025-02-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542563', 'tblTempUsageDetail_20' ) end [2025-02-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542563', 'tblTempVendorCDR_20' ) start [2025-02-23 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542563', 'tblTempVendorCDR_20' ) end [2025-02-23 21:40:19] Production.INFO: ProcessCDR(1,14542563,1,1,2) [2025-02-23 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542563', 'tblTempUsageDetail_20' ) start [2025-02-23 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542563', 'tblTempUsageDetail_20' ) end [2025-02-23 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:40:22] Production.INFO: ==30864== Releasing lock... [2025-02-23 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:40:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:41:05 [end_date_ymd] => 2025-02-23 21:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:41:05' and `end` < '2025-02-23 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-02-23 21:41:17] Production.INFO: count ==2642 [2025-02-23 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:41:05 - End Time 2025-02-23 21:41:05 [2025-02-23 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542568', 'tblTempUsageDetail_20' ) start [2025-02-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542568', 'tblTempUsageDetail_20' ) end [2025-02-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542568', 'tblTempVendorCDR_20' ) start [2025-02-23 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542568', 'tblTempVendorCDR_20' ) end [2025-02-23 21:41:18] Production.INFO: ProcessCDR(1,14542568,1,1,2) [2025-02-23 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542568', 'tblTempUsageDetail_20' ) start [2025-02-23 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542568', 'tblTempUsageDetail_20' ) end [2025-02-23 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:41:22] Production.INFO: ==30948== Releasing lock... [2025-02-23 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:41:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:42:05 [end_date_ymd] => 2025-02-23 21:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:42:05' and `end` < '2025-02-23 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-02-23 21:42:18] Production.INFO: count ==2641 [2025-02-23 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:42:05 - End Time 2025-02-23 21:42:05 [2025-02-23 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542573', 'tblTempUsageDetail_20' ) start [2025-02-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542573', 'tblTempUsageDetail_20' ) end [2025-02-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542573', 'tblTempVendorCDR_20' ) start [2025-02-23 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542573', 'tblTempVendorCDR_20' ) end [2025-02-23 21:42:19] Production.INFO: ProcessCDR(1,14542573,1,1,2) [2025-02-23 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542573', 'tblTempUsageDetail_20' ) start [2025-02-23 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542573', 'tblTempUsageDetail_20' ) end [2025-02-23 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:42:23] Production.INFO: ==31074== Releasing lock... [2025-02-23 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:42:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-23 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:43:04 [end_date_ymd] => 2025-02-23 21:43:04 [RateCDR] => 1 ) [2025-02-23 21: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-02-23 18:43:04' and `end` < '2025-02-23 21: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-02-23 21:43:16] Production.INFO: count ==2640 [2025-02-23 21:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 18:43:04 - End Time 2025-02-23 21:43:04 [2025-02-23 21:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542578', 'tblTempUsageDetail_20' ) start [2025-02-23 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542578', 'tblTempUsageDetail_20' ) end [2025-02-23 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542578', 'tblTempVendorCDR_20' ) start [2025-02-23 21:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542578', 'tblTempVendorCDR_20' ) end [2025-02-23 21:43:17] Production.INFO: ProcessCDR(1,14542578,1,1,2) [2025-02-23 21:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542578', 'tblTempUsageDetail_20' ) start [2025-02-23 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542578', 'tblTempUsageDetail_20' ) end [2025-02-23 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:43:21] Production.INFO: ==31157== Releasing lock... [2025-02-23 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:43:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:44:05 [end_date_ymd] => 2025-02-23 21:44:05 [RateCDR] => 1 ) [2025-02-23 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:44:05' and `end` < '2025-02-23 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:44:17] Production.INFO: count ==2670 [2025-02-23 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:44:05 - End Time 2025-02-23 21:44:05 [2025-02-23 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542583', 'tblTempUsageDetail_20' ) start [2025-02-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542583', 'tblTempUsageDetail_20' ) end [2025-02-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542583', 'tblTempVendorCDR_20' ) start [2025-02-23 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542583', 'tblTempVendorCDR_20' ) end [2025-02-23 21:44:18] Production.INFO: ProcessCDR(1,14542583,1,1,2) [2025-02-23 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542583', 'tblTempUsageDetail_20' ) start [2025-02-23 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542583', 'tblTempUsageDetail_20' ) end [2025-02-23 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:44:22] Production.INFO: ==31235== Releasing lock... [2025-02-23 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:44:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:45:05 [end_date_ymd] => 2025-02-23 21:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:45:05' and `end` < '2025-02-23 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-02-23 21:45:17] Production.INFO: count ==2721 [2025-02-23 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:45:05 - End Time 2025-02-23 21:45:05 [2025-02-23 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542588', 'tblTempUsageDetail_20' ) start [2025-02-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542588', 'tblTempUsageDetail_20' ) end [2025-02-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542588', 'tblTempVendorCDR_20' ) start [2025-02-23 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542588', 'tblTempVendorCDR_20' ) end [2025-02-23 21:45:18] Production.INFO: ProcessCDR(1,14542588,1,1,2) [2025-02-23 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542588', 'tblTempUsageDetail_20' ) start [2025-02-23 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542588', 'tblTempUsageDetail_20' ) end [2025-02-23 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:45:23] Production.INFO: ==31311== Releasing lock... [2025-02-23 21:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:45:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:46:05 [end_date_ymd] => 2025-02-23 21:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:46:05' and `end` < '2025-02-23 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-02-23 21:46:17] Production.INFO: count ==2721 [2025-02-23 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:46:05 - End Time 2025-02-23 21:46:05 [2025-02-23 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542593', 'tblTempUsageDetail_20' ) start [2025-02-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542593', 'tblTempUsageDetail_20' ) end [2025-02-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542593', 'tblTempVendorCDR_20' ) start [2025-02-23 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542593', 'tblTempVendorCDR_20' ) end [2025-02-23 21:46:18] Production.INFO: ProcessCDR(1,14542593,1,1,2) [2025-02-23 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542593', 'tblTempUsageDetail_20' ) start [2025-02-23 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542593', 'tblTempUsageDetail_20' ) end [2025-02-23 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:46:21] Production.INFO: ==31392== Releasing lock... [2025-02-23 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:46:21] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:47:05 [end_date_ymd] => 2025-02-23 21:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:47:05' and `end` < '2025-02-23 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-02-23 21:47:17] Production.INFO: count ==2720 [2025-02-23 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:47:05 - End Time 2025-02-23 21:47:05 [2025-02-23 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542598', 'tblTempUsageDetail_20' ) start [2025-02-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542598', 'tblTempUsageDetail_20' ) end [2025-02-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542598', 'tblTempVendorCDR_20' ) start [2025-02-23 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542598', 'tblTempVendorCDR_20' ) end [2025-02-23 21:47:18] Production.INFO: ProcessCDR(1,14542598,1,1,2) [2025-02-23 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542598', 'tblTempUsageDetail_20' ) start [2025-02-23 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542598', 'tblTempUsageDetail_20' ) end [2025-02-23 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:47:21] Production.INFO: ==31465== Releasing lock... [2025-02-23 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:47:21] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:48:04 [end_date_ymd] => 2025-02-23 21:48:04 [RateCDR] => 1 ) [2025-02-23 21:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:48:04' and `end` < '2025-02-23 21:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:48:16] Production.INFO: count ==2715 [2025-02-23 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:48:04 - End Time 2025-02-23 21:48:04 [2025-02-23 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542603', 'tblTempUsageDetail_20' ) start [2025-02-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542603', 'tblTempUsageDetail_20' ) end [2025-02-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542603', 'tblTempVendorCDR_20' ) start [2025-02-23 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542603', 'tblTempVendorCDR_20' ) end [2025-02-23 21:48:18] Production.INFO: ProcessCDR(1,14542603,1,1,2) [2025-02-23 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542603', 'tblTempUsageDetail_20' ) start [2025-02-23 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542603', 'tblTempUsageDetail_20' ) end [2025-02-23 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:48:21] Production.INFO: ==31545== Releasing lock... [2025-02-23 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:48:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:49:05 [end_date_ymd] => 2025-02-23 21:49:05 [RateCDR] => 1 ) [2025-02-23 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:49:05' and `end` < '2025-02-23 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:49:17] Production.INFO: count ==2711 [2025-02-23 21:49:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:49:05 - End Time 2025-02-23 21:49:05 [2025-02-23 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542608', 'tblTempUsageDetail_20' ) start [2025-02-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542608', 'tblTempUsageDetail_20' ) end [2025-02-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542608', 'tblTempVendorCDR_20' ) start [2025-02-23 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542608', 'tblTempVendorCDR_20' ) end [2025-02-23 21:49:19] Production.INFO: ProcessCDR(1,14542608,1,1,2) [2025-02-23 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542608', 'tblTempUsageDetail_20' ) start [2025-02-23 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542608', 'tblTempUsageDetail_20' ) end [2025-02-23 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:49:22] Production.INFO: ==31632== Releasing lock... [2025-02-23 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:49:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:50:05 [end_date_ymd] => 2025-02-23 21:50:05 [RateCDR] => 1 ) [2025-02-23 21:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:50:05' and `end` < '2025-02-23 21:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:50:17] Production.INFO: count ==2708 [2025-02-23 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:50:05 - End Time 2025-02-23 21:50:05 [2025-02-23 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542614', 'tblTempUsageDetail_20' ) start [2025-02-23 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542614', 'tblTempUsageDetail_20' ) end [2025-02-23 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542614', 'tblTempVendorCDR_20' ) start [2025-02-23 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542614', 'tblTempVendorCDR_20' ) end [2025-02-23 21:50:19] Production.INFO: ProcessCDR(1,14542614,1,1,2) [2025-02-23 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542614', 'tblTempUsageDetail_20' ) start [2025-02-23 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542614', 'tblTempUsageDetail_20' ) end [2025-02-23 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:50:22] Production.INFO: ==31708== Releasing lock... [2025-02-23 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:50:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:51:05 [end_date_ymd] => 2025-02-23 21:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:51:05' and `end` < '2025-02-23 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-02-23 21:51:17] Production.INFO: count ==2689 [2025-02-23 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:51:05 - End Time 2025-02-23 21:51:05 [2025-02-23 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542619', 'tblTempUsageDetail_20' ) start [2025-02-23 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542619', 'tblTempUsageDetail_20' ) end [2025-02-23 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542619', 'tblTempVendorCDR_20' ) start [2025-02-23 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542619', 'tblTempVendorCDR_20' ) end [2025-02-23 21:51:19] Production.INFO: ProcessCDR(1,14542619,1,1,2) [2025-02-23 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542619', 'tblTempUsageDetail_20' ) start [2025-02-23 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542619', 'tblTempUsageDetail_20' ) end [2025-02-23 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:51:22] Production.INFO: ==31810== Releasing lock... [2025-02-23 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:51:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:52:05 [end_date_ymd] => 2025-02-23 21:52:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:52:05' and `end` < '2025-02-23 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-02-23 21:52:17] Production.INFO: count ==2689 [2025-02-23 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:52:05 - End Time 2025-02-23 21:52:05 [2025-02-23 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542624', 'tblTempUsageDetail_20' ) start [2025-02-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542624', 'tblTempUsageDetail_20' ) end [2025-02-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542624', 'tblTempVendorCDR_20' ) start [2025-02-23 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542624', 'tblTempVendorCDR_20' ) end [2025-02-23 21:52:18] Production.INFO: ProcessCDR(1,14542624,1,1,2) [2025-02-23 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542624', 'tblTempUsageDetail_20' ) start [2025-02-23 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542624', 'tblTempUsageDetail_20' ) end [2025-02-23 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:52:21] Production.INFO: ==31905== Releasing lock... [2025-02-23 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:52:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:53:05 [end_date_ymd] => 2025-02-23 21:53:05 [RateCDR] => 1 ) [2025-02-23 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:53:05' and `end` < '2025-02-23 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:53:17] Production.INFO: count ==2688 [2025-02-23 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:53:05 - End Time 2025-02-23 21:53:05 [2025-02-23 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542629', 'tblTempUsageDetail_20' ) start [2025-02-23 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542629', 'tblTempUsageDetail_20' ) end [2025-02-23 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542629', 'tblTempVendorCDR_20' ) start [2025-02-23 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542629', 'tblTempVendorCDR_20' ) end [2025-02-23 21:53:19] Production.INFO: ProcessCDR(1,14542629,1,1,2) [2025-02-23 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542629', 'tblTempUsageDetail_20' ) start [2025-02-23 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542629', 'tblTempUsageDetail_20' ) end [2025-02-23 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:53:22] Production.INFO: ==31980== Releasing lock... [2025-02-23 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:53:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:54:06 [end_date_ymd] => 2025-02-23 21:54:06 [RateCDR] => 1 ) [2025-02-23 21:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:54:06' and `end` < '2025-02-23 21:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:54:18] Production.INFO: count ==2688 [2025-02-23 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:54:06 - End Time 2025-02-23 21:54:06 [2025-02-23 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542634', 'tblTempUsageDetail_20' ) start [2025-02-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542634', 'tblTempUsageDetail_20' ) end [2025-02-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542634', 'tblTempVendorCDR_20' ) start [2025-02-23 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542634', 'tblTempVendorCDR_20' ) end [2025-02-23 21:54:19] Production.INFO: ProcessCDR(1,14542634,1,1,2) [2025-02-23 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542634', 'tblTempUsageDetail_20' ) start [2025-02-23 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542634', 'tblTempUsageDetail_20' ) end [2025-02-23 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:54:23] Production.INFO: ==32058== Releasing lock... [2025-02-23 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:54:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:55:05 [end_date_ymd] => 2025-02-23 21:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:55:05' and `end` < '2025-02-23 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-02-23 21:55:17] Production.INFO: count ==2688 [2025-02-23 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:55:05 - End Time 2025-02-23 21:55:05 [2025-02-23 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542639', 'tblTempUsageDetail_20' ) start [2025-02-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542639', 'tblTempUsageDetail_20' ) end [2025-02-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542639', 'tblTempVendorCDR_20' ) start [2025-02-23 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542639', 'tblTempVendorCDR_20' ) end [2025-02-23 21:55:18] Production.INFO: ProcessCDR(1,14542639,1,1,2) [2025-02-23 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542639', 'tblTempUsageDetail_20' ) start [2025-02-23 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542639', 'tblTempUsageDetail_20' ) end [2025-02-23 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:55:21] Production.INFO: ==32139== Releasing lock... [2025-02-23 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:55:21] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:56:06 [end_date_ymd] => 2025-02-23 21:56:06 [RateCDR] => 1 ) [2025-02-23 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:56:06' and `end` < '2025-02-23 21:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:56:18] Production.INFO: count ==2687 [2025-02-23 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:56:06 - End Time 2025-02-23 21:56:06 [2025-02-23 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542644', 'tblTempUsageDetail_20' ) start [2025-02-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542644', 'tblTempUsageDetail_20' ) end [2025-02-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542644', 'tblTempVendorCDR_20' ) start [2025-02-23 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542644', 'tblTempVendorCDR_20' ) end [2025-02-23 21:56:19] Production.INFO: ProcessCDR(1,14542644,1,1,2) [2025-02-23 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542644', 'tblTempUsageDetail_20' ) start [2025-02-23 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542644', 'tblTempUsageDetail_20' ) end [2025-02-23 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:56:23] Production.INFO: ==32218== Releasing lock... [2025-02-23 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:56:23] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:57:05 [end_date_ymd] => 2025-02-23 21:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:57:05' and `end` < '2025-02-23 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-02-23 21:57:17] Production.INFO: count ==2680 [2025-02-23 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:57:05 - End Time 2025-02-23 21:57:05 [2025-02-23 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542649', 'tblTempUsageDetail_20' ) start [2025-02-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542649', 'tblTempUsageDetail_20' ) end [2025-02-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542649', 'tblTempVendorCDR_20' ) start [2025-02-23 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542649', 'tblTempVendorCDR_20' ) end [2025-02-23 21:57:18] Production.INFO: ProcessCDR(1,14542649,1,1,2) [2025-02-23 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542649', 'tblTempUsageDetail_20' ) start [2025-02-23 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542649', 'tblTempUsageDetail_20' ) end [2025-02-23 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:57:22] Production.INFO: ==32293== Releasing lock... [2025-02-23 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:57:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 21:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:58:06 [end_date_ymd] => 2025-02-23 21:58:06 [RateCDR] => 1 ) [2025-02-23 21:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 18:58:06' and `end` < '2025-02-23 21:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 21:58:18] Production.INFO: count ==2679 [2025-02-23 21:58:19] Production.ERROR: pbx CDR StartTime 2025-02-23 18:58:06 - End Time 2025-02-23 21:58:06 [2025-02-23 21:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542654', 'tblTempUsageDetail_20' ) start [2025-02-23 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542654', 'tblTempUsageDetail_20' ) end [2025-02-23 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542654', 'tblTempVendorCDR_20' ) start [2025-02-23 21:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542654', 'tblTempVendorCDR_20' ) end [2025-02-23 21:58:19] Production.INFO: ProcessCDR(1,14542654,1,1,2) [2025-02-23 21:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542654', 'tblTempUsageDetail_20' ) start [2025-02-23 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542654', 'tblTempUsageDetail_20' ) end [2025-02-23 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:58:24] Production.INFO: ==32417== Releasing lock... [2025-02-23 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:58:24] Production.INFO: 48 MB #Memory Used# [2025-02-23 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 18:59:05 [end_date_ymd] => 2025-02-23 21:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 18:59:05' and `end` < '2025-02-23 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-02-23 21:59:17] Production.INFO: count ==2679 [2025-02-23 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-23 18:59:05 - End Time 2025-02-23 21:59:05 [2025-02-23 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542659', 'tblTempUsageDetail_20' ) start [2025-02-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542659', 'tblTempUsageDetail_20' ) end [2025-02-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542659', 'tblTempVendorCDR_20' ) start [2025-02-23 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542659', 'tblTempVendorCDR_20' ) end [2025-02-23 21:59:18] Production.INFO: ProcessCDR(1,14542659,1,1,2) [2025-02-23 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542659', 'tblTempUsageDetail_20' ) start [2025-02-23 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542659', 'tblTempUsageDetail_20' ) end [2025-02-23 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 21:59:21] Production.INFO: ==32492== Releasing lock... [2025-02-23 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 21:59:21] Production.INFO: 48 MB #Memory Used# [2025-02-23 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:00:06 [end_date_ymd] => 2025-02-23 22:00:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:00:06' and `end` < '2025-02-23 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-02-23 22:00:18] Production.INFO: count ==2672 [2025-02-23 22:00:20] Production.ERROR: pbx CDR StartTime 2025-02-23 19:00:06 - End Time 2025-02-23 22:00:06 [2025-02-23 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542665', 'tblTempUsageDetail_20' ) start [2025-02-23 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542665', 'tblTempUsageDetail_20' ) end [2025-02-23 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542665', 'tblTempVendorCDR_20' ) start [2025-02-23 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542665', 'tblTempVendorCDR_20' ) end [2025-02-23 22:00:20] Production.INFO: ProcessCDR(1,14542665,1,1,2) [2025-02-23 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542665', 'tblTempUsageDetail_20' ) start [2025-02-23 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542665', 'tblTempUsageDetail_20' ) end [2025-02-23 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:00:23] Production.INFO: ==32573== Releasing lock... [2025-02-23 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:00:23] Production.INFO: 48 MB #Memory Used# [2025-02-23 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:01:05 [end_date_ymd] => 2025-02-23 22:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:01:05' and `end` < '2025-02-23 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-02-23 22:01:17] Production.INFO: count ==2640 [2025-02-23 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:01:05 - End Time 2025-02-23 22:01:05 [2025-02-23 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542670', 'tblTempUsageDetail_20' ) start [2025-02-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542670', 'tblTempUsageDetail_20' ) end [2025-02-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542670', 'tblTempVendorCDR_20' ) start [2025-02-23 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542670', 'tblTempVendorCDR_20' ) end [2025-02-23 22:01:18] Production.INFO: ProcessCDR(1,14542670,1,1,2) [2025-02-23 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542670', 'tblTempUsageDetail_20' ) start [2025-02-23 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542670', 'tblTempUsageDetail_20' ) end [2025-02-23 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:01:22] Production.INFO: ==32664== Releasing lock... [2025-02-23 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:01:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:02:06 [end_date_ymd] => 2025-02-23 22:02:06 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:02:06' and `end` < '2025-02-23 22: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-02-23 22:02:18] Production.INFO: count ==2640 [2025-02-23 22:02:19] Production.ERROR: pbx CDR StartTime 2025-02-23 19:02:06 - End Time 2025-02-23 22:02:06 [2025-02-23 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542675', 'tblTempUsageDetail_20' ) start [2025-02-23 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542675', 'tblTempUsageDetail_20' ) end [2025-02-23 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542675', 'tblTempVendorCDR_20' ) start [2025-02-23 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542675', 'tblTempVendorCDR_20' ) end [2025-02-23 22:02:19] Production.INFO: ProcessCDR(1,14542675,1,1,2) [2025-02-23 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542675', 'tblTempUsageDetail_20' ) start [2025-02-23 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542675', 'tblTempUsageDetail_20' ) end [2025-02-23 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:02:23] Production.INFO: ==32738== Releasing lock... [2025-02-23 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:02:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:03:05 [end_date_ymd] => 2025-02-23 22:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:03:05' and `end` < '2025-02-23 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-02-23 22:03:17] Production.INFO: count ==2808 [2025-02-23 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:03:05 - End Time 2025-02-23 22:03:05 [2025-02-23 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542680', 'tblTempUsageDetail_20' ) start [2025-02-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542680', 'tblTempUsageDetail_20' ) end [2025-02-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542680', 'tblTempVendorCDR_20' ) start [2025-02-23 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542680', 'tblTempVendorCDR_20' ) end [2025-02-23 22:03:18] Production.INFO: ProcessCDR(1,14542680,1,1,2) [2025-02-23 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542680', 'tblTempUsageDetail_20' ) start [2025-02-23 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542680', 'tblTempUsageDetail_20' ) end [2025-02-23 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:03:21] Production.INFO: ==365== Releasing lock... [2025-02-23 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:03:21] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:04:05 [end_date_ymd] => 2025-02-23 22:04:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:04:05' and `end` < '2025-02-23 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-02-23 22:04:17] Production.INFO: count ==2806 [2025-02-23 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:04:05 - End Time 2025-02-23 22:04:05 [2025-02-23 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542685', 'tblTempUsageDetail_20' ) start [2025-02-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542685', 'tblTempUsageDetail_20' ) end [2025-02-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542685', 'tblTempVendorCDR_20' ) start [2025-02-23 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542685', 'tblTempVendorCDR_20' ) end [2025-02-23 22:04:18] Production.INFO: ProcessCDR(1,14542685,1,1,2) [2025-02-23 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542685', 'tblTempUsageDetail_20' ) start [2025-02-23 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542685', 'tblTempUsageDetail_20' ) end [2025-02-23 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:04:23] Production.INFO: ==441== Releasing lock... [2025-02-23 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:04:23] Production.INFO: 49 MB #Memory Used# [2025-02-23 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:05:05 [end_date_ymd] => 2025-02-23 22:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:05:05' and `end` < '2025-02-23 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-02-23 22:05:17] Production.INFO: count ==2797 [2025-02-23 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:05:05 - End Time 2025-02-23 22:05:05 [2025-02-23 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542690', 'tblTempUsageDetail_20' ) start [2025-02-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542690', 'tblTempUsageDetail_20' ) end [2025-02-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542690', 'tblTempVendorCDR_20' ) start [2025-02-23 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542690', 'tblTempVendorCDR_20' ) end [2025-02-23 22:05:18] Production.INFO: ProcessCDR(1,14542690,1,1,2) [2025-02-23 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542690', 'tblTempUsageDetail_20' ) start [2025-02-23 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542690', 'tblTempUsageDetail_20' ) end [2025-02-23 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:05:21] Production.INFO: ==521== Releasing lock... [2025-02-23 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:05:21] Production.INFO: 48.75 MB #Memory Used# [2025-02-23 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:06:05 [end_date_ymd] => 2025-02-23 22:06:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:06:05' and `end` < '2025-02-23 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-02-23 22:06:17] Production.INFO: count ==2787 [2025-02-23 22:06:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:06:05 - End Time 2025-02-23 22:06:05 [2025-02-23 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542695', 'tblTempUsageDetail_20' ) start [2025-02-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542695', 'tblTempUsageDetail_20' ) end [2025-02-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542695', 'tblTempVendorCDR_20' ) start [2025-02-23 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542695', 'tblTempVendorCDR_20' ) end [2025-02-23 22:06:18] Production.INFO: ProcessCDR(1,14542695,1,1,2) [2025-02-23 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542695', 'tblTempUsageDetail_20' ) start [2025-02-23 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542695', 'tblTempUsageDetail_20' ) end [2025-02-23 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:06:22] Production.INFO: ==601== Releasing lock... [2025-02-23 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:06:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-23 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:07:05 [end_date_ymd] => 2025-02-23 22:07:05 [RateCDR] => 1 ) [2025-02-23 22:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:07:05' and `end` < '2025-02-23 22:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:07:17] Production.INFO: count ==2740 [2025-02-23 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:07:05 - End Time 2025-02-23 22:07:05 [2025-02-23 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542700', 'tblTempUsageDetail_20' ) start [2025-02-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542700', 'tblTempUsageDetail_20' ) end [2025-02-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542700', 'tblTempVendorCDR_20' ) start [2025-02-23 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542700', 'tblTempVendorCDR_20' ) end [2025-02-23 22:07:18] Production.INFO: ProcessCDR(1,14542700,1,1,2) [2025-02-23 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542700', 'tblTempUsageDetail_20' ) start [2025-02-23 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542700', 'tblTempUsageDetail_20' ) end [2025-02-23 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:07:21] Production.INFO: ==699== Releasing lock... [2025-02-23 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:07:21] Production.INFO: 49 MB #Memory Used# [2025-02-23 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:08:05 [end_date_ymd] => 2025-02-23 22:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:08:05' and `end` < '2025-02-23 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-02-23 22:08:17] Production.INFO: count ==2701 [2025-02-23 22:08:19] Production.ERROR: pbx CDR StartTime 2025-02-23 19:08:05 - End Time 2025-02-23 22:08:05 [2025-02-23 22:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542705', 'tblTempUsageDetail_20' ) start [2025-02-23 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542705', 'tblTempUsageDetail_20' ) end [2025-02-23 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542705', 'tblTempVendorCDR_20' ) start [2025-02-23 22:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542705', 'tblTempVendorCDR_20' ) end [2025-02-23 22:08:19] Production.INFO: ProcessCDR(1,14542705,1,1,2) [2025-02-23 22:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542705', 'tblTempUsageDetail_20' ) start [2025-02-23 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542705', 'tblTempUsageDetail_20' ) end [2025-02-23 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:08:22] Production.INFO: ==784== Releasing lock... [2025-02-23 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:08:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:09:06 [end_date_ymd] => 2025-02-23 22:09:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:09:06' and `end` < '2025-02-23 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-02-23 22:09:18] Production.INFO: count ==2660 [2025-02-23 22:09:19] Production.ERROR: pbx CDR StartTime 2025-02-23 19:09:06 - End Time 2025-02-23 22:09:06 [2025-02-23 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542710', 'tblTempUsageDetail_20' ) start [2025-02-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542710', 'tblTempUsageDetail_20' ) end [2025-02-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542710', 'tblTempVendorCDR_20' ) start [2025-02-23 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542710', 'tblTempVendorCDR_20' ) end [2025-02-23 22:09:19] Production.INFO: ProcessCDR(1,14542710,1,1,2) [2025-02-23 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542710', 'tblTempUsageDetail_20' ) start [2025-02-23 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542710', 'tblTempUsageDetail_20' ) end [2025-02-23 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:09:22] Production.INFO: ==859== Releasing lock... [2025-02-23 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:09:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:10:06 [end_date_ymd] => 2025-02-23 22:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:10:06' and `end` < '2025-02-23 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-02-23 22:10:18] Production.INFO: count ==2620 [2025-02-23 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-23 19:10:06 - End Time 2025-02-23 22:10:06 [2025-02-23 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542716', 'tblTempUsageDetail_20' ) start [2025-02-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542716', 'tblTempUsageDetail_20' ) end [2025-02-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542716', 'tblTempVendorCDR_20' ) start [2025-02-23 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542716', 'tblTempVendorCDR_20' ) end [2025-02-23 22:10:19] Production.INFO: ProcessCDR(1,14542716,1,1,2) [2025-02-23 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542716', 'tblTempUsageDetail_20' ) start [2025-02-23 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542716', 'tblTempUsageDetail_20' ) end [2025-02-23 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:10:22] Production.INFO: ==937== Releasing lock... [2025-02-23 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:10:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-23 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:11:05 [end_date_ymd] => 2025-02-23 22:11:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:11:05' and `end` < '2025-02-23 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-02-23 22:11:18] Production.INFO: count ==2547 [2025-02-23 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-23 19:11:05 - End Time 2025-02-23 22:11:05 [2025-02-23 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542721', 'tblTempUsageDetail_20' ) start [2025-02-23 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542721', 'tblTempUsageDetail_20' ) end [2025-02-23 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542721', 'tblTempVendorCDR_20' ) start [2025-02-23 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542721', 'tblTempVendorCDR_20' ) end [2025-02-23 22:11:19] Production.INFO: ProcessCDR(1,14542721,1,1,2) [2025-02-23 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542721', 'tblTempUsageDetail_20' ) start [2025-02-23 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542721', 'tblTempUsageDetail_20' ) end [2025-02-23 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:11:22] Production.INFO: ==1017== Releasing lock... [2025-02-23 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:11:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-23 22:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:12:04 [end_date_ymd] => 2025-02-23 22:12:04 [RateCDR] => 1 ) [2025-02-23 22:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:12:04' and `end` < '2025-02-23 22:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:12:16] Production.INFO: count ==2493 [2025-02-23 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:12:04 - End Time 2025-02-23 22:12:04 [2025-02-23 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542726', 'tblTempUsageDetail_20' ) start [2025-02-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542726', 'tblTempUsageDetail_20' ) end [2025-02-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542726', 'tblTempVendorCDR_20' ) start [2025-02-23 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542726', 'tblTempVendorCDR_20' ) end [2025-02-23 22:12:18] Production.INFO: ProcessCDR(1,14542726,1,1,2) [2025-02-23 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542726', 'tblTempUsageDetail_20' ) start [2025-02-23 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542726', 'tblTempUsageDetail_20' ) end [2025-02-23 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:12:22] Production.INFO: ==1093== Releasing lock... [2025-02-23 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:12:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-23 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:13:05 [end_date_ymd] => 2025-02-23 22:13:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:13:05' and `end` < '2025-02-23 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-02-23 22:13:17] Production.INFO: count ==2422 [2025-02-23 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:13:05 - End Time 2025-02-23 22:13:05 [2025-02-23 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542731', 'tblTempUsageDetail_20' ) start [2025-02-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542731', 'tblTempUsageDetail_20' ) end [2025-02-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542731', 'tblTempVendorCDR_20' ) start [2025-02-23 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542731', 'tblTempVendorCDR_20' ) end [2025-02-23 22:13:18] Production.INFO: ProcessCDR(1,14542731,1,1,2) [2025-02-23 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542731', 'tblTempUsageDetail_20' ) start [2025-02-23 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542731', 'tblTempUsageDetail_20' ) end [2025-02-23 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:13:22] Production.INFO: ==1211== Releasing lock... [2025-02-23 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:13:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-23 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:14:05 [end_date_ymd] => 2025-02-23 22:14:05 [RateCDR] => 1 ) [2025-02-23 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:14:05' and `end` < '2025-02-23 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:14:17] Production.INFO: count ==2349 [2025-02-23 22:14:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:14:05 - End Time 2025-02-23 22:14:05 [2025-02-23 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542736', 'tblTempUsageDetail_20' ) start [2025-02-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542736', 'tblTempUsageDetail_20' ) end [2025-02-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542736', 'tblTempVendorCDR_20' ) start [2025-02-23 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542736', 'tblTempVendorCDR_20' ) end [2025-02-23 22:14:18] Production.INFO: ProcessCDR(1,14542736,1,1,2) [2025-02-23 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542736', 'tblTempUsageDetail_20' ) start [2025-02-23 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542736', 'tblTempUsageDetail_20' ) end [2025-02-23 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:14:21] Production.INFO: ==1304== Releasing lock... [2025-02-23 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:14:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-23 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:15:05 [end_date_ymd] => 2025-02-23 22:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:15:05' and `end` < '2025-02-23 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-02-23 22:15:17] Production.INFO: count ==2284 [2025-02-23 22:15:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:15:05 - End Time 2025-02-23 22:15:05 [2025-02-23 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542741', 'tblTempUsageDetail_20' ) start [2025-02-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542741', 'tblTempUsageDetail_20' ) end [2025-02-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542741', 'tblTempVendorCDR_20' ) start [2025-02-23 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542741', 'tblTempVendorCDR_20' ) end [2025-02-23 22:15:18] Production.INFO: ProcessCDR(1,14542741,1,1,2) [2025-02-23 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542741', 'tblTempUsageDetail_20' ) start [2025-02-23 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542741', 'tblTempUsageDetail_20' ) end [2025-02-23 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:15:21] Production.INFO: ==1379== Releasing lock... [2025-02-23 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:15:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-23 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:16:05 [end_date_ymd] => 2025-02-23 22:16:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:16:05' and `end` < '2025-02-23 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-02-23 22:16:17] Production.INFO: count ==2233 [2025-02-23 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:16:05 - End Time 2025-02-23 22:16:05 [2025-02-23 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542746', 'tblTempUsageDetail_20' ) start [2025-02-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542746', 'tblTempUsageDetail_20' ) end [2025-02-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542746', 'tblTempVendorCDR_20' ) start [2025-02-23 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542746', 'tblTempVendorCDR_20' ) end [2025-02-23 22:16:18] Production.INFO: ProcessCDR(1,14542746,1,1,2) [2025-02-23 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542746', 'tblTempUsageDetail_20' ) start [2025-02-23 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542746', 'tblTempUsageDetail_20' ) end [2025-02-23 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:16:21] Production.INFO: ==1454== Releasing lock... [2025-02-23 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:16:21] Production.INFO: 45 MB #Memory Used# [2025-02-23 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:17:06 [end_date_ymd] => 2025-02-23 22:17:06 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:17:06' and `end` < '2025-02-23 22: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-02-23 22:17:18] Production.INFO: count ==2178 [2025-02-23 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-23 19:17:06 - End Time 2025-02-23 22:17:06 [2025-02-23 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542751', 'tblTempUsageDetail_20' ) start [2025-02-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542751', 'tblTempUsageDetail_20' ) end [2025-02-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542751', 'tblTempVendorCDR_20' ) start [2025-02-23 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542751', 'tblTempVendorCDR_20' ) end [2025-02-23 22:17:19] Production.INFO: ProcessCDR(1,14542751,1,1,2) [2025-02-23 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542751', 'tblTempUsageDetail_20' ) start [2025-02-23 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542751', 'tblTempUsageDetail_20' ) end [2025-02-23 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:17:23] Production.INFO: ==1585== Releasing lock... [2025-02-23 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:17:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:18:05 [end_date_ymd] => 2025-02-23 22:18:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:18:05' and `end` < '2025-02-23 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-02-23 22:18:17] Production.INFO: count ==2117 [2025-02-23 22:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:18:05 - End Time 2025-02-23 22:18:05 [2025-02-23 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542756', 'tblTempUsageDetail_20' ) start [2025-02-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542756', 'tblTempUsageDetail_20' ) end [2025-02-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542756', 'tblTempVendorCDR_20' ) start [2025-02-23 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542756', 'tblTempVendorCDR_20' ) end [2025-02-23 22:18:18] Production.INFO: ProcessCDR(1,14542756,1,1,2) [2025-02-23 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542756', 'tblTempUsageDetail_20' ) start [2025-02-23 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542756', 'tblTempUsageDetail_20' ) end [2025-02-23 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:18:21] Production.INFO: ==1668== Releasing lock... [2025-02-23 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:18:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-23 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:19:05 [end_date_ymd] => 2025-02-23 22:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:19:05' and `end` < '2025-02-23 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-02-23 22:19:17] Production.INFO: count ==2050 [2025-02-23 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:19:05 - End Time 2025-02-23 22:19:05 [2025-02-23 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542761', 'tblTempUsageDetail_20' ) start [2025-02-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542761', 'tblTempUsageDetail_20' ) end [2025-02-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542761', 'tblTempVendorCDR_20' ) start [2025-02-23 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542761', 'tblTempVendorCDR_20' ) end [2025-02-23 22:19:18] Production.INFO: ProcessCDR(1,14542761,1,1,2) [2025-02-23 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542761', 'tblTempUsageDetail_20' ) start [2025-02-23 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542761', 'tblTempUsageDetail_20' ) end [2025-02-23 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:19:21] Production.INFO: ==1745== Releasing lock... [2025-02-23 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:19:21] Production.INFO: 44 MB #Memory Used# [2025-02-23 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:20:05 [end_date_ymd] => 2025-02-23 22:20:05 [RateCDR] => 1 ) [2025-02-23 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:20:05' and `end` < '2025-02-23 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:20:17] Production.INFO: count ==1996 [2025-02-23 22:20:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:20:05 - End Time 2025-02-23 22:20:05 [2025-02-23 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542767', 'tblTempUsageDetail_20' ) start [2025-02-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542767', 'tblTempUsageDetail_20' ) end [2025-02-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542767', 'tblTempVendorCDR_20' ) start [2025-02-23 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542767', 'tblTempVendorCDR_20' ) end [2025-02-23 22:20:18] Production.INFO: ProcessCDR(1,14542767,1,1,2) [2025-02-23 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542767', 'tblTempUsageDetail_20' ) start [2025-02-23 22:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542767', 'tblTempUsageDetail_20' ) end [2025-02-23 22:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:20:21] Production.INFO: ==1827== Releasing lock... [2025-02-23 22:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:20:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-23 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:21:05 [end_date_ymd] => 2025-02-23 22:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:21:05' and `end` < '2025-02-23 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-02-23 22:21:17] Production.INFO: count ==1907 [2025-02-23 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:21:05 - End Time 2025-02-23 22:21:05 [2025-02-23 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542772', 'tblTempUsageDetail_20' ) start [2025-02-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542772', 'tblTempUsageDetail_20' ) end [2025-02-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542772', 'tblTempVendorCDR_20' ) start [2025-02-23 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542772', 'tblTempVendorCDR_20' ) end [2025-02-23 22:21:18] Production.INFO: ProcessCDR(1,14542772,1,1,2) [2025-02-23 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542772', 'tblTempUsageDetail_20' ) start [2025-02-23 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542772', 'tblTempUsageDetail_20' ) end [2025-02-23 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:21:21] Production.INFO: ==1904== Releasing lock... [2025-02-23 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:21:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-23 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:22:06 [end_date_ymd] => 2025-02-23 22:22:06 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:22:06' and `end` < '2025-02-23 22: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-02-23 22:22:18] Production.INFO: count ==1899 [2025-02-23 22:22:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:22:06 - End Time 2025-02-23 22:22:06 [2025-02-23 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542777', 'tblTempUsageDetail_20' ) start [2025-02-23 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542777', 'tblTempUsageDetail_20' ) end [2025-02-23 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542777', 'tblTempVendorCDR_20' ) start [2025-02-23 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542777', 'tblTempVendorCDR_20' ) end [2025-02-23 22:22:19] Production.INFO: ProcessCDR(1,14542777,1,1,2) [2025-02-23 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542777', 'tblTempUsageDetail_20' ) start [2025-02-23 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542777', 'tblTempUsageDetail_20' ) end [2025-02-23 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:22:22] Production.INFO: ==1977== Releasing lock... [2025-02-23 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:22:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-23 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:23:05 [end_date_ymd] => 2025-02-23 22:23:05 [RateCDR] => 1 ) [2025-02-23 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:23:05' and `end` < '2025-02-23 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:23:17] Production.INFO: count ==1862 [2025-02-23 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:23:05 - End Time 2025-02-23 22:23:05 [2025-02-23 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542782', 'tblTempUsageDetail_20' ) start [2025-02-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542782', 'tblTempUsageDetail_20' ) end [2025-02-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542782', 'tblTempVendorCDR_20' ) start [2025-02-23 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542782', 'tblTempVendorCDR_20' ) end [2025-02-23 22:23:18] Production.INFO: ProcessCDR(1,14542782,1,1,2) [2025-02-23 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542782', 'tblTempUsageDetail_20' ) start [2025-02-23 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542782', 'tblTempUsageDetail_20' ) end [2025-02-23 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:23:21] Production.INFO: ==2058== Releasing lock... [2025-02-23 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:23:21] Production.INFO: 42 MB #Memory Used# [2025-02-23 22:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:24:06 [end_date_ymd] => 2025-02-23 22:24:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:24:06' and `end` < '2025-02-23 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-02-23 22:24:18] Production.INFO: count ==1817 [2025-02-23 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:24:06 - End Time 2025-02-23 22:24:06 [2025-02-23 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542787', 'tblTempUsageDetail_20' ) start [2025-02-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542787', 'tblTempUsageDetail_20' ) end [2025-02-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542787', 'tblTempVendorCDR_20' ) start [2025-02-23 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542787', 'tblTempVendorCDR_20' ) end [2025-02-23 22:24:18] Production.INFO: ProcessCDR(1,14542787,1,1,2) [2025-02-23 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542787', 'tblTempUsageDetail_20' ) start [2025-02-23 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542787', 'tblTempUsageDetail_20' ) end [2025-02-23 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:24:22] Production.INFO: ==2134== Releasing lock... [2025-02-23 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:24:22] Production.INFO: 42 MB #Memory Used# [2025-02-23 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:25:05 [end_date_ymd] => 2025-02-23 22:25:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:25:05' and `end` < '2025-02-23 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-02-23 22:25:17] Production.INFO: count ==1776 [2025-02-23 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:25:05 - End Time 2025-02-23 22:25:05 [2025-02-23 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542792', 'tblTempUsageDetail_20' ) start [2025-02-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542792', 'tblTempUsageDetail_20' ) end [2025-02-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542792', 'tblTempVendorCDR_20' ) start [2025-02-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542792', 'tblTempVendorCDR_20' ) end [2025-02-23 22:25:18] Production.INFO: ProcessCDR(1,14542792,1,1,2) [2025-02-23 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542792', 'tblTempUsageDetail_20' ) start [2025-02-23 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542792', 'tblTempUsageDetail_20' ) end [2025-02-23 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:25:21] Production.INFO: ==2213== Releasing lock... [2025-02-23 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:25:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-23 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:26:05 [end_date_ymd] => 2025-02-23 22:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:26:05' and `end` < '2025-02-23 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-02-23 22:26:17] Production.INFO: count ==1738 [2025-02-23 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:26:05 - End Time 2025-02-23 22:26:05 [2025-02-23 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542797', 'tblTempUsageDetail_20' ) start [2025-02-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542797', 'tblTempUsageDetail_20' ) end [2025-02-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542797', 'tblTempVendorCDR_20' ) start [2025-02-23 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542797', 'tblTempVendorCDR_20' ) end [2025-02-23 22:26:18] Production.INFO: ProcessCDR(1,14542797,1,1,2) [2025-02-23 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542797', 'tblTempUsageDetail_20' ) start [2025-02-23 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542797', 'tblTempUsageDetail_20' ) end [2025-02-23 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:26:21] Production.INFO: ==2292== Releasing lock... [2025-02-23 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:26:21] Production.INFO: 41 MB #Memory Used# [2025-02-23 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:27:05 [end_date_ymd] => 2025-02-23 22:27:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:27:05' and `end` < '2025-02-23 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-02-23 22:27:17] Production.INFO: count ==1698 [2025-02-23 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:27:05 - End Time 2025-02-23 22:27:05 [2025-02-23 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542802', 'tblTempUsageDetail_20' ) start [2025-02-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542802', 'tblTempUsageDetail_20' ) end [2025-02-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542802', 'tblTempVendorCDR_20' ) start [2025-02-23 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542802', 'tblTempVendorCDR_20' ) end [2025-02-23 22:27:18] Production.INFO: ProcessCDR(1,14542802,1,1,2) [2025-02-23 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542802', 'tblTempUsageDetail_20' ) start [2025-02-23 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542802', 'tblTempUsageDetail_20' ) end [2025-02-23 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:27:21] Production.INFO: ==2364== Releasing lock... [2025-02-23 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:27:21] Production.INFO: 41 MB #Memory Used# [2025-02-23 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:28:05 [end_date_ymd] => 2025-02-23 22:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:28:05' and `end` < '2025-02-23 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-02-23 22:28:17] Production.INFO: count ==1666 [2025-02-23 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:28:05 - End Time 2025-02-23 22:28:05 [2025-02-23 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542807', 'tblTempUsageDetail_20' ) start [2025-02-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542807', 'tblTempUsageDetail_20' ) end [2025-02-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542807', 'tblTempVendorCDR_20' ) start [2025-02-23 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542807', 'tblTempVendorCDR_20' ) end [2025-02-23 22:28:18] Production.INFO: ProcessCDR(1,14542807,1,1,2) [2025-02-23 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542807', 'tblTempUsageDetail_20' ) start [2025-02-23 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542807', 'tblTempUsageDetail_20' ) end [2025-02-23 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:28:23] Production.INFO: ==2441== Releasing lock... [2025-02-23 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:28:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-23 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:29:05 [end_date_ymd] => 2025-02-23 22:29:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:29:05' and `end` < '2025-02-23 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-02-23 22:29:17] Production.INFO: count ==1631 [2025-02-23 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:29:05 - End Time 2025-02-23 22:29:05 [2025-02-23 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542812', 'tblTempUsageDetail_20' ) start [2025-02-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542812', 'tblTempUsageDetail_20' ) end [2025-02-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542812', 'tblTempVendorCDR_20' ) start [2025-02-23 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542812', 'tblTempVendorCDR_20' ) end [2025-02-23 22:29:18] Production.INFO: ProcessCDR(1,14542812,1,1,2) [2025-02-23 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542812', 'tblTempUsageDetail_20' ) start [2025-02-23 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542812', 'tblTempUsageDetail_20' ) end [2025-02-23 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:29:21] Production.INFO: ==2554== Releasing lock... [2025-02-23 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:29:21] Production.INFO: 40.25 MB #Memory Used# [2025-02-23 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:30:06 [end_date_ymd] => 2025-02-23 22:30:06 [RateCDR] => 1 ) [2025-02-23 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:30:06' and `end` < '2025-02-23 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:30:18] Production.INFO: count ==1593 [2025-02-23 22:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:30:06 - End Time 2025-02-23 22:30:06 [2025-02-23 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542817', 'tblTempUsageDetail_20' ) start [2025-02-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542817', 'tblTempUsageDetail_20' ) end [2025-02-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542817', 'tblTempVendorCDR_20' ) start [2025-02-23 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542817', 'tblTempVendorCDR_20' ) end [2025-02-23 22:30:19] Production.INFO: ProcessCDR(1,14542817,1,1,2) [2025-02-23 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542817', 'tblTempUsageDetail_20' ) start [2025-02-23 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542817', 'tblTempUsageDetail_20' ) end [2025-02-23 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:30:22] Production.INFO: ==2632== Releasing lock... [2025-02-23 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:30:22] Production.INFO: 40 MB #Memory Used# [2025-02-23 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:31:04 [end_date_ymd] => 2025-02-23 22:31:04 [RateCDR] => 1 ) [2025-02-23 22:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:31:04' and `end` < '2025-02-23 22:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:31:16] Production.INFO: count ==1534 [2025-02-23 22:31:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:31:04 - End Time 2025-02-23 22:31:04 [2025-02-23 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542823', 'tblTempUsageDetail_20' ) start [2025-02-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542823', 'tblTempUsageDetail_20' ) end [2025-02-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542823', 'tblTempVendorCDR_20' ) start [2025-02-23 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542823', 'tblTempVendorCDR_20' ) end [2025-02-23 22:31:17] Production.INFO: ProcessCDR(1,14542823,1,1,2) [2025-02-23 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542823', 'tblTempUsageDetail_20' ) start [2025-02-23 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542823', 'tblTempUsageDetail_20' ) end [2025-02-23 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:31:20] Production.INFO: ==2711== Releasing lock... [2025-02-23 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:31:20] Production.INFO: 39.75 MB #Memory Used# [2025-02-23 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:32:05 [end_date_ymd] => 2025-02-23 22:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:32:05' and `end` < '2025-02-23 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-02-23 22:32:17] Production.INFO: count ==1503 [2025-02-23 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:32:05 - End Time 2025-02-23 22:32:05 [2025-02-23 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542828', 'tblTempUsageDetail_20' ) start [2025-02-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542828', 'tblTempUsageDetail_20' ) end [2025-02-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542828', 'tblTempVendorCDR_20' ) start [2025-02-23 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542828', 'tblTempVendorCDR_20' ) end [2025-02-23 22:32:18] Production.INFO: ProcessCDR(1,14542828,1,1,2) [2025-02-23 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542828', 'tblTempUsageDetail_20' ) start [2025-02-23 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542828', 'tblTempUsageDetail_20' ) end [2025-02-23 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:32:21] Production.INFO: ==2787== Releasing lock... [2025-02-23 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:32:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-23 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:33:05 [end_date_ymd] => 2025-02-23 22:33:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:33:05' and `end` < '2025-02-23 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-02-23 22:33:17] Production.INFO: count ==1472 [2025-02-23 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:33:05 - End Time 2025-02-23 22:33:05 [2025-02-23 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542833', 'tblTempUsageDetail_20' ) start [2025-02-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542833', 'tblTempUsageDetail_20' ) end [2025-02-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542833', 'tblTempVendorCDR_20' ) start [2025-02-23 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542833', 'tblTempVendorCDR_20' ) end [2025-02-23 22:33:18] Production.INFO: ProcessCDR(1,14542833,1,1,2) [2025-02-23 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542833', 'tblTempUsageDetail_20' ) start [2025-02-23 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542833', 'tblTempUsageDetail_20' ) end [2025-02-23 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:33:22] Production.INFO: ==2860== Releasing lock... [2025-02-23 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:33:22] Production.INFO: 39 MB #Memory Used# [2025-02-23 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:34:05 [end_date_ymd] => 2025-02-23 22:34:05 [RateCDR] => 1 ) [2025-02-23 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:34:05' and `end` < '2025-02-23 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:34:17] Production.INFO: count ==1445 [2025-02-23 22:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:34:05 - End Time 2025-02-23 22:34:05 [2025-02-23 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542838', 'tblTempUsageDetail_20' ) start [2025-02-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542838', 'tblTempUsageDetail_20' ) end [2025-02-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542838', 'tblTempVendorCDR_20' ) start [2025-02-23 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542838', 'tblTempVendorCDR_20' ) end [2025-02-23 22:34:18] Production.INFO: ProcessCDR(1,14542838,1,1,2) [2025-02-23 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542838', 'tblTempUsageDetail_20' ) start [2025-02-23 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542838', 'tblTempUsageDetail_20' ) end [2025-02-23 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:34:22] Production.INFO: ==2935== Releasing lock... [2025-02-23 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:34:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-23 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:35:05 [end_date_ymd] => 2025-02-23 22:35:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:35:05' and `end` < '2025-02-23 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-02-23 22:35:17] Production.INFO: count ==1412 [2025-02-23 22:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:35:05 - End Time 2025-02-23 22:35:05 [2025-02-23 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542843', 'tblTempUsageDetail_20' ) start [2025-02-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542843', 'tblTempUsageDetail_20' ) end [2025-02-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542843', 'tblTempVendorCDR_20' ) start [2025-02-23 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542843', 'tblTempVendorCDR_20' ) end [2025-02-23 22:35:17] Production.INFO: ProcessCDR(1,14542843,1,1,2) [2025-02-23 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542843', 'tblTempUsageDetail_20' ) start [2025-02-23 22:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542843', 'tblTempUsageDetail_20' ) end [2025-02-23 22:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:35:20] Production.INFO: ==3011== Releasing lock... [2025-02-23 22:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:35:20] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:36:05 [end_date_ymd] => 2025-02-23 22:36:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:36:05' and `end` < '2025-02-23 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-02-23 22:36:17] Production.INFO: count ==1378 [2025-02-23 22:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:36:05 - End Time 2025-02-23 22:36:05 [2025-02-23 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542848', 'tblTempUsageDetail_20' ) start [2025-02-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542848', 'tblTempUsageDetail_20' ) end [2025-02-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542848', 'tblTempVendorCDR_20' ) start [2025-02-23 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542848', 'tblTempVendorCDR_20' ) end [2025-02-23 22:36:17] Production.INFO: ProcessCDR(1,14542848,1,1,2) [2025-02-23 22:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542848', 'tblTempUsageDetail_20' ) start [2025-02-23 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542848', 'tblTempUsageDetail_20' ) end [2025-02-23 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:36:21] Production.INFO: ==3089== Releasing lock... [2025-02-23 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:36:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:37:04 [end_date_ymd] => 2025-02-23 22:37:04 [RateCDR] => 1 ) [2025-02-23 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:37:04' and `end` < '2025-02-23 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:37:16] Production.INFO: count ==1346 [2025-02-23 22:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:37:04 - End Time 2025-02-23 22:37:04 [2025-02-23 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542853', 'tblTempUsageDetail_20' ) start [2025-02-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542853', 'tblTempUsageDetail_20' ) end [2025-02-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542853', 'tblTempVendorCDR_20' ) start [2025-02-23 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542853', 'tblTempVendorCDR_20' ) end [2025-02-23 22:37:17] Production.INFO: ProcessCDR(1,14542853,1,1,2) [2025-02-23 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542853', 'tblTempUsageDetail_20' ) start [2025-02-23 22:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542853', 'tblTempUsageDetail_20' ) end [2025-02-23 22:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:37:20] Production.INFO: ==3172== Releasing lock... [2025-02-23 22:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:37:20] Production.INFO: 38 MB #Memory Used# [2025-02-23 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:38:05 [end_date_ymd] => 2025-02-23 22:38:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:38:05' and `end` < '2025-02-23 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-02-23 22:38:17] Production.INFO: count ==1347 [2025-02-23 22:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:38:05 - End Time 2025-02-23 22:38:05 [2025-02-23 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542858', 'tblTempUsageDetail_20' ) start [2025-02-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542858', 'tblTempUsageDetail_20' ) end [2025-02-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542858', 'tblTempVendorCDR_20' ) start [2025-02-23 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542858', 'tblTempVendorCDR_20' ) end [2025-02-23 22:38:17] Production.INFO: ProcessCDR(1,14542858,1,1,2) [2025-02-23 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542858', 'tblTempUsageDetail_20' ) start [2025-02-23 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542858', 'tblTempUsageDetail_20' ) end [2025-02-23 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:38:21] Production.INFO: ==3245== Releasing lock... [2025-02-23 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:38:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:39:06 [end_date_ymd] => 2025-02-23 22:39:06 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:39:06' and `end` < '2025-02-23 22: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-02-23 22:39:17] Production.INFO: count ==1349 [2025-02-23 22:39:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:39:06 - End Time 2025-02-23 22:39:06 [2025-02-23 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542863', 'tblTempUsageDetail_20' ) start [2025-02-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542863', 'tblTempUsageDetail_20' ) end [2025-02-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542863', 'tblTempVendorCDR_20' ) start [2025-02-23 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542863', 'tblTempVendorCDR_20' ) end [2025-02-23 22:39:18] Production.INFO: ProcessCDR(1,14542863,1,1,2) [2025-02-23 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542863', 'tblTempUsageDetail_20' ) start [2025-02-23 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542863', 'tblTempUsageDetail_20' ) end [2025-02-23 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:39:21] Production.INFO: ==3322== Releasing lock... [2025-02-23 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:39:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:40:06 [end_date_ymd] => 2025-02-23 22:40:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:40:06' and `end` < '2025-02-23 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-02-23 22:40:18] Production.INFO: count ==1358 [2025-02-23 22:40:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:40:06 - End Time 2025-02-23 22:40:06 [2025-02-23 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542869', 'tblTempUsageDetail_20' ) start [2025-02-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542869', 'tblTempUsageDetail_20' ) end [2025-02-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542869', 'tblTempVendorCDR_20' ) start [2025-02-23 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542869', 'tblTempVendorCDR_20' ) end [2025-02-23 22:40:18] Production.INFO: ProcessCDR(1,14542869,1,1,2) [2025-02-23 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542869', 'tblTempUsageDetail_20' ) start [2025-02-23 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542869', 'tblTempUsageDetail_20' ) end [2025-02-23 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:40:22] Production.INFO: ==3399== Releasing lock... [2025-02-23 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:40:22] Production.INFO: 38 MB #Memory Used# [2025-02-23 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:41:05 [end_date_ymd] => 2025-02-23 22:41:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:41:05' and `end` < '2025-02-23 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-02-23 22:41:17] Production.INFO: count ==1345 [2025-02-23 22:41:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:41:05 - End Time 2025-02-23 22:41:05 [2025-02-23 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542874', 'tblTempUsageDetail_20' ) start [2025-02-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542874', 'tblTempUsageDetail_20' ) end [2025-02-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542874', 'tblTempVendorCDR_20' ) start [2025-02-23 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542874', 'tblTempVendorCDR_20' ) end [2025-02-23 22:41:17] Production.INFO: ProcessCDR(1,14542874,1,1,2) [2025-02-23 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542874', 'tblTempUsageDetail_20' ) start [2025-02-23 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542874', 'tblTempUsageDetail_20' ) end [2025-02-23 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:41:21] Production.INFO: ==3479== Releasing lock... [2025-02-23 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:41:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:42:04 [end_date_ymd] => 2025-02-23 22:42:04 [RateCDR] => 1 ) [2025-02-23 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:42:04' and `end` < '2025-02-23 22:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:42:16] Production.INFO: count ==1346 [2025-02-23 22:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:42:04 - End Time 2025-02-23 22:42:04 [2025-02-23 22:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542879', 'tblTempUsageDetail_20' ) start [2025-02-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542879', 'tblTempUsageDetail_20' ) end [2025-02-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542879', 'tblTempVendorCDR_20' ) start [2025-02-23 22:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542879', 'tblTempVendorCDR_20' ) end [2025-02-23 22:42:17] Production.INFO: ProcessCDR(1,14542879,1,1,2) [2025-02-23 22:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542879', 'tblTempUsageDetail_20' ) start [2025-02-23 22:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542879', 'tblTempUsageDetail_20' ) end [2025-02-23 22:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:42:20] Production.INFO: ==3554== Releasing lock... [2025-02-23 22:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:42:20] Production.INFO: 38 MB #Memory Used# [2025-02-23 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:43:05 [end_date_ymd] => 2025-02-23 22:43:05 [RateCDR] => 1 ) [2025-02-23 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:43:05' and `end` < '2025-02-23 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:43:17] Production.INFO: count ==1346 [2025-02-23 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:43:05 - End Time 2025-02-23 22:43:05 [2025-02-23 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542884', 'tblTempUsageDetail_20' ) start [2025-02-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542884', 'tblTempUsageDetail_20' ) end [2025-02-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542884', 'tblTempVendorCDR_20' ) start [2025-02-23 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542884', 'tblTempVendorCDR_20' ) end [2025-02-23 22:43:18] Production.INFO: ProcessCDR(1,14542884,1,1,2) [2025-02-23 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542884', 'tblTempUsageDetail_20' ) start [2025-02-23 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542884', 'tblTempUsageDetail_20' ) end [2025-02-23 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:43:21] Production.INFO: ==3627== Releasing lock... [2025-02-23 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:43:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-23 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:44:05 [end_date_ymd] => 2025-02-23 22:44:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:44:05' and `end` < '2025-02-23 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-02-23 22:44:17] Production.INFO: count ==1345 [2025-02-23 22:44:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:44:05 - End Time 2025-02-23 22:44:05 [2025-02-23 22:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542889', 'tblTempUsageDetail_20' ) start [2025-02-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542889', 'tblTempUsageDetail_20' ) end [2025-02-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542889', 'tblTempVendorCDR_20' ) start [2025-02-23 22:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542889', 'tblTempVendorCDR_20' ) end [2025-02-23 22:44:17] Production.INFO: ProcessCDR(1,14542889,1,1,2) [2025-02-23 22:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542889', 'tblTempUsageDetail_20' ) start [2025-02-23 22:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542889', 'tblTempUsageDetail_20' ) end [2025-02-23 22:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:44:20] Production.INFO: ==3738== Releasing lock... [2025-02-23 22:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:44:20] Production.INFO: 38.25 MB #Memory Used# [2025-02-23 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:45:05 [end_date_ymd] => 2025-02-23 22:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:45:05' and `end` < '2025-02-23 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-02-23 22:45:17] Production.INFO: count ==1344 [2025-02-23 22:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:45:05 - End Time 2025-02-23 22:45:05 [2025-02-23 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542894', 'tblTempUsageDetail_20' ) start [2025-02-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542894', 'tblTempUsageDetail_20' ) end [2025-02-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542894', 'tblTempVendorCDR_20' ) start [2025-02-23 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542894', 'tblTempVendorCDR_20' ) end [2025-02-23 22:45:17] Production.INFO: ProcessCDR(1,14542894,1,1,2) [2025-02-23 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542894', 'tblTempUsageDetail_20' ) start [2025-02-23 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542894', 'tblTempUsageDetail_20' ) end [2025-02-23 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:45:21] Production.INFO: ==3815== Releasing lock... [2025-02-23 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:45:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:46:05 [end_date_ymd] => 2025-02-23 22:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:46:05' and `end` < '2025-02-23 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-02-23 22:46:17] Production.INFO: count ==1320 [2025-02-23 22:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:46:05 - End Time 2025-02-23 22:46:05 [2025-02-23 22:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542899', 'tblTempUsageDetail_20' ) start [2025-02-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542899', 'tblTempUsageDetail_20' ) end [2025-02-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542899', 'tblTempVendorCDR_20' ) start [2025-02-23 22:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542899', 'tblTempVendorCDR_20' ) end [2025-02-23 22:46:17] Production.INFO: ProcessCDR(1,14542899,1,1,2) [2025-02-23 22:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542899', 'tblTempUsageDetail_20' ) start [2025-02-23 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542899', 'tblTempUsageDetail_20' ) end [2025-02-23 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:46:21] Production.INFO: ==3889== Releasing lock... [2025-02-23 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:46:21] Production.INFO: 38 MB #Memory Used# [2025-02-23 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:47:05 [end_date_ymd] => 2025-02-23 22:47:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:47:05' and `end` < '2025-02-23 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-02-23 22:47:17] Production.INFO: count ==1288 [2025-02-23 22:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:47:05 - End Time 2025-02-23 22:47:05 [2025-02-23 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542904', 'tblTempUsageDetail_20' ) start [2025-02-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542904', 'tblTempUsageDetail_20' ) end [2025-02-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542904', 'tblTempVendorCDR_20' ) start [2025-02-23 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542904', 'tblTempVendorCDR_20' ) end [2025-02-23 22:47:18] Production.INFO: ProcessCDR(1,14542904,1,1,2) [2025-02-23 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542904', 'tblTempUsageDetail_20' ) start [2025-02-23 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542904', 'tblTempUsageDetail_20' ) end [2025-02-23 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:47:21] Production.INFO: ==3960== Releasing lock... [2025-02-23 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:47:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-23 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:48:04 [end_date_ymd] => 2025-02-23 22:48:04 [RateCDR] => 1 ) [2025-02-23 22:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:48:04' and `end` < '2025-02-23 22:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:48:16] Production.INFO: count ==1256 [2025-02-23 22:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:48:04 - End Time 2025-02-23 22:48:04 [2025-02-23 22:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542909', 'tblTempUsageDetail_20' ) start [2025-02-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542909', 'tblTempUsageDetail_20' ) end [2025-02-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542909', 'tblTempVendorCDR_20' ) start [2025-02-23 22:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542909', 'tblTempVendorCDR_20' ) end [2025-02-23 22:48:17] Production.INFO: ProcessCDR(1,14542909,1,1,2) [2025-02-23 22:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542909', 'tblTempUsageDetail_20' ) start [2025-02-23 22:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542909', 'tblTempUsageDetail_20' ) end [2025-02-23 22:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:48:20] Production.INFO: ==4037== Releasing lock... [2025-02-23 22:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:48:20] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:49:05 [end_date_ymd] => 2025-02-23 22:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:49:05' and `end` < '2025-02-23 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-02-23 22:49:17] Production.INFO: count ==1224 [2025-02-23 22:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:49:05 - End Time 2025-02-23 22:49:05 [2025-02-23 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542914', 'tblTempUsageDetail_20' ) start [2025-02-23 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542914', 'tblTempUsageDetail_20' ) end [2025-02-23 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542914', 'tblTempVendorCDR_20' ) start [2025-02-23 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542914', 'tblTempVendorCDR_20' ) end [2025-02-23 22:49:17] Production.INFO: ProcessCDR(1,14542914,1,1,2) [2025-02-23 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542914', 'tblTempUsageDetail_20' ) start [2025-02-23 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542914', 'tblTempUsageDetail_20' ) end [2025-02-23 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:49:21] Production.INFO: ==4114== Releasing lock... [2025-02-23 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:49:21] Production.INFO: 37.5 MB #Memory Used# [2025-02-23 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:50:05 [end_date_ymd] => 2025-02-23 22:50:05 [RateCDR] => 1 ) [2025-02-23 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:50:05' and `end` < '2025-02-23 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:50:17] Production.INFO: count ==1195 [2025-02-23 22:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:50:05 - End Time 2025-02-23 22:50:05 [2025-02-23 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542920', 'tblTempUsageDetail_20' ) start [2025-02-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542920', 'tblTempUsageDetail_20' ) end [2025-02-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542920', 'tblTempVendorCDR_20' ) start [2025-02-23 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542920', 'tblTempVendorCDR_20' ) end [2025-02-23 22:50:18] Production.INFO: ProcessCDR(1,14542920,1,1,2) [2025-02-23 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542920', 'tblTempUsageDetail_20' ) start [2025-02-23 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542920', 'tblTempUsageDetail_20' ) end [2025-02-23 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:50:21] Production.INFO: ==4190== Releasing lock... [2025-02-23 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:50:21] Production.INFO: 37 MB #Memory Used# [2025-02-23 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:51:05 [end_date_ymd] => 2025-02-23 22:51:05 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:51:05' and `end` < '2025-02-23 22: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-02-23 22:51:17] Production.INFO: count ==1143 [2025-02-23 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:51:05 - End Time 2025-02-23 22:51:05 [2025-02-23 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542925', 'tblTempUsageDetail_20' ) start [2025-02-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542925', 'tblTempUsageDetail_20' ) end [2025-02-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542925', 'tblTempVendorCDR_20' ) start [2025-02-23 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542925', 'tblTempVendorCDR_20' ) end [2025-02-23 22:51:18] Production.INFO: ProcessCDR(1,14542925,1,1,2) [2025-02-23 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542925', 'tblTempUsageDetail_20' ) start [2025-02-23 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542925', 'tblTempUsageDetail_20' ) end [2025-02-23 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:51:21] Production.INFO: ==4268== Releasing lock... [2025-02-23 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-23 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:52:06 [end_date_ymd] => 2025-02-23 22:52:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:52:06' and `end` < '2025-02-23 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-02-23 22:52:18] Production.INFO: count ==1115 [2025-02-23 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:52:06 - End Time 2025-02-23 22:52:06 [2025-02-23 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542930', 'tblTempUsageDetail_20' ) start [2025-02-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542930', 'tblTempUsageDetail_20' ) end [2025-02-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542930', 'tblTempVendorCDR_20' ) start [2025-02-23 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542930', 'tblTempVendorCDR_20' ) end [2025-02-23 22:52:18] Production.INFO: ProcessCDR(1,14542930,1,1,2) [2025-02-23 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542930', 'tblTempUsageDetail_20' ) start [2025-02-23 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542930', 'tblTempUsageDetail_20' ) end [2025-02-23 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:52:21] Production.INFO: ==4341== Releasing lock... [2025-02-23 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:52:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-23 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:53:05 [end_date_ymd] => 2025-02-23 22:53:05 [RateCDR] => 1 ) [2025-02-23 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 19:53:05' and `end` < '2025-02-23 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 22:53:17] Production.INFO: count ==1085 [2025-02-23 22:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:53:05 - End Time 2025-02-23 22:53:05 [2025-02-23 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542935', 'tblTempUsageDetail_20' ) start [2025-02-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542935', 'tblTempUsageDetail_20' ) end [2025-02-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542935', 'tblTempVendorCDR_20' ) start [2025-02-23 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542935', 'tblTempVendorCDR_20' ) end [2025-02-23 22:53:17] Production.INFO: ProcessCDR(1,14542935,1,1,2) [2025-02-23 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542935', 'tblTempUsageDetail_20' ) start [2025-02-23 22:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542935', 'tblTempUsageDetail_20' ) end [2025-02-23 22:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:53:20] Production.INFO: ==4420== Releasing lock... [2025-02-23 22:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:53:20] Production.INFO: 36.5 MB #Memory Used# [2025-02-23 22:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:54:06 [end_date_ymd] => 2025-02-23 22:54:06 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:54:06' and `end` < '2025-02-23 22: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-02-23 22:54:18] Production.INFO: count ==1054 [2025-02-23 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:54:06 - End Time 2025-02-23 22:54:06 [2025-02-23 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542940', 'tblTempUsageDetail_20' ) start [2025-02-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542940', 'tblTempUsageDetail_20' ) end [2025-02-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542940', 'tblTempVendorCDR_20' ) start [2025-02-23 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542940', 'tblTempVendorCDR_20' ) end [2025-02-23 22:54:18] Production.INFO: ProcessCDR(1,14542940,1,1,2) [2025-02-23 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542940', 'tblTempUsageDetail_20' ) start [2025-02-23 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542940', 'tblTempUsageDetail_20' ) end [2025-02-23 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:54:21] Production.INFO: ==4500== Releasing lock... [2025-02-23 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:54:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-23 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:55:05 [end_date_ymd] => 2025-02-23 22:55:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:55:05' and `end` < '2025-02-23 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-02-23 22:55:17] Production.INFO: count ==1026 [2025-02-23 22:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:55:05 - End Time 2025-02-23 22:55:05 [2025-02-23 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542945', 'tblTempUsageDetail_20' ) start [2025-02-23 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542945', 'tblTempUsageDetail_20' ) end [2025-02-23 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542945', 'tblTempVendorCDR_20' ) start [2025-02-23 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542945', 'tblTempVendorCDR_20' ) end [2025-02-23 22:55:17] Production.INFO: ProcessCDR(1,14542945,1,1,2) [2025-02-23 22:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542945', 'tblTempUsageDetail_20' ) start [2025-02-23 22:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542945', 'tblTempUsageDetail_20' ) end [2025-02-23 22:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:55:20] Production.INFO: ==4578== Releasing lock... [2025-02-23 22:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:55:20] Production.INFO: 36.25 MB #Memory Used# [2025-02-23 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:56:05 [end_date_ymd] => 2025-02-23 22:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:56:05' and `end` < '2025-02-23 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-02-23 22:56:17] Production.INFO: count ==1003 [2025-02-23 22:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:56:05 - End Time 2025-02-23 22:56:05 [2025-02-23 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542950', 'tblTempUsageDetail_20' ) start [2025-02-23 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542950', 'tblTempUsageDetail_20' ) end [2025-02-23 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542950', 'tblTempVendorCDR_20' ) start [2025-02-23 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542950', 'tblTempVendorCDR_20' ) end [2025-02-23 22:56:17] Production.INFO: ProcessCDR(1,14542950,1,1,2) [2025-02-23 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542950', 'tblTempUsageDetail_20' ) start [2025-02-23 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542950', 'tblTempUsageDetail_20' ) end [2025-02-23 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:56:21] Production.INFO: ==4663== Releasing lock... [2025-02-23 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:57:05 [end_date_ymd] => 2025-02-23 22:57:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:57:05' and `end` < '2025-02-23 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-02-23 22:57:17] Production.INFO: count ==974 [2025-02-23 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:57:05 - End Time 2025-02-23 22:57:05 [2025-02-23 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542955', 'tblTempUsageDetail_20' ) start [2025-02-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542955', 'tblTempUsageDetail_20' ) end [2025-02-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542955', 'tblTempVendorCDR_20' ) start [2025-02-23 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542955', 'tblTempVendorCDR_20' ) end [2025-02-23 22:57:18] Production.INFO: ProcessCDR(1,14542955,1,1,2) [2025-02-23 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542955', 'tblTempUsageDetail_20' ) start [2025-02-23 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542955', 'tblTempUsageDetail_20' ) end [2025-02-23 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:57:21] Production.INFO: ==4732== Releasing lock... [2025-02-23 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:57:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 22:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:58:06 [end_date_ymd] => 2025-02-23 22:58:06 [RateCDR] => 1 ) [2025-02-23 22: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-02-23 19:58:06' and `end` < '2025-02-23 22: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-02-23 22:58:17] Production.INFO: count ==978 [2025-02-23 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-23 19:58:06 - End Time 2025-02-23 22:58:06 [2025-02-23 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542960', 'tblTempUsageDetail_20' ) start [2025-02-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542960', 'tblTempUsageDetail_20' ) end [2025-02-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542960', 'tblTempVendorCDR_20' ) start [2025-02-23 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542960', 'tblTempVendorCDR_20' ) end [2025-02-23 22:58:18] Production.INFO: ProcessCDR(1,14542960,1,1,2) [2025-02-23 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542960', 'tblTempUsageDetail_20' ) start [2025-02-23 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542960', 'tblTempUsageDetail_20' ) end [2025-02-23 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:58:22] Production.INFO: ==4806== Releasing lock... [2025-02-23 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:58:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 19:59:05 [end_date_ymd] => 2025-02-23 22:59:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 19:59:05' and `end` < '2025-02-23 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-02-23 22:59:17] Production.INFO: count ==977 [2025-02-23 22:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 19:59:05 - End Time 2025-02-23 22:59:05 [2025-02-23 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542965', 'tblTempUsageDetail_20' ) start [2025-02-23 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542965', 'tblTempUsageDetail_20' ) end [2025-02-23 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542965', 'tblTempVendorCDR_20' ) start [2025-02-23 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542965', 'tblTempVendorCDR_20' ) end [2025-02-23 22:59:17] Production.INFO: ProcessCDR(1,14542965,1,1,2) [2025-02-23 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542965', 'tblTempUsageDetail_20' ) start [2025-02-23 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542965', 'tblTempUsageDetail_20' ) end [2025-02-23 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 22:59:20] Production.INFO: ==4921== Releasing lock... [2025-02-23 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 22:59:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:00:06 [end_date_ymd] => 2025-02-23 23:00:06 [RateCDR] => 1 ) [2025-02-23 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:00:06' and `end` < '2025-02-23 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:00:18] Production.INFO: count ==971 [2025-02-23 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-23 20:00:06 - End Time 2025-02-23 23:00:06 [2025-02-23 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542971', 'tblTempUsageDetail_20' ) start [2025-02-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542971', 'tblTempUsageDetail_20' ) end [2025-02-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542971', 'tblTempVendorCDR_20' ) start [2025-02-23 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542971', 'tblTempVendorCDR_20' ) end [2025-02-23 23:00:19] Production.INFO: ProcessCDR(1,14542971,1,1,2) [2025-02-23 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542971', 'tblTempUsageDetail_20' ) start [2025-02-23 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542971', 'tblTempUsageDetail_20' ) end [2025-02-23 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:00:22] Production.INFO: ==5001== Releasing lock... [2025-02-23 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:00:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:01:05 [end_date_ymd] => 2025-02-23 23:01:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:01:05' and `end` < '2025-02-23 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-02-23 23:01:17] Production.INFO: count ==939 [2025-02-23 23:01:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:01:05 - End Time 2025-02-23 23:01:05 [2025-02-23 23:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542976', 'tblTempUsageDetail_20' ) start [2025-02-23 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542976', 'tblTempUsageDetail_20' ) end [2025-02-23 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542976', 'tblTempVendorCDR_20' ) start [2025-02-23 23:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542976', 'tblTempVendorCDR_20' ) end [2025-02-23 23:01:17] Production.INFO: ProcessCDR(1,14542976,1,1,2) [2025-02-23 23:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542976', 'tblTempUsageDetail_20' ) start [2025-02-23 23:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542976', 'tblTempUsageDetail_20' ) end [2025-02-23 23:01:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:01:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:01:20] Production.INFO: ==5087== Releasing lock... [2025-02-23 23:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:01:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:02:05 [end_date_ymd] => 2025-02-23 23:02:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:02:05' and `end` < '2025-02-23 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-02-23 23:02:17] Production.INFO: count ==939 [2025-02-23 23:02:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:02:05 - End Time 2025-02-23 23:02:05 [2025-02-23 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542981', 'tblTempUsageDetail_20' ) start [2025-02-23 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542981', 'tblTempUsageDetail_20' ) end [2025-02-23 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542981', 'tblTempVendorCDR_20' ) start [2025-02-23 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542981', 'tblTempVendorCDR_20' ) end [2025-02-23 23:02:17] Production.INFO: ProcessCDR(1,14542981,1,1,2) [2025-02-23 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542981', 'tblTempUsageDetail_20' ) start [2025-02-23 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542981', 'tblTempUsageDetail_20' ) end [2025-02-23 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:02:21] Production.INFO: ==5240== Releasing lock... [2025-02-23 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:02:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:03:05 [end_date_ymd] => 2025-02-23 23:03:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:03:05' and `end` < '2025-02-23 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-02-23 23:03:17] Production.INFO: count ==939 [2025-02-23 23:03:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:03:05 - End Time 2025-02-23 23:03:05 [2025-02-23 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542986', 'tblTempUsageDetail_20' ) start [2025-02-23 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542986', 'tblTempUsageDetail_20' ) end [2025-02-23 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542986', 'tblTempVendorCDR_20' ) start [2025-02-23 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542986', 'tblTempVendorCDR_20' ) end [2025-02-23 23:03:17] Production.INFO: ProcessCDR(1,14542986,1,1,2) [2025-02-23 23:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542986', 'tblTempUsageDetail_20' ) start [2025-02-23 23:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542986', 'tblTempUsageDetail_20' ) end [2025-02-23 23:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:03:20] Production.INFO: ==5312== Releasing lock... [2025-02-23 23:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:03:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:04:06 [end_date_ymd] => 2025-02-23 23:04:06 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:04:06' and `end` < '2025-02-23 23: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-02-23 23:04:17] Production.INFO: count ==941 [2025-02-23 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:04:06 - End Time 2025-02-23 23:04:06 [2025-02-23 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542991', 'tblTempUsageDetail_20' ) start [2025-02-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542991', 'tblTempUsageDetail_20' ) end [2025-02-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542991', 'tblTempVendorCDR_20' ) start [2025-02-23 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542991', 'tblTempVendorCDR_20' ) end [2025-02-23 23:04:18] Production.INFO: ProcessCDR(1,14542991,1,1,2) [2025-02-23 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542991', 'tblTempUsageDetail_20' ) start [2025-02-23 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542991', 'tblTempUsageDetail_20' ) end [2025-02-23 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:04:21] Production.INFO: ==5388== Releasing lock... [2025-02-23 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:04:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:05:05 [end_date_ymd] => 2025-02-23 23:05:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:05:05' and `end` < '2025-02-23 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-02-23 23:05:17] Production.INFO: count ==941 [2025-02-23 23:05:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:05:05 - End Time 2025-02-23 23:05:05 [2025-02-23 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542996', 'tblTempUsageDetail_20' ) start [2025-02-23 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14542996', 'tblTempUsageDetail_20' ) end [2025-02-23 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542996', 'tblTempVendorCDR_20' ) start [2025-02-23 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14542996', 'tblTempVendorCDR_20' ) end [2025-02-23 23:05:17] Production.INFO: ProcessCDR(1,14542996,1,1,2) [2025-02-23 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14542996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14542996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14542996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14542996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542996', 'tblTempUsageDetail_20' ) start [2025-02-23 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14542996', 'tblTempUsageDetail_20' ) end [2025-02-23 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:05:20] Production.INFO: ==5540== Releasing lock... [2025-02-23 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:05:20] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:06:05 [end_date_ymd] => 2025-02-23 23:06:05 [RateCDR] => 1 ) [2025-02-23 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:06:05' and `end` < '2025-02-23 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:06:17] Production.INFO: count ==944 [2025-02-23 23:06:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:06:05 - End Time 2025-02-23 23:06:05 [2025-02-23 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543001', 'tblTempUsageDetail_20' ) start [2025-02-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543001', 'tblTempUsageDetail_20' ) end [2025-02-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543001', 'tblTempVendorCDR_20' ) start [2025-02-23 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543001', 'tblTempVendorCDR_20' ) end [2025-02-23 23:06:17] Production.INFO: ProcessCDR(1,14543001,1,1,2) [2025-02-23 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543001', 'tblTempUsageDetail_20' ) start [2025-02-23 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543001', 'tblTempUsageDetail_20' ) end [2025-02-23 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:06:21] Production.INFO: ==5612== Releasing lock... [2025-02-23 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:06:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:07:04 [end_date_ymd] => 2025-02-23 23:07:04 [RateCDR] => 1 ) [2025-02-23 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:07:04' and `end` < '2025-02-23 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:07:16] Production.INFO: count ==944 [2025-02-23 23:07:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:07:04 - End Time 2025-02-23 23:07:04 [2025-02-23 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543006', 'tblTempUsageDetail_20' ) start [2025-02-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543006', 'tblTempUsageDetail_20' ) end [2025-02-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543006', 'tblTempVendorCDR_20' ) start [2025-02-23 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543006', 'tblTempVendorCDR_20' ) end [2025-02-23 23:07:17] Production.INFO: ProcessCDR(1,14543006,1,1,2) [2025-02-23 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543006', 'tblTempUsageDetail_20' ) start [2025-02-23 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543006', 'tblTempUsageDetail_20' ) end [2025-02-23 23:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:07:20] Production.INFO: ==5690== Releasing lock... [2025-02-23 23:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:07:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:08:05 [end_date_ymd] => 2025-02-23 23:08:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:08:05' and `end` < '2025-02-23 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-02-23 23:08:17] Production.INFO: count ==945 [2025-02-23 23:08:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:08:05 - End Time 2025-02-23 23:08:05 [2025-02-23 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543011', 'tblTempUsageDetail_20' ) start [2025-02-23 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543011', 'tblTempUsageDetail_20' ) end [2025-02-23 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543011', 'tblTempVendorCDR_20' ) start [2025-02-23 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543011', 'tblTempVendorCDR_20' ) end [2025-02-23 23:08:17] Production.INFO: ProcessCDR(1,14543011,1,1,2) [2025-02-23 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543011', 'tblTempUsageDetail_20' ) start [2025-02-23 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543011', 'tblTempUsageDetail_20' ) end [2025-02-23 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:08:21] Production.INFO: ==5805== Releasing lock... [2025-02-23 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:08:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:09:05 [end_date_ymd] => 2025-02-23 23:09:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:09:05' and `end` < '2025-02-23 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-02-23 23:09:17] Production.INFO: count ==942 [2025-02-23 23:09:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:09:05 - End Time 2025-02-23 23:09:05 [2025-02-23 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543016', 'tblTempUsageDetail_20' ) start [2025-02-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543016', 'tblTempUsageDetail_20' ) end [2025-02-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543016', 'tblTempVendorCDR_20' ) start [2025-02-23 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543016', 'tblTempVendorCDR_20' ) end [2025-02-23 23:09:17] Production.INFO: ProcessCDR(1,14543016,1,1,2) [2025-02-23 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543016', 'tblTempUsageDetail_20' ) start [2025-02-23 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543016', 'tblTempUsageDetail_20' ) end [2025-02-23 23:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:09:20] Production.INFO: ==5916== Releasing lock... [2025-02-23 23:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:09:20] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:10:06 [end_date_ymd] => 2025-02-23 23:10:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:10:06' and `end` < '2025-02-23 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-02-23 23:10:17] Production.INFO: count ==942 [2025-02-23 23:10:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:10:06 - End Time 2025-02-23 23:10:06 [2025-02-23 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543022', 'tblTempUsageDetail_20' ) start [2025-02-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543022', 'tblTempUsageDetail_20' ) end [2025-02-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543022', 'tblTempVendorCDR_20' ) start [2025-02-23 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543022', 'tblTempVendorCDR_20' ) end [2025-02-23 23:10:18] Production.INFO: ProcessCDR(1,14543022,1,1,2) [2025-02-23 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543022', 'tblTempUsageDetail_20' ) start [2025-02-23 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543022', 'tblTempUsageDetail_20' ) end [2025-02-23 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:10:21] Production.INFO: ==5992== Releasing lock... [2025-02-23 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:10:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-23 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:11:05 [end_date_ymd] => 2025-02-23 23:11:05 [RateCDR] => 1 ) [2025-02-23 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:11:05' and `end` < '2025-02-23 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:11:17] Production.INFO: count ==924 [2025-02-23 23:11:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:11:05 - End Time 2025-02-23 23:11:05 [2025-02-23 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543027', 'tblTempUsageDetail_20' ) start [2025-02-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543027', 'tblTempUsageDetail_20' ) end [2025-02-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543027', 'tblTempVendorCDR_20' ) start [2025-02-23 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543027', 'tblTempVendorCDR_20' ) end [2025-02-23 23:11:17] Production.INFO: ProcessCDR(1,14543027,1,1,2) [2025-02-23 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543027', 'tblTempUsageDetail_20' ) start [2025-02-23 23:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543027', 'tblTempUsageDetail_20' ) end [2025-02-23 23:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:11:20] Production.INFO: ==6067== Releasing lock... [2025-02-23 23:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:11:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:12:05 [end_date_ymd] => 2025-02-23 23:12:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:12:05' and `end` < '2025-02-23 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-02-23 23:12:17] Production.INFO: count ==927 [2025-02-23 23:12:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:12:05 - End Time 2025-02-23 23:12:05 [2025-02-23 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543032', 'tblTempUsageDetail_20' ) start [2025-02-23 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543032', 'tblTempUsageDetail_20' ) end [2025-02-23 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543032', 'tblTempVendorCDR_20' ) start [2025-02-23 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543032', 'tblTempVendorCDR_20' ) end [2025-02-23 23:12:17] Production.INFO: ProcessCDR(1,14543032,1,1,2) [2025-02-23 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543032', 'tblTempUsageDetail_20' ) start [2025-02-23 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543032', 'tblTempUsageDetail_20' ) end [2025-02-23 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:12:20] Production.INFO: ==6224== Releasing lock... [2025-02-23 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:12:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:13:05 [end_date_ymd] => 2025-02-23 23:13:05 [RateCDR] => 1 ) [2025-02-23 23:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:13:05' and `end` < '2025-02-23 23:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:13:17] Production.INFO: count ==927 [2025-02-23 23:13:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:13:05 - End Time 2025-02-23 23:13:05 [2025-02-23 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543037', 'tblTempUsageDetail_20' ) start [2025-02-23 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543037', 'tblTempUsageDetail_20' ) end [2025-02-23 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543037', 'tblTempVendorCDR_20' ) start [2025-02-23 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543037', 'tblTempVendorCDR_20' ) end [2025-02-23 23:13:17] Production.INFO: ProcessCDR(1,14543037,1,1,2) [2025-02-23 23:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543037', 'tblTempUsageDetail_20' ) start [2025-02-23 23:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543037', 'tblTempUsageDetail_20' ) end [2025-02-23 23:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:13:20] Production.INFO: ==6298== Releasing lock... [2025-02-23 23:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:13:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:14:05 [end_date_ymd] => 2025-02-23 23:14:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:14:05' and `end` < '2025-02-23 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-02-23 23:14:17] Production.INFO: count ==926 [2025-02-23 23:14:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:14:05 - End Time 2025-02-23 23:14:05 [2025-02-23 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543042', 'tblTempUsageDetail_20' ) start [2025-02-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543042', 'tblTempUsageDetail_20' ) end [2025-02-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543042', 'tblTempVendorCDR_20' ) start [2025-02-23 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543042', 'tblTempVendorCDR_20' ) end [2025-02-23 23:14:17] Production.INFO: ProcessCDR(1,14543042,1,1,2) [2025-02-23 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543042', 'tblTempUsageDetail_20' ) start [2025-02-23 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543042', 'tblTempUsageDetail_20' ) end [2025-02-23 23:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:14:20] Production.INFO: ==6370== Releasing lock... [2025-02-23 23:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:14:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:15:05 [end_date_ymd] => 2025-02-23 23:15:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:15:05' and `end` < '2025-02-23 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-02-23 23:15:17] Production.INFO: count ==924 [2025-02-23 23:15:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:15:05 - End Time 2025-02-23 23:15:05 [2025-02-23 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543047', 'tblTempUsageDetail_20' ) start [2025-02-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543047', 'tblTempUsageDetail_20' ) end [2025-02-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543047', 'tblTempVendorCDR_20' ) start [2025-02-23 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543047', 'tblTempVendorCDR_20' ) end [2025-02-23 23:15:17] Production.INFO: ProcessCDR(1,14543047,1,1,2) [2025-02-23 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543047', 'tblTempUsageDetail_20' ) start [2025-02-23 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543047', 'tblTempUsageDetail_20' ) end [2025-02-23 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:15:21] Production.INFO: ==6564== Releasing lock... [2025-02-23 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:15:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-23 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:16:05 [end_date_ymd] => 2025-02-23 23:16:05 [RateCDR] => 1 ) [2025-02-23 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:16:05' and `end` < '2025-02-23 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:16:17] Production.INFO: count ==919 [2025-02-23 23:16:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:16:05 - End Time 2025-02-23 23:16:05 [2025-02-23 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543052', 'tblTempUsageDetail_20' ) start [2025-02-23 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543052', 'tblTempUsageDetail_20' ) end [2025-02-23 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543052', 'tblTempVendorCDR_20' ) start [2025-02-23 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543052', 'tblTempVendorCDR_20' ) end [2025-02-23 23:16:17] Production.INFO: ProcessCDR(1,14543052,1,1,2) [2025-02-23 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543052', 'tblTempUsageDetail_20' ) start [2025-02-23 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543052', 'tblTempUsageDetail_20' ) end [2025-02-23 23:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:16:20] Production.INFO: ==6640== Releasing lock... [2025-02-23 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:16:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:17:05 [end_date_ymd] => 2025-02-23 23:17:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:17:05' and `end` < '2025-02-23 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-02-23 23:17:17] Production.INFO: count ==921 [2025-02-23 23:17:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:17:05 - End Time 2025-02-23 23:17:05 [2025-02-23 23:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543057', 'tblTempUsageDetail_20' ) start [2025-02-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543057', 'tblTempUsageDetail_20' ) end [2025-02-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543057', 'tblTempVendorCDR_20' ) start [2025-02-23 23:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543057', 'tblTempVendorCDR_20' ) end [2025-02-23 23:17:17] Production.INFO: ProcessCDR(1,14543057,1,1,2) [2025-02-23 23:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543057', 'tblTempUsageDetail_20' ) start [2025-02-23 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543057', 'tblTempUsageDetail_20' ) end [2025-02-23 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:17:21] Production.INFO: ==6714== Releasing lock... [2025-02-23 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:17:21] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:18:06 [end_date_ymd] => 2025-02-23 23:18:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:18:06' and `end` < '2025-02-23 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-02-23 23:18:18] Production.INFO: count ==918 [2025-02-23 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:18:06 - End Time 2025-02-23 23:18:06 [2025-02-23 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543062', 'tblTempUsageDetail_20' ) start [2025-02-23 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543062', 'tblTempUsageDetail_20' ) end [2025-02-23 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543062', 'tblTempVendorCDR_20' ) start [2025-02-23 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543062', 'tblTempVendorCDR_20' ) end [2025-02-23 23:18:18] Production.INFO: ProcessCDR(1,14543062,1,1,2) [2025-02-23 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543062', 'tblTempUsageDetail_20' ) start [2025-02-23 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543062', 'tblTempUsageDetail_20' ) end [2025-02-23 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:18:21] Production.INFO: ==6789== Releasing lock... [2025-02-23 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:18:21] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:19:05 [end_date_ymd] => 2025-02-23 23:19:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:19:05' and `end` < '2025-02-23 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-02-23 23:19:17] Production.INFO: count ==914 [2025-02-23 23:19:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:19:05 - End Time 2025-02-23 23:19:05 [2025-02-23 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543066', 'tblTempUsageDetail_20' ) start [2025-02-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543066', 'tblTempUsageDetail_20' ) end [2025-02-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543066', 'tblTempVendorCDR_20' ) start [2025-02-23 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543066', 'tblTempVendorCDR_20' ) end [2025-02-23 23:19:17] Production.INFO: ProcessCDR(1,14543066,1,1,2) [2025-02-23 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543066', 'tblTempUsageDetail_20' ) start [2025-02-23 23:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543066', 'tblTempUsageDetail_20' ) end [2025-02-23 23:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:19:20] Production.INFO: ==6862== Releasing lock... [2025-02-23 23:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:19:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:20:07 [end_date_ymd] => 2025-02-23 23:20:07 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:20:07' and `end` < '2025-02-23 23: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-02-23 23:20:19] Production.INFO: count ==914 [2025-02-23 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-23 20:20:07 - End Time 2025-02-23 23:20:07 [2025-02-23 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543073', 'tblTempUsageDetail_20' ) start [2025-02-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543073', 'tblTempUsageDetail_20' ) end [2025-02-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543073', 'tblTempVendorCDR_20' ) start [2025-02-23 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543073', 'tblTempVendorCDR_20' ) end [2025-02-23 23:20:19] Production.INFO: ProcessCDR(1,14543073,1,1,2) [2025-02-23 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543073', 'tblTempUsageDetail_20' ) start [2025-02-23 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543073', 'tblTempUsageDetail_20' ) end [2025-02-23 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:20:22] Production.INFO: ==6934== Releasing lock... [2025-02-23 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:20:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:21:05 [end_date_ymd] => 2025-02-23 23:21:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:21:05' and `end` < '2025-02-23 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-02-23 23:21:16] Production.INFO: count ==911 [2025-02-23 23:21:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:21:05 - End Time 2025-02-23 23:21:05 [2025-02-23 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543078', 'tblTempUsageDetail_20' ) start [2025-02-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543078', 'tblTempUsageDetail_20' ) end [2025-02-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543078', 'tblTempVendorCDR_20' ) start [2025-02-23 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543078', 'tblTempVendorCDR_20' ) end [2025-02-23 23:21:17] Production.INFO: ProcessCDR(1,14543078,1,1,2) [2025-02-23 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543078', 'tblTempUsageDetail_20' ) start [2025-02-23 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543078', 'tblTempUsageDetail_20' ) end [2025-02-23 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:21:20] Production.INFO: ==7010== Releasing lock... [2025-02-23 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:21:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:22:05 [end_date_ymd] => 2025-02-23 23:22:05 [RateCDR] => 1 ) [2025-02-23 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:22:05' and `end` < '2025-02-23 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:22:17] Production.INFO: count ==910 [2025-02-23 23:22:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:22:05 - End Time 2025-02-23 23:22:05 [2025-02-23 23:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543083', 'tblTempUsageDetail_20' ) start [2025-02-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543083', 'tblTempUsageDetail_20' ) end [2025-02-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543083', 'tblTempVendorCDR_20' ) start [2025-02-23 23:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543083', 'tblTempVendorCDR_20' ) end [2025-02-23 23:22:17] Production.INFO: ProcessCDR(1,14543083,1,1,2) [2025-02-23 23:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543083', 'tblTempUsageDetail_20' ) start [2025-02-23 23:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543083', 'tblTempUsageDetail_20' ) end [2025-02-23 23:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:22:20] Production.INFO: ==7085== Releasing lock... [2025-02-23 23:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:22:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:23:05 [end_date_ymd] => 2025-02-23 23:23:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:23:05' and `end` < '2025-02-23 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-02-23 23:23:16] Production.INFO: count ==909 [2025-02-23 23:23:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:23:05 - End Time 2025-02-23 23:23:05 [2025-02-23 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543088', 'tblTempUsageDetail_20' ) start [2025-02-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543088', 'tblTempUsageDetail_20' ) end [2025-02-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543088', 'tblTempVendorCDR_20' ) start [2025-02-23 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543088', 'tblTempVendorCDR_20' ) end [2025-02-23 23:23:17] Production.INFO: ProcessCDR(1,14543088,1,1,2) [2025-02-23 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543088', 'tblTempUsageDetail_20' ) start [2025-02-23 23:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543088', 'tblTempUsageDetail_20' ) end [2025-02-23 23:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:23:20] Production.INFO: ==7160== Releasing lock... [2025-02-23 23:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:23:20] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:24:05 [end_date_ymd] => 2025-02-23 23:24:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:24:05' and `end` < '2025-02-23 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-02-23 23:24:17] Production.INFO: count ==914 [2025-02-23 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:24:05 - End Time 2025-02-23 23:24:05 [2025-02-23 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543093', 'tblTempUsageDetail_20' ) start [2025-02-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543093', 'tblTempUsageDetail_20' ) end [2025-02-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543093', 'tblTempVendorCDR_20' ) start [2025-02-23 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543093', 'tblTempVendorCDR_20' ) end [2025-02-23 23:24:18] Production.INFO: ProcessCDR(1,14543093,1,1,2) [2025-02-23 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543093', 'tblTempUsageDetail_20' ) start [2025-02-23 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543093', 'tblTempUsageDetail_20' ) end [2025-02-23 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:24:21] Production.INFO: ==7240== Releasing lock... [2025-02-23 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:24:21] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:25:04 [end_date_ymd] => 2025-02-23 23:25:04 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:25:04' and `end` < '2025-02-23 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-02-23 23:25:16] Production.INFO: count ==914 [2025-02-23 23:25:16] Production.ERROR: pbx CDR StartTime 2025-02-23 20:25:04 - End Time 2025-02-23 23:25:04 [2025-02-23 23:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543098', 'tblTempUsageDetail_20' ) start [2025-02-23 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543098', 'tblTempUsageDetail_20' ) end [2025-02-23 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543098', 'tblTempVendorCDR_20' ) start [2025-02-23 23:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543098', 'tblTempVendorCDR_20' ) end [2025-02-23 23:25:16] Production.INFO: ProcessCDR(1,14543098,1,1,2) [2025-02-23 23:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:25:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:25:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543098', 'tblTempUsageDetail_20' ) start [2025-02-23 23:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543098', 'tblTempUsageDetail_20' ) end [2025-02-23 23:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:25:20] Production.INFO: ==7310== Releasing lock... [2025-02-23 23:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:25:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:26:05 [end_date_ymd] => 2025-02-23 23:26:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:26:05' and `end` < '2025-02-23 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-02-23 23:26:17] Production.INFO: count ==906 [2025-02-23 23:26:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:26:05 - End Time 2025-02-23 23:26:05 [2025-02-23 23:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543103', 'tblTempUsageDetail_20' ) start [2025-02-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543103', 'tblTempUsageDetail_20' ) end [2025-02-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543103', 'tblTempVendorCDR_20' ) start [2025-02-23 23:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543103', 'tblTempVendorCDR_20' ) end [2025-02-23 23:26:17] Production.INFO: ProcessCDR(1,14543103,1,1,2) [2025-02-23 23:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543103', 'tblTempUsageDetail_20' ) start [2025-02-23 23:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543103', 'tblTempUsageDetail_20' ) end [2025-02-23 23:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:26:20] Production.INFO: ==7382== Releasing lock... [2025-02-23 23:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:26:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:27:05 [end_date_ymd] => 2025-02-23 23:27:05 [RateCDR] => 1 ) [2025-02-23 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:27:05' and `end` < '2025-02-23 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:27:17] Production.INFO: count ==904 [2025-02-23 23:27:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:27:05 - End Time 2025-02-23 23:27:05 [2025-02-23 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543108', 'tblTempUsageDetail_20' ) start [2025-02-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543108', 'tblTempUsageDetail_20' ) end [2025-02-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543108', 'tblTempVendorCDR_20' ) start [2025-02-23 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543108', 'tblTempVendorCDR_20' ) end [2025-02-23 23:27:17] Production.INFO: ProcessCDR(1,14543108,1,1,2) [2025-02-23 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543108', 'tblTempUsageDetail_20' ) start [2025-02-23 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543108', 'tblTempUsageDetail_20' ) end [2025-02-23 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:27:21] Production.INFO: ==7457== Releasing lock... [2025-02-23 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:27:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:28:05 [end_date_ymd] => 2025-02-23 23:28:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:28:05' and `end` < '2025-02-23 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-02-23 23:28:17] Production.INFO: count ==902 [2025-02-23 23:28:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:28:05 - End Time 2025-02-23 23:28:05 [2025-02-23 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543113', 'tblTempUsageDetail_20' ) start [2025-02-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543113', 'tblTempUsageDetail_20' ) end [2025-02-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543113', 'tblTempVendorCDR_20' ) start [2025-02-23 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543113', 'tblTempVendorCDR_20' ) end [2025-02-23 23:28:17] Production.INFO: ProcessCDR(1,14543113,1,1,2) [2025-02-23 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543113', 'tblTempUsageDetail_20' ) start [2025-02-23 23:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543113', 'tblTempUsageDetail_20' ) end [2025-02-23 23:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:28:20] Production.INFO: ==7530== Releasing lock... [2025-02-23 23:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:28:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:29:04 [end_date_ymd] => 2025-02-23 23:29:04 [RateCDR] => 1 ) [2025-02-23 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:29:04' and `end` < '2025-02-23 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:29:16] Production.INFO: count ==899 [2025-02-23 23:29:16] Production.ERROR: pbx CDR StartTime 2025-02-23 20:29:04 - End Time 2025-02-23 23:29:04 [2025-02-23 23:29:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543118', 'tblTempUsageDetail_20' ) start [2025-02-23 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543118', 'tblTempUsageDetail_20' ) end [2025-02-23 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543118', 'tblTempVendorCDR_20' ) start [2025-02-23 23:29:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543118', 'tblTempVendorCDR_20' ) end [2025-02-23 23:29:16] Production.INFO: ProcessCDR(1,14543118,1,1,2) [2025-02-23 23:29:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543118', 'tblTempUsageDetail_20' ) start [2025-02-23 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543118', 'tblTempUsageDetail_20' ) end [2025-02-23 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:29:20] Production.INFO: ==7600== Releasing lock... [2025-02-23 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:29:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:30:06 [end_date_ymd] => 2025-02-23 23:30:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:30:06' and `end` < '2025-02-23 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-02-23 23:30:18] Production.INFO: count ==891 [2025-02-23 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:30:06 - End Time 2025-02-23 23:30:06 [2025-02-23 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543123', 'tblTempUsageDetail_20' ) start [2025-02-23 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543123', 'tblTempUsageDetail_20' ) end [2025-02-23 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543123', 'tblTempVendorCDR_20' ) start [2025-02-23 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543123', 'tblTempVendorCDR_20' ) end [2025-02-23 23:30:18] Production.INFO: ProcessCDR(1,14543123,1,1,2) [2025-02-23 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543123', 'tblTempUsageDetail_20' ) start [2025-02-23 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543123', 'tblTempUsageDetail_20' ) end [2025-02-23 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:30:21] Production.INFO: ==7720== Releasing lock... [2025-02-23 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:30:21] Production.INFO: 35.25 MB #Memory Used# [2025-02-23 23:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:31:06 [end_date_ymd] => 2025-02-23 23:31:06 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:31:06' and `end` < '2025-02-23 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-02-23 23:31:18] Production.INFO: count ==872 [2025-02-23 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:31:06 - End Time 2025-02-23 23:31:06 [2025-02-23 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543129', 'tblTempUsageDetail_20' ) start [2025-02-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543129', 'tblTempUsageDetail_20' ) end [2025-02-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543129', 'tblTempVendorCDR_20' ) start [2025-02-23 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543129', 'tblTempVendorCDR_20' ) end [2025-02-23 23:31:18] Production.INFO: ProcessCDR(1,14543129,1,1,2) [2025-02-23 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543129', 'tblTempUsageDetail_20' ) start [2025-02-23 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543129', 'tblTempUsageDetail_20' ) end [2025-02-23 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:31:21] Production.INFO: ==7794== Releasing lock... [2025-02-23 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:31:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:32:05 [end_date_ymd] => 2025-02-23 23:32:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:32:05' and `end` < '2025-02-23 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-02-23 23:32:17] Production.INFO: count ==872 [2025-02-23 23:32:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:32:05 - End Time 2025-02-23 23:32:05 [2025-02-23 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543134', 'tblTempUsageDetail_20' ) start [2025-02-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543134', 'tblTempUsageDetail_20' ) end [2025-02-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543134', 'tblTempVendorCDR_20' ) start [2025-02-23 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543134', 'tblTempVendorCDR_20' ) end [2025-02-23 23:32:17] Production.INFO: ProcessCDR(1,14543134,1,1,2) [2025-02-23 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543134', 'tblTempUsageDetail_20' ) start [2025-02-23 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543134', 'tblTempUsageDetail_20' ) end [2025-02-23 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:32:21] Production.INFO: ==7875== Releasing lock... [2025-02-23 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:32:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:33:06 [end_date_ymd] => 2025-02-23 23:33:06 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:33:06' and `end` < '2025-02-23 23: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-02-23 23:33:17] Production.INFO: count ==863 [2025-02-23 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:33:06 - End Time 2025-02-23 23:33:06 [2025-02-23 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543139', 'tblTempUsageDetail_20' ) start [2025-02-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543139', 'tblTempUsageDetail_20' ) end [2025-02-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543139', 'tblTempVendorCDR_20' ) start [2025-02-23 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543139', 'tblTempVendorCDR_20' ) end [2025-02-23 23:33:18] Production.INFO: ProcessCDR(1,14543139,1,1,2) [2025-02-23 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543139', 'tblTempUsageDetail_20' ) start [2025-02-23 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543139', 'tblTempUsageDetail_20' ) end [2025-02-23 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:33:21] Production.INFO: ==7949== Releasing lock... [2025-02-23 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:33:21] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:34:05 [end_date_ymd] => 2025-02-23 23:34:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:34:05' and `end` < '2025-02-23 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-02-23 23:34:17] Production.INFO: count ==867 [2025-02-23 23:34:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:34:05 - End Time 2025-02-23 23:34:05 [2025-02-23 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543144', 'tblTempUsageDetail_20' ) start [2025-02-23 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543144', 'tblTempUsageDetail_20' ) end [2025-02-23 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543144', 'tblTempVendorCDR_20' ) start [2025-02-23 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543144', 'tblTempVendorCDR_20' ) end [2025-02-23 23:34:17] Production.INFO: ProcessCDR(1,14543144,1,1,2) [2025-02-23 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543144', 'tblTempUsageDetail_20' ) start [2025-02-23 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543144', 'tblTempUsageDetail_20' ) end [2025-02-23 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:34:20] Production.INFO: ==8026== Releasing lock... [2025-02-23 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:34:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:35:05 [end_date_ymd] => 2025-02-23 23:35:05 [RateCDR] => 1 ) [2025-02-23 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:35:05' and `end` < '2025-02-23 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:35:17] Production.INFO: count ==871 [2025-02-23 23:35:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:35:05 - End Time 2025-02-23 23:35:05 [2025-02-23 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543149', 'tblTempUsageDetail_20' ) start [2025-02-23 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543149', 'tblTempUsageDetail_20' ) end [2025-02-23 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543149', 'tblTempVendorCDR_20' ) start [2025-02-23 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543149', 'tblTempVendorCDR_20' ) end [2025-02-23 23:35:17] Production.INFO: ProcessCDR(1,14543149,1,1,2) [2025-02-23 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543149', 'tblTempUsageDetail_20' ) start [2025-02-23 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543149', 'tblTempUsageDetail_20' ) end [2025-02-23 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:35:22] Production.INFO: ==8104== Releasing lock... [2025-02-23 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:35:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:36:05 [end_date_ymd] => 2025-02-23 23:36:05 [RateCDR] => 1 ) [2025-02-23 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:36:05' and `end` < '2025-02-23 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:36:17] Production.INFO: count ==871 [2025-02-23 23:36:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:36:05 - End Time 2025-02-23 23:36:05 [2025-02-23 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543154', 'tblTempUsageDetail_20' ) start [2025-02-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543154', 'tblTempUsageDetail_20' ) end [2025-02-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543154', 'tblTempVendorCDR_20' ) start [2025-02-23 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543154', 'tblTempVendorCDR_20' ) end [2025-02-23 23:36:17] Production.INFO: ProcessCDR(1,14543154,1,1,2) [2025-02-23 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543154', 'tblTempUsageDetail_20' ) start [2025-02-23 23:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543154', 'tblTempUsageDetail_20' ) end [2025-02-23 23:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:36:20] Production.INFO: ==8184== Releasing lock... [2025-02-23 23:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:36:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:37:05 [end_date_ymd] => 2025-02-23 23:37:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:37:05' and `end` < '2025-02-23 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-02-23 23:37:17] Production.INFO: count ==871 [2025-02-23 23:37:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:37:05 - End Time 2025-02-23 23:37:05 [2025-02-23 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543159', 'tblTempUsageDetail_20' ) start [2025-02-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543159', 'tblTempUsageDetail_20' ) end [2025-02-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543159', 'tblTempVendorCDR_20' ) start [2025-02-23 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543159', 'tblTempVendorCDR_20' ) end [2025-02-23 23:37:17] Production.INFO: ProcessCDR(1,14543159,1,1,2) [2025-02-23 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543159', 'tblTempUsageDetail_20' ) start [2025-02-23 23:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543159', 'tblTempUsageDetail_20' ) end [2025-02-23 23:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:37:20] Production.INFO: ==8253== Releasing lock... [2025-02-23 23:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:37:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:38:05 [end_date_ymd] => 2025-02-23 23:38:05 [RateCDR] => 1 ) [2025-02-23 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:38:05' and `end` < '2025-02-23 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:38:17] Production.INFO: count ==869 [2025-02-23 23:38:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:38:05 - End Time 2025-02-23 23:38:05 [2025-02-23 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543164', 'tblTempUsageDetail_20' ) start [2025-02-23 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543164', 'tblTempUsageDetail_20' ) end [2025-02-23 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543164', 'tblTempVendorCDR_20' ) start [2025-02-23 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543164', 'tblTempVendorCDR_20' ) end [2025-02-23 23:38:17] Production.INFO: ProcessCDR(1,14543164,1,1,2) [2025-02-23 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543164', 'tblTempUsageDetail_20' ) start [2025-02-23 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543164', 'tblTempUsageDetail_20' ) end [2025-02-23 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:38:21] Production.INFO: ==8327== Releasing lock... [2025-02-23 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:38:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:39:05 [end_date_ymd] => 2025-02-23 23:39:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:39:05' and `end` < '2025-02-23 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-02-23 23:39:17] Production.INFO: count ==870 [2025-02-23 23:39:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:39:05 - End Time 2025-02-23 23:39:05 [2025-02-23 23:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543169', 'tblTempUsageDetail_20' ) start [2025-02-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543169', 'tblTempUsageDetail_20' ) end [2025-02-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543169', 'tblTempVendorCDR_20' ) start [2025-02-23 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543169', 'tblTempVendorCDR_20' ) end [2025-02-23 23:39:18] Production.INFO: ProcessCDR(1,14543169,1,1,2) [2025-02-23 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543169', 'tblTempUsageDetail_20' ) start [2025-02-23 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543169', 'tblTempUsageDetail_20' ) end [2025-02-23 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:39:22] Production.INFO: ==8403== Releasing lock... [2025-02-23 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:39:22] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:40:05 [end_date_ymd] => 2025-02-23 23:40:05 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:40:05' and `end` < '2025-02-23 23: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-02-23 23:40:17] Production.INFO: count ==868 [2025-02-23 23:40:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:40:05 - End Time 2025-02-23 23:40:05 [2025-02-23 23:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543175', 'tblTempUsageDetail_20' ) start [2025-02-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543175', 'tblTempUsageDetail_20' ) end [2025-02-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543175', 'tblTempVendorCDR_20' ) start [2025-02-23 23:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543175', 'tblTempVendorCDR_20' ) end [2025-02-23 23:40:17] Production.INFO: ProcessCDR(1,14543175,1,1,2) [2025-02-23 23:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543175', 'tblTempUsageDetail_20' ) start [2025-02-23 23:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543175', 'tblTempUsageDetail_20' ) end [2025-02-23 23:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:40:21] Production.INFO: ==8475== Releasing lock... [2025-02-23 23:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:40:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:41:06 [end_date_ymd] => 2025-02-23 23:41:06 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:41:06' and `end` < '2025-02-23 23: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-02-23 23:41:18] Production.INFO: count ==879 [2025-02-23 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:41:06 - End Time 2025-02-23 23:41:06 [2025-02-23 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543180', 'tblTempUsageDetail_20' ) start [2025-02-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543180', 'tblTempUsageDetail_20' ) end [2025-02-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543180', 'tblTempVendorCDR_20' ) start [2025-02-23 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543180', 'tblTempVendorCDR_20' ) end [2025-02-23 23:41:18] Production.INFO: ProcessCDR(1,14543180,1,1,2) [2025-02-23 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543180', 'tblTempUsageDetail_20' ) start [2025-02-23 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543180', 'tblTempUsageDetail_20' ) end [2025-02-23 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:41:21] Production.INFO: ==8551== Releasing lock... [2025-02-23 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:42:05 [end_date_ymd] => 2025-02-23 23:42:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:42:05' and `end` < '2025-02-23 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-02-23 23:42:17] Production.INFO: count ==884 [2025-02-23 23:42:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:42:05 - End Time 2025-02-23 23:42:05 [2025-02-23 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543185', 'tblTempUsageDetail_20' ) start [2025-02-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543185', 'tblTempUsageDetail_20' ) end [2025-02-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543185', 'tblTempVendorCDR_20' ) start [2025-02-23 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543185', 'tblTempVendorCDR_20' ) end [2025-02-23 23:42:17] Production.INFO: ProcessCDR(1,14543185,1,1,2) [2025-02-23 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543185', 'tblTempUsageDetail_20' ) start [2025-02-23 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543185', 'tblTempUsageDetail_20' ) end [2025-02-23 23:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:42:20] Production.INFO: ==8624== Releasing lock... [2025-02-23 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:42:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:43:05 [end_date_ymd] => 2025-02-23 23:43:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:43:05' and `end` < '2025-02-23 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-02-23 23:43:17] Production.INFO: count ==885 [2025-02-23 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:43:05 - End Time 2025-02-23 23:43:05 [2025-02-23 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543190', 'tblTempUsageDetail_20' ) start [2025-02-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543190', 'tblTempUsageDetail_20' ) end [2025-02-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543190', 'tblTempVendorCDR_20' ) start [2025-02-23 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543190', 'tblTempVendorCDR_20' ) end [2025-02-23 23:43:17] Production.INFO: ProcessCDR(1,14543190,1,1,2) [2025-02-23 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543190', 'tblTempUsageDetail_20' ) start [2025-02-23 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543190', 'tblTempUsageDetail_20' ) end [2025-02-23 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:43:21] Production.INFO: ==8697== Releasing lock... [2025-02-23 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:44:06 [end_date_ymd] => 2025-02-23 23:44:06 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:44:06' and `end` < '2025-02-23 23: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-02-23 23:44:18] Production.INFO: count ==886 [2025-02-23 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:44:06 - End Time 2025-02-23 23:44:06 [2025-02-23 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543195', 'tblTempUsageDetail_20' ) start [2025-02-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543195', 'tblTempUsageDetail_20' ) end [2025-02-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543195', 'tblTempVendorCDR_20' ) start [2025-02-23 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543195', 'tblTempVendorCDR_20' ) end [2025-02-23 23:44:18] Production.INFO: ProcessCDR(1,14543195,1,1,2) [2025-02-23 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543195', 'tblTempUsageDetail_20' ) start [2025-02-23 23:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543195', 'tblTempUsageDetail_20' ) end [2025-02-23 23:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:44:22] Production.INFO: ==8776== Releasing lock... [2025-02-23 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:44:22] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:45:05 [end_date_ymd] => 2025-02-23 23:45:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:45:05' and `end` < '2025-02-23 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-02-23 23:45:17] Production.INFO: count ==892 [2025-02-23 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:45:05 - End Time 2025-02-23 23:45:05 [2025-02-23 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543200', 'tblTempUsageDetail_20' ) start [2025-02-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543200', 'tblTempUsageDetail_20' ) end [2025-02-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543200', 'tblTempVendorCDR_20' ) start [2025-02-23 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543200', 'tblTempVendorCDR_20' ) end [2025-02-23 23:45:17] Production.INFO: ProcessCDR(1,14543200,1,1,2) [2025-02-23 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543200', 'tblTempUsageDetail_20' ) start [2025-02-23 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543200', 'tblTempUsageDetail_20' ) end [2025-02-23 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:45:20] Production.INFO: ==8845== Releasing lock... [2025-02-23 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:45:20] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:46:05 [end_date_ymd] => 2025-02-23 23:46:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:46:05' and `end` < '2025-02-23 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-02-23 23:46:17] Production.INFO: count ==891 [2025-02-23 23:46:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:46:05 - End Time 2025-02-23 23:46:05 [2025-02-23 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543205', 'tblTempUsageDetail_20' ) start [2025-02-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543205', 'tblTempUsageDetail_20' ) end [2025-02-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543205', 'tblTempVendorCDR_20' ) start [2025-02-23 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543205', 'tblTempVendorCDR_20' ) end [2025-02-23 23:46:17] Production.INFO: ProcessCDR(1,14543205,1,1,2) [2025-02-23 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543205', 'tblTempUsageDetail_20' ) start [2025-02-23 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543205', 'tblTempUsageDetail_20' ) end [2025-02-23 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:46:20] Production.INFO: ==8961== Releasing lock... [2025-02-23 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:46:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:47:05 [end_date_ymd] => 2025-02-23 23:47:05 [RateCDR] => 1 ) [2025-02-23 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:47:05' and `end` < '2025-02-23 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:47:17] Production.INFO: count ==888 [2025-02-23 23:47:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:47:05 - End Time 2025-02-23 23:47:05 [2025-02-23 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543210', 'tblTempUsageDetail_20' ) start [2025-02-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543210', 'tblTempUsageDetail_20' ) end [2025-02-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543210', 'tblTempVendorCDR_20' ) start [2025-02-23 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543210', 'tblTempVendorCDR_20' ) end [2025-02-23 23:47:17] Production.INFO: ProcessCDR(1,14543210,1,1,2) [2025-02-23 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543210', 'tblTempUsageDetail_20' ) start [2025-02-23 23:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543210', 'tblTempUsageDetail_20' ) end [2025-02-23 23:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:47:20] Production.INFO: ==9035== Releasing lock... [2025-02-23 23:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:47:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:48:05 [end_date_ymd] => 2025-02-23 23:48:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:48:05' and `end` < '2025-02-23 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-02-23 23:48:17] Production.INFO: count ==888 [2025-02-23 23:48:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:48:05 - End Time 2025-02-23 23:48:05 [2025-02-23 23:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543215', 'tblTempUsageDetail_20' ) start [2025-02-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543215', 'tblTempUsageDetail_20' ) end [2025-02-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543215', 'tblTempVendorCDR_20' ) start [2025-02-23 23:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543215', 'tblTempVendorCDR_20' ) end [2025-02-23 23:48:17] Production.INFO: ProcessCDR(1,14543215,1,1,2) [2025-02-23 23:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543215', 'tblTempUsageDetail_20' ) start [2025-02-23 23:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543215', 'tblTempUsageDetail_20' ) end [2025-02-23 23:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:48:20] Production.INFO: ==9111== Releasing lock... [2025-02-23 23:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:48:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:49:05 [end_date_ymd] => 2025-02-23 23:49:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:49:05' and `end` < '2025-02-23 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-02-23 23:49:17] Production.INFO: count ==887 [2025-02-23 23:49:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:49:05 - End Time 2025-02-23 23:49:05 [2025-02-23 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543220', 'tblTempUsageDetail_20' ) start [2025-02-23 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543220', 'tblTempUsageDetail_20' ) end [2025-02-23 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543220', 'tblTempVendorCDR_20' ) start [2025-02-23 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543220', 'tblTempVendorCDR_20' ) end [2025-02-23 23:49:17] Production.INFO: ProcessCDR(1,14543220,1,1,2) [2025-02-23 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543220', 'tblTempUsageDetail_20' ) start [2025-02-23 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543220', 'tblTempUsageDetail_20' ) end [2025-02-23 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:49:20] Production.INFO: ==9181== Releasing lock... [2025-02-23 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:49:20] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:50:06 [end_date_ymd] => 2025-02-23 23:50:06 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:50:06' and `end` < '2025-02-23 23: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-02-23 23:50:18] Production.INFO: count ==870 [2025-02-23 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-23 20:50:06 - End Time 2025-02-23 23:50:06 [2025-02-23 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543226', 'tblTempUsageDetail_20' ) start [2025-02-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543226', 'tblTempUsageDetail_20' ) end [2025-02-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543226', 'tblTempVendorCDR_20' ) start [2025-02-23 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543226', 'tblTempVendorCDR_20' ) end [2025-02-23 23:50:18] Production.INFO: ProcessCDR(1,14543226,1,1,2) [2025-02-23 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543226', 'tblTempUsageDetail_20' ) start [2025-02-23 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543226', 'tblTempUsageDetail_20' ) end [2025-02-23 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:50:21] Production.INFO: ==9258== Releasing lock... [2025-02-23 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:50:21] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:51:05 [end_date_ymd] => 2025-02-23 23:51:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:51:05' and `end` < '2025-02-23 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-02-23 23:51:17] Production.INFO: count ==862 [2025-02-23 23:51:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:51:05 - End Time 2025-02-23 23:51:05 [2025-02-23 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543231', 'tblTempUsageDetail_20' ) start [2025-02-23 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543231', 'tblTempUsageDetail_20' ) end [2025-02-23 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543231', 'tblTempVendorCDR_20' ) start [2025-02-23 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543231', 'tblTempVendorCDR_20' ) end [2025-02-23 23:51:17] Production.INFO: ProcessCDR(1,14543231,1,1,2) [2025-02-23 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543231', 'tblTempUsageDetail_20' ) start [2025-02-23 23:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543231', 'tblTempUsageDetail_20' ) end [2025-02-23 23:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:51:20] Production.INFO: ==9332== Releasing lock... [2025-02-23 23:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:51:20] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:52:05 [end_date_ymd] => 2025-02-23 23:52:05 [RateCDR] => 1 ) [2025-02-23 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:52:05' and `end` < '2025-02-23 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:52:17] Production.INFO: count ==861 [2025-02-23 23:52:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:52:05 - End Time 2025-02-23 23:52:05 [2025-02-23 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543236', 'tblTempUsageDetail_20' ) start [2025-02-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543236', 'tblTempUsageDetail_20' ) end [2025-02-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543236', 'tblTempVendorCDR_20' ) start [2025-02-23 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543236', 'tblTempVendorCDR_20' ) end [2025-02-23 23:52:18] Production.INFO: ProcessCDR(1,14543236,1,1,2) [2025-02-23 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543236', 'tblTempUsageDetail_20' ) start [2025-02-23 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543236', 'tblTempUsageDetail_20' ) end [2025-02-23 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:52:21] Production.INFO: ==9405== Releasing lock... [2025-02-23 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:52:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-23 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:53:05 [end_date_ymd] => 2025-02-23 23:53:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:53:05' and `end` < '2025-02-23 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-02-23 23:53:17] Production.INFO: count ==862 [2025-02-23 23:53:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:53:05 - End Time 2025-02-23 23:53:05 [2025-02-23 23:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543241', 'tblTempUsageDetail_20' ) start [2025-02-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543241', 'tblTempUsageDetail_20' ) end [2025-02-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543241', 'tblTempVendorCDR_20' ) start [2025-02-23 23:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543241', 'tblTempVendorCDR_20' ) end [2025-02-23 23:53:17] Production.INFO: ProcessCDR(1,14543241,1,1,2) [2025-02-23 23:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543241', 'tblTempUsageDetail_20' ) start [2025-02-23 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543241', 'tblTempUsageDetail_20' ) end [2025-02-23 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:53:21] Production.INFO: ==9477== Releasing lock... [2025-02-23 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:53:21] Production.INFO: 34.25 MB #Memory Used# [2025-02-23 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:54:05 [end_date_ymd] => 2025-02-23 23:54:05 [RateCDR] => 1 ) [2025-02-23 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:54:05' and `end` < '2025-02-23 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:54:17] Production.INFO: count ==863 [2025-02-23 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:54:05 - End Time 2025-02-23 23:54:05 [2025-02-23 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543246', 'tblTempUsageDetail_20' ) start [2025-02-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543246', 'tblTempUsageDetail_20' ) end [2025-02-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543246', 'tblTempVendorCDR_20' ) start [2025-02-23 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543246', 'tblTempVendorCDR_20' ) end [2025-02-23 23:54:17] Production.INFO: ProcessCDR(1,14543246,1,1,2) [2025-02-23 23:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543246', 'tblTempUsageDetail_20' ) start [2025-02-23 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543246', 'tblTempUsageDetail_20' ) end [2025-02-23 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:54:22] Production.INFO: ==9552== Releasing lock... [2025-02-23 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:54:22] Production.INFO: 35 MB #Memory Used# [2025-02-23 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:55:04 [end_date_ymd] => 2025-02-23 23:55:04 [RateCDR] => 1 ) [2025-02-23 23:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:55:04' and `end` < '2025-02-23 23:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:55:16] Production.INFO: count ==857 [2025-02-23 23:55:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:55:04 - End Time 2025-02-23 23:55:04 [2025-02-23 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543251', 'tblTempUsageDetail_20' ) start [2025-02-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543251', 'tblTempUsageDetail_20' ) end [2025-02-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543251', 'tblTempVendorCDR_20' ) start [2025-02-23 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543251', 'tblTempVendorCDR_20' ) end [2025-02-23 23:55:17] Production.INFO: ProcessCDR(1,14543251,1,1,2) [2025-02-23 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543251', 'tblTempUsageDetail_20' ) start [2025-02-23 23:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543251', 'tblTempUsageDetail_20' ) end [2025-02-23 23:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:55:20] Production.INFO: ==9628== Releasing lock... [2025-02-23 23:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:55:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:56:05 [end_date_ymd] => 2025-02-23 23:56:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:56:05' and `end` < '2025-02-23 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-02-23 23:56:17] Production.INFO: count ==858 [2025-02-23 23:56:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:56:05 - End Time 2025-02-23 23:56:05 [2025-02-23 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543256', 'tblTempUsageDetail_20' ) start [2025-02-23 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543256', 'tblTempUsageDetail_20' ) end [2025-02-23 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543256', 'tblTempVendorCDR_20' ) start [2025-02-23 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543256', 'tblTempVendorCDR_20' ) end [2025-02-23 23:56:17] Production.INFO: ProcessCDR(1,14543256,1,1,2) [2025-02-23 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543256', 'tblTempUsageDetail_20' ) start [2025-02-23 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543256', 'tblTempUsageDetail_20' ) end [2025-02-23 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:56:21] Production.INFO: ==9704== Releasing lock... [2025-02-23 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:56:21] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:57:04 [end_date_ymd] => 2025-02-23 23:57:04 [RateCDR] => 1 ) [2025-02-23 23: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-02-23 20:57:04' and `end` < '2025-02-23 23: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-02-23 23:57:16] Production.INFO: count ==860 [2025-02-23 23:57:16] Production.ERROR: pbx CDR StartTime 2025-02-23 20:57:04 - End Time 2025-02-23 23:57:04 [2025-02-23 23:57:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543261', 'tblTempUsageDetail_20' ) start [2025-02-23 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543261', 'tblTempUsageDetail_20' ) end [2025-02-23 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543261', 'tblTempVendorCDR_20' ) start [2025-02-23 23:57:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543261', 'tblTempVendorCDR_20' ) end [2025-02-23 23:57:16] Production.INFO: ProcessCDR(1,14543261,1,1,2) [2025-02-23 23:57:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:57:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:57:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543261', 'tblTempUsageDetail_20' ) start [2025-02-23 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543261', 'tblTempUsageDetail_20' ) end [2025-02-23 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:57:20] Production.INFO: ==9774== Releasing lock... [2025-02-23 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:57:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:58:05 [end_date_ymd] => 2025-02-23 23:58:05 [RateCDR] => 1 ) [2025-02-23 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-02-23 20:58:05' and `end` < '2025-02-23 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-02-23 23:58:17] Production.INFO: count ==858 [2025-02-23 23:58:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:58:05 - End Time 2025-02-23 23:58:05 [2025-02-23 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543266', 'tblTempUsageDetail_20' ) start [2025-02-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543266', 'tblTempUsageDetail_20' ) end [2025-02-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543266', 'tblTempVendorCDR_20' ) start [2025-02-23 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543266', 'tblTempVendorCDR_20' ) end [2025-02-23 23:58:17] Production.INFO: ProcessCDR(1,14543266,1,1,2) [2025-02-23 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543266', 'tblTempUsageDetail_20' ) start [2025-02-23 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543266', 'tblTempUsageDetail_20' ) end [2025-02-23 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:58:20] Production.INFO: ==9846== Releasing lock... [2025-02-23 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:58:20] Production.INFO: 34.5 MB #Memory Used# [2025-02-23 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-23 20:59:05 [end_date_ymd] => 2025-02-23 23:59:05 [RateCDR] => 1 ) [2025-02-23 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-23 20:59:05' and `end` < '2025-02-23 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-23 23:59:17] Production.INFO: count ==862 [2025-02-23 23:59:17] Production.ERROR: pbx CDR StartTime 2025-02-23 20:59:05 - End Time 2025-02-23 23:59:05 [2025-02-23 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543271', 'tblTempUsageDetail_20' ) start [2025-02-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14543271', 'tblTempUsageDetail_20' ) end [2025-02-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543271', 'tblTempVendorCDR_20' ) start [2025-02-23 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14543271', 'tblTempVendorCDR_20' ) end [2025-02-23 23:59:17] Production.INFO: ProcessCDR(1,14543271,1,1,2) [2025-02-23 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14543271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14543271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-23 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14543271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14543271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-23 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543271', 'tblTempUsageDetail_20' ) start [2025-02-23 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14543271', 'tblTempUsageDetail_20' ) end [2025-02-23 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-23 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-23 23:59:21] Production.INFO: ==9919== Releasing lock... [2025-02-23 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-23 23:59:21] Production.INFO: 34.25 MB #Memory Used#