[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 ,'')