[2025-02-07 00:00:05] Production.INFO: next invoice date [2025-02-07 00:00:05] Production.INFO: 2025-03-07 [2025-02-07 00:00:05] Production.INFO: getdaysdiff [2025-02-07 00:00:05] Production.INFO: +28 [2025-02-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (155,11,1,28,28,'RMScheduler',2025-02-07 00:00:05,1,0,,,0) [2025-02-07 00:00:05] Production.INFO: next invoice date [2025-02-07 00:00:05] Production.INFO: 2025-03-07 [2025-02-07 00:00:05] Production.INFO: getdaysdiff [2025-02-07 00:00:05] Production.INFO: +28 [2025-02-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,28,28,'RMScheduler',2025-02-07 00:00:05,1,0,,,0) [2025-02-07 00:00:05] Production.INFO: next invoice date [2025-02-07 00:00:05] Production.INFO: 2025-03-07 [2025-02-07 00:00:05] Production.INFO: getdaysdiff [2025-02-07 00:00:05] Production.INFO: +28 [2025-02-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,28,28,'RMScheduler',2025-02-07 00:00:05,1,0,,,0) [2025-02-07 00:00:05] Production.INFO: next invoice date [2025-02-07 00:00:05] Production.INFO: 2025-03-07 [2025-02-07 00:00:05] Production.INFO: getdaysdiff [2025-02-07 00:00:05] Production.INFO: +28 [2025-02-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,28,28,'RMScheduler',2025-02-07 00:00:05,0,0,,,0) [2025-02-07 00:00:05] Production.INFO: next invoice date [2025-02-07 00:00:05] Production.INFO: 2025-03-07 [2025-02-07 00:00:05] Production.INFO: getdaysdiff [2025-02-07 00:00:05] Production.INFO: +28 [2025-02-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,28,28,'RMScheduler',2025-02-07 00:00:05,0,0,,,0) [2025-02-07 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:00:07 [end_date_ymd] => 2025-02-07 00:00:07 [RateCDR] => 1 ) [2025-02-07 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-06 21:00:07' and `end` < '2025-02-07 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-07 00:00:21] Production.INFO: count ==776 [2025-02-07 00:00:21] Production.ERROR: pbx CDR StartTime 2025-02-06 21:00:07 - End Time 2025-02-07 00:00:07 [2025-02-07 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418563', 'tblTempUsageDetail_20' ) start [2025-02-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418563', 'tblTempUsageDetail_20' ) end [2025-02-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418563', 'tblTempVendorCDR_20' ) start [2025-02-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418563', 'tblTempVendorCDR_20' ) end [2025-02-07 00:00:21] Production.INFO: ProcessCDR(1,14418563,1,1,2) [2025-02-07 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418563', 'tblTempUsageDetail_20' ) start [2025-02-07 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418563', 'tblTempUsageDetail_20' ) end [2025-02-07 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:00:27] Production.INFO: ==6698== Releasing lock... [2025-02-07 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:00:27] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:01:05 [end_date_ymd] => 2025-02-07 00:01:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:01:05' and `end` < '2025-02-07 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-07 00:01:22] Production.INFO: count ==770 [2025-02-07 00:01:22] Production.ERROR: pbx CDR StartTime 2025-02-06 21:01:05 - End Time 2025-02-07 00:01:05 [2025-02-07 00:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418568', 'tblTempUsageDetail_20' ) start [2025-02-07 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418568', 'tblTempUsageDetail_20' ) end [2025-02-07 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418568', 'tblTempVendorCDR_20' ) start [2025-02-07 00:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418568', 'tblTempVendorCDR_20' ) end [2025-02-07 00:01:22] Production.INFO: ProcessCDR(1,14418568,1,1,2) [2025-02-07 00:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418568', 'tblTempUsageDetail_20' ) start [2025-02-07 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418568', 'tblTempUsageDetail_20' ) end [2025-02-07 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:01:26] Production.INFO: ==6788== Releasing lock... [2025-02-07 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:01:26] Production.INFO: 33 MB #Memory Used# [2025-02-07 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:02:05 [end_date_ymd] => 2025-02-07 00:02:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:02:05' and `end` < '2025-02-07 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-07 00:02:33] Production.INFO: count ==229 [2025-02-07 00:02:33] Production.ERROR: pbx CDR StartTime 2025-02-06 21:02:05 - End Time 2025-02-07 00:02:05 [2025-02-07 00:02:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418573', 'tblTempUsageDetail_20' ) start [2025-02-07 00:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418573', 'tblTempUsageDetail_20' ) end [2025-02-07 00:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418573', 'tblTempVendorCDR_20' ) start [2025-02-07 00:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418573', 'tblTempVendorCDR_20' ) end [2025-02-07 00:02:33] Production.INFO: ProcessCDR(1,14418573,1,1,2) [2025-02-07 00:02:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:02:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418573', 'tblTempUsageDetail_20' ) start [2025-02-07 00:02:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418573', 'tblTempUsageDetail_20' ) end [2025-02-07 00:02:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:02:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:02:37] Production.INFO: ==6861== Releasing lock... [2025-02-07 00:02:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:02:37] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:03:05 [end_date_ymd] => 2025-02-07 00:03:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:03:05' and `end` < '2025-02-07 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-07 00:03:30] Production.INFO: count ==227 [2025-02-07 00:03:30] Production.ERROR: pbx CDR StartTime 2025-02-06 21:03:05 - End Time 2025-02-07 00:03:05 [2025-02-07 00:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418578', 'tblTempUsageDetail_20' ) start [2025-02-07 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418578', 'tblTempUsageDetail_20' ) end [2025-02-07 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418578', 'tblTempVendorCDR_20' ) start [2025-02-07 00:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418578', 'tblTempVendorCDR_20' ) end [2025-02-07 00:03:30] Production.INFO: ProcessCDR(1,14418578,1,1,2) [2025-02-07 00:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:03:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418578', 'tblTempUsageDetail_20' ) start [2025-02-07 00:03:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418578', 'tblTempUsageDetail_20' ) end [2025-02-07 00:03:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:03:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:03:35] Production.INFO: ==6934== Releasing lock... [2025-02-07 00:03:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:03:35] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:04:05 [end_date_ymd] => 2025-02-07 00:04:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:04:05' and `end` < '2025-02-07 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-07 00:04:33] Production.INFO: count ==227 [2025-02-07 00:04:33] Production.ERROR: pbx CDR StartTime 2025-02-06 21:04:05 - End Time 2025-02-07 00:04:05 [2025-02-07 00:04:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418583', 'tblTempUsageDetail_20' ) start [2025-02-07 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418583', 'tblTempUsageDetail_20' ) end [2025-02-07 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418583', 'tblTempVendorCDR_20' ) start [2025-02-07 00:04:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418583', 'tblTempVendorCDR_20' ) end [2025-02-07 00:04:33] Production.INFO: ProcessCDR(1,14418583,1,1,2) [2025-02-07 00:04:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418583', 'tblTempUsageDetail_20' ) start [2025-02-07 00:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418583', 'tblTempUsageDetail_20' ) end [2025-02-07 00:04:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:04:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:04:37] Production.INFO: ==7007== Releasing lock... [2025-02-07 00:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:04:37] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:05:05 [end_date_ymd] => 2025-02-07 00:05:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:05:05' and `end` < '2025-02-07 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-07 00:05:29] Production.INFO: count ==225 [2025-02-07 00:05:29] Production.ERROR: pbx CDR StartTime 2025-02-06 21:05:05 - End Time 2025-02-07 00:05:05 [2025-02-07 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418588', 'tblTempUsageDetail_20' ) start [2025-02-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418588', 'tblTempUsageDetail_20' ) end [2025-02-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418588', 'tblTempVendorCDR_20' ) start [2025-02-07 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418588', 'tblTempVendorCDR_20' ) end [2025-02-07 00:05:29] Production.INFO: ProcessCDR(1,14418588,1,1,2) [2025-02-07 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418588', 'tblTempUsageDetail_20' ) start [2025-02-07 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418588', 'tblTempUsageDetail_20' ) end [2025-02-07 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:05:32] Production.INFO: ==7080== Releasing lock... [2025-02-07 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:05:32] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:06:06 [end_date_ymd] => 2025-02-07 00:06:06 [RateCDR] => 1 ) [2025-02-07 00: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-06 21:06:06' and `end` < '2025-02-07 00: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-07 00:06:27] Production.INFO: count ==225 [2025-02-07 00:06:27] Production.ERROR: pbx CDR StartTime 2025-02-06 21:06:06 - End Time 2025-02-07 00:06:06 [2025-02-07 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418593', 'tblTempUsageDetail_20' ) start [2025-02-07 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418593', 'tblTempUsageDetail_20' ) end [2025-02-07 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418593', 'tblTempVendorCDR_20' ) start [2025-02-07 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418593', 'tblTempVendorCDR_20' ) end [2025-02-07 00:06:27] Production.INFO: ProcessCDR(1,14418593,1,1,2) [2025-02-07 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418593', 'tblTempUsageDetail_20' ) start [2025-02-07 00:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418593', 'tblTempUsageDetail_20' ) end [2025-02-07 00:06:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:06:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:06:32] Production.INFO: ==7153== Releasing lock... [2025-02-07 00:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:06:32] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:07:05 [end_date_ymd] => 2025-02-07 00:07:05 [RateCDR] => 1 ) [2025-02-07 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:07:05' and `end` < '2025-02-07 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:07:21] Production.INFO: count ==228 [2025-02-07 00:07:21] Production.ERROR: pbx CDR StartTime 2025-02-06 21:07:05 - End Time 2025-02-07 00:07:05 [2025-02-07 00:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418598', 'tblTempUsageDetail_20' ) start [2025-02-07 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418598', 'tblTempUsageDetail_20' ) end [2025-02-07 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418598', 'tblTempVendorCDR_20' ) start [2025-02-07 00:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418598', 'tblTempVendorCDR_20' ) end [2025-02-07 00:07:21] Production.INFO: ProcessCDR(1,14418598,1,1,2) [2025-02-07 00:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418598', 'tblTempUsageDetail_20' ) start [2025-02-07 00:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418598', 'tblTempUsageDetail_20' ) end [2025-02-07 00:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:07:24] Production.INFO: ==7226== Releasing lock... [2025-02-07 00:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:07:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:08:06 [end_date_ymd] => 2025-02-07 00:08:06 [RateCDR] => 1 ) [2025-02-07 00: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-06 21:08:06' and `end` < '2025-02-07 00: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-07 00:08:19] Production.INFO: count ==225 [2025-02-07 00:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:08:06 - End Time 2025-02-07 00:08:06 [2025-02-07 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418603', 'tblTempUsageDetail_20' ) start [2025-02-07 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418603', 'tblTempUsageDetail_20' ) end [2025-02-07 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418603', 'tblTempVendorCDR_20' ) start [2025-02-07 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418603', 'tblTempVendorCDR_20' ) end [2025-02-07 00:08:19] Production.INFO: ProcessCDR(1,14418603,1,1,2) [2025-02-07 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418603', 'tblTempUsageDetail_20' ) start [2025-02-07 00:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418603', 'tblTempUsageDetail_20' ) end [2025-02-07 00:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:08:22] Production.INFO: ==7301== Releasing lock... [2025-02-07 00:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:08:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:09:05 [end_date_ymd] => 2025-02-07 00:09:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:09:05' and `end` < '2025-02-07 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-07 00:09:19] Production.INFO: count ==223 [2025-02-07 00:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:09:05 - End Time 2025-02-07 00:09:05 [2025-02-07 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418608', 'tblTempUsageDetail_20' ) start [2025-02-07 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418608', 'tblTempUsageDetail_20' ) end [2025-02-07 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418608', 'tblTempVendorCDR_20' ) start [2025-02-07 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418608', 'tblTempVendorCDR_20' ) end [2025-02-07 00:09:19] Production.INFO: ProcessCDR(1,14418608,1,1,2) [2025-02-07 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418608', 'tblTempUsageDetail_20' ) start [2025-02-07 00:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418608', 'tblTempUsageDetail_20' ) end [2025-02-07 00:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:09:24] Production.INFO: ==7372== Releasing lock... [2025-02-07 00:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:09:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:10:06 [end_date_ymd] => 2025-02-07 00:10:06 [RateCDR] => 1 ) [2025-02-07 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-06 21:10:06' and `end` < '2025-02-07 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-07 00:10:26] Production.INFO: count ==231 [2025-02-07 00:10:26] Production.ERROR: pbx CDR StartTime 2025-02-06 21:10:06 - End Time 2025-02-07 00:10:06 [2025-02-07 00:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418613', 'tblTempUsageDetail_20' ) start [2025-02-07 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418613', 'tblTempUsageDetail_20' ) end [2025-02-07 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418613', 'tblTempVendorCDR_20' ) start [2025-02-07 00:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418613', 'tblTempVendorCDR_20' ) end [2025-02-07 00:10:26] Production.INFO: ProcessCDR(1,14418613,1,1,2) [2025-02-07 00:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418613', 'tblTempUsageDetail_20' ) start [2025-02-07 00:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418613', 'tblTempUsageDetail_20' ) end [2025-02-07 00:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:10:30] Production.INFO: ==7487== Releasing lock... [2025-02-07 00:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:10:30] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:11:05 [end_date_ymd] => 2025-02-07 00:11:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:11:05' and `end` < '2025-02-07 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-07 00:11:39] Production.INFO: count ==236 [2025-02-07 00:11:39] Production.ERROR: pbx CDR StartTime 2025-02-06 21:11:05 - End Time 2025-02-07 00:11:05 [2025-02-07 00:11:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418619', 'tblTempUsageDetail_20' ) start [2025-02-07 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418619', 'tblTempUsageDetail_20' ) end [2025-02-07 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418619', 'tblTempVendorCDR_20' ) start [2025-02-07 00:11:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418619', 'tblTempVendorCDR_20' ) end [2025-02-07 00:11:39] Production.INFO: ProcessCDR(1,14418619,1,1,2) [2025-02-07 00:11:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:11:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418619', 'tblTempUsageDetail_20' ) start [2025-02-07 00:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418619', 'tblTempUsageDetail_20' ) end [2025-02-07 00:11:42] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:11:42] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:11:42] Production.INFO: ==7563== Releasing lock... [2025-02-07 00:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:11:42] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:12:05 [end_date_ymd] => 2025-02-07 00:12:05 [RateCDR] => 1 ) [2025-02-07 00:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:12:05' and `end` < '2025-02-07 00:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:12:29] Production.INFO: count ==232 [2025-02-07 00:12:30] Production.ERROR: pbx CDR StartTime 2025-02-06 21:12:05 - End Time 2025-02-07 00:12:05 [2025-02-07 00:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418624', 'tblTempUsageDetail_20' ) start [2025-02-07 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418624', 'tblTempUsageDetail_20' ) end [2025-02-07 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418624', 'tblTempVendorCDR_20' ) start [2025-02-07 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418624', 'tblTempVendorCDR_20' ) end [2025-02-07 00:12:30] Production.INFO: ProcessCDR(1,14418624,1,1,2) [2025-02-07 00:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418624', 'tblTempUsageDetail_20' ) start [2025-02-07 00:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418624', 'tblTempUsageDetail_20' ) end [2025-02-07 00:12:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:12:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:12:33] Production.INFO: ==7634== Releasing lock... [2025-02-07 00:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:12:33] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:13:05 [end_date_ymd] => 2025-02-07 00:13:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:13:05' and `end` < '2025-02-07 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-07 00:13:22] Production.INFO: count ==234 [2025-02-07 00:13:22] Production.ERROR: pbx CDR StartTime 2025-02-06 21:13:05 - End Time 2025-02-07 00:13:05 [2025-02-07 00:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418629', 'tblTempUsageDetail_20' ) start [2025-02-07 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418629', 'tblTempUsageDetail_20' ) end [2025-02-07 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418629', 'tblTempVendorCDR_20' ) start [2025-02-07 00:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418629', 'tblTempVendorCDR_20' ) end [2025-02-07 00:13:22] Production.INFO: ProcessCDR(1,14418629,1,1,2) [2025-02-07 00:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418629', 'tblTempUsageDetail_20' ) start [2025-02-07 00:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418629', 'tblTempUsageDetail_20' ) end [2025-02-07 00:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:13:25] Production.INFO: ==7706== Releasing lock... [2025-02-07 00:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:13:25] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:14:05 [end_date_ymd] => 2025-02-07 00:14:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:14:05' and `end` < '2025-02-07 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-07 00:14:24] Production.INFO: count ==231 [2025-02-07 00:14:24] Production.ERROR: pbx CDR StartTime 2025-02-06 21:14:05 - End Time 2025-02-07 00:14:05 [2025-02-07 00:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418634', 'tblTempUsageDetail_20' ) start [2025-02-07 00:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418634', 'tblTempUsageDetail_20' ) end [2025-02-07 00:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418634', 'tblTempVendorCDR_20' ) start [2025-02-07 00:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418634', 'tblTempVendorCDR_20' ) end [2025-02-07 00:14:24] Production.INFO: ProcessCDR(1,14418634,1,1,2) [2025-02-07 00:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418634', 'tblTempUsageDetail_20' ) start [2025-02-07 00:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418634', 'tblTempUsageDetail_20' ) end [2025-02-07 00:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:14:27] Production.INFO: ==7786== Releasing lock... [2025-02-07 00:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:14:27] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:15:05 [end_date_ymd] => 2025-02-07 00:15:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:15:05' and `end` < '2025-02-07 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-07 00:15:21] Production.INFO: count ==230 [2025-02-07 00:15:21] Production.ERROR: pbx CDR StartTime 2025-02-06 21:15:05 - End Time 2025-02-07 00:15:05 [2025-02-07 00:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418639', 'tblTempUsageDetail_20' ) start [2025-02-07 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418639', 'tblTempUsageDetail_20' ) end [2025-02-07 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418639', 'tblTempVendorCDR_20' ) start [2025-02-07 00:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418639', 'tblTempVendorCDR_20' ) end [2025-02-07 00:15:21] Production.INFO: ProcessCDR(1,14418639,1,1,2) [2025-02-07 00:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418639', 'tblTempUsageDetail_20' ) start [2025-02-07 00:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418639', 'tblTempUsageDetail_20' ) end [2025-02-07 00:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:15:24] Production.INFO: ==7861== Releasing lock... [2025-02-07 00:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:15:24] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:16:05 [end_date_ymd] => 2025-02-07 00:16:05 [RateCDR] => 1 ) [2025-02-07 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:16:05' and `end` < '2025-02-07 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:16:21] Production.INFO: count ==226 [2025-02-07 00:16:21] Production.ERROR: pbx CDR StartTime 2025-02-06 21:16:05 - End Time 2025-02-07 00:16:05 [2025-02-07 00:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418644', 'tblTempUsageDetail_20' ) start [2025-02-07 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418644', 'tblTempUsageDetail_20' ) end [2025-02-07 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418644', 'tblTempVendorCDR_20' ) start [2025-02-07 00:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418644', 'tblTempVendorCDR_20' ) end [2025-02-07 00:16:21] Production.INFO: ProcessCDR(1,14418644,1,1,2) [2025-02-07 00:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418644', 'tblTempUsageDetail_20' ) start [2025-02-07 00:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418644', 'tblTempUsageDetail_20' ) end [2025-02-07 00:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:16:24] Production.INFO: ==7931== Releasing lock... [2025-02-07 00:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:16:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:17:05 [end_date_ymd] => 2025-02-07 00:17:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:17:05' and `end` < '2025-02-07 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-07 00:17:21] Production.INFO: count ==226 [2025-02-07 00:17:21] Production.ERROR: pbx CDR StartTime 2025-02-06 21:17:05 - End Time 2025-02-07 00:17:05 [2025-02-07 00:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418649', 'tblTempUsageDetail_20' ) start [2025-02-07 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418649', 'tblTempUsageDetail_20' ) end [2025-02-07 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418649', 'tblTempVendorCDR_20' ) start [2025-02-07 00:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418649', 'tblTempVendorCDR_20' ) end [2025-02-07 00:17:21] Production.INFO: ProcessCDR(1,14418649,1,1,2) [2025-02-07 00:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418649', 'tblTempUsageDetail_20' ) start [2025-02-07 00:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418649', 'tblTempUsageDetail_20' ) end [2025-02-07 00:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:17:24] Production.INFO: ==8003== Releasing lock... [2025-02-07 00:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:17:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:18:05 [end_date_ymd] => 2025-02-07 00:18:05 [RateCDR] => 1 ) [2025-02-07 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:18:05' and `end` < '2025-02-07 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:18:18] Production.INFO: count ==232 [2025-02-07 00:18:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:18:05 - End Time 2025-02-07 00:18:05 [2025-02-07 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418654', 'tblTempUsageDetail_20' ) start [2025-02-07 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418654', 'tblTempUsageDetail_20' ) end [2025-02-07 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418654', 'tblTempVendorCDR_20' ) start [2025-02-07 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418654', 'tblTempVendorCDR_20' ) end [2025-02-07 00:18:18] Production.INFO: ProcessCDR(1,14418654,1,1,2) [2025-02-07 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418654', 'tblTempUsageDetail_20' ) start [2025-02-07 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418654', 'tblTempUsageDetail_20' ) end [2025-02-07 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:18:21] Production.INFO: ==8087== Releasing lock... [2025-02-07 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:18:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:19:05 [end_date_ymd] => 2025-02-07 00:19:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:19:05' and `end` < '2025-02-07 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-07 00:19:18] Production.INFO: count ==232 [2025-02-07 00:19:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:19:05 - End Time 2025-02-07 00:19:05 [2025-02-07 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418659', 'tblTempUsageDetail_20' ) start [2025-02-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418659', 'tblTempUsageDetail_20' ) end [2025-02-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418659', 'tblTempVendorCDR_20' ) start [2025-02-07 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418659', 'tblTempVendorCDR_20' ) end [2025-02-07 00:19:18] Production.INFO: ProcessCDR(1,14418659,1,1,2) [2025-02-07 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418659', 'tblTempUsageDetail_20' ) start [2025-02-07 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418659', 'tblTempUsageDetail_20' ) end [2025-02-07 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:19:22] Production.INFO: ==8159== Releasing lock... [2025-02-07 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:19:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:20:06 [end_date_ymd] => 2025-02-07 00:20:06 [RateCDR] => 1 ) [2025-02-07 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-06 21:20:06' and `end` < '2025-02-07 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-07 00:20:19] Production.INFO: count ==242 [2025-02-07 00:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:20:06 - End Time 2025-02-07 00:20:06 [2025-02-07 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418665', 'tblTempUsageDetail_20' ) start [2025-02-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418665', 'tblTempUsageDetail_20' ) end [2025-02-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418665', 'tblTempVendorCDR_20' ) start [2025-02-07 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418665', 'tblTempVendorCDR_20' ) end [2025-02-07 00:20:19] Production.INFO: ProcessCDR(1,14418665,1,1,2) [2025-02-07 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418665', 'tblTempUsageDetail_20' ) start [2025-02-07 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418665', 'tblTempUsageDetail_20' ) end [2025-02-07 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:20:22] Production.INFO: ==8233== Releasing lock... [2025-02-07 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:20:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:21:05 [end_date_ymd] => 2025-02-07 00:21:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:21:05' and `end` < '2025-02-07 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-07 00:21:19] Production.INFO: count ==242 [2025-02-07 00:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:21:05 - End Time 2025-02-07 00:21:05 [2025-02-07 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418670', 'tblTempUsageDetail_20' ) start [2025-02-07 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418670', 'tblTempUsageDetail_20' ) end [2025-02-07 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418670', 'tblTempVendorCDR_20' ) start [2025-02-07 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418670', 'tblTempVendorCDR_20' ) end [2025-02-07 00:21:19] Production.INFO: ProcessCDR(1,14418670,1,1,2) [2025-02-07 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418670', 'tblTempUsageDetail_20' ) start [2025-02-07 00:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418670', 'tblTempUsageDetail_20' ) end [2025-02-07 00:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:21:23] Production.INFO: ==8308== Releasing lock... [2025-02-07 00:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:21:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:22:05 [end_date_ymd] => 2025-02-07 00:22:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:22:05' and `end` < '2025-02-07 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-07 00:22:18] Production.INFO: count ==242 [2025-02-07 00:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:22:05 - End Time 2025-02-07 00:22:05 [2025-02-07 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418675', 'tblTempUsageDetail_20' ) start [2025-02-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418675', 'tblTempUsageDetail_20' ) end [2025-02-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418675', 'tblTempVendorCDR_20' ) start [2025-02-07 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418675', 'tblTempVendorCDR_20' ) end [2025-02-07 00:22:18] Production.INFO: ProcessCDR(1,14418675,1,1,2) [2025-02-07 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418675', 'tblTempUsageDetail_20' ) start [2025-02-07 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418675', 'tblTempUsageDetail_20' ) end [2025-02-07 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:22:21] Production.INFO: ==8379== Releasing lock... [2025-02-07 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:22:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:23:05 [end_date_ymd] => 2025-02-07 00:23:05 [RateCDR] => 1 ) [2025-02-07 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:23:05' and `end` < '2025-02-07 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:23:20] Production.INFO: count ==239 [2025-02-07 00:23:20] Production.ERROR: pbx CDR StartTime 2025-02-06 21:23:05 - End Time 2025-02-07 00:23:05 [2025-02-07 00:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418680', 'tblTempUsageDetail_20' ) start [2025-02-07 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418680', 'tblTempUsageDetail_20' ) end [2025-02-07 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418680', 'tblTempVendorCDR_20' ) start [2025-02-07 00:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418680', 'tblTempVendorCDR_20' ) end [2025-02-07 00:23:20] Production.INFO: ProcessCDR(1,14418680,1,1,2) [2025-02-07 00:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418680', 'tblTempUsageDetail_20' ) start [2025-02-07 00:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418680', 'tblTempUsageDetail_20' ) end [2025-02-07 00:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:23:23] Production.INFO: ==8450== Releasing lock... [2025-02-07 00:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:23:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:24:05 [end_date_ymd] => 2025-02-07 00:24:05 [RateCDR] => 1 ) [2025-02-07 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:24:05' and `end` < '2025-02-07 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:24:18] Production.INFO: count ==239 [2025-02-07 00:24:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:24:05 - End Time 2025-02-07 00:24:05 [2025-02-07 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418685', 'tblTempUsageDetail_20' ) start [2025-02-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418685', 'tblTempUsageDetail_20' ) end [2025-02-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418685', 'tblTempVendorCDR_20' ) start [2025-02-07 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418685', 'tblTempVendorCDR_20' ) end [2025-02-07 00:24:18] Production.INFO: ProcessCDR(1,14418685,1,1,2) [2025-02-07 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418685', 'tblTempUsageDetail_20' ) start [2025-02-07 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418685', 'tblTempUsageDetail_20' ) end [2025-02-07 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:24:21] Production.INFO: ==8525== Releasing lock... [2025-02-07 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:25:05 [end_date_ymd] => 2025-02-07 00:25:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:25:05' and `end` < '2025-02-07 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-07 00:25:18] Production.INFO: count ==239 [2025-02-07 00:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:25:05 - End Time 2025-02-07 00:25:05 [2025-02-07 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418690', 'tblTempUsageDetail_20' ) start [2025-02-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418690', 'tblTempUsageDetail_20' ) end [2025-02-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418690', 'tblTempVendorCDR_20' ) start [2025-02-07 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418690', 'tblTempVendorCDR_20' ) end [2025-02-07 00:25:18] Production.INFO: ProcessCDR(1,14418690,1,1,2) [2025-02-07 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418690', 'tblTempUsageDetail_20' ) start [2025-02-07 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418690', 'tblTempUsageDetail_20' ) end [2025-02-07 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:25:21] Production.INFO: ==8596== Releasing lock... [2025-02-07 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:26:05 [end_date_ymd] => 2025-02-07 00:26:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:26:05' and `end` < '2025-02-07 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-07 00:26:18] Production.INFO: count ==239 [2025-02-07 00:26:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:26:05 - End Time 2025-02-07 00:26:05 [2025-02-07 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418695', 'tblTempUsageDetail_20' ) start [2025-02-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418695', 'tblTempUsageDetail_20' ) end [2025-02-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418695', 'tblTempVendorCDR_20' ) start [2025-02-07 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418695', 'tblTempVendorCDR_20' ) end [2025-02-07 00:26:18] Production.INFO: ProcessCDR(1,14418695,1,1,2) [2025-02-07 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418695', 'tblTempUsageDetail_20' ) start [2025-02-07 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418695', 'tblTempUsageDetail_20' ) end [2025-02-07 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:26:21] Production.INFO: ==8706== Releasing lock... [2025-02-07 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:27:06 [end_date_ymd] => 2025-02-07 00:27:06 [RateCDR] => 1 ) [2025-02-07 00: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-06 21:27:06' and `end` < '2025-02-07 00: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-07 00:27:18] Production.INFO: count ==239 [2025-02-07 00:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:27:06 - End Time 2025-02-07 00:27:06 [2025-02-07 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418700', 'tblTempUsageDetail_20' ) start [2025-02-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418700', 'tblTempUsageDetail_20' ) end [2025-02-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418700', 'tblTempVendorCDR_20' ) start [2025-02-07 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418700', 'tblTempVendorCDR_20' ) end [2025-02-07 00:27:19] Production.INFO: ProcessCDR(1,14418700,1,1,2) [2025-02-07 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418700', 'tblTempUsageDetail_20' ) start [2025-02-07 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418700', 'tblTempUsageDetail_20' ) end [2025-02-07 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:27:22] Production.INFO: ==8779== Releasing lock... [2025-02-07 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:27:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:28:05 [end_date_ymd] => 2025-02-07 00:28:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:28:05' and `end` < '2025-02-07 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-07 00:28:18] Production.INFO: count ==244 [2025-02-07 00:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:28:05 - End Time 2025-02-07 00:28:05 [2025-02-07 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418705', 'tblTempUsageDetail_20' ) start [2025-02-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418705', 'tblTempUsageDetail_20' ) end [2025-02-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418705', 'tblTempVendorCDR_20' ) start [2025-02-07 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418705', 'tblTempVendorCDR_20' ) end [2025-02-07 00:28:18] Production.INFO: ProcessCDR(1,14418705,1,1,2) [2025-02-07 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418705', 'tblTempUsageDetail_20' ) start [2025-02-07 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418705', 'tblTempUsageDetail_20' ) end [2025-02-07 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:28:23] Production.INFO: ==8855== Releasing lock... [2025-02-07 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:28:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:29:05 [end_date_ymd] => 2025-02-07 00:29:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:29:05' and `end` < '2025-02-07 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-07 00:29:18] Production.INFO: count ==244 [2025-02-07 00:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:29:05 - End Time 2025-02-07 00:29:05 [2025-02-07 00:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418710', 'tblTempUsageDetail_20' ) start [2025-02-07 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418710', 'tblTempUsageDetail_20' ) end [2025-02-07 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418710', 'tblTempVendorCDR_20' ) start [2025-02-07 00:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418710', 'tblTempVendorCDR_20' ) end [2025-02-07 00:29:19] Production.INFO: ProcessCDR(1,14418710,1,1,2) [2025-02-07 00:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418710', 'tblTempUsageDetail_20' ) start [2025-02-07 00:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418710', 'tblTempUsageDetail_20' ) end [2025-02-07 00:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:29:22] Production.INFO: ==8932== Releasing lock... [2025-02-07 00:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:29:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:30:06 [end_date_ymd] => 2025-02-07 00:30:06 [RateCDR] => 1 ) [2025-02-07 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-06 21:30:06' and `end` < '2025-02-07 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-07 00:30:19] Production.INFO: count ==249 [2025-02-07 00:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:30:06 - End Time 2025-02-07 00:30:06 [2025-02-07 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418715', 'tblTempUsageDetail_20' ) start [2025-02-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418715', 'tblTempUsageDetail_20' ) end [2025-02-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418715', 'tblTempVendorCDR_20' ) start [2025-02-07 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418715', 'tblTempVendorCDR_20' ) end [2025-02-07 00:30:19] Production.INFO: ProcessCDR(1,14418715,1,1,2) [2025-02-07 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418715', 'tblTempUsageDetail_20' ) start [2025-02-07 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418715', 'tblTempUsageDetail_20' ) end [2025-02-07 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:30:22] Production.INFO: ==9006== Releasing lock... [2025-02-07 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:31:05 [end_date_ymd] => 2025-02-07 00:31:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:31:05' and `end` < '2025-02-07 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-07 00:31:19] Production.INFO: count ==251 [2025-02-07 00:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:31:05 - End Time 2025-02-07 00:31:05 [2025-02-07 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418721', 'tblTempUsageDetail_20' ) start [2025-02-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418721', 'tblTempUsageDetail_20' ) end [2025-02-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418721', 'tblTempVendorCDR_20' ) start [2025-02-07 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418721', 'tblTempVendorCDR_20' ) end [2025-02-07 00:31:19] Production.INFO: ProcessCDR(1,14418721,1,1,2) [2025-02-07 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418721', 'tblTempUsageDetail_20' ) start [2025-02-07 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418721', 'tblTempUsageDetail_20' ) end [2025-02-07 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:31:22] Production.INFO: ==9080== Releasing lock... [2025-02-07 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:31:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:32:05 [end_date_ymd] => 2025-02-07 00:32:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:32:05' and `end` < '2025-02-07 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-07 00:32:18] Production.INFO: count ==251 [2025-02-07 00:32:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:32:05 - End Time 2025-02-07 00:32:05 [2025-02-07 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418726', 'tblTempUsageDetail_20' ) start [2025-02-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418726', 'tblTempUsageDetail_20' ) end [2025-02-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418726', 'tblTempVendorCDR_20' ) start [2025-02-07 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418726', 'tblTempVendorCDR_20' ) end [2025-02-07 00:32:18] Production.INFO: ProcessCDR(1,14418726,1,1,2) [2025-02-07 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418726', 'tblTempUsageDetail_20' ) start [2025-02-07 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418726', 'tblTempUsageDetail_20' ) end [2025-02-07 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:32:21] Production.INFO: ==9154== Releasing lock... [2025-02-07 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:33:05 [end_date_ymd] => 2025-02-07 00:33:05 [RateCDR] => 1 ) [2025-02-07 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:33:05' and `end` < '2025-02-07 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-07 00:33:18] Production.INFO: count ==251 [2025-02-07 00:33:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:33:05 - End Time 2025-02-07 00:33:05 [2025-02-07 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418731', 'tblTempUsageDetail_20' ) start [2025-02-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418731', 'tblTempUsageDetail_20' ) end [2025-02-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418731', 'tblTempVendorCDR_20' ) start [2025-02-07 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418731', 'tblTempVendorCDR_20' ) end [2025-02-07 00:33:18] Production.INFO: ProcessCDR(1,14418731,1,1,2) [2025-02-07 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418731', 'tblTempUsageDetail_20' ) start [2025-02-07 00:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418731', 'tblTempUsageDetail_20' ) end [2025-02-07 00:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:33:22] Production.INFO: ==9226== Releasing lock... [2025-02-07 00:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:33:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:34:05 [end_date_ymd] => 2025-02-07 00:34:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:34:05' and `end` < '2025-02-07 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-07 00:34:19] Production.INFO: count ==251 [2025-02-07 00:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:34:05 - End Time 2025-02-07 00:34:05 [2025-02-07 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418736', 'tblTempUsageDetail_20' ) start [2025-02-07 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418736', 'tblTempUsageDetail_20' ) end [2025-02-07 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418736', 'tblTempVendorCDR_20' ) start [2025-02-07 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418736', 'tblTempVendorCDR_20' ) end [2025-02-07 00:34:19] Production.INFO: ProcessCDR(1,14418736,1,1,2) [2025-02-07 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418736', 'tblTempUsageDetail_20' ) start [2025-02-07 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418736', 'tblTempUsageDetail_20' ) end [2025-02-07 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:34:22] Production.INFO: ==9306== Releasing lock... [2025-02-07 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:35:05 [end_date_ymd] => 2025-02-07 00:35:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:35:05' and `end` < '2025-02-07 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-07 00:35:18] Production.INFO: count ==251 [2025-02-07 00:35:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:35:05 - End Time 2025-02-07 00:35:05 [2025-02-07 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418741', 'tblTempUsageDetail_20' ) start [2025-02-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418741', 'tblTempUsageDetail_20' ) end [2025-02-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418741', 'tblTempVendorCDR_20' ) start [2025-02-07 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418741', 'tblTempVendorCDR_20' ) end [2025-02-07 00:35:18] Production.INFO: ProcessCDR(1,14418741,1,1,2) [2025-02-07 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418741', 'tblTempUsageDetail_20' ) start [2025-02-07 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418741', 'tblTempUsageDetail_20' ) end [2025-02-07 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:35:21] Production.INFO: ==9377== Releasing lock... [2025-02-07 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:36:05 [end_date_ymd] => 2025-02-07 00:36:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:36:05' and `end` < '2025-02-07 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-07 00:36:18] Production.INFO: count ==250 [2025-02-07 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:36:05 - End Time 2025-02-07 00:36:05 [2025-02-07 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418746', 'tblTempUsageDetail_20' ) start [2025-02-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418746', 'tblTempUsageDetail_20' ) end [2025-02-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418746', 'tblTempVendorCDR_20' ) start [2025-02-07 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418746', 'tblTempVendorCDR_20' ) end [2025-02-07 00:36:18] Production.INFO: ProcessCDR(1,14418746,1,1,2) [2025-02-07 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418746', 'tblTempUsageDetail_20' ) start [2025-02-07 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418746', 'tblTempUsageDetail_20' ) end [2025-02-07 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:36:21] Production.INFO: ==9450== Releasing lock... [2025-02-07 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:36:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:37:04 [end_date_ymd] => 2025-02-07 00:37:04 [RateCDR] => 1 ) [2025-02-07 00:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:37:04' and `end` < '2025-02-07 00:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:37:17] Production.INFO: count ==249 [2025-02-07 00:37:17] Production.ERROR: pbx CDR StartTime 2025-02-06 21:37:04 - End Time 2025-02-07 00:37:04 [2025-02-07 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418751', 'tblTempUsageDetail_20' ) start [2025-02-07 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418751', 'tblTempUsageDetail_20' ) end [2025-02-07 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418751', 'tblTempVendorCDR_20' ) start [2025-02-07 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418751', 'tblTempVendorCDR_20' ) end [2025-02-07 00:37:17] Production.INFO: ProcessCDR(1,14418751,1,1,2) [2025-02-07 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418751', 'tblTempUsageDetail_20' ) start [2025-02-07 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418751', 'tblTempUsageDetail_20' ) end [2025-02-07 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:37:21] Production.INFO: ==9520== Releasing lock... [2025-02-07 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:38:05 [end_date_ymd] => 2025-02-07 00:38:05 [RateCDR] => 1 ) [2025-02-07 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:38:05' and `end` < '2025-02-07 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:38:18] Production.INFO: count ==249 [2025-02-07 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:38:05 - End Time 2025-02-07 00:38:05 [2025-02-07 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418756', 'tblTempUsageDetail_20' ) start [2025-02-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418756', 'tblTempUsageDetail_20' ) end [2025-02-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418756', 'tblTempVendorCDR_20' ) start [2025-02-07 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418756', 'tblTempVendorCDR_20' ) end [2025-02-07 00:38:18] Production.INFO: ProcessCDR(1,14418756,1,1,2) [2025-02-07 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418756', 'tblTempUsageDetail_20' ) start [2025-02-07 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418756', 'tblTempUsageDetail_20' ) end [2025-02-07 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:38:22] Production.INFO: ==9594== Releasing lock... [2025-02-07 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:39:04 [end_date_ymd] => 2025-02-07 00:39:04 [RateCDR] => 1 ) [2025-02-07 00: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-06 21:39:04' and `end` < '2025-02-07 00: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-07 00:39:20] Production.INFO: count ==247 [2025-02-07 00:39:20] Production.ERROR: pbx CDR StartTime 2025-02-06 21:39:04 - End Time 2025-02-07 00:39:04 [2025-02-07 00:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418761', 'tblTempUsageDetail_20' ) start [2025-02-07 00:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418761', 'tblTempUsageDetail_20' ) end [2025-02-07 00:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418761', 'tblTempVendorCDR_20' ) start [2025-02-07 00:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418761', 'tblTempVendorCDR_20' ) end [2025-02-07 00:39:20] Production.INFO: ProcessCDR(1,14418761,1,1,2) [2025-02-07 00:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418761', 'tblTempUsageDetail_20' ) start [2025-02-07 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418761', 'tblTempUsageDetail_20' ) end [2025-02-07 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:39:25] Production.INFO: ==9668== Releasing lock... [2025-02-07 00:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:39:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:40:06 [end_date_ymd] => 2025-02-07 00:40:06 [RateCDR] => 1 ) [2025-02-07 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-06 21:40:06' and `end` < '2025-02-07 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-07 00:40:19] Production.INFO: count ==256 [2025-02-07 00:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:40:06 - End Time 2025-02-07 00:40:06 [2025-02-07 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418766', 'tblTempUsageDetail_20' ) start [2025-02-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418766', 'tblTempUsageDetail_20' ) end [2025-02-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418766', 'tblTempVendorCDR_20' ) start [2025-02-07 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418766', 'tblTempVendorCDR_20' ) end [2025-02-07 00:40:19] Production.INFO: ProcessCDR(1,14418766,1,1,2) [2025-02-07 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418766', 'tblTempUsageDetail_20' ) start [2025-02-07 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418766', 'tblTempUsageDetail_20' ) end [2025-02-07 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:40:22] Production.INFO: ==9743== Releasing lock... [2025-02-07 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:41:05 [end_date_ymd] => 2025-02-07 00:41:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:41:05' and `end` < '2025-02-07 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-07 00:41:20] Production.INFO: count ==253 [2025-02-07 00:41:20] Production.ERROR: pbx CDR StartTime 2025-02-06 21:41:05 - End Time 2025-02-07 00:41:05 [2025-02-07 00:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418772', 'tblTempUsageDetail_20' ) start [2025-02-07 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418772', 'tblTempUsageDetail_20' ) end [2025-02-07 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418772', 'tblTempVendorCDR_20' ) start [2025-02-07 00:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418772', 'tblTempVendorCDR_20' ) end [2025-02-07 00:41:20] Production.INFO: ProcessCDR(1,14418772,1,1,2) [2025-02-07 00:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418772', 'tblTempUsageDetail_20' ) start [2025-02-07 00:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418772', 'tblTempUsageDetail_20' ) end [2025-02-07 00:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:41:23] Production.INFO: ==9857== Releasing lock... [2025-02-07 00:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:42:05 [end_date_ymd] => 2025-02-07 00:42:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:42:05' and `end` < '2025-02-07 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-07 00:42:18] Production.INFO: count ==247 [2025-02-07 00:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:42:05 - End Time 2025-02-07 00:42:05 [2025-02-07 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418777', 'tblTempUsageDetail_20' ) start [2025-02-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418777', 'tblTempUsageDetail_20' ) end [2025-02-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418777', 'tblTempVendorCDR_20' ) start [2025-02-07 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418777', 'tblTempVendorCDR_20' ) end [2025-02-07 00:42:19] Production.INFO: ProcessCDR(1,14418777,1,1,2) [2025-02-07 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418777', 'tblTempUsageDetail_20' ) start [2025-02-07 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418777', 'tblTempUsageDetail_20' ) end [2025-02-07 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:42:22] Production.INFO: ==9931== Releasing lock... [2025-02-07 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:43:06 [end_date_ymd] => 2025-02-07 00:43:06 [RateCDR] => 1 ) [2025-02-07 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-06 21:43:06' and `end` < '2025-02-07 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-07 00:43:18] Production.INFO: count ==245 [2025-02-07 00:43:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:43:06 - End Time 2025-02-07 00:43:06 [2025-02-07 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418782', 'tblTempUsageDetail_20' ) start [2025-02-07 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418782', 'tblTempUsageDetail_20' ) end [2025-02-07 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418782', 'tblTempVendorCDR_20' ) start [2025-02-07 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418782', 'tblTempVendorCDR_20' ) end [2025-02-07 00:43:19] Production.INFO: ProcessCDR(1,14418782,1,1,2) [2025-02-07 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418782', 'tblTempUsageDetail_20' ) start [2025-02-07 00:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418782', 'tblTempUsageDetail_20' ) end [2025-02-07 00:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:43:22] Production.INFO: ==10001== Releasing lock... [2025-02-07 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:43:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:44:05 [end_date_ymd] => 2025-02-07 00:44:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:44:05' and `end` < '2025-02-07 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-07 00:44:19] Production.INFO: count ==244 [2025-02-07 00:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:44:05 - End Time 2025-02-07 00:44:05 [2025-02-07 00:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418787', 'tblTempUsageDetail_20' ) start [2025-02-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418787', 'tblTempUsageDetail_20' ) end [2025-02-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418787', 'tblTempVendorCDR_20' ) start [2025-02-07 00:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418787', 'tblTempVendorCDR_20' ) end [2025-02-07 00:44:19] Production.INFO: ProcessCDR(1,14418787,1,1,2) [2025-02-07 00:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418787', 'tblTempUsageDetail_20' ) start [2025-02-07 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418787', 'tblTempUsageDetail_20' ) end [2025-02-07 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:44:22] Production.INFO: ==10071== Releasing lock... [2025-02-07 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:44:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:45:05 [end_date_ymd] => 2025-02-07 00:45:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:45:05' and `end` < '2025-02-07 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-07 00:45:18] Production.INFO: count ==244 [2025-02-07 00:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:45:05 - End Time 2025-02-07 00:45:05 [2025-02-07 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418792', 'tblTempUsageDetail_20' ) start [2025-02-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418792', 'tblTempUsageDetail_20' ) end [2025-02-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418792', 'tblTempVendorCDR_20' ) start [2025-02-07 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418792', 'tblTempVendorCDR_20' ) end [2025-02-07 00:45:18] Production.INFO: ProcessCDR(1,14418792,1,1,2) [2025-02-07 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418792', 'tblTempUsageDetail_20' ) start [2025-02-07 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418792', 'tblTempUsageDetail_20' ) end [2025-02-07 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:45:22] Production.INFO: ==10142== Releasing lock... [2025-02-07 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:46:05 [end_date_ymd] => 2025-02-07 00:46:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:46:05' and `end` < '2025-02-07 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-07 00:46:18] Production.INFO: count ==244 [2025-02-07 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:46:05 - End Time 2025-02-07 00:46:05 [2025-02-07 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418797', 'tblTempUsageDetail_20' ) start [2025-02-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418797', 'tblTempUsageDetail_20' ) end [2025-02-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418797', 'tblTempVendorCDR_20' ) start [2025-02-07 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418797', 'tblTempVendorCDR_20' ) end [2025-02-07 00:46:18] Production.INFO: ProcessCDR(1,14418797,1,1,2) [2025-02-07 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418797', 'tblTempUsageDetail_20' ) start [2025-02-07 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418797', 'tblTempUsageDetail_20' ) end [2025-02-07 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:46:21] Production.INFO: ==10215== Releasing lock... [2025-02-07 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:47:06 [end_date_ymd] => 2025-02-07 00:47:06 [RateCDR] => 1 ) [2025-02-07 00: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-06 21:47:06' and `end` < '2025-02-07 00: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-07 00:47:20] Production.INFO: count ==244 [2025-02-07 00:47:20] Production.ERROR: pbx CDR StartTime 2025-02-06 21:47:06 - End Time 2025-02-07 00:47:06 [2025-02-07 00:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418802', 'tblTempUsageDetail_20' ) start [2025-02-07 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418802', 'tblTempUsageDetail_20' ) end [2025-02-07 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418802', 'tblTempVendorCDR_20' ) start [2025-02-07 00:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418802', 'tblTempVendorCDR_20' ) end [2025-02-07 00:47:20] Production.INFO: ProcessCDR(1,14418802,1,1,2) [2025-02-07 00:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418802', 'tblTempUsageDetail_20' ) start [2025-02-07 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418802', 'tblTempUsageDetail_20' ) end [2025-02-07 00:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:47:23] Production.INFO: ==10287== Releasing lock... [2025-02-07 00:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:47:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:48:05 [end_date_ymd] => 2025-02-07 00:48:05 [RateCDR] => 1 ) [2025-02-07 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:48:05' and `end` < '2025-02-07 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:48:18] Production.INFO: count ==245 [2025-02-07 00:48:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:48:05 - End Time 2025-02-07 00:48:05 [2025-02-07 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418807', 'tblTempUsageDetail_20' ) start [2025-02-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418807', 'tblTempUsageDetail_20' ) end [2025-02-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418807', 'tblTempVendorCDR_20' ) start [2025-02-07 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418807', 'tblTempVendorCDR_20' ) end [2025-02-07 00:48:18] Production.INFO: ProcessCDR(1,14418807,1,1,2) [2025-02-07 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418807', 'tblTempUsageDetail_20' ) start [2025-02-07 00:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418807', 'tblTempUsageDetail_20' ) end [2025-02-07 00:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:48:23] Production.INFO: ==10358== Releasing lock... [2025-02-07 00:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:48:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:49:05 [end_date_ymd] => 2025-02-07 00:49:05 [RateCDR] => 1 ) [2025-02-07 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:49:05' and `end` < '2025-02-07 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:49:18] Production.INFO: count ==244 [2025-02-07 00:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:49:05 - End Time 2025-02-07 00:49:05 [2025-02-07 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418812', 'tblTempUsageDetail_20' ) start [2025-02-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418812', 'tblTempUsageDetail_20' ) end [2025-02-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418812', 'tblTempVendorCDR_20' ) start [2025-02-07 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418812', 'tblTempVendorCDR_20' ) end [2025-02-07 00:49:18] Production.INFO: ProcessCDR(1,14418812,1,1,2) [2025-02-07 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418812', 'tblTempUsageDetail_20' ) start [2025-02-07 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418812', 'tblTempUsageDetail_20' ) end [2025-02-07 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:49:22] Production.INFO: ==10430== Releasing lock... [2025-02-07 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:50:06 [end_date_ymd] => 2025-02-07 00:50:06 [RateCDR] => 1 ) [2025-02-07 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-06 21:50:06' and `end` < '2025-02-07 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-07 00:50:19] Production.INFO: count ==252 [2025-02-07 00:50:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:50:06 - End Time 2025-02-07 00:50:06 [2025-02-07 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418817', 'tblTempUsageDetail_20' ) start [2025-02-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418817', 'tblTempUsageDetail_20' ) end [2025-02-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418817', 'tblTempVendorCDR_20' ) start [2025-02-07 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418817', 'tblTempVendorCDR_20' ) end [2025-02-07 00:50:19] Production.INFO: ProcessCDR(1,14418817,1,1,2) [2025-02-07 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418817', 'tblTempUsageDetail_20' ) start [2025-02-07 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418817', 'tblTempUsageDetail_20' ) end [2025-02-07 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:50:22] Production.INFO: ==10501== Releasing lock... [2025-02-07 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:50:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:51:05 [end_date_ymd] => 2025-02-07 00:51:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:51:05' and `end` < '2025-02-07 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-07 00:51:19] Production.INFO: count ==264 [2025-02-07 00:51:20] Production.ERROR: pbx CDR StartTime 2025-02-06 21:51:05 - End Time 2025-02-07 00:51:05 [2025-02-07 00:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418823', 'tblTempUsageDetail_20' ) start [2025-02-07 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418823', 'tblTempUsageDetail_20' ) end [2025-02-07 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418823', 'tblTempVendorCDR_20' ) start [2025-02-07 00:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418823', 'tblTempVendorCDR_20' ) end [2025-02-07 00:51:20] Production.INFO: ProcessCDR(1,14418823,1,1,2) [2025-02-07 00:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418823', 'tblTempUsageDetail_20' ) start [2025-02-07 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418823', 'tblTempUsageDetail_20' ) end [2025-02-07 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:51:23] Production.INFO: ==10574== Releasing lock... [2025-02-07 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:51:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:52:05 [end_date_ymd] => 2025-02-07 00:52:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:52:05' and `end` < '2025-02-07 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-07 00:52:18] Production.INFO: count ==264 [2025-02-07 00:52:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:52:05 - End Time 2025-02-07 00:52:05 [2025-02-07 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418828', 'tblTempUsageDetail_20' ) start [2025-02-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418828', 'tblTempUsageDetail_20' ) end [2025-02-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418828', 'tblTempVendorCDR_20' ) start [2025-02-07 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418828', 'tblTempVendorCDR_20' ) end [2025-02-07 00:52:18] Production.INFO: ProcessCDR(1,14418828,1,1,2) [2025-02-07 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418828', 'tblTempUsageDetail_20' ) start [2025-02-07 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418828', 'tblTempUsageDetail_20' ) end [2025-02-07 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:52:21] Production.INFO: ==10645== Releasing lock... [2025-02-07 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:53:05 [end_date_ymd] => 2025-02-07 00:53:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:53:05' and `end` < '2025-02-07 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-07 00:53:17] Production.INFO: count ==264 [2025-02-07 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-06 21:53:05 - End Time 2025-02-07 00:53:05 [2025-02-07 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418833', 'tblTempUsageDetail_20' ) start [2025-02-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418833', 'tblTempUsageDetail_20' ) end [2025-02-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418833', 'tblTempVendorCDR_20' ) start [2025-02-07 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418833', 'tblTempVendorCDR_20' ) end [2025-02-07 00:53:18] Production.INFO: ProcessCDR(1,14418833,1,1,2) [2025-02-07 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418833', 'tblTempUsageDetail_20' ) start [2025-02-07 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418833', 'tblTempUsageDetail_20' ) end [2025-02-07 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:53:21] Production.INFO: ==10723== Releasing lock... [2025-02-07 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:54:05 [end_date_ymd] => 2025-02-07 00:54:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:54:05' and `end` < '2025-02-07 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-07 00:54:18] Production.INFO: count ==264 [2025-02-07 00:54:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:54:05 - End Time 2025-02-07 00:54:05 [2025-02-07 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418838', 'tblTempUsageDetail_20' ) start [2025-02-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418838', 'tblTempUsageDetail_20' ) end [2025-02-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418838', 'tblTempVendorCDR_20' ) start [2025-02-07 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418838', 'tblTempVendorCDR_20' ) end [2025-02-07 00:54:18] Production.INFO: ProcessCDR(1,14418838,1,1,2) [2025-02-07 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418838', 'tblTempUsageDetail_20' ) start [2025-02-07 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418838', 'tblTempUsageDetail_20' ) end [2025-02-07 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:54:21] Production.INFO: ==10796== Releasing lock... [2025-02-07 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:55:05 [end_date_ymd] => 2025-02-07 00:55:05 [RateCDR] => 1 ) [2025-02-07 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:55:05' and `end` < '2025-02-07 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:55:19] Production.INFO: count ==264 [2025-02-07 00:55:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:55:05 - End Time 2025-02-07 00:55:05 [2025-02-07 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418843', 'tblTempUsageDetail_20' ) start [2025-02-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418843', 'tblTempUsageDetail_20' ) end [2025-02-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418843', 'tblTempVendorCDR_20' ) start [2025-02-07 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418843', 'tblTempVendorCDR_20' ) end [2025-02-07 00:55:19] Production.INFO: ProcessCDR(1,14418843,1,1,2) [2025-02-07 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418843', 'tblTempUsageDetail_20' ) start [2025-02-07 00:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418843', 'tblTempUsageDetail_20' ) end [2025-02-07 00:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:55:23] Production.INFO: ==10870== Releasing lock... [2025-02-07 00:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:55:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:56:06 [end_date_ymd] => 2025-02-07 00:56:06 [RateCDR] => 1 ) [2025-02-07 00:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:56:06' and `end` < '2025-02-07 00:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:56:19] Production.INFO: count ==264 [2025-02-07 00:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:56:06 - End Time 2025-02-07 00:56:06 [2025-02-07 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418848', 'tblTempUsageDetail_20' ) start [2025-02-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418848', 'tblTempUsageDetail_20' ) end [2025-02-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418848', 'tblTempVendorCDR_20' ) start [2025-02-07 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418848', 'tblTempVendorCDR_20' ) end [2025-02-07 00:56:19] Production.INFO: ProcessCDR(1,14418848,1,1,2) [2025-02-07 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418848', 'tblTempUsageDetail_20' ) start [2025-02-07 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418848', 'tblTempUsageDetail_20' ) end [2025-02-07 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:56:22] Production.INFO: ==10942== Releasing lock... [2025-02-07 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:57:05 [end_date_ymd] => 2025-02-07 00:57:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:57:05' and `end` < '2025-02-07 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-07 00:57:19] Production.INFO: count ==263 [2025-02-07 00:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:57:05 - End Time 2025-02-07 00:57:05 [2025-02-07 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418853', 'tblTempUsageDetail_20' ) start [2025-02-07 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418853', 'tblTempUsageDetail_20' ) end [2025-02-07 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418853', 'tblTempVendorCDR_20' ) start [2025-02-07 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418853', 'tblTempVendorCDR_20' ) end [2025-02-07 00:57:19] Production.INFO: ProcessCDR(1,14418853,1,1,2) [2025-02-07 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418853', 'tblTempUsageDetail_20' ) start [2025-02-07 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418853', 'tblTempUsageDetail_20' ) end [2025-02-07 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:57:22] Production.INFO: ==11059== Releasing lock... [2025-02-07 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:57:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:58:05 [end_date_ymd] => 2025-02-07 00:58:05 [RateCDR] => 1 ) [2025-02-07 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 21:58:05' and `end` < '2025-02-07 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 00:58:19] Production.INFO: count ==263 [2025-02-07 00:58:19] Production.ERROR: pbx CDR StartTime 2025-02-06 21:58:05 - End Time 2025-02-07 00:58:05 [2025-02-07 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418858', 'tblTempUsageDetail_20' ) start [2025-02-07 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418858', 'tblTempUsageDetail_20' ) end [2025-02-07 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418858', 'tblTempVendorCDR_20' ) start [2025-02-07 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418858', 'tblTempVendorCDR_20' ) end [2025-02-07 00:58:19] Production.INFO: ProcessCDR(1,14418858,1,1,2) [2025-02-07 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418858', 'tblTempUsageDetail_20' ) start [2025-02-07 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418858', 'tblTempUsageDetail_20' ) end [2025-02-07 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:58:22] Production.INFO: ==11131== Releasing lock... [2025-02-07 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 21:59:05 [end_date_ymd] => 2025-02-07 00:59:05 [RateCDR] => 1 ) [2025-02-07 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-06 21:59:05' and `end` < '2025-02-07 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-07 00:59:18] Production.INFO: count ==263 [2025-02-07 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-06 21:59:05 - End Time 2025-02-07 00:59:05 [2025-02-07 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418863', 'tblTempUsageDetail_20' ) start [2025-02-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418863', 'tblTempUsageDetail_20' ) end [2025-02-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418863', 'tblTempVendorCDR_20' ) start [2025-02-07 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418863', 'tblTempVendorCDR_20' ) end [2025-02-07 00:59:18] Production.INFO: ProcessCDR(1,14418863,1,1,2) [2025-02-07 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418863', 'tblTempUsageDetail_20' ) start [2025-02-07 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418863', 'tblTempUsageDetail_20' ) end [2025-02-07 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 00:59:22] Production.INFO: ==11201== Releasing lock... [2025-02-07 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 00:59:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:00:07 [end_date_ymd] => 2025-02-07 01:00:07 [RateCDR] => 1 ) [2025-02-07 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-06 22:00:07' and `end` < '2025-02-07 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-07 01:00:20] Production.INFO: count ==274 [2025-02-07 01:00:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:00:07 - End Time 2025-02-07 01:00:07 [2025-02-07 01:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418869', 'tblTempUsageDetail_20' ) start [2025-02-07 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418869', 'tblTempUsageDetail_20' ) end [2025-02-07 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418869', 'tblTempVendorCDR_20' ) start [2025-02-07 01:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418869', 'tblTempVendorCDR_20' ) end [2025-02-07 01:00:20] Production.INFO: ProcessCDR(1,14418869,1,1,2) [2025-02-07 01:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418869', 'tblTempUsageDetail_20' ) start [2025-02-07 01:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418869', 'tblTempUsageDetail_20' ) end [2025-02-07 01:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:00:23] Production.INFO: ==11276== Releasing lock... [2025-02-07 01:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:00:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:01:05 [end_date_ymd] => 2025-02-07 01:01:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:01:05' and `end` < '2025-02-07 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-07 01:01:18] Production.INFO: count ==300 [2025-02-07 01:01:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:01:05 - End Time 2025-02-07 01:01:05 [2025-02-07 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418874', 'tblTempUsageDetail_20' ) start [2025-02-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418874', 'tblTempUsageDetail_20' ) end [2025-02-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418874', 'tblTempVendorCDR_20' ) start [2025-02-07 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418874', 'tblTempVendorCDR_20' ) end [2025-02-07 01:01:18] Production.INFO: ProcessCDR(1,14418874,1,1,2) [2025-02-07 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418874', 'tblTempUsageDetail_20' ) start [2025-02-07 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418874', 'tblTempUsageDetail_20' ) end [2025-02-07 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:01:22] Production.INFO: ==11363== Releasing lock... [2025-02-07 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:01:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:02:05 [end_date_ymd] => 2025-02-07 01:02:05 [RateCDR] => 1 ) [2025-02-07 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:02:05' and `end` < '2025-02-07 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:02:17] Production.INFO: count ==300 [2025-02-07 01:02:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:02:05 - End Time 2025-02-07 01:02:05 [2025-02-07 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418879', 'tblTempUsageDetail_20' ) start [2025-02-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418879', 'tblTempUsageDetail_20' ) end [2025-02-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418879', 'tblTempVendorCDR_20' ) start [2025-02-07 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418879', 'tblTempVendorCDR_20' ) end [2025-02-07 01:02:18] Production.INFO: ProcessCDR(1,14418879,1,1,2) [2025-02-07 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418879', 'tblTempUsageDetail_20' ) start [2025-02-07 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418879', 'tblTempUsageDetail_20' ) end [2025-02-07 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:02:21] Production.INFO: ==11433== Releasing lock... [2025-02-07 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:03:05 [end_date_ymd] => 2025-02-07 01:03:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:03:05' and `end` < '2025-02-07 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-07 01:03:18] Production.INFO: count ==295 [2025-02-07 01:03:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:03:05 - End Time 2025-02-07 01:03:05 [2025-02-07 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418884', 'tblTempUsageDetail_20' ) start [2025-02-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418884', 'tblTempUsageDetail_20' ) end [2025-02-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418884', 'tblTempVendorCDR_20' ) start [2025-02-07 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418884', 'tblTempVendorCDR_20' ) end [2025-02-07 01:03:18] Production.INFO: ProcessCDR(1,14418884,1,1,2) [2025-02-07 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418884', 'tblTempUsageDetail_20' ) start [2025-02-07 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418884', 'tblTempUsageDetail_20' ) end [2025-02-07 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:03:21] Production.INFO: ==11503== Releasing lock... [2025-02-07 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:04:05 [end_date_ymd] => 2025-02-07 01:04:05 [RateCDR] => 1 ) [2025-02-07 01:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:04:05' and `end` < '2025-02-07 01:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:04:19] Production.INFO: count ==297 [2025-02-07 01:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:04:05 - End Time 2025-02-07 01:04:05 [2025-02-07 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418889', 'tblTempUsageDetail_20' ) start [2025-02-07 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418889', 'tblTempUsageDetail_20' ) end [2025-02-07 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418889', 'tblTempVendorCDR_20' ) start [2025-02-07 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418889', 'tblTempVendorCDR_20' ) end [2025-02-07 01:04:19] Production.INFO: ProcessCDR(1,14418889,1,1,2) [2025-02-07 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418889', 'tblTempUsageDetail_20' ) start [2025-02-07 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418889', 'tblTempUsageDetail_20' ) end [2025-02-07 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:04:22] Production.INFO: ==11573== Releasing lock... [2025-02-07 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:05:06 [end_date_ymd] => 2025-02-07 01:05:06 [RateCDR] => 1 ) [2025-02-07 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:05:06' and `end` < '2025-02-07 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:05:19] Production.INFO: count ==297 [2025-02-07 01:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:05:06 - End Time 2025-02-07 01:05:06 [2025-02-07 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418894', 'tblTempUsageDetail_20' ) start [2025-02-07 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418894', 'tblTempUsageDetail_20' ) end [2025-02-07 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418894', 'tblTempVendorCDR_20' ) start [2025-02-07 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418894', 'tblTempVendorCDR_20' ) end [2025-02-07 01:05:19] Production.INFO: ProcessCDR(1,14418894,1,1,2) [2025-02-07 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418894', 'tblTempUsageDetail_20' ) start [2025-02-07 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418894', 'tblTempUsageDetail_20' ) end [2025-02-07 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:05:22] Production.INFO: ==11646== Releasing lock... [2025-02-07 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:05:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:06:06 [end_date_ymd] => 2025-02-07 01:06:06 [RateCDR] => 1 ) [2025-02-07 01: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-06 22:06:06' and `end` < '2025-02-07 01: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-07 01:06:20] Production.INFO: count ==296 [2025-02-07 01:06:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:06:06 - End Time 2025-02-07 01:06:06 [2025-02-07 01:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418899', 'tblTempUsageDetail_20' ) start [2025-02-07 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418899', 'tblTempUsageDetail_20' ) end [2025-02-07 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418899', 'tblTempVendorCDR_20' ) start [2025-02-07 01:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418899', 'tblTempVendorCDR_20' ) end [2025-02-07 01:06:20] Production.INFO: ProcessCDR(1,14418899,1,1,2) [2025-02-07 01:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418899', 'tblTempUsageDetail_20' ) start [2025-02-07 01:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418899', 'tblTempUsageDetail_20' ) end [2025-02-07 01:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:06:25] Production.INFO: ==11717== Releasing lock... [2025-02-07 01:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:06:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:07:05 [end_date_ymd] => 2025-02-07 01:07:05 [RateCDR] => 1 ) [2025-02-07 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:07:05' and `end` < '2025-02-07 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:07:18] Production.INFO: count ==295 [2025-02-07 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:07:05 - End Time 2025-02-07 01:07:05 [2025-02-07 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418904', 'tblTempUsageDetail_20' ) start [2025-02-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418904', 'tblTempUsageDetail_20' ) end [2025-02-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418904', 'tblTempVendorCDR_20' ) start [2025-02-07 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418904', 'tblTempVendorCDR_20' ) end [2025-02-07 01:07:18] Production.INFO: ProcessCDR(1,14418904,1,1,2) [2025-02-07 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418904', 'tblTempUsageDetail_20' ) start [2025-02-07 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418904', 'tblTempUsageDetail_20' ) end [2025-02-07 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:07:21] Production.INFO: ==11792== Releasing lock... [2025-02-07 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:08:06 [end_date_ymd] => 2025-02-07 01:08:06 [RateCDR] => 1 ) [2025-02-07 01: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-06 22:08:06' and `end` < '2025-02-07 01: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-07 01:08:21] Production.INFO: count ==295 [2025-02-07 01:08:21] Production.ERROR: pbx CDR StartTime 2025-02-06 22:08:06 - End Time 2025-02-07 01:08:06 [2025-02-07 01:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418909', 'tblTempUsageDetail_20' ) start [2025-02-07 01:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418909', 'tblTempUsageDetail_20' ) end [2025-02-07 01:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418909', 'tblTempVendorCDR_20' ) start [2025-02-07 01:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418909', 'tblTempVendorCDR_20' ) end [2025-02-07 01:08:21] Production.INFO: ProcessCDR(1,14418909,1,1,2) [2025-02-07 01:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418909', 'tblTempUsageDetail_20' ) start [2025-02-07 01:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418909', 'tblTempUsageDetail_20' ) end [2025-02-07 01:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:08:26] Production.INFO: ==11866== Releasing lock... [2025-02-07 01:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:08:26] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:09:05 [end_date_ymd] => 2025-02-07 01:09:05 [RateCDR] => 1 ) [2025-02-07 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:09:05' and `end` < '2025-02-07 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-07 01:09:18] Production.INFO: count ==295 [2025-02-07 01:09:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:09:05 - End Time 2025-02-07 01:09:05 [2025-02-07 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418914', 'tblTempUsageDetail_20' ) start [2025-02-07 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418914', 'tblTempUsageDetail_20' ) end [2025-02-07 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418914', 'tblTempVendorCDR_20' ) start [2025-02-07 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418914', 'tblTempVendorCDR_20' ) end [2025-02-07 01:09:18] Production.INFO: ProcessCDR(1,14418914,1,1,2) [2025-02-07 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418914', 'tblTempUsageDetail_20' ) start [2025-02-07 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418914', 'tblTempUsageDetail_20' ) end [2025-02-07 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:09:21] Production.INFO: ==11943== Releasing lock... [2025-02-07 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:10:06 [end_date_ymd] => 2025-02-07 01:10:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:10:06' and `end` < '2025-02-07 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-07 01:10:19] Production.INFO: count ==303 [2025-02-07 01:10:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:10:06 - End Time 2025-02-07 01:10:06 [2025-02-07 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418920', 'tblTempUsageDetail_20' ) start [2025-02-07 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418920', 'tblTempUsageDetail_20' ) end [2025-02-07 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418920', 'tblTempVendorCDR_20' ) start [2025-02-07 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418920', 'tblTempVendorCDR_20' ) end [2025-02-07 01:10:19] Production.INFO: ProcessCDR(1,14418920,1,1,2) [2025-02-07 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418920', 'tblTempUsageDetail_20' ) start [2025-02-07 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418920', 'tblTempUsageDetail_20' ) end [2025-02-07 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:10:23] Production.INFO: ==12016== Releasing lock... [2025-02-07 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:11:05 [end_date_ymd] => 2025-02-07 01:11:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:11:05' and `end` < '2025-02-07 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-07 01:11:19] Production.INFO: count ==317 [2025-02-07 01:11:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:11:05 - End Time 2025-02-07 01:11:05 [2025-02-07 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418925', 'tblTempUsageDetail_20' ) start [2025-02-07 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418925', 'tblTempUsageDetail_20' ) end [2025-02-07 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418925', 'tblTempVendorCDR_20' ) start [2025-02-07 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418925', 'tblTempVendorCDR_20' ) end [2025-02-07 01:11:19] Production.INFO: ProcessCDR(1,14418925,1,1,2) [2025-02-07 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418925', 'tblTempUsageDetail_20' ) start [2025-02-07 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418925', 'tblTempUsageDetail_20' ) end [2025-02-07 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:11:23] Production.INFO: ==12096== Releasing lock... [2025-02-07 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:11:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:12:05 [end_date_ymd] => 2025-02-07 01:12:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:12:05' and `end` < '2025-02-07 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-07 01:12:18] Production.INFO: count ==317 [2025-02-07 01:12:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:12:05 - End Time 2025-02-07 01:12:05 [2025-02-07 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418930', 'tblTempUsageDetail_20' ) start [2025-02-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418930', 'tblTempUsageDetail_20' ) end [2025-02-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418930', 'tblTempVendorCDR_20' ) start [2025-02-07 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418930', 'tblTempVendorCDR_20' ) end [2025-02-07 01:12:18] Production.INFO: ProcessCDR(1,14418930,1,1,2) [2025-02-07 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418930', 'tblTempUsageDetail_20' ) start [2025-02-07 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418930', 'tblTempUsageDetail_20' ) end [2025-02-07 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:12:21] Production.INFO: ==12210== Releasing lock... [2025-02-07 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:13:05 [end_date_ymd] => 2025-02-07 01:13:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:13:05' and `end` < '2025-02-07 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-07 01:13:18] Production.INFO: count ==314 [2025-02-07 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:13:05 - End Time 2025-02-07 01:13:05 [2025-02-07 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418935', 'tblTempUsageDetail_20' ) start [2025-02-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418935', 'tblTempUsageDetail_20' ) end [2025-02-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418935', 'tblTempVendorCDR_20' ) start [2025-02-07 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418935', 'tblTempVendorCDR_20' ) end [2025-02-07 01:13:18] Production.INFO: ProcessCDR(1,14418935,1,1,2) [2025-02-07 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418935', 'tblTempUsageDetail_20' ) start [2025-02-07 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418935', 'tblTempUsageDetail_20' ) end [2025-02-07 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:13:21] Production.INFO: ==12291== Releasing lock... [2025-02-07 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:14:05 [end_date_ymd] => 2025-02-07 01:14:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:14:05' and `end` < '2025-02-07 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-07 01:14:20] Production.INFO: count ==314 [2025-02-07 01:14:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:14:05 - End Time 2025-02-07 01:14:05 [2025-02-07 01:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418940', 'tblTempUsageDetail_20' ) start [2025-02-07 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418940', 'tblTempUsageDetail_20' ) end [2025-02-07 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418940', 'tblTempVendorCDR_20' ) start [2025-02-07 01:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418940', 'tblTempVendorCDR_20' ) end [2025-02-07 01:14:20] Production.INFO: ProcessCDR(1,14418940,1,1,2) [2025-02-07 01:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418940', 'tblTempUsageDetail_20' ) start [2025-02-07 01:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418940', 'tblTempUsageDetail_20' ) end [2025-02-07 01:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:14:23] Production.INFO: ==12363== Releasing lock... [2025-02-07 01:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:14:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:15:05 [end_date_ymd] => 2025-02-07 01:15:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:15:05' and `end` < '2025-02-07 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-07 01:15:18] Production.INFO: count ==313 [2025-02-07 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:15:05 - End Time 2025-02-07 01:15:05 [2025-02-07 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418945', 'tblTempUsageDetail_20' ) start [2025-02-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418945', 'tblTempUsageDetail_20' ) end [2025-02-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418945', 'tblTempVendorCDR_20' ) start [2025-02-07 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418945', 'tblTempVendorCDR_20' ) end [2025-02-07 01:15:18] Production.INFO: ProcessCDR(1,14418945,1,1,2) [2025-02-07 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418945', 'tblTempUsageDetail_20' ) start [2025-02-07 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418945', 'tblTempUsageDetail_20' ) end [2025-02-07 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:15:21] Production.INFO: ==12441== Releasing lock... [2025-02-07 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:16:05 [end_date_ymd] => 2025-02-07 01:16:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:16:05' and `end` < '2025-02-07 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-07 01:16:19] Production.INFO: count ==311 [2025-02-07 01:16:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:16:05 - End Time 2025-02-07 01:16:05 [2025-02-07 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418950', 'tblTempUsageDetail_20' ) start [2025-02-07 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418950', 'tblTempUsageDetail_20' ) end [2025-02-07 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418950', 'tblTempVendorCDR_20' ) start [2025-02-07 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418950', 'tblTempVendorCDR_20' ) end [2025-02-07 01:16:19] Production.INFO: ProcessCDR(1,14418950,1,1,2) [2025-02-07 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418950', 'tblTempUsageDetail_20' ) start [2025-02-07 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418950', 'tblTempUsageDetail_20' ) end [2025-02-07 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:16:22] Production.INFO: ==12520== Releasing lock... [2025-02-07 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:17:05 [end_date_ymd] => 2025-02-07 01:17:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:17:05' and `end` < '2025-02-07 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-07 01:17:18] Production.INFO: count ==310 [2025-02-07 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:17:05 - End Time 2025-02-07 01:17:05 [2025-02-07 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418955', 'tblTempUsageDetail_20' ) start [2025-02-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418955', 'tblTempUsageDetail_20' ) end [2025-02-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418955', 'tblTempVendorCDR_20' ) start [2025-02-07 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418955', 'tblTempVendorCDR_20' ) end [2025-02-07 01:17:18] Production.INFO: ProcessCDR(1,14418955,1,1,2) [2025-02-07 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418955', 'tblTempUsageDetail_20' ) start [2025-02-07 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418955', 'tblTempUsageDetail_20' ) end [2025-02-07 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:17:21] Production.INFO: ==12593== Releasing lock... [2025-02-07 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:18:05 [end_date_ymd] => 2025-02-07 01:18:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:18:05' and `end` < '2025-02-07 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-07 01:18:19] Production.INFO: count ==310 [2025-02-07 01:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:18:05 - End Time 2025-02-07 01:18:05 [2025-02-07 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418960', 'tblTempUsageDetail_20' ) start [2025-02-07 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418960', 'tblTempUsageDetail_20' ) end [2025-02-07 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418960', 'tblTempVendorCDR_20' ) start [2025-02-07 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418960', 'tblTempVendorCDR_20' ) end [2025-02-07 01:18:19] Production.INFO: ProcessCDR(1,14418960,1,1,2) [2025-02-07 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418960', 'tblTempUsageDetail_20' ) start [2025-02-07 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418960', 'tblTempUsageDetail_20' ) end [2025-02-07 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:18:23] Production.INFO: ==12669== Releasing lock... [2025-02-07 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:18:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:19:05 [end_date_ymd] => 2025-02-07 01:19:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:19:05' and `end` < '2025-02-07 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-07 01:19:19] Production.INFO: count ==310 [2025-02-07 01:19:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:19:05 - End Time 2025-02-07 01:19:05 [2025-02-07 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418965', 'tblTempUsageDetail_20' ) start [2025-02-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418965', 'tblTempUsageDetail_20' ) end [2025-02-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418965', 'tblTempVendorCDR_20' ) start [2025-02-07 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418965', 'tblTempVendorCDR_20' ) end [2025-02-07 01:19:19] Production.INFO: ProcessCDR(1,14418965,1,1,2) [2025-02-07 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418965', 'tblTempUsageDetail_20' ) start [2025-02-07 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418965', 'tblTempUsageDetail_20' ) end [2025-02-07 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:19:22] Production.INFO: ==12743== Releasing lock... [2025-02-07 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:20:05 [end_date_ymd] => 2025-02-07 01:20:05 [RateCDR] => 1 ) [2025-02-07 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:20:05' and `end` < '2025-02-07 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:20:19] Production.INFO: count ==317 [2025-02-07 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:20:05 - End Time 2025-02-07 01:20:05 [2025-02-07 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418970', 'tblTempUsageDetail_20' ) start [2025-02-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418970', 'tblTempUsageDetail_20' ) end [2025-02-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418970', 'tblTempVendorCDR_20' ) start [2025-02-07 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418970', 'tblTempVendorCDR_20' ) end [2025-02-07 01:20:19] Production.INFO: ProcessCDR(1,14418970,1,1,2) [2025-02-07 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418970', 'tblTempUsageDetail_20' ) start [2025-02-07 01:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418970', 'tblTempUsageDetail_20' ) end [2025-02-07 01:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:20:24] Production.INFO: ==12822== Releasing lock... [2025-02-07 01:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:20:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:21:06 [end_date_ymd] => 2025-02-07 01:21:06 [RateCDR] => 1 ) [2025-02-07 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:21:06' and `end` < '2025-02-07 01:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:21:19] Production.INFO: count ==322 [2025-02-07 01:21:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:21:06 - End Time 2025-02-07 01:21:06 [2025-02-07 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418976', 'tblTempUsageDetail_20' ) start [2025-02-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418976', 'tblTempUsageDetail_20' ) end [2025-02-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418976', 'tblTempVendorCDR_20' ) start [2025-02-07 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418976', 'tblTempVendorCDR_20' ) end [2025-02-07 01:21:19] Production.INFO: ProcessCDR(1,14418976,1,1,2) [2025-02-07 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418976', 'tblTempUsageDetail_20' ) start [2025-02-07 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418976', 'tblTempUsageDetail_20' ) end [2025-02-07 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:21:23] Production.INFO: ==12899== Releasing lock... [2025-02-07 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:21:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:22:05 [end_date_ymd] => 2025-02-07 01:22:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:22:05' and `end` < '2025-02-07 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-07 01:22:19] Production.INFO: count ==322 [2025-02-07 01:22:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:22:05 - End Time 2025-02-07 01:22:05 [2025-02-07 01:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418981', 'tblTempUsageDetail_20' ) start [2025-02-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418981', 'tblTempUsageDetail_20' ) end [2025-02-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418981', 'tblTempVendorCDR_20' ) start [2025-02-07 01:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418981', 'tblTempVendorCDR_20' ) end [2025-02-07 01:22:19] Production.INFO: ProcessCDR(1,14418981,1,1,2) [2025-02-07 01:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418981', 'tblTempUsageDetail_20' ) start [2025-02-07 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418981', 'tblTempUsageDetail_20' ) end [2025-02-07 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:22:22] Production.INFO: ==12974== Releasing lock... [2025-02-07 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:22:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:23:06 [end_date_ymd] => 2025-02-07 01:23:06 [RateCDR] => 1 ) [2025-02-07 01:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:23:06' and `end` < '2025-02-07 01:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:23:20] Production.INFO: count ==322 [2025-02-07 01:23:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:23:06 - End Time 2025-02-07 01:23:06 [2025-02-07 01:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418986', 'tblTempUsageDetail_20' ) start [2025-02-07 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418986', 'tblTempUsageDetail_20' ) end [2025-02-07 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418986', 'tblTempVendorCDR_20' ) start [2025-02-07 01:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418986', 'tblTempVendorCDR_20' ) end [2025-02-07 01:23:20] Production.INFO: ProcessCDR(1,14418986,1,1,2) [2025-02-07 01:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418986', 'tblTempUsageDetail_20' ) start [2025-02-07 01:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418986', 'tblTempUsageDetail_20' ) end [2025-02-07 01:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:23:23] Production.INFO: ==13053== Releasing lock... [2025-02-07 01:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:23:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:24:06 [end_date_ymd] => 2025-02-07 01:24:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:24:06' and `end` < '2025-02-07 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-07 01:24:19] Production.INFO: count ==320 [2025-02-07 01:24:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:24:06 - End Time 2025-02-07 01:24:06 [2025-02-07 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418991', 'tblTempUsageDetail_20' ) start [2025-02-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418991', 'tblTempUsageDetail_20' ) end [2025-02-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418991', 'tblTempVendorCDR_20' ) start [2025-02-07 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418991', 'tblTempVendorCDR_20' ) end [2025-02-07 01:24:19] Production.INFO: ProcessCDR(1,14418991,1,1,2) [2025-02-07 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418991', 'tblTempUsageDetail_20' ) start [2025-02-07 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418991', 'tblTempUsageDetail_20' ) end [2025-02-07 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:24:22] Production.INFO: ==13126== Releasing lock... [2025-02-07 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:25:05 [end_date_ymd] => 2025-02-07 01:25:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:25:05' and `end` < '2025-02-07 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-07 01:25:18] Production.INFO: count ==317 [2025-02-07 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:25:05 - End Time 2025-02-07 01:25:05 [2025-02-07 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418996', 'tblTempUsageDetail_20' ) start [2025-02-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14418996', 'tblTempUsageDetail_20' ) end [2025-02-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418996', 'tblTempVendorCDR_20' ) start [2025-02-07 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14418996', 'tblTempVendorCDR_20' ) end [2025-02-07 01:25:18] Production.INFO: ProcessCDR(1,14418996,1,1,2) [2025-02-07 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14418996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14418996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14418996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14418996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418996', 'tblTempUsageDetail_20' ) start [2025-02-07 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14418996', 'tblTempUsageDetail_20' ) end [2025-02-07 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:25:21] Production.INFO: ==13204== Releasing lock... [2025-02-07 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:26:05 [end_date_ymd] => 2025-02-07 01:26:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:26:05' and `end` < '2025-02-07 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-07 01:26:19] Production.INFO: count ==316 [2025-02-07 01:26:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:26:05 - End Time 2025-02-07 01:26:05 [2025-02-07 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419001', 'tblTempUsageDetail_20' ) start [2025-02-07 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419001', 'tblTempUsageDetail_20' ) end [2025-02-07 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419001', 'tblTempVendorCDR_20' ) start [2025-02-07 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419001', 'tblTempVendorCDR_20' ) end [2025-02-07 01:26:20] Production.INFO: ProcessCDR(1,14419001,1,1,2) [2025-02-07 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419001', 'tblTempUsageDetail_20' ) start [2025-02-07 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419001', 'tblTempUsageDetail_20' ) end [2025-02-07 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:26:23] Production.INFO: ==13279== Releasing lock... [2025-02-07 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:26:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:27:05 [end_date_ymd] => 2025-02-07 01:27:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:27:05' and `end` < '2025-02-07 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-07 01:27:19] Production.INFO: count ==316 [2025-02-07 01:27:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:27:05 - End Time 2025-02-07 01:27:05 [2025-02-07 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419006', 'tblTempUsageDetail_20' ) start [2025-02-07 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419006', 'tblTempUsageDetail_20' ) end [2025-02-07 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419006', 'tblTempVendorCDR_20' ) start [2025-02-07 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419006', 'tblTempVendorCDR_20' ) end [2025-02-07 01:27:19] Production.INFO: ProcessCDR(1,14419006,1,1,2) [2025-02-07 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419006', 'tblTempUsageDetail_20' ) start [2025-02-07 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419006', 'tblTempUsageDetail_20' ) end [2025-02-07 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:27:22] Production.INFO: ==13396== Releasing lock... [2025-02-07 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:28:05 [end_date_ymd] => 2025-02-07 01:28:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:28:05' and `end` < '2025-02-07 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-07 01:28:18] Production.INFO: count ==315 [2025-02-07 01:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:28:05 - End Time 2025-02-07 01:28:05 [2025-02-07 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419011', 'tblTempUsageDetail_20' ) start [2025-02-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419011', 'tblTempUsageDetail_20' ) end [2025-02-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419011', 'tblTempVendorCDR_20' ) start [2025-02-07 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419011', 'tblTempVendorCDR_20' ) end [2025-02-07 01:28:18] Production.INFO: ProcessCDR(1,14419011,1,1,2) [2025-02-07 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419011', 'tblTempUsageDetail_20' ) start [2025-02-07 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419011', 'tblTempUsageDetail_20' ) end [2025-02-07 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:28:23] Production.INFO: ==13472== Releasing lock... [2025-02-07 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:28:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:29:05 [end_date_ymd] => 2025-02-07 01:29:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:29:05' and `end` < '2025-02-07 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-07 01:29:19] Production.INFO: count ==314 [2025-02-07 01:29:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:29:05 - End Time 2025-02-07 01:29:05 [2025-02-07 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419016', 'tblTempUsageDetail_20' ) start [2025-02-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419016', 'tblTempUsageDetail_20' ) end [2025-02-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419016', 'tblTempVendorCDR_20' ) start [2025-02-07 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419016', 'tblTempVendorCDR_20' ) end [2025-02-07 01:29:19] Production.INFO: ProcessCDR(1,14419016,1,1,2) [2025-02-07 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419016', 'tblTempUsageDetail_20' ) start [2025-02-07 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419016', 'tblTempUsageDetail_20' ) end [2025-02-07 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:29:22] Production.INFO: ==13550== Releasing lock... [2025-02-07 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:29:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:30:06 [end_date_ymd] => 2025-02-07 01:30:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:30:06' and `end` < '2025-02-07 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-07 01:30:19] Production.INFO: count ==321 [2025-02-07 01:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:30:06 - End Time 2025-02-07 01:30:06 [2025-02-07 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419022', 'tblTempUsageDetail_20' ) start [2025-02-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419022', 'tblTempUsageDetail_20' ) end [2025-02-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419022', 'tblTempVendorCDR_20' ) start [2025-02-07 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419022', 'tblTempVendorCDR_20' ) end [2025-02-07 01:30:19] Production.INFO: ProcessCDR(1,14419022,1,1,2) [2025-02-07 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419022', 'tblTempUsageDetail_20' ) start [2025-02-07 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419022', 'tblTempUsageDetail_20' ) end [2025-02-07 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:30:23] Production.INFO: ==13630== Releasing lock... [2025-02-07 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:31:06 [end_date_ymd] => 2025-02-07 01:31:06 [RateCDR] => 1 ) [2025-02-07 01: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-06 22:31:06' and `end` < '2025-02-07 01: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-07 01:31:19] Production.INFO: count ==319 [2025-02-07 01:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:31:06 - End Time 2025-02-07 01:31:06 [2025-02-07 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419027', 'tblTempUsageDetail_20' ) start [2025-02-07 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419027', 'tblTempUsageDetail_20' ) end [2025-02-07 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419027', 'tblTempVendorCDR_20' ) start [2025-02-07 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419027', 'tblTempVendorCDR_20' ) end [2025-02-07 01:31:19] Production.INFO: ProcessCDR(1,14419027,1,1,2) [2025-02-07 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419027', 'tblTempUsageDetail_20' ) start [2025-02-07 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419027', 'tblTempUsageDetail_20' ) end [2025-02-07 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:31:22] Production.INFO: ==13707== Releasing lock... [2025-02-07 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:31:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:32:04 [end_date_ymd] => 2025-02-07 01:32:04 [RateCDR] => 1 ) [2025-02-07 01:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:32:04' and `end` < '2025-02-07 01:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:32:18] Production.INFO: count ==319 [2025-02-07 01:32:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:32:04 - End Time 2025-02-07 01:32:04 [2025-02-07 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419032', 'tblTempUsageDetail_20' ) start [2025-02-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419032', 'tblTempUsageDetail_20' ) end [2025-02-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419032', 'tblTempVendorCDR_20' ) start [2025-02-07 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419032', 'tblTempVendorCDR_20' ) end [2025-02-07 01:32:18] Production.INFO: ProcessCDR(1,14419032,1,1,2) [2025-02-07 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419032', 'tblTempUsageDetail_20' ) start [2025-02-07 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419032', 'tblTempUsageDetail_20' ) end [2025-02-07 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:32:21] Production.INFO: ==13794== Releasing lock... [2025-02-07 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:33:05 [end_date_ymd] => 2025-02-07 01:33:05 [RateCDR] => 1 ) [2025-02-07 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:33:05' and `end` < '2025-02-07 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:33:19] Production.INFO: count ==320 [2025-02-07 01:33:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:33:05 - End Time 2025-02-07 01:33:05 [2025-02-07 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419037', 'tblTempUsageDetail_20' ) start [2025-02-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419037', 'tblTempUsageDetail_20' ) end [2025-02-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419037', 'tblTempVendorCDR_20' ) start [2025-02-07 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419037', 'tblTempVendorCDR_20' ) end [2025-02-07 01:33:19] Production.INFO: ProcessCDR(1,14419037,1,1,2) [2025-02-07 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419037', 'tblTempUsageDetail_20' ) start [2025-02-07 01:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419037', 'tblTempUsageDetail_20' ) end [2025-02-07 01:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:33:24] Production.INFO: ==13868== Releasing lock... [2025-02-07 01:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:33:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:34:06 [end_date_ymd] => 2025-02-07 01:34:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:34:06' and `end` < '2025-02-07 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-07 01:34:19] Production.INFO: count ==314 [2025-02-07 01:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:34:06 - End Time 2025-02-07 01:34:06 [2025-02-07 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419042', 'tblTempUsageDetail_20' ) start [2025-02-07 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419042', 'tblTempUsageDetail_20' ) end [2025-02-07 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419042', 'tblTempVendorCDR_20' ) start [2025-02-07 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419042', 'tblTempVendorCDR_20' ) end [2025-02-07 01:34:19] Production.INFO: ProcessCDR(1,14419042,1,1,2) [2025-02-07 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419042', 'tblTempUsageDetail_20' ) start [2025-02-07 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419042', 'tblTempUsageDetail_20' ) end [2025-02-07 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:34:23] Production.INFO: ==13954== Releasing lock... [2025-02-07 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:34:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:35:06 [end_date_ymd] => 2025-02-07 01:35:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:35:06' and `end` < '2025-02-07 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-07 01:35:20] Production.INFO: count ==316 [2025-02-07 01:35:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:35:06 - End Time 2025-02-07 01:35:06 [2025-02-07 01:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419047', 'tblTempUsageDetail_20' ) start [2025-02-07 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419047', 'tblTempUsageDetail_20' ) end [2025-02-07 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419047', 'tblTempVendorCDR_20' ) start [2025-02-07 01:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419047', 'tblTempVendorCDR_20' ) end [2025-02-07 01:35:20] Production.INFO: ProcessCDR(1,14419047,1,1,2) [2025-02-07 01:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419047', 'tblTempUsageDetail_20' ) start [2025-02-07 01:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419047', 'tblTempUsageDetail_20' ) end [2025-02-07 01:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:35:23] Production.INFO: ==14035== Releasing lock... [2025-02-07 01:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:35:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:36:06 [end_date_ymd] => 2025-02-07 01:36:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:36:06' and `end` < '2025-02-07 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-07 01:36:20] Production.INFO: count ==316 [2025-02-07 01:36:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:36:06 - End Time 2025-02-07 01:36:06 [2025-02-07 01:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419052', 'tblTempUsageDetail_20' ) start [2025-02-07 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419052', 'tblTempUsageDetail_20' ) end [2025-02-07 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419052', 'tblTempVendorCDR_20' ) start [2025-02-07 01:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419052', 'tblTempVendorCDR_20' ) end [2025-02-07 01:36:20] Production.INFO: ProcessCDR(1,14419052,1,1,2) [2025-02-07 01:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419052', 'tblTempUsageDetail_20' ) start [2025-02-07 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419052', 'tblTempUsageDetail_20' ) end [2025-02-07 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:36:23] Production.INFO: ==14116== Releasing lock... [2025-02-07 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:36:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:37:06 [end_date_ymd] => 2025-02-07 01:37:06 [RateCDR] => 1 ) [2025-02-07 01:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:37:06' and `end` < '2025-02-07 01:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:37:19] Production.INFO: count ==318 [2025-02-07 01:37:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:37:06 - End Time 2025-02-07 01:37:06 [2025-02-07 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419057', 'tblTempUsageDetail_20' ) start [2025-02-07 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419057', 'tblTempUsageDetail_20' ) end [2025-02-07 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419057', 'tblTempVendorCDR_20' ) start [2025-02-07 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419057', 'tblTempVendorCDR_20' ) end [2025-02-07 01:37:19] Production.INFO: ProcessCDR(1,14419057,1,1,2) [2025-02-07 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419057', 'tblTempUsageDetail_20' ) start [2025-02-07 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419057', 'tblTempUsageDetail_20' ) end [2025-02-07 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:37:22] Production.INFO: ==14200== Releasing lock... [2025-02-07 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:38:05 [end_date_ymd] => 2025-02-07 01:38:05 [RateCDR] => 1 ) [2025-02-07 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:38:05' and `end` < '2025-02-07 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:38:20] Production.INFO: count ==316 [2025-02-07 01:38:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:38:05 - End Time 2025-02-07 01:38:05 [2025-02-07 01:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419062', 'tblTempUsageDetail_20' ) start [2025-02-07 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419062', 'tblTempUsageDetail_20' ) end [2025-02-07 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419062', 'tblTempVendorCDR_20' ) start [2025-02-07 01:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419062', 'tblTempVendorCDR_20' ) end [2025-02-07 01:38:20] Production.INFO: ProcessCDR(1,14419062,1,1,2) [2025-02-07 01:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419062', 'tblTempUsageDetail_20' ) start [2025-02-07 01:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419062', 'tblTempUsageDetail_20' ) end [2025-02-07 01:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:38:24] Production.INFO: ==14282== Releasing lock... [2025-02-07 01:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:38:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:39:06 [end_date_ymd] => 2025-02-07 01:39:06 [RateCDR] => 1 ) [2025-02-07 01:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:39:06' and `end` < '2025-02-07 01:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:39:20] Production.INFO: count ==317 [2025-02-07 01:39:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:39:06 - End Time 2025-02-07 01:39:06 [2025-02-07 01:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419067', 'tblTempUsageDetail_20' ) start [2025-02-07 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419067', 'tblTempUsageDetail_20' ) end [2025-02-07 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419067', 'tblTempVendorCDR_20' ) start [2025-02-07 01:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419067', 'tblTempVendorCDR_20' ) end [2025-02-07 01:39:20] Production.INFO: ProcessCDR(1,14419067,1,1,2) [2025-02-07 01:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419067', 'tblTempUsageDetail_20' ) start [2025-02-07 01:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419067', 'tblTempUsageDetail_20' ) end [2025-02-07 01:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:39:23] Production.INFO: ==14367== Releasing lock... [2025-02-07 01:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:39:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:40:06 [end_date_ymd] => 2025-02-07 01:40:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:40:06' and `end` < '2025-02-07 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-07 01:40:19] Production.INFO: count ==325 [2025-02-07 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:40:06 - End Time 2025-02-07 01:40:06 [2025-02-07 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419072', 'tblTempUsageDetail_20' ) start [2025-02-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419072', 'tblTempUsageDetail_20' ) end [2025-02-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419072', 'tblTempVendorCDR_20' ) start [2025-02-07 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419072', 'tblTempVendorCDR_20' ) end [2025-02-07 01:40:19] Production.INFO: ProcessCDR(1,14419072,1,1,2) [2025-02-07 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419072', 'tblTempUsageDetail_20' ) start [2025-02-07 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419072', 'tblTempUsageDetail_20' ) end [2025-02-07 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:40:23] Production.INFO: ==14448== Releasing lock... [2025-02-07 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:41:06 [end_date_ymd] => 2025-02-07 01:41:06 [RateCDR] => 1 ) [2025-02-07 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:41:06' and `end` < '2025-02-07 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:41:19] Production.INFO: count ==324 [2025-02-07 01:41:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:41:06 - End Time 2025-02-07 01:41:06 [2025-02-07 01:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419078', 'tblTempUsageDetail_20' ) start [2025-02-07 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419078', 'tblTempUsageDetail_20' ) end [2025-02-07 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419078', 'tblTempVendorCDR_20' ) start [2025-02-07 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419078', 'tblTempVendorCDR_20' ) end [2025-02-07 01:41:20] Production.INFO: ProcessCDR(1,14419078,1,1,2) [2025-02-07 01:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419078', 'tblTempUsageDetail_20' ) start [2025-02-07 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419078', 'tblTempUsageDetail_20' ) end [2025-02-07 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:41:23] Production.INFO: ==14533== Releasing lock... [2025-02-07 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:41:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:42:05 [end_date_ymd] => 2025-02-07 01:42:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:42:05' and `end` < '2025-02-07 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-07 01:42:18] Production.INFO: count ==324 [2025-02-07 01:42:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:42:05 - End Time 2025-02-07 01:42:05 [2025-02-07 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419083', 'tblTempUsageDetail_20' ) start [2025-02-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419083', 'tblTempUsageDetail_20' ) end [2025-02-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419083', 'tblTempVendorCDR_20' ) start [2025-02-07 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419083', 'tblTempVendorCDR_20' ) end [2025-02-07 01:42:18] Production.INFO: ProcessCDR(1,14419083,1,1,2) [2025-02-07 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419083', 'tblTempUsageDetail_20' ) start [2025-02-07 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419083', 'tblTempUsageDetail_20' ) end [2025-02-07 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:42:22] Production.INFO: ==14613== Releasing lock... [2025-02-07 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:43:05 [end_date_ymd] => 2025-02-07 01:43:05 [RateCDR] => 1 ) [2025-02-07 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:43:05' and `end` < '2025-02-07 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:43:18] Production.INFO: count ==324 [2025-02-07 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:43:05 - End Time 2025-02-07 01:43:05 [2025-02-07 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419088', 'tblTempUsageDetail_20' ) start [2025-02-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419088', 'tblTempUsageDetail_20' ) end [2025-02-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419088', 'tblTempVendorCDR_20' ) start [2025-02-07 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419088', 'tblTempVendorCDR_20' ) end [2025-02-07 01:43:18] Production.INFO: ProcessCDR(1,14419088,1,1,2) [2025-02-07 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419088', 'tblTempUsageDetail_20' ) start [2025-02-07 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419088', 'tblTempUsageDetail_20' ) end [2025-02-07 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:43:22] Production.INFO: ==14732== Releasing lock... [2025-02-07 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:44:06 [end_date_ymd] => 2025-02-07 01:44:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:44:06' and `end` < '2025-02-07 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-07 01:44:19] Production.INFO: count ==323 [2025-02-07 01:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:44:06 - End Time 2025-02-07 01:44:06 [2025-02-07 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419093', 'tblTempUsageDetail_20' ) start [2025-02-07 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419093', 'tblTempUsageDetail_20' ) end [2025-02-07 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419093', 'tblTempVendorCDR_20' ) start [2025-02-07 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419093', 'tblTempVendorCDR_20' ) end [2025-02-07 01:44:19] Production.INFO: ProcessCDR(1,14419093,1,1,2) [2025-02-07 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419093', 'tblTempUsageDetail_20' ) start [2025-02-07 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419093', 'tblTempUsageDetail_20' ) end [2025-02-07 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:44:22] Production.INFO: ==14813== Releasing lock... [2025-02-07 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:45:05 [end_date_ymd] => 2025-02-07 01:45:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:45:05' and `end` < '2025-02-07 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-07 01:45:18] Production.INFO: count ==321 [2025-02-07 01:45:18] Production.ERROR: pbx CDR StartTime 2025-02-06 22:45:05 - End Time 2025-02-07 01:45:05 [2025-02-07 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419098', 'tblTempUsageDetail_20' ) start [2025-02-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419098', 'tblTempUsageDetail_20' ) end [2025-02-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419098', 'tblTempVendorCDR_20' ) start [2025-02-07 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419098', 'tblTempVendorCDR_20' ) end [2025-02-07 01:45:18] Production.INFO: ProcessCDR(1,14419098,1,1,2) [2025-02-07 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419098', 'tblTempUsageDetail_20' ) start [2025-02-07 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419098', 'tblTempUsageDetail_20' ) end [2025-02-07 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:45:22] Production.INFO: ==14892== Releasing lock... [2025-02-07 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:46:06 [end_date_ymd] => 2025-02-07 01:46:06 [RateCDR] => 1 ) [2025-02-07 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:46:06' and `end` < '2025-02-07 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:46:19] Production.INFO: count ==321 [2025-02-07 01:46:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:46:06 - End Time 2025-02-07 01:46:06 [2025-02-07 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419103', 'tblTempUsageDetail_20' ) start [2025-02-07 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419103', 'tblTempUsageDetail_20' ) end [2025-02-07 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419103', 'tblTempVendorCDR_20' ) start [2025-02-07 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419103', 'tblTempVendorCDR_20' ) end [2025-02-07 01:46:19] Production.INFO: ProcessCDR(1,14419103,1,1,2) [2025-02-07 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419103', 'tblTempUsageDetail_20' ) start [2025-02-07 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419103', 'tblTempUsageDetail_20' ) end [2025-02-07 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:46:22] Production.INFO: ==14988== Releasing lock... [2025-02-07 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:47:06 [end_date_ymd] => 2025-02-07 01:47:06 [RateCDR] => 1 ) [2025-02-07 01: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-06 22:47:06' and `end` < '2025-02-07 01: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-07 01:47:22] Production.INFO: count ==320 [2025-02-07 01:47:22] Production.ERROR: pbx CDR StartTime 2025-02-06 22:47:06 - End Time 2025-02-07 01:47:06 [2025-02-07 01:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419108', 'tblTempUsageDetail_20' ) start [2025-02-07 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419108', 'tblTempUsageDetail_20' ) end [2025-02-07 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419108', 'tblTempVendorCDR_20' ) start [2025-02-07 01:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419108', 'tblTempVendorCDR_20' ) end [2025-02-07 01:47:22] Production.INFO: ProcessCDR(1,14419108,1,1,2) [2025-02-07 01:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419108', 'tblTempUsageDetail_20' ) start [2025-02-07 01:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419108', 'tblTempUsageDetail_20' ) end [2025-02-07 01:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:47:25] Production.INFO: ==15068== Releasing lock... [2025-02-07 01:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:47:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:48:06 [end_date_ymd] => 2025-02-07 01:48:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:48:06' and `end` < '2025-02-07 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-07 01:48:19] Production.INFO: count ==320 [2025-02-07 01:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:48:06 - End Time 2025-02-07 01:48:06 [2025-02-07 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419113', 'tblTempUsageDetail_20' ) start [2025-02-07 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419113', 'tblTempUsageDetail_20' ) end [2025-02-07 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419113', 'tblTempVendorCDR_20' ) start [2025-02-07 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419113', 'tblTempVendorCDR_20' ) end [2025-02-07 01:48:19] Production.INFO: ProcessCDR(1,14419113,1,1,2) [2025-02-07 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419113', 'tblTempUsageDetail_20' ) start [2025-02-07 01:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419113', 'tblTempUsageDetail_20' ) end [2025-02-07 01:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:48:23] Production.INFO: ==15149== Releasing lock... [2025-02-07 01:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:48:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:49:05 [end_date_ymd] => 2025-02-07 01:49:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:49:05' and `end` < '2025-02-07 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-07 01:49:19] Production.INFO: count ==320 [2025-02-07 01:49:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:49:05 - End Time 2025-02-07 01:49:05 [2025-02-07 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419118', 'tblTempUsageDetail_20' ) start [2025-02-07 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419118', 'tblTempUsageDetail_20' ) end [2025-02-07 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419118', 'tblTempVendorCDR_20' ) start [2025-02-07 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419118', 'tblTempVendorCDR_20' ) end [2025-02-07 01:49:19] Production.INFO: ProcessCDR(1,14419118,1,1,2) [2025-02-07 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419118', 'tblTempUsageDetail_20' ) start [2025-02-07 01:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419118', 'tblTempUsageDetail_20' ) end [2025-02-07 01:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:49:23] Production.INFO: ==15228== Releasing lock... [2025-02-07 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:49:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:50:07 [end_date_ymd] => 2025-02-07 01:50:07 [RateCDR] => 1 ) [2025-02-07 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-06 22:50:07' and `end` < '2025-02-07 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-07 01:50:20] Production.INFO: count ==328 [2025-02-07 01:50:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:50:07 - End Time 2025-02-07 01:50:07 [2025-02-07 01:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419124', 'tblTempUsageDetail_20' ) start [2025-02-07 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419124', 'tblTempUsageDetail_20' ) end [2025-02-07 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419124', 'tblTempVendorCDR_20' ) start [2025-02-07 01:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419124', 'tblTempVendorCDR_20' ) end [2025-02-07 01:50:20] Production.INFO: ProcessCDR(1,14419124,1,1,2) [2025-02-07 01:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419124', 'tblTempUsageDetail_20' ) start [2025-02-07 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419124', 'tblTempUsageDetail_20' ) end [2025-02-07 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:50:23] Production.INFO: ==15313== Releasing lock... [2025-02-07 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:51:05 [end_date_ymd] => 2025-02-07 01:51:05 [RateCDR] => 1 ) [2025-02-07 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:51:05' and `end` < '2025-02-07 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:51:20] Production.INFO: count ==339 [2025-02-07 01:51:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:51:05 - End Time 2025-02-07 01:51:05 [2025-02-07 01:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419129', 'tblTempUsageDetail_20' ) start [2025-02-07 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419129', 'tblTempUsageDetail_20' ) end [2025-02-07 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419129', 'tblTempVendorCDR_20' ) start [2025-02-07 01:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419129', 'tblTempVendorCDR_20' ) end [2025-02-07 01:51:20] Production.INFO: ProcessCDR(1,14419129,1,1,2) [2025-02-07 01:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419129', 'tblTempUsageDetail_20' ) start [2025-02-07 01:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419129', 'tblTempUsageDetail_20' ) end [2025-02-07 01:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:51:24] Production.INFO: ==15411== Releasing lock... [2025-02-07 01:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:51:24] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:52:06 [end_date_ymd] => 2025-02-07 01:52:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:52:06' and `end` < '2025-02-07 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-07 01:52:22] Production.INFO: count ==334 [2025-02-07 01:52:22] Production.ERROR: pbx CDR StartTime 2025-02-06 22:52:06 - End Time 2025-02-07 01:52:06 [2025-02-07 01:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419134', 'tblTempUsageDetail_20' ) start [2025-02-07 01:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419134', 'tblTempUsageDetail_20' ) end [2025-02-07 01:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419134', 'tblTempVendorCDR_20' ) start [2025-02-07 01:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419134', 'tblTempVendorCDR_20' ) end [2025-02-07 01:52:22] Production.INFO: ProcessCDR(1,14419134,1,1,2) [2025-02-07 01:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419134', 'tblTempUsageDetail_20' ) start [2025-02-07 01:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419134', 'tblTempUsageDetail_20' ) end [2025-02-07 01:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:52:25] Production.INFO: ==15497== Releasing lock... [2025-02-07 01:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:52:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:53:05 [end_date_ymd] => 2025-02-07 01:53:05 [RateCDR] => 1 ) [2025-02-07 01:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 22:53:05' and `end` < '2025-02-07 01:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 01:53:19] Production.INFO: count ==328 [2025-02-07 01:53:20] Production.ERROR: pbx CDR StartTime 2025-02-06 22:53:05 - End Time 2025-02-07 01:53:05 [2025-02-07 01:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419139', 'tblTempUsageDetail_20' ) start [2025-02-07 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419139', 'tblTempUsageDetail_20' ) end [2025-02-07 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419139', 'tblTempVendorCDR_20' ) start [2025-02-07 01:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419139', 'tblTempVendorCDR_20' ) end [2025-02-07 01:53:20] Production.INFO: ProcessCDR(1,14419139,1,1,2) [2025-02-07 01:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419139', 'tblTempUsageDetail_20' ) start [2025-02-07 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419139', 'tblTempUsageDetail_20' ) end [2025-02-07 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:53:23] Production.INFO: ==15577== Releasing lock... [2025-02-07 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:53:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:54:06 [end_date_ymd] => 2025-02-07 01:54:06 [RateCDR] => 1 ) [2025-02-07 01: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-06 22:54:06' and `end` < '2025-02-07 01: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-07 01:54:19] Production.INFO: count ==326 [2025-02-07 01:54:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:54:06 - End Time 2025-02-07 01:54:06 [2025-02-07 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419144', 'tblTempUsageDetail_20' ) start [2025-02-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419144', 'tblTempUsageDetail_20' ) end [2025-02-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419144', 'tblTempVendorCDR_20' ) start [2025-02-07 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419144', 'tblTempVendorCDR_20' ) end [2025-02-07 01:54:19] Production.INFO: ProcessCDR(1,14419144,1,1,2) [2025-02-07 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419144', 'tblTempUsageDetail_20' ) start [2025-02-07 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419144', 'tblTempUsageDetail_20' ) end [2025-02-07 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:54:23] Production.INFO: ==15654== Releasing lock... [2025-02-07 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:54:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:55:06 [end_date_ymd] => 2025-02-07 01:55:06 [RateCDR] => 1 ) [2025-02-07 01: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-06 22:55:06' and `end` < '2025-02-07 01: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-07 01:55:19] Production.INFO: count ==325 [2025-02-07 01:55:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:55:06 - End Time 2025-02-07 01:55:06 [2025-02-07 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419149', 'tblTempUsageDetail_20' ) start [2025-02-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419149', 'tblTempUsageDetail_20' ) end [2025-02-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419149', 'tblTempVendorCDR_20' ) start [2025-02-07 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419149', 'tblTempVendorCDR_20' ) end [2025-02-07 01:55:19] Production.INFO: ProcessCDR(1,14419149,1,1,2) [2025-02-07 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419149', 'tblTempUsageDetail_20' ) start [2025-02-07 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419149', 'tblTempUsageDetail_20' ) end [2025-02-07 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:55:22] Production.INFO: ==15740== Releasing lock... [2025-02-07 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:55:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:56:06 [end_date_ymd] => 2025-02-07 01:56:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:56:06' and `end` < '2025-02-07 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-07 01:56:19] Production.INFO: count ==324 [2025-02-07 01:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:56:06 - End Time 2025-02-07 01:56:06 [2025-02-07 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419154', 'tblTempUsageDetail_20' ) start [2025-02-07 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419154', 'tblTempUsageDetail_20' ) end [2025-02-07 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419154', 'tblTempVendorCDR_20' ) start [2025-02-07 01:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419154', 'tblTempVendorCDR_20' ) end [2025-02-07 01:56:20] Production.INFO: ProcessCDR(1,14419154,1,1,2) [2025-02-07 01:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419154', 'tblTempUsageDetail_20' ) start [2025-02-07 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419154', 'tblTempUsageDetail_20' ) end [2025-02-07 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:56:23] Production.INFO: ==15816== Releasing lock... [2025-02-07 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:57:05 [end_date_ymd] => 2025-02-07 01:57:05 [RateCDR] => 1 ) [2025-02-07 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-06 22:57:05' and `end` < '2025-02-07 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-07 01:57:19] Production.INFO: count ==321 [2025-02-07 01:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:57:05 - End Time 2025-02-07 01:57:05 [2025-02-07 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419159', 'tblTempUsageDetail_20' ) start [2025-02-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419159', 'tblTempUsageDetail_20' ) end [2025-02-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419159', 'tblTempVendorCDR_20' ) start [2025-02-07 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419159', 'tblTempVendorCDR_20' ) end [2025-02-07 01:57:19] Production.INFO: ProcessCDR(1,14419159,1,1,2) [2025-02-07 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419159', 'tblTempUsageDetail_20' ) start [2025-02-07 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419159', 'tblTempUsageDetail_20' ) end [2025-02-07 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:57:22] Production.INFO: ==15898== Releasing lock... [2025-02-07 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:58:06 [end_date_ymd] => 2025-02-07 01:58:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:58:06' and `end` < '2025-02-07 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-07 01:58:19] Production.INFO: count ==320 [2025-02-07 01:58:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:58:06 - End Time 2025-02-07 01:58:06 [2025-02-07 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419164', 'tblTempUsageDetail_20' ) start [2025-02-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419164', 'tblTempUsageDetail_20' ) end [2025-02-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419164', 'tblTempVendorCDR_20' ) start [2025-02-07 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419164', 'tblTempVendorCDR_20' ) end [2025-02-07 01:58:19] Production.INFO: ProcessCDR(1,14419164,1,1,2) [2025-02-07 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419164', 'tblTempUsageDetail_20' ) start [2025-02-07 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419164', 'tblTempUsageDetail_20' ) end [2025-02-07 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:58:23] Production.INFO: ==16016== Releasing lock... [2025-02-07 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:58:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 22:59:06 [end_date_ymd] => 2025-02-07 01:59:06 [RateCDR] => 1 ) [2025-02-07 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-06 22:59:06' and `end` < '2025-02-07 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-07 01:59:19] Production.INFO: count ==317 [2025-02-07 01:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 22:59:06 - End Time 2025-02-07 01:59:06 [2025-02-07 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419169', 'tblTempUsageDetail_20' ) start [2025-02-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419169', 'tblTempUsageDetail_20' ) end [2025-02-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419169', 'tblTempVendorCDR_20' ) start [2025-02-07 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419169', 'tblTempVendorCDR_20' ) end [2025-02-07 01:59:19] Production.INFO: ProcessCDR(1,14419169,1,1,2) [2025-02-07 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419169', 'tblTempUsageDetail_20' ) start [2025-02-07 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419169', 'tblTempUsageDetail_20' ) end [2025-02-07 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 01:59:23] Production.INFO: ==16096== Releasing lock... [2025-02-07 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 01:59:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:00:07 [end_date_ymd] => 2025-02-07 02:00:07 [RateCDR] => 1 ) [2025-02-07 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-06 23:00:07' and `end` < '2025-02-07 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-07 02:00:22] Production.INFO: count ==326 [2025-02-07 02:00:22] Production.ERROR: pbx CDR StartTime 2025-02-06 23:00:07 - End Time 2025-02-07 02:00:07 [2025-02-07 02:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419175', 'tblTempUsageDetail_20' ) start [2025-02-07 02:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419175', 'tblTempUsageDetail_20' ) end [2025-02-07 02:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419175', 'tblTempVendorCDR_20' ) start [2025-02-07 02:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419175', 'tblTempVendorCDR_20' ) end [2025-02-07 02:00:22] Production.INFO: ProcessCDR(1,14419175,1,1,2) [2025-02-07 02:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419175', 'tblTempUsageDetail_20' ) start [2025-02-07 02:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419175', 'tblTempUsageDetail_20' ) end [2025-02-07 02:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:00:26] Production.INFO: ==16179== Releasing lock... [2025-02-07 02:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:00:26] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:01:05 [end_date_ymd] => 2025-02-07 02:01:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:01:05' and `end` < '2025-02-07 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-07 02:01:19] Production.INFO: count ==323 [2025-02-07 02:01:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:01:05 - End Time 2025-02-07 02:01:05 [2025-02-07 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419180', 'tblTempUsageDetail_20' ) start [2025-02-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419180', 'tblTempUsageDetail_20' ) end [2025-02-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419180', 'tblTempVendorCDR_20' ) start [2025-02-07 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419180', 'tblTempVendorCDR_20' ) end [2025-02-07 02:01:19] Production.INFO: ProcessCDR(1,14419180,1,1,2) [2025-02-07 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419180', 'tblTempUsageDetail_20' ) start [2025-02-07 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419180', 'tblTempUsageDetail_20' ) end [2025-02-07 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:01:22] Production.INFO: ==16362== Releasing lock... [2025-02-07 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:02:06 [end_date_ymd] => 2025-02-07 02:02:06 [RateCDR] => 1 ) [2025-02-07 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-06 23:02:06' and `end` < '2025-02-07 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-07 02:02:20] Production.INFO: count ==319 [2025-02-07 02:02:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:02:06 - End Time 2025-02-07 02:02:06 [2025-02-07 02:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419185', 'tblTempUsageDetail_20' ) start [2025-02-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419185', 'tblTempUsageDetail_20' ) end [2025-02-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419185', 'tblTempVendorCDR_20' ) start [2025-02-07 02:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419185', 'tblTempVendorCDR_20' ) end [2025-02-07 02:02:20] Production.INFO: ProcessCDR(1,14419185,1,1,2) [2025-02-07 02:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419185', 'tblTempUsageDetail_20' ) start [2025-02-07 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419185', 'tblTempUsageDetail_20' ) end [2025-02-07 02:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:02:23] Production.INFO: ==16438== Releasing lock... [2025-02-07 02:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:02:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:03:05 [end_date_ymd] => 2025-02-07 02:03:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:03:05' and `end` < '2025-02-07 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-07 02:03:20] Production.INFO: count ==318 [2025-02-07 02:03:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:03:05 - End Time 2025-02-07 02:03:05 [2025-02-07 02:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419190', 'tblTempUsageDetail_20' ) start [2025-02-07 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419190', 'tblTempUsageDetail_20' ) end [2025-02-07 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419190', 'tblTempVendorCDR_20' ) start [2025-02-07 02:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419190', 'tblTempVendorCDR_20' ) end [2025-02-07 02:03:20] Production.INFO: ProcessCDR(1,14419190,1,1,2) [2025-02-07 02:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419190', 'tblTempUsageDetail_20' ) start [2025-02-07 02:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419190', 'tblTempUsageDetail_20' ) end [2025-02-07 02:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:03:24] Production.INFO: ==16535== Releasing lock... [2025-02-07 02:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:03:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:04:06 [end_date_ymd] => 2025-02-07 02:04:06 [RateCDR] => 1 ) [2025-02-07 02:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:04:06' and `end` < '2025-02-07 02:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:04:19] Production.INFO: count ==318 [2025-02-07 02:04:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:04:06 - End Time 2025-02-07 02:04:06 [2025-02-07 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419195', 'tblTempUsageDetail_20' ) start [2025-02-07 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419195', 'tblTempUsageDetail_20' ) end [2025-02-07 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419195', 'tblTempVendorCDR_20' ) start [2025-02-07 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419195', 'tblTempVendorCDR_20' ) end [2025-02-07 02:04:19] Production.INFO: ProcessCDR(1,14419195,1,1,2) [2025-02-07 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419195', 'tblTempUsageDetail_20' ) start [2025-02-07 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419195', 'tblTempUsageDetail_20' ) end [2025-02-07 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:04:22] Production.INFO: ==16613== Releasing lock... [2025-02-07 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:04:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:05:05 [end_date_ymd] => 2025-02-07 02:05:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:05:05' and `end` < '2025-02-07 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-07 02:05:19] Production.INFO: count ==316 [2025-02-07 02:05:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:05:05 - End Time 2025-02-07 02:05:05 [2025-02-07 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419200', 'tblTempUsageDetail_20' ) start [2025-02-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419200', 'tblTempUsageDetail_20' ) end [2025-02-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419200', 'tblTempVendorCDR_20' ) start [2025-02-07 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419200', 'tblTempVendorCDR_20' ) end [2025-02-07 02:05:19] Production.INFO: ProcessCDR(1,14419200,1,1,2) [2025-02-07 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419200', 'tblTempUsageDetail_20' ) start [2025-02-07 02:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419200', 'tblTempUsageDetail_20' ) end [2025-02-07 02:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:05:23] Production.INFO: ==16692== Releasing lock... [2025-02-07 02:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:05:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:06:05 [end_date_ymd] => 2025-02-07 02:06:05 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:06:05' and `end` < '2025-02-07 02: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-07 02:06:20] Production.INFO: count ==314 [2025-02-07 02:06:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:06:05 - End Time 2025-02-07 02:06:05 [2025-02-07 02:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419205', 'tblTempUsageDetail_20' ) start [2025-02-07 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419205', 'tblTempUsageDetail_20' ) end [2025-02-07 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419205', 'tblTempVendorCDR_20' ) start [2025-02-07 02:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419205', 'tblTempVendorCDR_20' ) end [2025-02-07 02:06:20] Production.INFO: ProcessCDR(1,14419205,1,1,2) [2025-02-07 02:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419205', 'tblTempUsageDetail_20' ) start [2025-02-07 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419205', 'tblTempUsageDetail_20' ) end [2025-02-07 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:06:23] Production.INFO: ==16764== Releasing lock... [2025-02-07 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:06:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:07:06 [end_date_ymd] => 2025-02-07 02:07:06 [RateCDR] => 1 ) [2025-02-07 02:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:07:06' and `end` < '2025-02-07 02:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:07:19] Production.INFO: count ==313 [2025-02-07 02:07:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:07:06 - End Time 2025-02-07 02:07:06 [2025-02-07 02:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419210', 'tblTempUsageDetail_20' ) start [2025-02-07 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419210', 'tblTempUsageDetail_20' ) end [2025-02-07 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419210', 'tblTempVendorCDR_20' ) start [2025-02-07 02:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419210', 'tblTempVendorCDR_20' ) end [2025-02-07 02:07:19] Production.INFO: ProcessCDR(1,14419210,1,1,2) [2025-02-07 02:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419210', 'tblTempUsageDetail_20' ) start [2025-02-07 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419210', 'tblTempUsageDetail_20' ) end [2025-02-07 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:07:22] Production.INFO: ==16850== Releasing lock... [2025-02-07 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:08:06 [end_date_ymd] => 2025-02-07 02:08:06 [RateCDR] => 1 ) [2025-02-07 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-06 23:08:06' and `end` < '2025-02-07 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-07 02:08:19] Production.INFO: count ==313 [2025-02-07 02:08:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:08:06 - End Time 2025-02-07 02:08:06 [2025-02-07 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419215', 'tblTempUsageDetail_20' ) start [2025-02-07 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419215', 'tblTempUsageDetail_20' ) end [2025-02-07 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419215', 'tblTempVendorCDR_20' ) start [2025-02-07 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419215', 'tblTempVendorCDR_20' ) end [2025-02-07 02:08:19] Production.INFO: ProcessCDR(1,14419215,1,1,2) [2025-02-07 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419215', 'tblTempUsageDetail_20' ) start [2025-02-07 02:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419215', 'tblTempUsageDetail_20' ) end [2025-02-07 02:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:08:23] Production.INFO: ==16926== Releasing lock... [2025-02-07 02:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:08:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:09:06 [end_date_ymd] => 2025-02-07 02:09:06 [RateCDR] => 1 ) [2025-02-07 02:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:09:06' and `end` < '2025-02-07 02:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:09:19] Production.INFO: count ==313 [2025-02-07 02:09:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:09:06 - End Time 2025-02-07 02:09:06 [2025-02-07 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419220', 'tblTempUsageDetail_20' ) start [2025-02-07 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419220', 'tblTempUsageDetail_20' ) end [2025-02-07 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419220', 'tblTempVendorCDR_20' ) start [2025-02-07 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419220', 'tblTempVendorCDR_20' ) end [2025-02-07 02:09:19] Production.INFO: ProcessCDR(1,14419220,1,1,2) [2025-02-07 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419220', 'tblTempUsageDetail_20' ) start [2025-02-07 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419220', 'tblTempUsageDetail_20' ) end [2025-02-07 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:09:22] Production.INFO: ==17005== Releasing lock... [2025-02-07 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:10:07 [end_date_ymd] => 2025-02-07 02:10:07 [RateCDR] => 1 ) [2025-02-07 02:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:10:07' and `end` < '2025-02-07 02:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:10:20] Production.INFO: count ==323 [2025-02-07 02:10:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:10:07 - End Time 2025-02-07 02:10:07 [2025-02-07 02:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419226', 'tblTempUsageDetail_20' ) start [2025-02-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419226', 'tblTempUsageDetail_20' ) end [2025-02-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419226', 'tblTempVendorCDR_20' ) start [2025-02-07 02:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419226', 'tblTempVendorCDR_20' ) end [2025-02-07 02:10:20] Production.INFO: ProcessCDR(1,14419226,1,1,2) [2025-02-07 02:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419226', 'tblTempUsageDetail_20' ) start [2025-02-07 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419226', 'tblTempUsageDetail_20' ) end [2025-02-07 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:10:24] Production.INFO: ==17084== Releasing lock... [2025-02-07 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:10:24] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:11:05 [end_date_ymd] => 2025-02-07 02:11:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:11:05' and `end` < '2025-02-07 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-07 02:11:18] Production.INFO: count ==334 [2025-02-07 02:11:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:11:05 - End Time 2025-02-07 02:11:05 [2025-02-07 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419231', 'tblTempUsageDetail_20' ) start [2025-02-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419231', 'tblTempUsageDetail_20' ) end [2025-02-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419231', 'tblTempVendorCDR_20' ) start [2025-02-07 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419231', 'tblTempVendorCDR_20' ) end [2025-02-07 02:11:18] Production.INFO: ProcessCDR(1,14419231,1,1,2) [2025-02-07 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419231', 'tblTempUsageDetail_20' ) start [2025-02-07 02:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419231', 'tblTempUsageDetail_20' ) end [2025-02-07 02:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:11:23] Production.INFO: ==17167== Releasing lock... [2025-02-07 02:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:11:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:12:06 [end_date_ymd] => 2025-02-07 02:12:06 [RateCDR] => 1 ) [2025-02-07 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-06 23:12:06' and `end` < '2025-02-07 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-07 02:12:20] Production.INFO: count ==329 [2025-02-07 02:12:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:12:06 - End Time 2025-02-07 02:12:06 [2025-02-07 02:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419236', 'tblTempUsageDetail_20' ) start [2025-02-07 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419236', 'tblTempUsageDetail_20' ) end [2025-02-07 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419236', 'tblTempVendorCDR_20' ) start [2025-02-07 02:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419236', 'tblTempVendorCDR_20' ) end [2025-02-07 02:12:20] Production.INFO: ProcessCDR(1,14419236,1,1,2) [2025-02-07 02:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419236', 'tblTempUsageDetail_20' ) start [2025-02-07 02:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419236', 'tblTempUsageDetail_20' ) end [2025-02-07 02:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:12:24] Production.INFO: ==17243== Releasing lock... [2025-02-07 02:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:12:24] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:13:05 [end_date_ymd] => 2025-02-07 02:13:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:13:05' and `end` < '2025-02-07 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-07 02:13:19] Production.INFO: count ==329 [2025-02-07 02:13:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:13:05 - End Time 2025-02-07 02:13:05 [2025-02-07 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419241', 'tblTempUsageDetail_20' ) start [2025-02-07 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419241', 'tblTempUsageDetail_20' ) end [2025-02-07 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419241', 'tblTempVendorCDR_20' ) start [2025-02-07 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419241', 'tblTempVendorCDR_20' ) end [2025-02-07 02:13:19] Production.INFO: ProcessCDR(1,14419241,1,1,2) [2025-02-07 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419241', 'tblTempUsageDetail_20' ) start [2025-02-07 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419241', 'tblTempUsageDetail_20' ) end [2025-02-07 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:13:22] Production.INFO: ==17319== Releasing lock... [2025-02-07 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:13:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:14:06 [end_date_ymd] => 2025-02-07 02:14:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:14:06' and `end` < '2025-02-07 02: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-07 02:14:20] Production.INFO: count ==326 [2025-02-07 02:14:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:14:06 - End Time 2025-02-07 02:14:06 [2025-02-07 02:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419246', 'tblTempUsageDetail_20' ) start [2025-02-07 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419246', 'tblTempUsageDetail_20' ) end [2025-02-07 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419246', 'tblTempVendorCDR_20' ) start [2025-02-07 02:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419246', 'tblTempVendorCDR_20' ) end [2025-02-07 02:14:20] Production.INFO: ProcessCDR(1,14419246,1,1,2) [2025-02-07 02:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419246', 'tblTempUsageDetail_20' ) start [2025-02-07 02:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419246', 'tblTempUsageDetail_20' ) end [2025-02-07 02:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:14:23] Production.INFO: ==17434== Releasing lock... [2025-02-07 02:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:14:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:15:05 [end_date_ymd] => 2025-02-07 02:15:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:15:05' and `end` < '2025-02-07 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-07 02:15:19] Production.INFO: count ==316 [2025-02-07 02:15:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:15:05 - End Time 2025-02-07 02:15:05 [2025-02-07 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419251', 'tblTempUsageDetail_20' ) start [2025-02-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419251', 'tblTempUsageDetail_20' ) end [2025-02-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419251', 'tblTempVendorCDR_20' ) start [2025-02-07 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419251', 'tblTempVendorCDR_20' ) end [2025-02-07 02:15:19] Production.INFO: ProcessCDR(1,14419251,1,1,2) [2025-02-07 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419251', 'tblTempUsageDetail_20' ) start [2025-02-07 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419251', 'tblTempUsageDetail_20' ) end [2025-02-07 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:15:22] Production.INFO: ==17509== Releasing lock... [2025-02-07 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:16:06 [end_date_ymd] => 2025-02-07 02:16:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:16:06' and `end` < '2025-02-07 02: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-07 02:16:19] Production.INFO: count ==316 [2025-02-07 02:16:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:16:06 - End Time 2025-02-07 02:16:06 [2025-02-07 02:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419256', 'tblTempUsageDetail_20' ) start [2025-02-07 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419256', 'tblTempUsageDetail_20' ) end [2025-02-07 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419256', 'tblTempVendorCDR_20' ) start [2025-02-07 02:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419256', 'tblTempVendorCDR_20' ) end [2025-02-07 02:16:20] Production.INFO: ProcessCDR(1,14419256,1,1,2) [2025-02-07 02:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419256', 'tblTempUsageDetail_20' ) start [2025-02-07 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419256', 'tblTempUsageDetail_20' ) end [2025-02-07 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:16:23] Production.INFO: ==17584== Releasing lock... [2025-02-07 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:16:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:17:05 [end_date_ymd] => 2025-02-07 02:17:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:17:05' and `end` < '2025-02-07 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-07 02:17:19] Production.INFO: count ==316 [2025-02-07 02:17:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:17:05 - End Time 2025-02-07 02:17:05 [2025-02-07 02:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419261', 'tblTempUsageDetail_20' ) start [2025-02-07 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419261', 'tblTempUsageDetail_20' ) end [2025-02-07 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419261', 'tblTempVendorCDR_20' ) start [2025-02-07 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419261', 'tblTempVendorCDR_20' ) end [2025-02-07 02:17:19] Production.INFO: ProcessCDR(1,14419261,1,1,2) [2025-02-07 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419261', 'tblTempUsageDetail_20' ) start [2025-02-07 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419261', 'tblTempUsageDetail_20' ) end [2025-02-07 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:17:22] Production.INFO: ==17655== Releasing lock... [2025-02-07 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:18:06 [end_date_ymd] => 2025-02-07 02:18:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:18:06' and `end` < '2025-02-07 02: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-07 02:18:19] Production.INFO: count ==316 [2025-02-07 02:18:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:18:06 - End Time 2025-02-07 02:18:06 [2025-02-07 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419266', 'tblTempUsageDetail_20' ) start [2025-02-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419266', 'tblTempUsageDetail_20' ) end [2025-02-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419266', 'tblTempVendorCDR_20' ) start [2025-02-07 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419266', 'tblTempVendorCDR_20' ) end [2025-02-07 02:18:19] Production.INFO: ProcessCDR(1,14419266,1,1,2) [2025-02-07 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419266', 'tblTempUsageDetail_20' ) start [2025-02-07 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419266', 'tblTempUsageDetail_20' ) end [2025-02-07 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:18:22] Production.INFO: ==17730== Releasing lock... [2025-02-07 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:19:05 [end_date_ymd] => 2025-02-07 02:19:05 [RateCDR] => 1 ) [2025-02-07 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:19:05' and `end` < '2025-02-07 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:19:18] Production.INFO: count ==316 [2025-02-07 02:19:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:19:05 - End Time 2025-02-07 02:19:05 [2025-02-07 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419271', 'tblTempUsageDetail_20' ) start [2025-02-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419271', 'tblTempUsageDetail_20' ) end [2025-02-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419271', 'tblTempVendorCDR_20' ) start [2025-02-07 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419271', 'tblTempVendorCDR_20' ) end [2025-02-07 02:19:18] Production.INFO: ProcessCDR(1,14419271,1,1,2) [2025-02-07 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419271', 'tblTempUsageDetail_20' ) start [2025-02-07 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419271', 'tblTempUsageDetail_20' ) end [2025-02-07 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:19:21] Production.INFO: ==17804== Releasing lock... [2025-02-07 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:20:06 [end_date_ymd] => 2025-02-07 02:20:06 [RateCDR] => 1 ) [2025-02-07 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-06 23:20:06' and `end` < '2025-02-07 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-07 02:20:21] Production.INFO: count ==322 [2025-02-07 02:20:21] Production.ERROR: pbx CDR StartTime 2025-02-06 23:20:06 - End Time 2025-02-07 02:20:06 [2025-02-07 02:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419276', 'tblTempUsageDetail_20' ) start [2025-02-07 02:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419276', 'tblTempUsageDetail_20' ) end [2025-02-07 02:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419276', 'tblTempVendorCDR_20' ) start [2025-02-07 02:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419276', 'tblTempVendorCDR_20' ) end [2025-02-07 02:20:21] Production.INFO: ProcessCDR(1,14419276,1,1,2) [2025-02-07 02:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419276', 'tblTempUsageDetail_20' ) start [2025-02-07 02:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419276', 'tblTempUsageDetail_20' ) end [2025-02-07 02:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:20:25] Production.INFO: ==17882== Releasing lock... [2025-02-07 02:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:20:25] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:21:05 [end_date_ymd] => 2025-02-07 02:21:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:21:05' and `end` < '2025-02-07 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-07 02:21:18] Production.INFO: count ==320 [2025-02-07 02:21:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:21:05 - End Time 2025-02-07 02:21:05 [2025-02-07 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419282', 'tblTempUsageDetail_20' ) start [2025-02-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419282', 'tblTempUsageDetail_20' ) end [2025-02-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419282', 'tblTempVendorCDR_20' ) start [2025-02-07 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419282', 'tblTempVendorCDR_20' ) end [2025-02-07 02:21:18] Production.INFO: ProcessCDR(1,14419282,1,1,2) [2025-02-07 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419282', 'tblTempUsageDetail_20' ) start [2025-02-07 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419282', 'tblTempUsageDetail_20' ) end [2025-02-07 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:21:22] Production.INFO: ==17959== Releasing lock... [2025-02-07 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:21:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:22:06 [end_date_ymd] => 2025-02-07 02:22:06 [RateCDR] => 1 ) [2025-02-07 02:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:22:06' and `end` < '2025-02-07 02:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:22:18] Production.INFO: count ==321 [2025-02-07 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:22:06 - End Time 2025-02-07 02:22:06 [2025-02-07 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419287', 'tblTempUsageDetail_20' ) start [2025-02-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419287', 'tblTempUsageDetail_20' ) end [2025-02-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419287', 'tblTempVendorCDR_20' ) start [2025-02-07 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419287', 'tblTempVendorCDR_20' ) end [2025-02-07 02:22:18] Production.INFO: ProcessCDR(1,14419287,1,1,2) [2025-02-07 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419287', 'tblTempUsageDetail_20' ) start [2025-02-07 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419287', 'tblTempUsageDetail_20' ) end [2025-02-07 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:22:22] Production.INFO: ==18029== Releasing lock... [2025-02-07 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:22:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:23:05 [end_date_ymd] => 2025-02-07 02:23:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:23:05' and `end` < '2025-02-07 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-07 02:23:18] Production.INFO: count ==321 [2025-02-07 02:23:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:23:05 - End Time 2025-02-07 02:23:05 [2025-02-07 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419292', 'tblTempUsageDetail_20' ) start [2025-02-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419292', 'tblTempUsageDetail_20' ) end [2025-02-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419292', 'tblTempVendorCDR_20' ) start [2025-02-07 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419292', 'tblTempVendorCDR_20' ) end [2025-02-07 02:23:18] Production.INFO: ProcessCDR(1,14419292,1,1,2) [2025-02-07 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419292', 'tblTempUsageDetail_20' ) start [2025-02-07 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419292', 'tblTempUsageDetail_20' ) end [2025-02-07 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:23:22] Production.INFO: ==18102== Releasing lock... [2025-02-07 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:23:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:24:06 [end_date_ymd] => 2025-02-07 02:24:06 [RateCDR] => 1 ) [2025-02-07 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:24:06' and `end` < '2025-02-07 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:24:19] Production.INFO: count ==323 [2025-02-07 02:24:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:24:06 - End Time 2025-02-07 02:24:06 [2025-02-07 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419297', 'tblTempUsageDetail_20' ) start [2025-02-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419297', 'tblTempUsageDetail_20' ) end [2025-02-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419297', 'tblTempVendorCDR_20' ) start [2025-02-07 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419297', 'tblTempVendorCDR_20' ) end [2025-02-07 02:24:19] Production.INFO: ProcessCDR(1,14419297,1,1,2) [2025-02-07 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419297', 'tblTempUsageDetail_20' ) start [2025-02-07 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419297', 'tblTempUsageDetail_20' ) end [2025-02-07 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:24:22] Production.INFO: ==18173== Releasing lock... [2025-02-07 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:24:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:25:05 [end_date_ymd] => 2025-02-07 02:25:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:25:05' and `end` < '2025-02-07 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-07 02:25:18] Production.INFO: count ==321 [2025-02-07 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:25:05 - End Time 2025-02-07 02:25:05 [2025-02-07 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419302', 'tblTempUsageDetail_20' ) start [2025-02-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419302', 'tblTempUsageDetail_20' ) end [2025-02-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419302', 'tblTempVendorCDR_20' ) start [2025-02-07 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419302', 'tblTempVendorCDR_20' ) end [2025-02-07 02:25:18] Production.INFO: ProcessCDR(1,14419302,1,1,2) [2025-02-07 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419302', 'tblTempUsageDetail_20' ) start [2025-02-07 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419302', 'tblTempUsageDetail_20' ) end [2025-02-07 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:25:22] Production.INFO: ==18245== Releasing lock... [2025-02-07 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:25:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:26:06 [end_date_ymd] => 2025-02-07 02:26:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:26:06' and `end` < '2025-02-07 02: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-07 02:26:19] Production.INFO: count ==321 [2025-02-07 02:26:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:26:06 - End Time 2025-02-07 02:26:06 [2025-02-07 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419307', 'tblTempUsageDetail_20' ) start [2025-02-07 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419307', 'tblTempUsageDetail_20' ) end [2025-02-07 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419307', 'tblTempVendorCDR_20' ) start [2025-02-07 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419307', 'tblTempVendorCDR_20' ) end [2025-02-07 02:26:19] Production.INFO: ProcessCDR(1,14419307,1,1,2) [2025-02-07 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419307', 'tblTempUsageDetail_20' ) start [2025-02-07 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419307', 'tblTempUsageDetail_20' ) end [2025-02-07 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:26:22] Production.INFO: ==18317== Releasing lock... [2025-02-07 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:26:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:27:05 [end_date_ymd] => 2025-02-07 02:27:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:27:05' and `end` < '2025-02-07 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-07 02:27:20] Production.INFO: count ==322 [2025-02-07 02:27:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:27:05 - End Time 2025-02-07 02:27:05 [2025-02-07 02:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419312', 'tblTempUsageDetail_20' ) start [2025-02-07 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419312', 'tblTempUsageDetail_20' ) end [2025-02-07 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419312', 'tblTempVendorCDR_20' ) start [2025-02-07 02:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419312', 'tblTempVendorCDR_20' ) end [2025-02-07 02:27:20] Production.INFO: ProcessCDR(1,14419312,1,1,2) [2025-02-07 02:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419312', 'tblTempUsageDetail_20' ) start [2025-02-07 02:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419312', 'tblTempUsageDetail_20' ) end [2025-02-07 02:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:27:23] Production.INFO: ==18389== Releasing lock... [2025-02-07 02:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:27:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:28:05 [end_date_ymd] => 2025-02-07 02:28:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:28:05' and `end` < '2025-02-07 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-07 02:28:18] Production.INFO: count ==324 [2025-02-07 02:28:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:28:05 - End Time 2025-02-07 02:28:05 [2025-02-07 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419317', 'tblTempUsageDetail_20' ) start [2025-02-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419317', 'tblTempUsageDetail_20' ) end [2025-02-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419317', 'tblTempVendorCDR_20' ) start [2025-02-07 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419317', 'tblTempVendorCDR_20' ) end [2025-02-07 02:28:18] Production.INFO: ProcessCDR(1,14419317,1,1,2) [2025-02-07 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419317', 'tblTempUsageDetail_20' ) start [2025-02-07 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419317', 'tblTempUsageDetail_20' ) end [2025-02-07 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:28:21] Production.INFO: ==18459== Releasing lock... [2025-02-07 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:28:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:29:05 [end_date_ymd] => 2025-02-07 02:29:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:29:05' and `end` < '2025-02-07 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-07 02:29:18] Production.INFO: count ==324 [2025-02-07 02:29:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:29:05 - End Time 2025-02-07 02:29:05 [2025-02-07 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419322', 'tblTempUsageDetail_20' ) start [2025-02-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419322', 'tblTempUsageDetail_20' ) end [2025-02-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419322', 'tblTempVendorCDR_20' ) start [2025-02-07 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419322', 'tblTempVendorCDR_20' ) end [2025-02-07 02:29:18] Production.INFO: ProcessCDR(1,14419322,1,1,2) [2025-02-07 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419322', 'tblTempUsageDetail_20' ) start [2025-02-07 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419322', 'tblTempUsageDetail_20' ) end [2025-02-07 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:29:21] Production.INFO: ==18570== Releasing lock... [2025-02-07 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:29:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:30:06 [end_date_ymd] => 2025-02-07 02:30:06 [RateCDR] => 1 ) [2025-02-07 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:30:06' and `end` < '2025-02-07 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:30:19] Production.INFO: count ==334 [2025-02-07 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:30:06 - End Time 2025-02-07 02:30:06 [2025-02-07 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419328', 'tblTempUsageDetail_20' ) start [2025-02-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419328', 'tblTempUsageDetail_20' ) end [2025-02-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419328', 'tblTempVendorCDR_20' ) start [2025-02-07 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419328', 'tblTempVendorCDR_20' ) end [2025-02-07 02:30:19] Production.INFO: ProcessCDR(1,14419328,1,1,2) [2025-02-07 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419328', 'tblTempUsageDetail_20' ) start [2025-02-07 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419328', 'tblTempUsageDetail_20' ) end [2025-02-07 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:30:22] Production.INFO: ==18650== Releasing lock... [2025-02-07 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:31:05 [end_date_ymd] => 2025-02-07 02:31:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:31:05' and `end` < '2025-02-07 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-07 02:31:19] Production.INFO: count ==335 [2025-02-07 02:31:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:31:05 - End Time 2025-02-07 02:31:05 [2025-02-07 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419333', 'tblTempUsageDetail_20' ) start [2025-02-07 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419333', 'tblTempUsageDetail_20' ) end [2025-02-07 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419333', 'tblTempVendorCDR_20' ) start [2025-02-07 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419333', 'tblTempVendorCDR_20' ) end [2025-02-07 02:31:19] Production.INFO: ProcessCDR(1,14419333,1,1,2) [2025-02-07 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419333', 'tblTempUsageDetail_20' ) start [2025-02-07 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419333', 'tblTempUsageDetail_20' ) end [2025-02-07 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:31:22] Production.INFO: ==18727== Releasing lock... [2025-02-07 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:31:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:32:05 [end_date_ymd] => 2025-02-07 02:32:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:32:05' and `end` < '2025-02-07 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-07 02:32:18] Production.INFO: count ==335 [2025-02-07 02:32:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:32:05 - End Time 2025-02-07 02:32:05 [2025-02-07 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419338', 'tblTempUsageDetail_20' ) start [2025-02-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419338', 'tblTempUsageDetail_20' ) end [2025-02-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419338', 'tblTempVendorCDR_20' ) start [2025-02-07 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419338', 'tblTempVendorCDR_20' ) end [2025-02-07 02:32:18] Production.INFO: ProcessCDR(1,14419338,1,1,2) [2025-02-07 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419338', 'tblTempUsageDetail_20' ) start [2025-02-07 02:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419338', 'tblTempUsageDetail_20' ) end [2025-02-07 02:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:32:23] Production.INFO: ==18800== Releasing lock... [2025-02-07 02:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:32:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:33:06 [end_date_ymd] => 2025-02-07 02:33:06 [RateCDR] => 1 ) [2025-02-07 02:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:33:06' and `end` < '2025-02-07 02:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:33:18] Production.INFO: count ==335 [2025-02-07 02:33:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:33:06 - End Time 2025-02-07 02:33:06 [2025-02-07 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419343', 'tblTempUsageDetail_20' ) start [2025-02-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419343', 'tblTempUsageDetail_20' ) end [2025-02-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419343', 'tblTempVendorCDR_20' ) start [2025-02-07 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419343', 'tblTempVendorCDR_20' ) end [2025-02-07 02:33:18] Production.INFO: ProcessCDR(1,14419343,1,1,2) [2025-02-07 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419343', 'tblTempUsageDetail_20' ) start [2025-02-07 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419343', 'tblTempUsageDetail_20' ) end [2025-02-07 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:33:21] Production.INFO: ==18873== Releasing lock... [2025-02-07 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:33:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:34:05 [end_date_ymd] => 2025-02-07 02:34:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:34:05' and `end` < '2025-02-07 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-07 02:34:18] Production.INFO: count ==335 [2025-02-07 02:34:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:34:05 - End Time 2025-02-07 02:34:05 [2025-02-07 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419348', 'tblTempUsageDetail_20' ) start [2025-02-07 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419348', 'tblTempUsageDetail_20' ) end [2025-02-07 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419348', 'tblTempVendorCDR_20' ) start [2025-02-07 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419348', 'tblTempVendorCDR_20' ) end [2025-02-07 02:34:19] Production.INFO: ProcessCDR(1,14419348,1,1,2) [2025-02-07 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419348', 'tblTempUsageDetail_20' ) start [2025-02-07 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419348', 'tblTempUsageDetail_20' ) end [2025-02-07 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:34:22] Production.INFO: ==18944== Releasing lock... [2025-02-07 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:34:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:35:05 [end_date_ymd] => 2025-02-07 02:35:05 [RateCDR] => 1 ) [2025-02-07 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:35:05' and `end` < '2025-02-07 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:35:19] Production.INFO: count ==335 [2025-02-07 02:35:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:35:05 - End Time 2025-02-07 02:35:05 [2025-02-07 02:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419353', 'tblTempUsageDetail_20' ) start [2025-02-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419353', 'tblTempUsageDetail_20' ) end [2025-02-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419353', 'tblTempVendorCDR_20' ) start [2025-02-07 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419353', 'tblTempVendorCDR_20' ) end [2025-02-07 02:35:19] Production.INFO: ProcessCDR(1,14419353,1,1,2) [2025-02-07 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419353', 'tblTempUsageDetail_20' ) start [2025-02-07 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419353', 'tblTempUsageDetail_20' ) end [2025-02-07 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:35:22] Production.INFO: ==19017== Releasing lock... [2025-02-07 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:35:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:36:04 [end_date_ymd] => 2025-02-07 02:36:04 [RateCDR] => 1 ) [2025-02-07 02:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:36:04' and `end` < '2025-02-07 02:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:36:18] Production.INFO: count ==335 [2025-02-07 02:36:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:36:04 - End Time 2025-02-07 02:36:04 [2025-02-07 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419358', 'tblTempUsageDetail_20' ) start [2025-02-07 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419358', 'tblTempUsageDetail_20' ) end [2025-02-07 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419358', 'tblTempVendorCDR_20' ) start [2025-02-07 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419358', 'tblTempVendorCDR_20' ) end [2025-02-07 02:36:18] Production.INFO: ProcessCDR(1,14419358,1,1,2) [2025-02-07 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419358', 'tblTempUsageDetail_20' ) start [2025-02-07 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419358', 'tblTempUsageDetail_20' ) end [2025-02-07 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:36:21] Production.INFO: ==19097== Releasing lock... [2025-02-07 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:36:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:37:05 [end_date_ymd] => 2025-02-07 02:37:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:37:05' and `end` < '2025-02-07 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-07 02:37:18] Production.INFO: count ==332 [2025-02-07 02:37:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:37:05 - End Time 2025-02-07 02:37:05 [2025-02-07 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419363', 'tblTempUsageDetail_20' ) start [2025-02-07 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419363', 'tblTempUsageDetail_20' ) end [2025-02-07 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419363', 'tblTempVendorCDR_20' ) start [2025-02-07 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419363', 'tblTempVendorCDR_20' ) end [2025-02-07 02:37:18] Production.INFO: ProcessCDR(1,14419363,1,1,2) [2025-02-07 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419363', 'tblTempUsageDetail_20' ) start [2025-02-07 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419363', 'tblTempUsageDetail_20' ) end [2025-02-07 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:37:21] Production.INFO: ==19171== Releasing lock... [2025-02-07 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:37:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:38:05 [end_date_ymd] => 2025-02-07 02:38:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:38:05' and `end` < '2025-02-07 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-07 02:38:18] Production.INFO: count ==333 [2025-02-07 02:38:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:38:05 - End Time 2025-02-07 02:38:05 [2025-02-07 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419368', 'tblTempUsageDetail_20' ) start [2025-02-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419368', 'tblTempUsageDetail_20' ) end [2025-02-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419368', 'tblTempVendorCDR_20' ) start [2025-02-07 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419368', 'tblTempVendorCDR_20' ) end [2025-02-07 02:38:18] Production.INFO: ProcessCDR(1,14419368,1,1,2) [2025-02-07 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419368', 'tblTempUsageDetail_20' ) start [2025-02-07 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419368', 'tblTempUsageDetail_20' ) end [2025-02-07 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:38:21] Production.INFO: ==19242== Releasing lock... [2025-02-07 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:39:05 [end_date_ymd] => 2025-02-07 02:39:05 [RateCDR] => 1 ) [2025-02-07 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:39:05' and `end` < '2025-02-07 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:39:19] Production.INFO: count ==333 [2025-02-07 02:39:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:39:05 - End Time 2025-02-07 02:39:05 [2025-02-07 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419373', 'tblTempUsageDetail_20' ) start [2025-02-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419373', 'tblTempUsageDetail_20' ) end [2025-02-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419373', 'tblTempVendorCDR_20' ) start [2025-02-07 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419373', 'tblTempVendorCDR_20' ) end [2025-02-07 02:39:19] Production.INFO: ProcessCDR(1,14419373,1,1,2) [2025-02-07 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419373', 'tblTempUsageDetail_20' ) start [2025-02-07 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419373', 'tblTempUsageDetail_20' ) end [2025-02-07 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:39:22] Production.INFO: ==19313== Releasing lock... [2025-02-07 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:39:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:40:06 [end_date_ymd] => 2025-02-07 02:40:06 [RateCDR] => 1 ) [2025-02-07 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-06 23:40:06' and `end` < '2025-02-07 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-07 02:40:19] Production.INFO: count ==341 [2025-02-07 02:40:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:40:06 - End Time 2025-02-07 02:40:06 [2025-02-07 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419378', 'tblTempUsageDetail_20' ) start [2025-02-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419378', 'tblTempUsageDetail_20' ) end [2025-02-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419378', 'tblTempVendorCDR_20' ) start [2025-02-07 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419378', 'tblTempVendorCDR_20' ) end [2025-02-07 02:40:19] Production.INFO: ProcessCDR(1,14419378,1,1,2) [2025-02-07 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419378', 'tblTempUsageDetail_20' ) start [2025-02-07 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419378', 'tblTempUsageDetail_20' ) end [2025-02-07 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:40:22] Production.INFO: ==19389== Releasing lock... [2025-02-07 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:40:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:41:05 [end_date_ymd] => 2025-02-07 02:41:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:41:05' and `end` < '2025-02-07 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-07 02:41:19] Production.INFO: count ==352 [2025-02-07 02:41:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:41:05 - End Time 2025-02-07 02:41:05 [2025-02-07 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419384', 'tblTempUsageDetail_20' ) start [2025-02-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419384', 'tblTempUsageDetail_20' ) end [2025-02-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419384', 'tblTempVendorCDR_20' ) start [2025-02-07 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419384', 'tblTempVendorCDR_20' ) end [2025-02-07 02:41:19] Production.INFO: ProcessCDR(1,14419384,1,1,2) [2025-02-07 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419384', 'tblTempUsageDetail_20' ) start [2025-02-07 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419384', 'tblTempUsageDetail_20' ) end [2025-02-07 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:41:23] Production.INFO: ==19464== Releasing lock... [2025-02-07 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:41:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:42:06 [end_date_ymd] => 2025-02-07 02:42:06 [RateCDR] => 1 ) [2025-02-07 02:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:42:06' and `end` < '2025-02-07 02:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:42:19] Production.INFO: count ==352 [2025-02-07 02:42:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:42:06 - End Time 2025-02-07 02:42:06 [2025-02-07 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419389', 'tblTempUsageDetail_20' ) start [2025-02-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419389', 'tblTempUsageDetail_20' ) end [2025-02-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419389', 'tblTempVendorCDR_20' ) start [2025-02-07 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419389', 'tblTempVendorCDR_20' ) end [2025-02-07 02:42:19] Production.INFO: ProcessCDR(1,14419389,1,1,2) [2025-02-07 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419389', 'tblTempUsageDetail_20' ) start [2025-02-07 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419389', 'tblTempUsageDetail_20' ) end [2025-02-07 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:42:22] Production.INFO: ==19533== Releasing lock... [2025-02-07 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:43:05 [end_date_ymd] => 2025-02-07 02:43:05 [RateCDR] => 1 ) [2025-02-07 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:43:05' and `end` < '2025-02-07 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:43:18] Production.INFO: count ==350 [2025-02-07 02:43:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:43:05 - End Time 2025-02-07 02:43:05 [2025-02-07 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419394', 'tblTempUsageDetail_20' ) start [2025-02-07 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419394', 'tblTempUsageDetail_20' ) end [2025-02-07 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419394', 'tblTempVendorCDR_20' ) start [2025-02-07 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419394', 'tblTempVendorCDR_20' ) end [2025-02-07 02:43:18] Production.INFO: ProcessCDR(1,14419394,1,1,2) [2025-02-07 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419394', 'tblTempUsageDetail_20' ) start [2025-02-07 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419394', 'tblTempUsageDetail_20' ) end [2025-02-07 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:43:22] Production.INFO: ==19606== Releasing lock... [2025-02-07 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:43:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:44:06 [end_date_ymd] => 2025-02-07 02:44:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:44:06' and `end` < '2025-02-07 02: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-07 02:44:19] Production.INFO: count ==348 [2025-02-07 02:44:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:44:06 - End Time 2025-02-07 02:44:06 [2025-02-07 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419399', 'tblTempUsageDetail_20' ) start [2025-02-07 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419399', 'tblTempUsageDetail_20' ) end [2025-02-07 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419399', 'tblTempVendorCDR_20' ) start [2025-02-07 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419399', 'tblTempVendorCDR_20' ) end [2025-02-07 02:44:19] Production.INFO: ProcessCDR(1,14419399,1,1,2) [2025-02-07 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419399', 'tblTempUsageDetail_20' ) start [2025-02-07 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419399', 'tblTempUsageDetail_20' ) end [2025-02-07 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:44:22] Production.INFO: ==19678== Releasing lock... [2025-02-07 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:44:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:45:05 [end_date_ymd] => 2025-02-07 02:45:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:45:05' and `end` < '2025-02-07 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-07 02:45:19] Production.INFO: count ==346 [2025-02-07 02:45:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:45:05 - End Time 2025-02-07 02:45:05 [2025-02-07 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419404', 'tblTempUsageDetail_20' ) start [2025-02-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419404', 'tblTempUsageDetail_20' ) end [2025-02-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419404', 'tblTempVendorCDR_20' ) start [2025-02-07 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419404', 'tblTempVendorCDR_20' ) end [2025-02-07 02:45:19] Production.INFO: ProcessCDR(1,14419404,1,1,2) [2025-02-07 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419404', 'tblTempUsageDetail_20' ) start [2025-02-07 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419404', 'tblTempUsageDetail_20' ) end [2025-02-07 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:45:22] Production.INFO: ==19788== Releasing lock... [2025-02-07 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:45:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:46:05 [end_date_ymd] => 2025-02-07 02:46:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:46:05' and `end` < '2025-02-07 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-07 02:46:18] Production.INFO: count ==346 [2025-02-07 02:46:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:46:05 - End Time 2025-02-07 02:46:05 [2025-02-07 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419409', 'tblTempUsageDetail_20' ) start [2025-02-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419409', 'tblTempUsageDetail_20' ) end [2025-02-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419409', 'tblTempVendorCDR_20' ) start [2025-02-07 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419409', 'tblTempVendorCDR_20' ) end [2025-02-07 02:46:18] Production.INFO: ProcessCDR(1,14419409,1,1,2) [2025-02-07 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419409', 'tblTempUsageDetail_20' ) start [2025-02-07 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419409', 'tblTempUsageDetail_20' ) end [2025-02-07 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:46:21] Production.INFO: ==19862== Releasing lock... [2025-02-07 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:46:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:47:05 [end_date_ymd] => 2025-02-07 02:47:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:47:05' and `end` < '2025-02-07 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-07 02:47:18] Production.INFO: count ==345 [2025-02-07 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:47:05 - End Time 2025-02-07 02:47:05 [2025-02-07 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419414', 'tblTempUsageDetail_20' ) start [2025-02-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419414', 'tblTempUsageDetail_20' ) end [2025-02-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419414', 'tblTempVendorCDR_20' ) start [2025-02-07 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419414', 'tblTempVendorCDR_20' ) end [2025-02-07 02:47:18] Production.INFO: ProcessCDR(1,14419414,1,1,2) [2025-02-07 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419414', 'tblTempUsageDetail_20' ) start [2025-02-07 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419414', 'tblTempUsageDetail_20' ) end [2025-02-07 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:47:21] Production.INFO: ==19931== Releasing lock... [2025-02-07 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:47:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:48:06 [end_date_ymd] => 2025-02-07 02:48:06 [RateCDR] => 1 ) [2025-02-07 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:48:06' and `end` < '2025-02-07 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:48:19] Production.INFO: count ==343 [2025-02-07 02:48:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:48:06 - End Time 2025-02-07 02:48:06 [2025-02-07 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419419', 'tblTempUsageDetail_20' ) start [2025-02-07 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419419', 'tblTempUsageDetail_20' ) end [2025-02-07 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419419', 'tblTempVendorCDR_20' ) start [2025-02-07 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419419', 'tblTempVendorCDR_20' ) end [2025-02-07 02:48:19] Production.INFO: ProcessCDR(1,14419419,1,1,2) [2025-02-07 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419419', 'tblTempUsageDetail_20' ) start [2025-02-07 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419419', 'tblTempUsageDetail_20' ) end [2025-02-07 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:48:22] Production.INFO: ==20003== Releasing lock... [2025-02-07 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:48:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:49:05 [end_date_ymd] => 2025-02-07 02:49:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:49:05' and `end` < '2025-02-07 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-07 02:49:18] Production.INFO: count ==342 [2025-02-07 02:49:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:49:05 - End Time 2025-02-07 02:49:05 [2025-02-07 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419424', 'tblTempUsageDetail_20' ) start [2025-02-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419424', 'tblTempUsageDetail_20' ) end [2025-02-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419424', 'tblTempVendorCDR_20' ) start [2025-02-07 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419424', 'tblTempVendorCDR_20' ) end [2025-02-07 02:49:18] Production.INFO: ProcessCDR(1,14419424,1,1,2) [2025-02-07 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419424', 'tblTempUsageDetail_20' ) start [2025-02-07 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419424', 'tblTempUsageDetail_20' ) end [2025-02-07 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:49:21] Production.INFO: ==20083== Releasing lock... [2025-02-07 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:49:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:50:06 [end_date_ymd] => 2025-02-07 02:50:06 [RateCDR] => 1 ) [2025-02-07 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:50:06' and `end` < '2025-02-07 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:50:21] Production.INFO: count ==341 [2025-02-07 02:50:21] Production.ERROR: pbx CDR StartTime 2025-02-06 23:50:06 - End Time 2025-02-07 02:50:06 [2025-02-07 02:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419430', 'tblTempUsageDetail_20' ) start [2025-02-07 02:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419430', 'tblTempUsageDetail_20' ) end [2025-02-07 02:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419430', 'tblTempVendorCDR_20' ) start [2025-02-07 02:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419430', 'tblTempVendorCDR_20' ) end [2025-02-07 02:50:21] Production.INFO: ProcessCDR(1,14419430,1,1,2) [2025-02-07 02:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419430', 'tblTempUsageDetail_20' ) start [2025-02-07 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419430', 'tblTempUsageDetail_20' ) end [2025-02-07 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:50:24] Production.INFO: ==20160== Releasing lock... [2025-02-07 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:50:24] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:51:05 [end_date_ymd] => 2025-02-07 02:51:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:51:05' and `end` < '2025-02-07 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-07 02:51:18] Production.INFO: count ==341 [2025-02-07 02:51:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:51:05 - End Time 2025-02-07 02:51:05 [2025-02-07 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419435', 'tblTempUsageDetail_20' ) start [2025-02-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419435', 'tblTempUsageDetail_20' ) end [2025-02-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419435', 'tblTempVendorCDR_20' ) start [2025-02-07 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419435', 'tblTempVendorCDR_20' ) end [2025-02-07 02:51:19] Production.INFO: ProcessCDR(1,14419435,1,1,2) [2025-02-07 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419435', 'tblTempUsageDetail_20' ) start [2025-02-07 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419435', 'tblTempUsageDetail_20' ) end [2025-02-07 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:51:21] Production.INFO: ==20234== Releasing lock... [2025-02-07 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:51:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:52:06 [end_date_ymd] => 2025-02-07 02:52:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:52:06' and `end` < '2025-02-07 02: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-07 02:52:19] Production.INFO: count ==337 [2025-02-07 02:52:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:52:06 - End Time 2025-02-07 02:52:06 [2025-02-07 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419440', 'tblTempUsageDetail_20' ) start [2025-02-07 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419440', 'tblTempUsageDetail_20' ) end [2025-02-07 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419440', 'tblTempVendorCDR_20' ) start [2025-02-07 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419440', 'tblTempVendorCDR_20' ) end [2025-02-07 02:52:19] Production.INFO: ProcessCDR(1,14419440,1,1,2) [2025-02-07 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419440', 'tblTempUsageDetail_20' ) start [2025-02-07 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419440', 'tblTempUsageDetail_20' ) end [2025-02-07 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:52:22] Production.INFO: ==20304== Releasing lock... [2025-02-07 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:52:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:53:06 [end_date_ymd] => 2025-02-07 02:53:06 [RateCDR] => 1 ) [2025-02-07 02: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-06 23:53:06' and `end` < '2025-02-07 02: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-07 02:53:19] Production.INFO: count ==337 [2025-02-07 02:53:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:53:06 - End Time 2025-02-07 02:53:06 [2025-02-07 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419445', 'tblTempUsageDetail_20' ) start [2025-02-07 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419445', 'tblTempUsageDetail_20' ) end [2025-02-07 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419445', 'tblTempVendorCDR_20' ) start [2025-02-07 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419445', 'tblTempVendorCDR_20' ) end [2025-02-07 02:53:19] Production.INFO: ProcessCDR(1,14419445,1,1,2) [2025-02-07 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419445', 'tblTempUsageDetail_20' ) start [2025-02-07 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419445', 'tblTempUsageDetail_20' ) end [2025-02-07 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:53:23] Production.INFO: ==20378== Releasing lock... [2025-02-07 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:53:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:54:05 [end_date_ymd] => 2025-02-07 02:54:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:54:05' and `end` < '2025-02-07 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-07 02:54:18] Production.INFO: count ==337 [2025-02-07 02:54:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:54:05 - End Time 2025-02-07 02:54:05 [2025-02-07 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419450', 'tblTempUsageDetail_20' ) start [2025-02-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419450', 'tblTempUsageDetail_20' ) end [2025-02-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419450', 'tblTempVendorCDR_20' ) start [2025-02-07 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419450', 'tblTempVendorCDR_20' ) end [2025-02-07 02:54:18] Production.INFO: ProcessCDR(1,14419450,1,1,2) [2025-02-07 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419450', 'tblTempUsageDetail_20' ) start [2025-02-07 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419450', 'tblTempUsageDetail_20' ) end [2025-02-07 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:54:22] Production.INFO: ==20447== Releasing lock... [2025-02-07 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:54:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:55:05 [end_date_ymd] => 2025-02-07 02:55:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:55:05' and `end` < '2025-02-07 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-07 02:55:18] Production.INFO: count ==337 [2025-02-07 02:55:18] Production.ERROR: pbx CDR StartTime 2025-02-06 23:55:05 - End Time 2025-02-07 02:55:05 [2025-02-07 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419455', 'tblTempUsageDetail_20' ) start [2025-02-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419455', 'tblTempUsageDetail_20' ) end [2025-02-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419455', 'tblTempVendorCDR_20' ) start [2025-02-07 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419455', 'tblTempVendorCDR_20' ) end [2025-02-07 02:55:18] Production.INFO: ProcessCDR(1,14419455,1,1,2) [2025-02-07 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419455', 'tblTempUsageDetail_20' ) start [2025-02-07 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419455', 'tblTempUsageDetail_20' ) end [2025-02-07 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:55:21] Production.INFO: ==20519== Releasing lock... [2025-02-07 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:55:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:56:05 [end_date_ymd] => 2025-02-07 02:56:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:56:05' and `end` < '2025-02-07 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-07 02:56:19] Production.INFO: count ==337 [2025-02-07 02:56:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:56:05 - End Time 2025-02-07 02:56:05 [2025-02-07 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419460', 'tblTempUsageDetail_20' ) start [2025-02-07 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419460', 'tblTempUsageDetail_20' ) end [2025-02-07 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419460', 'tblTempVendorCDR_20' ) start [2025-02-07 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419460', 'tblTempVendorCDR_20' ) end [2025-02-07 02:56:19] Production.INFO: ProcessCDR(1,14419460,1,1,2) [2025-02-07 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419460', 'tblTempUsageDetail_20' ) start [2025-02-07 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419460', 'tblTempUsageDetail_20' ) end [2025-02-07 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:56:22] Production.INFO: ==20592== Releasing lock... [2025-02-07 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:56:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:57:06 [end_date_ymd] => 2025-02-07 02:57:06 [RateCDR] => 1 ) [2025-02-07 02:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-06 23:57:06' and `end` < '2025-02-07 02:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 02:57:19] Production.INFO: count ==337 [2025-02-07 02:57:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:57:06 - End Time 2025-02-07 02:57:06 [2025-02-07 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419465', 'tblTempUsageDetail_20' ) start [2025-02-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419465', 'tblTempUsageDetail_20' ) end [2025-02-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419465', 'tblTempVendorCDR_20' ) start [2025-02-07 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419465', 'tblTempVendorCDR_20' ) end [2025-02-07 02:57:19] Production.INFO: ProcessCDR(1,14419465,1,1,2) [2025-02-07 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419465', 'tblTempUsageDetail_20' ) start [2025-02-07 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419465', 'tblTempUsageDetail_20' ) end [2025-02-07 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:57:22] Production.INFO: ==20664== Releasing lock... [2025-02-07 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:57:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:58:06 [end_date_ymd] => 2025-02-07 02:58:06 [RateCDR] => 1 ) [2025-02-07 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-06 23:58:06' and `end` < '2025-02-07 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-07 02:58:20] Production.INFO: count ==334 [2025-02-07 02:58:20] Production.ERROR: pbx CDR StartTime 2025-02-06 23:58:06 - End Time 2025-02-07 02:58:06 [2025-02-07 02:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419470', 'tblTempUsageDetail_20' ) start [2025-02-07 02:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419470', 'tblTempUsageDetail_20' ) end [2025-02-07 02:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419470', 'tblTempVendorCDR_20' ) start [2025-02-07 02:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419470', 'tblTempVendorCDR_20' ) end [2025-02-07 02:58:20] Production.INFO: ProcessCDR(1,14419470,1,1,2) [2025-02-07 02:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419470', 'tblTempUsageDetail_20' ) start [2025-02-07 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419470', 'tblTempUsageDetail_20' ) end [2025-02-07 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:58:24] Production.INFO: ==20733== Releasing lock... [2025-02-07 02:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:58:24] Production.INFO: 30 MB #Memory Used# [2025-02-07 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-06 23:59:05 [end_date_ymd] => 2025-02-07 02:59:05 [RateCDR] => 1 ) [2025-02-07 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-06 23:59:05' and `end` < '2025-02-07 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-07 02:59:19] Production.INFO: count ==334 [2025-02-07 02:59:19] Production.ERROR: pbx CDR StartTime 2025-02-06 23:59:05 - End Time 2025-02-07 02:59:05 [2025-02-07 02:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419475', 'tblTempUsageDetail_20' ) start [2025-02-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419475', 'tblTempUsageDetail_20' ) end [2025-02-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419475', 'tblTempVendorCDR_20' ) start [2025-02-07 02:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419475', 'tblTempVendorCDR_20' ) end [2025-02-07 02:59:19] Production.INFO: ProcessCDR(1,14419475,1,1,2) [2025-02-07 02:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419475', 'tblTempUsageDetail_20' ) start [2025-02-07 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419475', 'tblTempUsageDetail_20' ) end [2025-02-07 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 02:59:22] Production.INFO: ==20807== Releasing lock... [2025-02-07 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 02:59:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:00:06 [end_date_ymd] => 2025-02-07 03:00:06 [RateCDR] => 1 ) [2025-02-07 03:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:00:06' and `end` < '2025-02-07 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-07 03:00:20] Production.INFO: count ==338 [2025-02-07 03:00:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:00:06 - End Time 2025-02-07 03:00:06 [2025-02-07 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419481', 'tblTempUsageDetail_20' ) start [2025-02-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419481', 'tblTempUsageDetail_20' ) end [2025-02-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419481', 'tblTempVendorCDR_20' ) start [2025-02-07 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419481', 'tblTempVendorCDR_20' ) end [2025-02-07 03:00:20] Production.INFO: ProcessCDR(1,14419481,1,1,2) [2025-02-07 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419481', 'tblTempUsageDetail_20' ) start [2025-02-07 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419481', 'tblTempUsageDetail_20' ) end [2025-02-07 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:00:23] Production.INFO: ==20921== Releasing lock... [2025-02-07 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:00:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:01:06 [end_date_ymd] => 2025-02-07 03:01:06 [RateCDR] => 1 ) [2025-02-07 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:01:06' and `end` < '2025-02-07 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:01:19] Production.INFO: count ==338 [2025-02-07 03:01:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:01:06 - End Time 2025-02-07 03:01:06 [2025-02-07 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419486', 'tblTempUsageDetail_20' ) start [2025-02-07 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419486', 'tblTempUsageDetail_20' ) end [2025-02-07 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419486', 'tblTempVendorCDR_20' ) start [2025-02-07 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419486', 'tblTempVendorCDR_20' ) end [2025-02-07 03:01:19] Production.INFO: ProcessCDR(1,14419486,1,1,2) [2025-02-07 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419486', 'tblTempUsageDetail_20' ) start [2025-02-07 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419486', 'tblTempUsageDetail_20' ) end [2025-02-07 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:01:22] Production.INFO: ==21009== Releasing lock... [2025-02-07 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:01:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:02:05 [end_date_ymd] => 2025-02-07 03:02:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:02:05' and `end` < '2025-02-07 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-07 03:02:18] Production.INFO: count ==336 [2025-02-07 03:02:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:02:05 - End Time 2025-02-07 03:02:05 [2025-02-07 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419491', 'tblTempUsageDetail_20' ) start [2025-02-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419491', 'tblTempUsageDetail_20' ) end [2025-02-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419491', 'tblTempVendorCDR_20' ) start [2025-02-07 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419491', 'tblTempVendorCDR_20' ) end [2025-02-07 03:02:18] Production.INFO: ProcessCDR(1,14419491,1,1,2) [2025-02-07 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419491', 'tblTempUsageDetail_20' ) start [2025-02-07 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419491', 'tblTempUsageDetail_20' ) end [2025-02-07 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:02:21] Production.INFO: ==21158== Releasing lock... [2025-02-07 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:02:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:03:05 [end_date_ymd] => 2025-02-07 03:03:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:03:05' and `end` < '2025-02-07 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-07 03:03:19] Production.INFO: count ==335 [2025-02-07 03:03:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:03:05 - End Time 2025-02-07 03:03:05 [2025-02-07 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419496', 'tblTempUsageDetail_20' ) start [2025-02-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419496', 'tblTempUsageDetail_20' ) end [2025-02-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419496', 'tblTempVendorCDR_20' ) start [2025-02-07 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419496', 'tblTempVendorCDR_20' ) end [2025-02-07 03:03:19] Production.INFO: ProcessCDR(1,14419496,1,1,2) [2025-02-07 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419496', 'tblTempUsageDetail_20' ) start [2025-02-07 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419496', 'tblTempUsageDetail_20' ) end [2025-02-07 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:03:22] Production.INFO: ==21235== Releasing lock... [2025-02-07 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:03:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:04:05 [end_date_ymd] => 2025-02-07 03:04:05 [RateCDR] => 1 ) [2025-02-07 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:04:05' and `end` < '2025-02-07 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:04:18] Production.INFO: count ==335 [2025-02-07 03:04:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:04:05 - End Time 2025-02-07 03:04:05 [2025-02-07 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419501', 'tblTempUsageDetail_20' ) start [2025-02-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419501', 'tblTempUsageDetail_20' ) end [2025-02-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419501', 'tblTempVendorCDR_20' ) start [2025-02-07 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419501', 'tblTempVendorCDR_20' ) end [2025-02-07 03:04:18] Production.INFO: ProcessCDR(1,14419501,1,1,2) [2025-02-07 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419501', 'tblTempUsageDetail_20' ) start [2025-02-07 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419501', 'tblTempUsageDetail_20' ) end [2025-02-07 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:04:21] Production.INFO: ==21329== Releasing lock... [2025-02-07 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:04:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:05:05 [end_date_ymd] => 2025-02-07 03:05:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:05:05' and `end` < '2025-02-07 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-07 03:05:18] Production.INFO: count ==335 [2025-02-07 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:05:05 - End Time 2025-02-07 03:05:05 [2025-02-07 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419506', 'tblTempUsageDetail_20' ) start [2025-02-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419506', 'tblTempUsageDetail_20' ) end [2025-02-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419506', 'tblTempVendorCDR_20' ) start [2025-02-07 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419506', 'tblTempVendorCDR_20' ) end [2025-02-07 03:05:18] Production.INFO: ProcessCDR(1,14419506,1,1,2) [2025-02-07 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419506', 'tblTempUsageDetail_20' ) start [2025-02-07 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419506', 'tblTempUsageDetail_20' ) end [2025-02-07 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:05:21] Production.INFO: ==21404== Releasing lock... [2025-02-07 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:05:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:06:06 [end_date_ymd] => 2025-02-07 03:06:06 [RateCDR] => 1 ) [2025-02-07 03:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:06:06' and `end` < '2025-02-07 03:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:06:19] Production.INFO: count ==334 [2025-02-07 03:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:06:06 - End Time 2025-02-07 03:06:06 [2025-02-07 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419511', 'tblTempUsageDetail_20' ) start [2025-02-07 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419511', 'tblTempUsageDetail_20' ) end [2025-02-07 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419511', 'tblTempVendorCDR_20' ) start [2025-02-07 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419511', 'tblTempVendorCDR_20' ) end [2025-02-07 03:06:19] Production.INFO: ProcessCDR(1,14419511,1,1,2) [2025-02-07 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419511', 'tblTempUsageDetail_20' ) start [2025-02-07 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419511', 'tblTempUsageDetail_20' ) end [2025-02-07 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:06:23] Production.INFO: ==21553== Releasing lock... [2025-02-07 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:06:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:07:05 [end_date_ymd] => 2025-02-07 03:07:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:07:05' and `end` < '2025-02-07 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-07 03:07:18] Production.INFO: count ==331 [2025-02-07 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:07:05 - End Time 2025-02-07 03:07:05 [2025-02-07 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419516', 'tblTempUsageDetail_20' ) start [2025-02-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419516', 'tblTempUsageDetail_20' ) end [2025-02-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419516', 'tblTempVendorCDR_20' ) start [2025-02-07 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419516', 'tblTempVendorCDR_20' ) end [2025-02-07 03:07:18] Production.INFO: ProcessCDR(1,14419516,1,1,2) [2025-02-07 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419516', 'tblTempUsageDetail_20' ) start [2025-02-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419516', 'tblTempUsageDetail_20' ) end [2025-02-07 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:07:21] Production.INFO: ==21622== Releasing lock... [2025-02-07 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:07:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:08:06 [end_date_ymd] => 2025-02-07 03:08:06 [RateCDR] => 1 ) [2025-02-07 03:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:08:06' and `end` < '2025-02-07 03:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:08:19] Production.INFO: count ==334 [2025-02-07 03:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:08:06 - End Time 2025-02-07 03:08:06 [2025-02-07 03:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419521', 'tblTempUsageDetail_20' ) start [2025-02-07 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419521', 'tblTempUsageDetail_20' ) end [2025-02-07 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419521', 'tblTempVendorCDR_20' ) start [2025-02-07 03:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419521', 'tblTempVendorCDR_20' ) end [2025-02-07 03:08:20] Production.INFO: ProcessCDR(1,14419521,1,1,2) [2025-02-07 03:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419521', 'tblTempUsageDetail_20' ) start [2025-02-07 03:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419521', 'tblTempUsageDetail_20' ) end [2025-02-07 03:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:08:23] Production.INFO: ==21693== Releasing lock... [2025-02-07 03:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:08:23] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:09:05 [end_date_ymd] => 2025-02-07 03:09:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:09:05' and `end` < '2025-02-07 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-07 03:09:18] Production.INFO: count ==333 [2025-02-07 03:09:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:09:05 - End Time 2025-02-07 03:09:05 [2025-02-07 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419526', 'tblTempUsageDetail_20' ) start [2025-02-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419526', 'tblTempUsageDetail_20' ) end [2025-02-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419526', 'tblTempVendorCDR_20' ) start [2025-02-07 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419526', 'tblTempVendorCDR_20' ) end [2025-02-07 03:09:18] Production.INFO: ProcessCDR(1,14419526,1,1,2) [2025-02-07 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419526', 'tblTempUsageDetail_20' ) start [2025-02-07 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419526', 'tblTempUsageDetail_20' ) end [2025-02-07 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:09:22] Production.INFO: ==21846== Releasing lock... [2025-02-07 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:09:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:10:06 [end_date_ymd] => 2025-02-07 03:10:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:10:06' and `end` < '2025-02-07 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-07 03:10:19] Production.INFO: count ==329 [2025-02-07 03:10:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:10:06 - End Time 2025-02-07 03:10:06 [2025-02-07 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419531', 'tblTempUsageDetail_20' ) start [2025-02-07 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419531', 'tblTempUsageDetail_20' ) end [2025-02-07 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419531', 'tblTempVendorCDR_20' ) start [2025-02-07 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419531', 'tblTempVendorCDR_20' ) end [2025-02-07 03:10:19] Production.INFO: ProcessCDR(1,14419531,1,1,2) [2025-02-07 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419531', 'tblTempUsageDetail_20' ) start [2025-02-07 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419531', 'tblTempUsageDetail_20' ) end [2025-02-07 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:10:22] Production.INFO: ==21917== Releasing lock... [2025-02-07 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:10:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:11:04 [end_date_ymd] => 2025-02-07 03:11:04 [RateCDR] => 1 ) [2025-02-07 03:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:11:04' and `end` < '2025-02-07 03:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:11:18] Production.INFO: count ==323 [2025-02-07 03:11:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:11:04 - End Time 2025-02-07 03:11:04 [2025-02-07 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419537', 'tblTempUsageDetail_20' ) start [2025-02-07 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419537', 'tblTempUsageDetail_20' ) end [2025-02-07 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419537', 'tblTempVendorCDR_20' ) start [2025-02-07 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419537', 'tblTempVendorCDR_20' ) end [2025-02-07 03:11:18] Production.INFO: ProcessCDR(1,14419537,1,1,2) [2025-02-07 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419537', 'tblTempUsageDetail_20' ) start [2025-02-07 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419537', 'tblTempUsageDetail_20' ) end [2025-02-07 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:11:21] Production.INFO: ==21990== Releasing lock... [2025-02-07 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:11:21] Production.INFO: 30 MB #Memory Used# [2025-02-07 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:12:06 [end_date_ymd] => 2025-02-07 03:12:06 [RateCDR] => 1 ) [2025-02-07 03:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:12:06' and `end` < '2025-02-07 03:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:12:19] Production.INFO: count ==321 [2025-02-07 03:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:12:06 - End Time 2025-02-07 03:12:06 [2025-02-07 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419542', 'tblTempUsageDetail_20' ) start [2025-02-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419542', 'tblTempUsageDetail_20' ) end [2025-02-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419542', 'tblTempVendorCDR_20' ) start [2025-02-07 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419542', 'tblTempVendorCDR_20' ) end [2025-02-07 03:12:19] Production.INFO: ProcessCDR(1,14419542,1,1,2) [2025-02-07 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419542', 'tblTempUsageDetail_20' ) start [2025-02-07 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419542', 'tblTempUsageDetail_20' ) end [2025-02-07 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:12:22] Production.INFO: ==22061== Releasing lock... [2025-02-07 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:13:05 [end_date_ymd] => 2025-02-07 03:13:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:13:05' and `end` < '2025-02-07 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-07 03:13:18] Production.INFO: count ==320 [2025-02-07 03:13:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:13:05 - End Time 2025-02-07 03:13:05 [2025-02-07 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419547', 'tblTempUsageDetail_20' ) start [2025-02-07 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419547', 'tblTempUsageDetail_20' ) end [2025-02-07 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419547', 'tblTempVendorCDR_20' ) start [2025-02-07 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419547', 'tblTempVendorCDR_20' ) end [2025-02-07 03:13:19] Production.INFO: ProcessCDR(1,14419547,1,1,2) [2025-02-07 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419547', 'tblTempUsageDetail_20' ) start [2025-02-07 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419547', 'tblTempUsageDetail_20' ) end [2025-02-07 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:13:22] Production.INFO: ==22207== Releasing lock... [2025-02-07 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:13:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:14:05 [end_date_ymd] => 2025-02-07 03:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:14:05' and `end` < '2025-02-07 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-07 03:14:19] Production.INFO: count ==320 [2025-02-07 03:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:14:05 - End Time 2025-02-07 03:14:05 [2025-02-07 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419552', 'tblTempUsageDetail_20' ) start [2025-02-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419552', 'tblTempUsageDetail_20' ) end [2025-02-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419552', 'tblTempVendorCDR_20' ) start [2025-02-07 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419552', 'tblTempVendorCDR_20' ) end [2025-02-07 03:14:19] Production.INFO: ProcessCDR(1,14419552,1,1,2) [2025-02-07 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419552', 'tblTempUsageDetail_20' ) start [2025-02-07 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419552', 'tblTempUsageDetail_20' ) end [2025-02-07 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:14:22] Production.INFO: ==22277== Releasing lock... [2025-02-07 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:15:04 [end_date_ymd] => 2025-02-07 03:15:04 [RateCDR] => 1 ) [2025-02-07 03: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-07 00:15:04' and `end` < '2025-02-07 03: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-07 03:15:17] Production.INFO: count ==320 [2025-02-07 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-07 00:15:04 - End Time 2025-02-07 03:15:04 [2025-02-07 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419557', 'tblTempUsageDetail_20' ) start [2025-02-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419557', 'tblTempUsageDetail_20' ) end [2025-02-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419557', 'tblTempVendorCDR_20' ) start [2025-02-07 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419557', 'tblTempVendorCDR_20' ) end [2025-02-07 03:15:17] Production.INFO: ProcessCDR(1,14419557,1,1,2) [2025-02-07 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419557', 'tblTempUsageDetail_20' ) start [2025-02-07 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419557', 'tblTempUsageDetail_20' ) end [2025-02-07 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:15:21] Production.INFO: ==22358== Releasing lock... [2025-02-07 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:16:05 [end_date_ymd] => 2025-02-07 03:16:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:16:05' and `end` < '2025-02-07 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-07 03:16:18] Production.INFO: count ==316 [2025-02-07 03:16:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:16:05 - End Time 2025-02-07 03:16:05 [2025-02-07 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419562', 'tblTempUsageDetail_20' ) start [2025-02-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419562', 'tblTempUsageDetail_20' ) end [2025-02-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419562', 'tblTempVendorCDR_20' ) start [2025-02-07 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419562', 'tblTempVendorCDR_20' ) end [2025-02-07 03:16:18] Production.INFO: ProcessCDR(1,14419562,1,1,2) [2025-02-07 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419562', 'tblTempUsageDetail_20' ) start [2025-02-07 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419562', 'tblTempUsageDetail_20' ) end [2025-02-07 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:16:21] Production.INFO: ==22503== Releasing lock... [2025-02-07 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:17:05 [end_date_ymd] => 2025-02-07 03:17:05 [RateCDR] => 1 ) [2025-02-07 03:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:17:05' and `end` < '2025-02-07 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:17:18] Production.INFO: count ==314 [2025-02-07 03:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:17:05 - End Time 2025-02-07 03:17:05 [2025-02-07 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419567', 'tblTempUsageDetail_20' ) start [2025-02-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419567', 'tblTempUsageDetail_20' ) end [2025-02-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419567', 'tblTempVendorCDR_20' ) start [2025-02-07 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419567', 'tblTempVendorCDR_20' ) end [2025-02-07 03:17:18] Production.INFO: ProcessCDR(1,14419567,1,1,2) [2025-02-07 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419567', 'tblTempUsageDetail_20' ) start [2025-02-07 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419567', 'tblTempUsageDetail_20' ) end [2025-02-07 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:17:21] Production.INFO: ==22684== Releasing lock... [2025-02-07 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:17:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:18:05 [end_date_ymd] => 2025-02-07 03:18:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:18:05' and `end` < '2025-02-07 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-07 03:18:18] Production.INFO: count ==313 [2025-02-07 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:18:05 - End Time 2025-02-07 03:18:05 [2025-02-07 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419572', 'tblTempUsageDetail_20' ) start [2025-02-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419572', 'tblTempUsageDetail_20' ) end [2025-02-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419572', 'tblTempVendorCDR_20' ) start [2025-02-07 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419572', 'tblTempVendorCDR_20' ) end [2025-02-07 03:18:18] Production.INFO: ProcessCDR(1,14419572,1,1,2) [2025-02-07 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419572', 'tblTempUsageDetail_20' ) start [2025-02-07 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419572', 'tblTempUsageDetail_20' ) end [2025-02-07 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:18:22] Production.INFO: ==22786== Releasing lock... [2025-02-07 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:19:05 [end_date_ymd] => 2025-02-07 03:19:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:19:05' and `end` < '2025-02-07 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-07 03:19:19] Production.INFO: count ==313 [2025-02-07 03:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:19:05 - End Time 2025-02-07 03:19:05 [2025-02-07 03:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419577', 'tblTempUsageDetail_20' ) start [2025-02-07 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419577', 'tblTempUsageDetail_20' ) end [2025-02-07 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419577', 'tblTempVendorCDR_20' ) start [2025-02-07 03:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419577', 'tblTempVendorCDR_20' ) end [2025-02-07 03:19:19] Production.INFO: ProcessCDR(1,14419577,1,1,2) [2025-02-07 03:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419577', 'tblTempUsageDetail_20' ) start [2025-02-07 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419577', 'tblTempUsageDetail_20' ) end [2025-02-07 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:19:22] Production.INFO: ==22895== Releasing lock... [2025-02-07 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:20:06 [end_date_ymd] => 2025-02-07 03:20:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:20:06' and `end` < '2025-02-07 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-07 03:20:19] Production.INFO: count ==311 [2025-02-07 03:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:20:06 - End Time 2025-02-07 03:20:06 [2025-02-07 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419583', 'tblTempUsageDetail_20' ) start [2025-02-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419583', 'tblTempUsageDetail_20' ) end [2025-02-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419583', 'tblTempVendorCDR_20' ) start [2025-02-07 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419583', 'tblTempVendorCDR_20' ) end [2025-02-07 03:20:19] Production.INFO: ProcessCDR(1,14419583,1,1,2) [2025-02-07 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419583', 'tblTempUsageDetail_20' ) start [2025-02-07 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419583', 'tblTempUsageDetail_20' ) end [2025-02-07 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:20:23] Production.INFO: ==23000== Releasing lock... [2025-02-07 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:20:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:21:06 [end_date_ymd] => 2025-02-07 03:21:06 [RateCDR] => 1 ) [2025-02-07 03:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:21:06' and `end` < '2025-02-07 03:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:21:20] Production.INFO: count ==311 [2025-02-07 03:21:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:21:06 - End Time 2025-02-07 03:21:06 [2025-02-07 03:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419588', 'tblTempUsageDetail_20' ) start [2025-02-07 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419588', 'tblTempUsageDetail_20' ) end [2025-02-07 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419588', 'tblTempVendorCDR_20' ) start [2025-02-07 03:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419588', 'tblTempVendorCDR_20' ) end [2025-02-07 03:21:20] Production.INFO: ProcessCDR(1,14419588,1,1,2) [2025-02-07 03:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419588', 'tblTempUsageDetail_20' ) start [2025-02-07 03:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419588', 'tblTempUsageDetail_20' ) end [2025-02-07 03:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:21:23] Production.INFO: ==23109== Releasing lock... [2025-02-07 03:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:21:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:22:05 [end_date_ymd] => 2025-02-07 03:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:22:05' and `end` < '2025-02-07 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-07 03:22:18] Production.INFO: count ==311 [2025-02-07 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:22:05 - End Time 2025-02-07 03:22:05 [2025-02-07 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419593', 'tblTempUsageDetail_20' ) start [2025-02-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419593', 'tblTempUsageDetail_20' ) end [2025-02-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419593', 'tblTempVendorCDR_20' ) start [2025-02-07 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419593', 'tblTempVendorCDR_20' ) end [2025-02-07 03:22:18] Production.INFO: ProcessCDR(1,14419593,1,1,2) [2025-02-07 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419593', 'tblTempUsageDetail_20' ) start [2025-02-07 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419593', 'tblTempUsageDetail_20' ) end [2025-02-07 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:22:21] Production.INFO: ==23213== Releasing lock... [2025-02-07 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:23:05 [end_date_ymd] => 2025-02-07 03:23:05 [RateCDR] => 1 ) [2025-02-07 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:23:05' and `end` < '2025-02-07 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:23:18] Production.INFO: count ==311 [2025-02-07 03:23:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:23:05 - End Time 2025-02-07 03:23:05 [2025-02-07 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419598', 'tblTempUsageDetail_20' ) start [2025-02-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419598', 'tblTempUsageDetail_20' ) end [2025-02-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419598', 'tblTempVendorCDR_20' ) start [2025-02-07 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419598', 'tblTempVendorCDR_20' ) end [2025-02-07 03:23:18] Production.INFO: ProcessCDR(1,14419598,1,1,2) [2025-02-07 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419598', 'tblTempUsageDetail_20' ) start [2025-02-07 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419598', 'tblTempUsageDetail_20' ) end [2025-02-07 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:23:21] Production.INFO: ==23325== Releasing lock... [2025-02-07 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:24:06 [end_date_ymd] => 2025-02-07 03:24:06 [RateCDR] => 1 ) [2025-02-07 03: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-07 00:24:06' and `end` < '2025-02-07 03: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-07 03:24:20] Production.INFO: count ==308 [2025-02-07 03:24:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:24:06 - End Time 2025-02-07 03:24:06 [2025-02-07 03:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419603', 'tblTempUsageDetail_20' ) start [2025-02-07 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419603', 'tblTempUsageDetail_20' ) end [2025-02-07 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419603', 'tblTempVendorCDR_20' ) start [2025-02-07 03:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419603', 'tblTempVendorCDR_20' ) end [2025-02-07 03:24:20] Production.INFO: ProcessCDR(1,14419603,1,1,2) [2025-02-07 03:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419603', 'tblTempUsageDetail_20' ) start [2025-02-07 03:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419603', 'tblTempUsageDetail_20' ) end [2025-02-07 03:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:24:23] Production.INFO: ==23433== Releasing lock... [2025-02-07 03:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:24:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:25:05 [end_date_ymd] => 2025-02-07 03:25:05 [RateCDR] => 1 ) [2025-02-07 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:25:05' and `end` < '2025-02-07 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:25:18] Production.INFO: count ==308 [2025-02-07 03:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:25:05 - End Time 2025-02-07 03:25:05 [2025-02-07 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419608', 'tblTempUsageDetail_20' ) start [2025-02-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419608', 'tblTempUsageDetail_20' ) end [2025-02-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419608', 'tblTempVendorCDR_20' ) start [2025-02-07 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419608', 'tblTempVendorCDR_20' ) end [2025-02-07 03:25:18] Production.INFO: ProcessCDR(1,14419608,1,1,2) [2025-02-07 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419608', 'tblTempUsageDetail_20' ) start [2025-02-07 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419608', 'tblTempUsageDetail_20' ) end [2025-02-07 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:25:22] Production.INFO: ==23565== Releasing lock... [2025-02-07 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:26:05 [end_date_ymd] => 2025-02-07 03:26:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:26:05' and `end` < '2025-02-07 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-07 03:26:19] Production.INFO: count ==308 [2025-02-07 03:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:26:05 - End Time 2025-02-07 03:26:05 [2025-02-07 03:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419613', 'tblTempUsageDetail_20' ) start [2025-02-07 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419613', 'tblTempUsageDetail_20' ) end [2025-02-07 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419613', 'tblTempVendorCDR_20' ) start [2025-02-07 03:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419613', 'tblTempVendorCDR_20' ) end [2025-02-07 03:26:19] Production.INFO: ProcessCDR(1,14419613,1,1,2) [2025-02-07 03:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419613', 'tblTempUsageDetail_20' ) start [2025-02-07 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419613', 'tblTempUsageDetail_20' ) end [2025-02-07 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:26:22] Production.INFO: ==23681== Releasing lock... [2025-02-07 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:26:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:27:05 [end_date_ymd] => 2025-02-07 03:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:27:05' and `end` < '2025-02-07 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-07 03:27:19] Production.INFO: count ==304 [2025-02-07 03:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:27:05 - End Time 2025-02-07 03:27:05 [2025-02-07 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419618', 'tblTempUsageDetail_20' ) start [2025-02-07 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419618', 'tblTempUsageDetail_20' ) end [2025-02-07 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419618', 'tblTempVendorCDR_20' ) start [2025-02-07 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419618', 'tblTempVendorCDR_20' ) end [2025-02-07 03:27:19] Production.INFO: ProcessCDR(1,14419618,1,1,2) [2025-02-07 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419618', 'tblTempUsageDetail_20' ) start [2025-02-07 03:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419618', 'tblTempUsageDetail_20' ) end [2025-02-07 03:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:27:23] Production.INFO: ==23784== Releasing lock... [2025-02-07 03:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:27:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:28:05 [end_date_ymd] => 2025-02-07 03:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:28:05' and `end` < '2025-02-07 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-07 03:28:19] Production.INFO: count ==303 [2025-02-07 03:28:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:28:05 - End Time 2025-02-07 03:28:05 [2025-02-07 03:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419623', 'tblTempUsageDetail_20' ) start [2025-02-07 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419623', 'tblTempUsageDetail_20' ) end [2025-02-07 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419623', 'tblTempVendorCDR_20' ) start [2025-02-07 03:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419623', 'tblTempVendorCDR_20' ) end [2025-02-07 03:28:19] Production.INFO: ProcessCDR(1,14419623,1,1,2) [2025-02-07 03:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419623', 'tblTempUsageDetail_20' ) start [2025-02-07 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419623', 'tblTempUsageDetail_20' ) end [2025-02-07 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:28:22] Production.INFO: ==23893== Releasing lock... [2025-02-07 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:28:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:29:06 [end_date_ymd] => 2025-02-07 03:29:06 [RateCDR] => 1 ) [2025-02-07 03: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-07 00:29:06' and `end` < '2025-02-07 03: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-07 03:29:19] Production.INFO: count ==303 [2025-02-07 03:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:29:06 - End Time 2025-02-07 03:29:06 [2025-02-07 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419628', 'tblTempUsageDetail_20' ) start [2025-02-07 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419628', 'tblTempUsageDetail_20' ) end [2025-02-07 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419628', 'tblTempVendorCDR_20' ) start [2025-02-07 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419628', 'tblTempVendorCDR_20' ) end [2025-02-07 03:29:19] Production.INFO: ProcessCDR(1,14419628,1,1,2) [2025-02-07 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419628', 'tblTempUsageDetail_20' ) start [2025-02-07 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419628', 'tblTempUsageDetail_20' ) end [2025-02-07 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:29:22] Production.INFO: ==24002== Releasing lock... [2025-02-07 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:30:07 [end_date_ymd] => 2025-02-07 03:30:07 [RateCDR] => 1 ) [2025-02-07 03: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-07 00:30:07' and `end` < '2025-02-07 03: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-07 03:30:20] Production.INFO: count ==303 [2025-02-07 03:30:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:30:07 - End Time 2025-02-07 03:30:07 [2025-02-07 03:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419634', 'tblTempUsageDetail_20' ) start [2025-02-07 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419634', 'tblTempUsageDetail_20' ) end [2025-02-07 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419634', 'tblTempVendorCDR_20' ) start [2025-02-07 03:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419634', 'tblTempVendorCDR_20' ) end [2025-02-07 03:30:20] Production.INFO: ProcessCDR(1,14419634,1,1,2) [2025-02-07 03:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419634', 'tblTempUsageDetail_20' ) start [2025-02-07 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419634', 'tblTempUsageDetail_20' ) end [2025-02-07 03:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:30:23] Production.INFO: ==24091== Releasing lock... [2025-02-07 03:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:30:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:31:05 [end_date_ymd] => 2025-02-07 03:31:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:31:05' and `end` < '2025-02-07 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-07 03:31:18] Production.INFO: count ==303 [2025-02-07 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:31:05 - End Time 2025-02-07 03:31:05 [2025-02-07 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419639', 'tblTempUsageDetail_20' ) start [2025-02-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419639', 'tblTempUsageDetail_20' ) end [2025-02-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419639', 'tblTempVendorCDR_20' ) start [2025-02-07 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419639', 'tblTempVendorCDR_20' ) end [2025-02-07 03:31:18] Production.INFO: ProcessCDR(1,14419639,1,1,2) [2025-02-07 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419639', 'tblTempUsageDetail_20' ) start [2025-02-07 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419639', 'tblTempUsageDetail_20' ) end [2025-02-07 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:31:22] Production.INFO: ==24170== Releasing lock... [2025-02-07 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:32:06 [end_date_ymd] => 2025-02-07 03:32:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:32:06' and `end` < '2025-02-07 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-07 03:32:20] Production.INFO: count ==304 [2025-02-07 03:32:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:32:06 - End Time 2025-02-07 03:32:06 [2025-02-07 03:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419644', 'tblTempUsageDetail_20' ) start [2025-02-07 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419644', 'tblTempUsageDetail_20' ) end [2025-02-07 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419644', 'tblTempVendorCDR_20' ) start [2025-02-07 03:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419644', 'tblTempVendorCDR_20' ) end [2025-02-07 03:32:20] Production.INFO: ProcessCDR(1,14419644,1,1,2) [2025-02-07 03:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419644', 'tblTempUsageDetail_20' ) start [2025-02-07 03:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419644', 'tblTempUsageDetail_20' ) end [2025-02-07 03:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:32:25] Production.INFO: ==24243== Releasing lock... [2025-02-07 03:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:32:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:33:05 [end_date_ymd] => 2025-02-07 03:33:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:33:05' and `end` < '2025-02-07 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:33:19] Production.INFO: count ==304 [2025-02-07 03:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:33:05 - End Time 2025-02-07 03:33:05 [2025-02-07 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419649', 'tblTempUsageDetail_20' ) start [2025-02-07 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419649', 'tblTempUsageDetail_20' ) end [2025-02-07 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419649', 'tblTempVendorCDR_20' ) start [2025-02-07 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419649', 'tblTempVendorCDR_20' ) end [2025-02-07 03:33:19] Production.INFO: ProcessCDR(1,14419649,1,1,2) [2025-02-07 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419649', 'tblTempUsageDetail_20' ) start [2025-02-07 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419649', 'tblTempUsageDetail_20' ) end [2025-02-07 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:33:22] Production.INFO: ==24357== Releasing lock... [2025-02-07 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:34:05 [end_date_ymd] => 2025-02-07 03:34:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:34:05' and `end` < '2025-02-07 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-07 03:34:18] Production.INFO: count ==304 [2025-02-07 03:34:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:34:05 - End Time 2025-02-07 03:34:05 [2025-02-07 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419654', 'tblTempUsageDetail_20' ) start [2025-02-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419654', 'tblTempUsageDetail_20' ) end [2025-02-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419654', 'tblTempVendorCDR_20' ) start [2025-02-07 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419654', 'tblTempVendorCDR_20' ) end [2025-02-07 03:34:18] Production.INFO: ProcessCDR(1,14419654,1,1,2) [2025-02-07 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419654', 'tblTempUsageDetail_20' ) start [2025-02-07 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419654', 'tblTempUsageDetail_20' ) end [2025-02-07 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:34:22] Production.INFO: ==24431== Releasing lock... [2025-02-07 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:34:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:35:05 [end_date_ymd] => 2025-02-07 03:35:05 [RateCDR] => 1 ) [2025-02-07 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:35:05' and `end` < '2025-02-07 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:35:18] Production.INFO: count ==304 [2025-02-07 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:35:05 - End Time 2025-02-07 03:35:05 [2025-02-07 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419659', 'tblTempUsageDetail_20' ) start [2025-02-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419659', 'tblTempUsageDetail_20' ) end [2025-02-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419659', 'tblTempVendorCDR_20' ) start [2025-02-07 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419659', 'tblTempVendorCDR_20' ) end [2025-02-07 03:35:18] Production.INFO: ProcessCDR(1,14419659,1,1,2) [2025-02-07 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419659', 'tblTempUsageDetail_20' ) start [2025-02-07 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419659', 'tblTempUsageDetail_20' ) end [2025-02-07 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:35:22] Production.INFO: ==24503== Releasing lock... [2025-02-07 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:36:06 [end_date_ymd] => 2025-02-07 03:36:06 [RateCDR] => 1 ) [2025-02-07 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:36:06' and `end` < '2025-02-07 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:36:19] Production.INFO: count ==304 [2025-02-07 03:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:36:06 - End Time 2025-02-07 03:36:06 [2025-02-07 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419664', 'tblTempUsageDetail_20' ) start [2025-02-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419664', 'tblTempUsageDetail_20' ) end [2025-02-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419664', 'tblTempVendorCDR_20' ) start [2025-02-07 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419664', 'tblTempVendorCDR_20' ) end [2025-02-07 03:36:19] Production.INFO: ProcessCDR(1,14419664,1,1,2) [2025-02-07 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419664', 'tblTempUsageDetail_20' ) start [2025-02-07 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419664', 'tblTempUsageDetail_20' ) end [2025-02-07 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:36:23] Production.INFO: ==24579== Releasing lock... [2025-02-07 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:36:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:37:05 [end_date_ymd] => 2025-02-07 03:37:05 [RateCDR] => 1 ) [2025-02-07 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:37:05' and `end` < '2025-02-07 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:37:18] Production.INFO: count ==304 [2025-02-07 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:37:05 - End Time 2025-02-07 03:37:05 [2025-02-07 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419669', 'tblTempUsageDetail_20' ) start [2025-02-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419669', 'tblTempUsageDetail_20' ) end [2025-02-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419669', 'tblTempVendorCDR_20' ) start [2025-02-07 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419669', 'tblTempVendorCDR_20' ) end [2025-02-07 03:37:18] Production.INFO: ProcessCDR(1,14419669,1,1,2) [2025-02-07 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419669', 'tblTempUsageDetail_20' ) start [2025-02-07 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419669', 'tblTempUsageDetail_20' ) end [2025-02-07 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:37:22] Production.INFO: ==24653== Releasing lock... [2025-02-07 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:38:06 [end_date_ymd] => 2025-02-07 03:38:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:38:06' and `end` < '2025-02-07 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-07 03:38:19] Production.INFO: count ==304 [2025-02-07 03:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:38:06 - End Time 2025-02-07 03:38:06 [2025-02-07 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419674', 'tblTempUsageDetail_20' ) start [2025-02-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419674', 'tblTempUsageDetail_20' ) end [2025-02-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419674', 'tblTempVendorCDR_20' ) start [2025-02-07 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419674', 'tblTempVendorCDR_20' ) end [2025-02-07 03:38:19] Production.INFO: ProcessCDR(1,14419674,1,1,2) [2025-02-07 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419674', 'tblTempUsageDetail_20' ) start [2025-02-07 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419674', 'tblTempUsageDetail_20' ) end [2025-02-07 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:38:22] Production.INFO: ==24728== Releasing lock... [2025-02-07 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:38:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:39:06 [end_date_ymd] => 2025-02-07 03:39:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:39:06' and `end` < '2025-02-07 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-07 03:39:19] Production.INFO: count ==303 [2025-02-07 03:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:39:06 - End Time 2025-02-07 03:39:06 [2025-02-07 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419679', 'tblTempUsageDetail_20' ) start [2025-02-07 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419679', 'tblTempUsageDetail_20' ) end [2025-02-07 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419679', 'tblTempVendorCDR_20' ) start [2025-02-07 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419679', 'tblTempVendorCDR_20' ) end [2025-02-07 03:39:19] Production.INFO: ProcessCDR(1,14419679,1,1,2) [2025-02-07 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419679', 'tblTempUsageDetail_20' ) start [2025-02-07 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419679', 'tblTempUsageDetail_20' ) end [2025-02-07 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:39:22] Production.INFO: ==24801== Releasing lock... [2025-02-07 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:40:07 [end_date_ymd] => 2025-02-07 03:40:07 [RateCDR] => 1 ) [2025-02-07 03:40:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:40:07' and `end` < '2025-02-07 03:40:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:40:20] Production.INFO: count ==296 [2025-02-07 03:40:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:40:07 - End Time 2025-02-07 03:40:07 [2025-02-07 03:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419685', 'tblTempUsageDetail_20' ) start [2025-02-07 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419685', 'tblTempUsageDetail_20' ) end [2025-02-07 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419685', 'tblTempVendorCDR_20' ) start [2025-02-07 03:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419685', 'tblTempVendorCDR_20' ) end [2025-02-07 03:40:20] Production.INFO: ProcessCDR(1,14419685,1,1,2) [2025-02-07 03:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419685', 'tblTempUsageDetail_20' ) start [2025-02-07 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419685', 'tblTempUsageDetail_20' ) end [2025-02-07 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:40:23] Production.INFO: ==24876== Releasing lock... [2025-02-07 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:41:05 [end_date_ymd] => 2025-02-07 03:41:05 [RateCDR] => 1 ) [2025-02-07 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:41:05' and `end` < '2025-02-07 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:41:18] Production.INFO: count ==290 [2025-02-07 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 00:41:05 - End Time 2025-02-07 03:41:05 [2025-02-07 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419690', 'tblTempUsageDetail_20' ) start [2025-02-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419690', 'tblTempUsageDetail_20' ) end [2025-02-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419690', 'tblTempVendorCDR_20' ) start [2025-02-07 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419690', 'tblTempVendorCDR_20' ) end [2025-02-07 03:41:18] Production.INFO: ProcessCDR(1,14419690,1,1,2) [2025-02-07 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419690', 'tblTempUsageDetail_20' ) start [2025-02-07 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419690', 'tblTempUsageDetail_20' ) end [2025-02-07 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:41:22] Production.INFO: ==24951== Releasing lock... [2025-02-07 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:42:06 [end_date_ymd] => 2025-02-07 03:42:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:42:06' and `end` < '2025-02-07 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-07 03:42:20] Production.INFO: count ==290 [2025-02-07 03:42:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:42:06 - End Time 2025-02-07 03:42:06 [2025-02-07 03:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419695', 'tblTempUsageDetail_20' ) start [2025-02-07 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419695', 'tblTempUsageDetail_20' ) end [2025-02-07 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419695', 'tblTempVendorCDR_20' ) start [2025-02-07 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419695', 'tblTempVendorCDR_20' ) end [2025-02-07 03:42:20] Production.INFO: ProcessCDR(1,14419695,1,1,2) [2025-02-07 03:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419695', 'tblTempUsageDetail_20' ) start [2025-02-07 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419695', 'tblTempUsageDetail_20' ) end [2025-02-07 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:42:23] Production.INFO: ==25024== Releasing lock... [2025-02-07 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:42:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:43:06 [end_date_ymd] => 2025-02-07 03:43:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:43:06' and `end` < '2025-02-07 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-07 03:43:19] Production.INFO: count ==290 [2025-02-07 03:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:43:06 - End Time 2025-02-07 03:43:06 [2025-02-07 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419700', 'tblTempUsageDetail_20' ) start [2025-02-07 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419700', 'tblTempUsageDetail_20' ) end [2025-02-07 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419700', 'tblTempVendorCDR_20' ) start [2025-02-07 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419700', 'tblTempVendorCDR_20' ) end [2025-02-07 03:43:19] Production.INFO: ProcessCDR(1,14419700,1,1,2) [2025-02-07 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419700', 'tblTempUsageDetail_20' ) start [2025-02-07 03:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419700', 'tblTempUsageDetail_20' ) end [2025-02-07 03:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:43:23] Production.INFO: ==25102== Releasing lock... [2025-02-07 03:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:43:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:44:06 [end_date_ymd] => 2025-02-07 03:44:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:44:06' and `end` < '2025-02-07 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-07 03:44:21] Production.INFO: count ==290 [2025-02-07 03:44:21] Production.ERROR: pbx CDR StartTime 2025-02-07 00:44:06 - End Time 2025-02-07 03:44:06 [2025-02-07 03:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419705', 'tblTempUsageDetail_20' ) start [2025-02-07 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419705', 'tblTempUsageDetail_20' ) end [2025-02-07 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419705', 'tblTempVendorCDR_20' ) start [2025-02-07 03:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419705', 'tblTempVendorCDR_20' ) end [2025-02-07 03:44:21] Production.INFO: ProcessCDR(1,14419705,1,1,2) [2025-02-07 03:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419705', 'tblTempUsageDetail_20' ) start [2025-02-07 03:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419705', 'tblTempUsageDetail_20' ) end [2025-02-07 03:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:44:24] Production.INFO: ==25173== Releasing lock... [2025-02-07 03:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:44:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:45:04 [end_date_ymd] => 2025-02-07 03:45:04 [RateCDR] => 1 ) [2025-02-07 03:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:45:04' and `end` < '2025-02-07 03:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:45:17] Production.INFO: count ==290 [2025-02-07 03:45:17] Production.ERROR: pbx CDR StartTime 2025-02-07 00:45:04 - End Time 2025-02-07 03:45:04 [2025-02-07 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419710', 'tblTempUsageDetail_20' ) start [2025-02-07 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419710', 'tblTempUsageDetail_20' ) end [2025-02-07 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419710', 'tblTempVendorCDR_20' ) start [2025-02-07 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419710', 'tblTempVendorCDR_20' ) end [2025-02-07 03:45:17] Production.INFO: ProcessCDR(1,14419710,1,1,2) [2025-02-07 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419710', 'tblTempUsageDetail_20' ) start [2025-02-07 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419710', 'tblTempUsageDetail_20' ) end [2025-02-07 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:45:21] Production.INFO: ==25248== Releasing lock... [2025-02-07 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:46:06 [end_date_ymd] => 2025-02-07 03:46:06 [RateCDR] => 1 ) [2025-02-07 03:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:46:06' and `end` < '2025-02-07 03:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:46:19] Production.INFO: count ==290 [2025-02-07 03:46:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:46:06 - End Time 2025-02-07 03:46:06 [2025-02-07 03:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419715', 'tblTempUsageDetail_20' ) start [2025-02-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419715', 'tblTempUsageDetail_20' ) end [2025-02-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419715', 'tblTempVendorCDR_20' ) start [2025-02-07 03:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419715', 'tblTempVendorCDR_20' ) end [2025-02-07 03:46:19] Production.INFO: ProcessCDR(1,14419715,1,1,2) [2025-02-07 03:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419715', 'tblTempUsageDetail_20' ) start [2025-02-07 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419715', 'tblTempUsageDetail_20' ) end [2025-02-07 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:46:22] Production.INFO: ==25326== Releasing lock... [2025-02-07 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:46:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:47:05 [end_date_ymd] => 2025-02-07 03:47:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:47:05' and `end` < '2025-02-07 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-07 03:47:19] Production.INFO: count ==290 [2025-02-07 03:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:47:05 - End Time 2025-02-07 03:47:05 [2025-02-07 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419720', 'tblTempUsageDetail_20' ) start [2025-02-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419720', 'tblTempUsageDetail_20' ) end [2025-02-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419720', 'tblTempVendorCDR_20' ) start [2025-02-07 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419720', 'tblTempVendorCDR_20' ) end [2025-02-07 03:47:19] Production.INFO: ProcessCDR(1,14419720,1,1,2) [2025-02-07 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419720', 'tblTempUsageDetail_20' ) start [2025-02-07 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419720', 'tblTempUsageDetail_20' ) end [2025-02-07 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:47:22] Production.INFO: ==25396== Releasing lock... [2025-02-07 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:48:07 [end_date_ymd] => 2025-02-07 03:48:07 [RateCDR] => 1 ) [2025-02-07 03:48: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-07 00:48:07' and `end` < '2025-02-07 03:48: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-07 03:48:20] Production.INFO: count ==289 [2025-02-07 03:48:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:48:07 - End Time 2025-02-07 03:48:07 [2025-02-07 03:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419725', 'tblTempUsageDetail_20' ) start [2025-02-07 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419725', 'tblTempUsageDetail_20' ) end [2025-02-07 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419725', 'tblTempVendorCDR_20' ) start [2025-02-07 03:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419725', 'tblTempVendorCDR_20' ) end [2025-02-07 03:48:20] Production.INFO: ProcessCDR(1,14419725,1,1,2) [2025-02-07 03:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419725', 'tblTempUsageDetail_20' ) start [2025-02-07 03:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419725', 'tblTempUsageDetail_20' ) end [2025-02-07 03:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:48:24] Production.INFO: ==25514== Releasing lock... [2025-02-07 03:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:48:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:49:06 [end_date_ymd] => 2025-02-07 03:49:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:49:06' and `end` < '2025-02-07 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-07 03:49:19] Production.INFO: count ==289 [2025-02-07 03:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:49:06 - End Time 2025-02-07 03:49:06 [2025-02-07 03:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419730', 'tblTempUsageDetail_20' ) start [2025-02-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419730', 'tblTempUsageDetail_20' ) end [2025-02-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419730', 'tblTempVendorCDR_20' ) start [2025-02-07 03:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419730', 'tblTempVendorCDR_20' ) end [2025-02-07 03:49:19] Production.INFO: ProcessCDR(1,14419730,1,1,2) [2025-02-07 03:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419730', 'tblTempUsageDetail_20' ) start [2025-02-07 03:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419730', 'tblTempUsageDetail_20' ) end [2025-02-07 03:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:49:23] Production.INFO: ==25589== Releasing lock... [2025-02-07 03:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:49:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:50:07 [end_date_ymd] => 2025-02-07 03:50:07 [RateCDR] => 1 ) [2025-02-07 03:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:50:07' and `end` < '2025-02-07 03:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:50:20] Production.INFO: count ==289 [2025-02-07 03:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:50:07 - End Time 2025-02-07 03:50:07 [2025-02-07 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419735', 'tblTempUsageDetail_20' ) start [2025-02-07 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419735', 'tblTempUsageDetail_20' ) end [2025-02-07 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419735', 'tblTempVendorCDR_20' ) start [2025-02-07 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419735', 'tblTempVendorCDR_20' ) end [2025-02-07 03:50:20] Production.INFO: ProcessCDR(1,14419735,1,1,2) [2025-02-07 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419735', 'tblTempUsageDetail_20' ) start [2025-02-07 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419735', 'tblTempUsageDetail_20' ) end [2025-02-07 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:50:23] Production.INFO: ==25665== Releasing lock... [2025-02-07 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:51:05 [end_date_ymd] => 2025-02-07 03:51:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:51:05' and `end` < '2025-02-07 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-07 03:51:19] Production.INFO: count ==286 [2025-02-07 03:51:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:51:05 - End Time 2025-02-07 03:51:05 [2025-02-07 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419741', 'tblTempUsageDetail_20' ) start [2025-02-07 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419741', 'tblTempUsageDetail_20' ) end [2025-02-07 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419741', 'tblTempVendorCDR_20' ) start [2025-02-07 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419741', 'tblTempVendorCDR_20' ) end [2025-02-07 03:51:19] Production.INFO: ProcessCDR(1,14419741,1,1,2) [2025-02-07 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419741', 'tblTempUsageDetail_20' ) start [2025-02-07 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419741', 'tblTempUsageDetail_20' ) end [2025-02-07 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:51:23] Production.INFO: ==25737== Releasing lock... [2025-02-07 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:51:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:52:06 [end_date_ymd] => 2025-02-07 03:52:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:52:06' and `end` < '2025-02-07 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-07 03:52:20] Production.INFO: count ==286 [2025-02-07 03:52:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:52:06 - End Time 2025-02-07 03:52:06 [2025-02-07 03:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419746', 'tblTempUsageDetail_20' ) start [2025-02-07 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419746', 'tblTempUsageDetail_20' ) end [2025-02-07 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419746', 'tblTempVendorCDR_20' ) start [2025-02-07 03:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419746', 'tblTempVendorCDR_20' ) end [2025-02-07 03:52:20] Production.INFO: ProcessCDR(1,14419746,1,1,2) [2025-02-07 03:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419746', 'tblTempUsageDetail_20' ) start [2025-02-07 03:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419746', 'tblTempUsageDetail_20' ) end [2025-02-07 03:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:52:23] Production.INFO: ==25810== Releasing lock... [2025-02-07 03:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:52:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:53:05 [end_date_ymd] => 2025-02-07 03:53:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:53:05' and `end` < '2025-02-07 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-07 03:53:19] Production.INFO: count ==286 [2025-02-07 03:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:53:05 - End Time 2025-02-07 03:53:05 [2025-02-07 03:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419751', 'tblTempUsageDetail_20' ) start [2025-02-07 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419751', 'tblTempUsageDetail_20' ) end [2025-02-07 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419751', 'tblTempVendorCDR_20' ) start [2025-02-07 03:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419751', 'tblTempVendorCDR_20' ) end [2025-02-07 03:53:19] Production.INFO: ProcessCDR(1,14419751,1,1,2) [2025-02-07 03:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419751', 'tblTempUsageDetail_20' ) start [2025-02-07 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419751', 'tblTempUsageDetail_20' ) end [2025-02-07 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:53:22] Production.INFO: ==25884== Releasing lock... [2025-02-07 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:53:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:54:06 [end_date_ymd] => 2025-02-07 03:54:06 [RateCDR] => 1 ) [2025-02-07 03:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:54:06' and `end` < '2025-02-07 03:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:54:20] Production.INFO: count ==286 [2025-02-07 03:54:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:54:06 - End Time 2025-02-07 03:54:06 [2025-02-07 03:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419756', 'tblTempUsageDetail_20' ) start [2025-02-07 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419756', 'tblTempUsageDetail_20' ) end [2025-02-07 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419756', 'tblTempVendorCDR_20' ) start [2025-02-07 03:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419756', 'tblTempVendorCDR_20' ) end [2025-02-07 03:54:20] Production.INFO: ProcessCDR(1,14419756,1,1,2) [2025-02-07 03:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419756', 'tblTempUsageDetail_20' ) start [2025-02-07 03:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419756', 'tblTempUsageDetail_20' ) end [2025-02-07 03:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:54:23] Production.INFO: ==25959== Releasing lock... [2025-02-07 03:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:54:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:55:05 [end_date_ymd] => 2025-02-07 03:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:55:05' and `end` < '2025-02-07 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-07 03:55:19] Production.INFO: count ==286 [2025-02-07 03:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:55:05 - End Time 2025-02-07 03:55:05 [2025-02-07 03:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419761', 'tblTempUsageDetail_20' ) start [2025-02-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419761', 'tblTempUsageDetail_20' ) end [2025-02-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419761', 'tblTempVendorCDR_20' ) start [2025-02-07 03:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419761', 'tblTempVendorCDR_20' ) end [2025-02-07 03:55:19] Production.INFO: ProcessCDR(1,14419761,1,1,2) [2025-02-07 03:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419761', 'tblTempUsageDetail_20' ) start [2025-02-07 03:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419761', 'tblTempUsageDetail_20' ) end [2025-02-07 03:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:55:23] Production.INFO: ==26034== Releasing lock... [2025-02-07 03:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:55:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:56:06 [end_date_ymd] => 2025-02-07 03:56:06 [RateCDR] => 1 ) [2025-02-07 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-07 00:56:06' and `end` < '2025-02-07 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-07 03:56:20] Production.INFO: count ==287 [2025-02-07 03:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:56:06 - End Time 2025-02-07 03:56:06 [2025-02-07 03:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419766', 'tblTempUsageDetail_20' ) start [2025-02-07 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419766', 'tblTempUsageDetail_20' ) end [2025-02-07 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419766', 'tblTempVendorCDR_20' ) start [2025-02-07 03:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419766', 'tblTempVendorCDR_20' ) end [2025-02-07 03:56:20] Production.INFO: ProcessCDR(1,14419766,1,1,2) [2025-02-07 03:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419766', 'tblTempUsageDetail_20' ) start [2025-02-07 03:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419766', 'tblTempUsageDetail_20' ) end [2025-02-07 03:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:56:23] Production.INFO: ==26109== Releasing lock... [2025-02-07 03:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:56:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:57:05 [end_date_ymd] => 2025-02-07 03:57:05 [RateCDR] => 1 ) [2025-02-07 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-07 00:57:05' and `end` < '2025-02-07 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-07 03:57:19] Production.INFO: count ==289 [2025-02-07 03:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:57:05 - End Time 2025-02-07 03:57:05 [2025-02-07 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419771', 'tblTempUsageDetail_20' ) start [2025-02-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419771', 'tblTempUsageDetail_20' ) end [2025-02-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419771', 'tblTempVendorCDR_20' ) start [2025-02-07 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419771', 'tblTempVendorCDR_20' ) end [2025-02-07 03:57:19] Production.INFO: ProcessCDR(1,14419771,1,1,2) [2025-02-07 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419771', 'tblTempUsageDetail_20' ) start [2025-02-07 03:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419771', 'tblTempUsageDetail_20' ) end [2025-02-07 03:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:57:23] Production.INFO: ==26179== Releasing lock... [2025-02-07 03:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:58:06 [end_date_ymd] => 2025-02-07 03:58:06 [RateCDR] => 1 ) [2025-02-07 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:58:06' and `end` < '2025-02-07 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:58:20] Production.INFO: count ==289 [2025-02-07 03:58:20] Production.ERROR: pbx CDR StartTime 2025-02-07 00:58:06 - End Time 2025-02-07 03:58:06 [2025-02-07 03:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419776', 'tblTempUsageDetail_20' ) start [2025-02-07 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419776', 'tblTempUsageDetail_20' ) end [2025-02-07 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419776', 'tblTempVendorCDR_20' ) start [2025-02-07 03:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419776', 'tblTempVendorCDR_20' ) end [2025-02-07 03:58:20] Production.INFO: ProcessCDR(1,14419776,1,1,2) [2025-02-07 03:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419776', 'tblTempUsageDetail_20' ) start [2025-02-07 03:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419776', 'tblTempUsageDetail_20' ) end [2025-02-07 03:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:58:23] Production.INFO: ==26253== Releasing lock... [2025-02-07 03:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:58:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 00:59:05 [end_date_ymd] => 2025-02-07 03:59:05 [RateCDR] => 1 ) [2025-02-07 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 00:59:05' and `end` < '2025-02-07 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 03:59:19] Production.INFO: count ==289 [2025-02-07 03:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 00:59:05 - End Time 2025-02-07 03:59:05 [2025-02-07 03:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419781', 'tblTempUsageDetail_20' ) start [2025-02-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419781', 'tblTempUsageDetail_20' ) end [2025-02-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419781', 'tblTempVendorCDR_20' ) start [2025-02-07 03:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419781', 'tblTempVendorCDR_20' ) end [2025-02-07 03:59:19] Production.INFO: ProcessCDR(1,14419781,1,1,2) [2025-02-07 03:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419781', 'tblTempUsageDetail_20' ) start [2025-02-07 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419781', 'tblTempUsageDetail_20' ) end [2025-02-07 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 03:59:22] Production.INFO: ==26326== Releasing lock... [2025-02-07 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 03:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:00:07 [end_date_ymd] => 2025-02-07 04:00:07 [RateCDR] => 1 ) [2025-02-07 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-07 01:00:07' and `end` < '2025-02-07 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-07 04:00:23] Production.INFO: count ==284 [2025-02-07 04:00:23] Production.ERROR: pbx CDR StartTime 2025-02-07 01:00:07 - End Time 2025-02-07 04:00:07 [2025-02-07 04:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419787', 'tblTempUsageDetail_20' ) start [2025-02-07 04:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419787', 'tblTempUsageDetail_20' ) end [2025-02-07 04:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419787', 'tblTempVendorCDR_20' ) start [2025-02-07 04:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419787', 'tblTempVendorCDR_20' ) end [2025-02-07 04:00:23] Production.INFO: ProcessCDR(1,14419787,1,1,2) [2025-02-07 04:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419787', 'tblTempUsageDetail_20' ) start [2025-02-07 04:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419787', 'tblTempUsageDetail_20' ) end [2025-02-07 04:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:00:26] Production.INFO: ==26406== Releasing lock... [2025-02-07 04:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:00:26] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:01:05 [end_date_ymd] => 2025-02-07 04:01:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:01:05' and `end` < '2025-02-07 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-07 04:01:19] Production.INFO: count ==258 [2025-02-07 04:01:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:01:05 - End Time 2025-02-07 04:01:05 [2025-02-07 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419793', 'tblTempUsageDetail_20' ) start [2025-02-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419793', 'tblTempUsageDetail_20' ) end [2025-02-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419793', 'tblTempVendorCDR_20' ) start [2025-02-07 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419793', 'tblTempVendorCDR_20' ) end [2025-02-07 04:01:19] Production.INFO: ProcessCDR(1,14419793,1,1,2) [2025-02-07 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419793', 'tblTempUsageDetail_20' ) start [2025-02-07 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419793', 'tblTempUsageDetail_20' ) end [2025-02-07 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:01:22] Production.INFO: ==26492== Releasing lock... [2025-02-07 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:02:05 [end_date_ymd] => 2025-02-07 04:02:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:02:05' and `end` < '2025-02-07 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-07 04:02:19] Production.INFO: count ==258 [2025-02-07 04:02:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:02:05 - End Time 2025-02-07 04:02:05 [2025-02-07 04:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419798', 'tblTempUsageDetail_20' ) start [2025-02-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419798', 'tblTempUsageDetail_20' ) end [2025-02-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419798', 'tblTempVendorCDR_20' ) start [2025-02-07 04:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419798', 'tblTempVendorCDR_20' ) end [2025-02-07 04:02:19] Production.INFO: ProcessCDR(1,14419798,1,1,2) [2025-02-07 04:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419798', 'tblTempUsageDetail_20' ) start [2025-02-07 04:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419798', 'tblTempUsageDetail_20' ) end [2025-02-07 04:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:02:23] Production.INFO: ==26565== Releasing lock... [2025-02-07 04:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:03:05 [end_date_ymd] => 2025-02-07 04:03:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:03:05' and `end` < '2025-02-07 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-07 04:03:18] Production.INFO: count ==261 [2025-02-07 04:03:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:03:05 - End Time 2025-02-07 04:03:05 [2025-02-07 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419803', 'tblTempUsageDetail_20' ) start [2025-02-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419803', 'tblTempUsageDetail_20' ) end [2025-02-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419803', 'tblTempVendorCDR_20' ) start [2025-02-07 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419803', 'tblTempVendorCDR_20' ) end [2025-02-07 04:03:18] Production.INFO: ProcessCDR(1,14419803,1,1,2) [2025-02-07 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419803', 'tblTempUsageDetail_20' ) start [2025-02-07 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419803', 'tblTempUsageDetail_20' ) end [2025-02-07 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:03:21] Production.INFO: ==26641== Releasing lock... [2025-02-07 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:04:06 [end_date_ymd] => 2025-02-07 04:04:06 [RateCDR] => 1 ) [2025-02-07 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-07 01:04:06' and `end` < '2025-02-07 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-07 04:04:19] Production.INFO: count ==258 [2025-02-07 04:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:04:06 - End Time 2025-02-07 04:04:06 [2025-02-07 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419808', 'tblTempUsageDetail_20' ) start [2025-02-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419808', 'tblTempUsageDetail_20' ) end [2025-02-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419808', 'tblTempVendorCDR_20' ) start [2025-02-07 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419808', 'tblTempVendorCDR_20' ) end [2025-02-07 04:04:19] Production.INFO: ProcessCDR(1,14419808,1,1,2) [2025-02-07 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419808', 'tblTempUsageDetail_20' ) start [2025-02-07 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419808', 'tblTempUsageDetail_20' ) end [2025-02-07 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:04:22] Production.INFO: ==26754== Releasing lock... [2025-02-07 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:05:04 [end_date_ymd] => 2025-02-07 04:05:04 [RateCDR] => 1 ) [2025-02-07 04:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:05:04' and `end` < '2025-02-07 04:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:05:19] Production.INFO: count ==258 [2025-02-07 04:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:05:04 - End Time 2025-02-07 04:05:04 [2025-02-07 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419810', 'tblTempUsageDetail_20' ) start [2025-02-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419810', 'tblTempUsageDetail_20' ) end [2025-02-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419810', 'tblTempVendorCDR_20' ) start [2025-02-07 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419810', 'tblTempVendorCDR_20' ) end [2025-02-07 04:05:19] Production.INFO: ProcessCDR(1,14419810,1,1,2) [2025-02-07 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419810', 'tblTempUsageDetail_20' ) start [2025-02-07 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419810', 'tblTempUsageDetail_20' ) end [2025-02-07 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:05:22] Production.INFO: ==26826== Releasing lock... [2025-02-07 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:06:05 [end_date_ymd] => 2025-02-07 04:06:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:06:05' and `end` < '2025-02-07 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-07 04:06:20] Production.INFO: count ==255 [2025-02-07 04:06:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:06:05 - End Time 2025-02-07 04:06:05 [2025-02-07 04:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419818', 'tblTempUsageDetail_20' ) start [2025-02-07 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419818', 'tblTempUsageDetail_20' ) end [2025-02-07 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419818', 'tblTempVendorCDR_20' ) start [2025-02-07 04:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419818', 'tblTempVendorCDR_20' ) end [2025-02-07 04:06:20] Production.INFO: ProcessCDR(1,14419818,1,1,2) [2025-02-07 04:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419818', 'tblTempUsageDetail_20' ) start [2025-02-07 04:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419818', 'tblTempUsageDetail_20' ) end [2025-02-07 04:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:06:23] Production.INFO: ==26899== Releasing lock... [2025-02-07 04:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:06:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:07:05 [end_date_ymd] => 2025-02-07 04:07:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:07:05' and `end` < '2025-02-07 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-07 04:07:19] Production.INFO: count ==259 [2025-02-07 04:07:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:07:05 - End Time 2025-02-07 04:07:05 [2025-02-07 04:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419823', 'tblTempUsageDetail_20' ) start [2025-02-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419823', 'tblTempUsageDetail_20' ) end [2025-02-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419823', 'tblTempVendorCDR_20' ) start [2025-02-07 04:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419823', 'tblTempVendorCDR_20' ) end [2025-02-07 04:07:19] Production.INFO: ProcessCDR(1,14419823,1,1,2) [2025-02-07 04:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419823', 'tblTempUsageDetail_20' ) start [2025-02-07 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419823', 'tblTempUsageDetail_20' ) end [2025-02-07 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:07:22] Production.INFO: ==26978== Releasing lock... [2025-02-07 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:08:05 [end_date_ymd] => 2025-02-07 04:08:05 [RateCDR] => 1 ) [2025-02-07 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:08:05' and `end` < '2025-02-07 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:08:18] Production.INFO: count ==258 [2025-02-07 04:08:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:08:05 - End Time 2025-02-07 04:08:05 [2025-02-07 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419828', 'tblTempUsageDetail_20' ) start [2025-02-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419828', 'tblTempUsageDetail_20' ) end [2025-02-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419828', 'tblTempVendorCDR_20' ) start [2025-02-07 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419828', 'tblTempVendorCDR_20' ) end [2025-02-07 04:08:18] Production.INFO: ProcessCDR(1,14419828,1,1,2) [2025-02-07 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419828', 'tblTempUsageDetail_20' ) start [2025-02-07 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419828', 'tblTempUsageDetail_20' ) end [2025-02-07 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:08:21] Production.INFO: ==27048== Releasing lock... [2025-02-07 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:09:06 [end_date_ymd] => 2025-02-07 04:09:06 [RateCDR] => 1 ) [2025-02-07 04:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:09:06' and `end` < '2025-02-07 04:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:09:20] Production.INFO: count ==258 [2025-02-07 04:09:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:09:06 - End Time 2025-02-07 04:09:06 [2025-02-07 04:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419833', 'tblTempUsageDetail_20' ) start [2025-02-07 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419833', 'tblTempUsageDetail_20' ) end [2025-02-07 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419833', 'tblTempVendorCDR_20' ) start [2025-02-07 04:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419833', 'tblTempVendorCDR_20' ) end [2025-02-07 04:09:20] Production.INFO: ProcessCDR(1,14419833,1,1,2) [2025-02-07 04:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419833', 'tblTempUsageDetail_20' ) start [2025-02-07 04:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419833', 'tblTempUsageDetail_20' ) end [2025-02-07 04:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:09:23] Production.INFO: ==27120== Releasing lock... [2025-02-07 04:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:09:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:10:06 [end_date_ymd] => 2025-02-07 04:10:06 [RateCDR] => 1 ) [2025-02-07 04:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:10:06' and `end` < '2025-02-07 04:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:10:20] Production.INFO: count ==256 [2025-02-07 04:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:10:06 - End Time 2025-02-07 04:10:06 [2025-02-07 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419839', 'tblTempUsageDetail_20' ) start [2025-02-07 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419839', 'tblTempUsageDetail_20' ) end [2025-02-07 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419839', 'tblTempVendorCDR_20' ) start [2025-02-07 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419839', 'tblTempVendorCDR_20' ) end [2025-02-07 04:10:20] Production.INFO: ProcessCDR(1,14419839,1,1,2) [2025-02-07 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419839', 'tblTempUsageDetail_20' ) start [2025-02-07 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419839', 'tblTempUsageDetail_20' ) end [2025-02-07 04:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:10:24] Production.INFO: ==27194== Releasing lock... [2025-02-07 04:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:11:05 [end_date_ymd] => 2025-02-07 04:11:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:11:05' and `end` < '2025-02-07 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-07 04:11:19] Production.INFO: count ==242 [2025-02-07 04:11:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:11:05 - End Time 2025-02-07 04:11:05 [2025-02-07 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419844', 'tblTempUsageDetail_20' ) start [2025-02-07 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419844', 'tblTempUsageDetail_20' ) end [2025-02-07 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419844', 'tblTempVendorCDR_20' ) start [2025-02-07 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419844', 'tblTempVendorCDR_20' ) end [2025-02-07 04:11:19] Production.INFO: ProcessCDR(1,14419844,1,1,2) [2025-02-07 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419844', 'tblTempUsageDetail_20' ) start [2025-02-07 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419844', 'tblTempUsageDetail_20' ) end [2025-02-07 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:11:22] Production.INFO: ==27269== Releasing lock... [2025-02-07 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:12:05 [end_date_ymd] => 2025-02-07 04:12:05 [RateCDR] => 1 ) [2025-02-07 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:12:05' and `end` < '2025-02-07 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:12:19] Production.INFO: count ==242 [2025-02-07 04:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:12:05 - End Time 2025-02-07 04:12:05 [2025-02-07 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419849', 'tblTempUsageDetail_20' ) start [2025-02-07 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419849', 'tblTempUsageDetail_20' ) end [2025-02-07 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419849', 'tblTempVendorCDR_20' ) start [2025-02-07 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419849', 'tblTempVendorCDR_20' ) end [2025-02-07 04:12:19] Production.INFO: ProcessCDR(1,14419849,1,1,2) [2025-02-07 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419849', 'tblTempUsageDetail_20' ) start [2025-02-07 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419849', 'tblTempUsageDetail_20' ) end [2025-02-07 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:12:22] Production.INFO: ==27338== Releasing lock... [2025-02-07 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:13:06 [end_date_ymd] => 2025-02-07 04:13:06 [RateCDR] => 1 ) [2025-02-07 04: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-07 01:13:06' and `end` < '2025-02-07 04: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-07 04:13:20] Production.INFO: count ==242 [2025-02-07 04:13:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:13:06 - End Time 2025-02-07 04:13:06 [2025-02-07 04:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419854', 'tblTempUsageDetail_20' ) start [2025-02-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419854', 'tblTempUsageDetail_20' ) end [2025-02-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419854', 'tblTempVendorCDR_20' ) start [2025-02-07 04:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419854', 'tblTempVendorCDR_20' ) end [2025-02-07 04:13:20] Production.INFO: ProcessCDR(1,14419854,1,1,2) [2025-02-07 04:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419854', 'tblTempUsageDetail_20' ) start [2025-02-07 04:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419854', 'tblTempUsageDetail_20' ) end [2025-02-07 04:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:13:23] Production.INFO: ==27410== Releasing lock... [2025-02-07 04:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:13:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:14:05 [end_date_ymd] => 2025-02-07 04:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:14:05' and `end` < '2025-02-07 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-07 04:14:19] Production.INFO: count ==242 [2025-02-07 04:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:14:05 - End Time 2025-02-07 04:14:05 [2025-02-07 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419859', 'tblTempUsageDetail_20' ) start [2025-02-07 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419859', 'tblTempUsageDetail_20' ) end [2025-02-07 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419859', 'tblTempVendorCDR_20' ) start [2025-02-07 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419859', 'tblTempVendorCDR_20' ) end [2025-02-07 04:14:19] Production.INFO: ProcessCDR(1,14419859,1,1,2) [2025-02-07 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419859', 'tblTempUsageDetail_20' ) start [2025-02-07 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419859', 'tblTempUsageDetail_20' ) end [2025-02-07 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:14:22] Production.INFO: ==27482== Releasing lock... [2025-02-07 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:15:06 [end_date_ymd] => 2025-02-07 04:15:06 [RateCDR] => 1 ) [2025-02-07 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:15:06' and `end` < '2025-02-07 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:15:19] Production.INFO: count ==242 [2025-02-07 04:15:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:15:06 - End Time 2025-02-07 04:15:06 [2025-02-07 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419864', 'tblTempUsageDetail_20' ) start [2025-02-07 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419864', 'tblTempUsageDetail_20' ) end [2025-02-07 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419864', 'tblTempVendorCDR_20' ) start [2025-02-07 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419864', 'tblTempVendorCDR_20' ) end [2025-02-07 04:15:19] Production.INFO: ProcessCDR(1,14419864,1,1,2) [2025-02-07 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419864', 'tblTempUsageDetail_20' ) start [2025-02-07 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419864', 'tblTempUsageDetail_20' ) end [2025-02-07 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:15:23] Production.INFO: ==27554== Releasing lock... [2025-02-07 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:15:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:16:05 [end_date_ymd] => 2025-02-07 04:16:05 [RateCDR] => 1 ) [2025-02-07 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:16:05' and `end` < '2025-02-07 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-07 04:16:18] Production.INFO: count ==242 [2025-02-07 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:16:05 - End Time 2025-02-07 04:16:05 [2025-02-07 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419869', 'tblTempUsageDetail_20' ) start [2025-02-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419869', 'tblTempUsageDetail_20' ) end [2025-02-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419869', 'tblTempVendorCDR_20' ) start [2025-02-07 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419869', 'tblTempVendorCDR_20' ) end [2025-02-07 04:16:18] Production.INFO: ProcessCDR(1,14419869,1,1,2) [2025-02-07 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419869', 'tblTempUsageDetail_20' ) start [2025-02-07 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419869', 'tblTempUsageDetail_20' ) end [2025-02-07 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:16:21] Production.INFO: ==27625== Releasing lock... [2025-02-07 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:17:06 [end_date_ymd] => 2025-02-07 04:17:06 [RateCDR] => 1 ) [2025-02-07 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-07 01:17:06' and `end` < '2025-02-07 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-07 04:17:19] Production.INFO: count ==242 [2025-02-07 04:17:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:17:06 - End Time 2025-02-07 04:17:06 [2025-02-07 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419874', 'tblTempUsageDetail_20' ) start [2025-02-07 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419874', 'tblTempUsageDetail_20' ) end [2025-02-07 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419874', 'tblTempVendorCDR_20' ) start [2025-02-07 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419874', 'tblTempVendorCDR_20' ) end [2025-02-07 04:17:19] Production.INFO: ProcessCDR(1,14419874,1,1,2) [2025-02-07 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419874', 'tblTempUsageDetail_20' ) start [2025-02-07 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419874', 'tblTempUsageDetail_20' ) end [2025-02-07 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:17:22] Production.INFO: ==27698== Releasing lock... [2025-02-07 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:18:04 [end_date_ymd] => 2025-02-07 04:18:04 [RateCDR] => 1 ) [2025-02-07 04:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:18:04' and `end` < '2025-02-07 04:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:18:18] Production.INFO: count ==242 [2025-02-07 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:18:04 - End Time 2025-02-07 04:18:04 [2025-02-07 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419879', 'tblTempUsageDetail_20' ) start [2025-02-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419879', 'tblTempUsageDetail_20' ) end [2025-02-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419879', 'tblTempVendorCDR_20' ) start [2025-02-07 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419879', 'tblTempVendorCDR_20' ) end [2025-02-07 04:18:18] Production.INFO: ProcessCDR(1,14419879,1,1,2) [2025-02-07 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419879', 'tblTempUsageDetail_20' ) start [2025-02-07 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419879', 'tblTempUsageDetail_20' ) end [2025-02-07 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:18:21] Production.INFO: ==27781== Releasing lock... [2025-02-07 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:19:05 [end_date_ymd] => 2025-02-07 04:19:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:19:05' and `end` < '2025-02-07 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-07 04:19:18] Production.INFO: count ==242 [2025-02-07 04:19:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:19:05 - End Time 2025-02-07 04:19:05 [2025-02-07 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419884', 'tblTempUsageDetail_20' ) start [2025-02-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419884', 'tblTempUsageDetail_20' ) end [2025-02-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419884', 'tblTempVendorCDR_20' ) start [2025-02-07 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419884', 'tblTempVendorCDR_20' ) end [2025-02-07 04:19:18] Production.INFO: ProcessCDR(1,14419884,1,1,2) [2025-02-07 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419884', 'tblTempUsageDetail_20' ) start [2025-02-07 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419884', 'tblTempUsageDetail_20' ) end [2025-02-07 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:19:21] Production.INFO: ==27892== Releasing lock... [2025-02-07 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:20:06 [end_date_ymd] => 2025-02-07 04:20:06 [RateCDR] => 1 ) [2025-02-07 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-07 01:20:06' and `end` < '2025-02-07 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-07 04:20:19] Production.INFO: count ==237 [2025-02-07 04:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:20:06 - End Time 2025-02-07 04:20:06 [2025-02-07 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419890', 'tblTempUsageDetail_20' ) start [2025-02-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419890', 'tblTempUsageDetail_20' ) end [2025-02-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419890', 'tblTempVendorCDR_20' ) start [2025-02-07 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419890', 'tblTempVendorCDR_20' ) end [2025-02-07 04:20:19] Production.INFO: ProcessCDR(1,14419890,1,1,2) [2025-02-07 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419890', 'tblTempUsageDetail_20' ) start [2025-02-07 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419890', 'tblTempUsageDetail_20' ) end [2025-02-07 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:20:22] Production.INFO: ==27965== Releasing lock... [2025-02-07 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:21:05 [end_date_ymd] => 2025-02-07 04:21:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:21:05' and `end` < '2025-02-07 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-07 04:21:18] Production.INFO: count ==231 [2025-02-07 04:21:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:21:05 - End Time 2025-02-07 04:21:05 [2025-02-07 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419895', 'tblTempUsageDetail_20' ) start [2025-02-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419895', 'tblTempUsageDetail_20' ) end [2025-02-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419895', 'tblTempVendorCDR_20' ) start [2025-02-07 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419895', 'tblTempVendorCDR_20' ) end [2025-02-07 04:21:18] Production.INFO: ProcessCDR(1,14419895,1,1,2) [2025-02-07 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419895', 'tblTempUsageDetail_20' ) start [2025-02-07 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419895', 'tblTempUsageDetail_20' ) end [2025-02-07 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:21:21] Production.INFO: ==28040== Releasing lock... [2025-02-07 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:22:05 [end_date_ymd] => 2025-02-07 04:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:22:05' and `end` < '2025-02-07 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-07 04:22:19] Production.INFO: count ==231 [2025-02-07 04:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:22:05 - End Time 2025-02-07 04:22:05 [2025-02-07 04:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419900', 'tblTempUsageDetail_20' ) start [2025-02-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419900', 'tblTempUsageDetail_20' ) end [2025-02-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419900', 'tblTempVendorCDR_20' ) start [2025-02-07 04:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419900', 'tblTempVendorCDR_20' ) end [2025-02-07 04:22:19] Production.INFO: ProcessCDR(1,14419900,1,1,2) [2025-02-07 04:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419900', 'tblTempUsageDetail_20' ) start [2025-02-07 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419900', 'tblTempUsageDetail_20' ) end [2025-02-07 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:22:22] Production.INFO: ==28110== Releasing lock... [2025-02-07 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:23:05 [end_date_ymd] => 2025-02-07 04:23:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:23:05' and `end` < '2025-02-07 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-07 04:23:19] Production.INFO: count ==234 [2025-02-07 04:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:23:05 - End Time 2025-02-07 04:23:05 [2025-02-07 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419905', 'tblTempUsageDetail_20' ) start [2025-02-07 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419905', 'tblTempUsageDetail_20' ) end [2025-02-07 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419905', 'tblTempVendorCDR_20' ) start [2025-02-07 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419905', 'tblTempVendorCDR_20' ) end [2025-02-07 04:23:19] Production.INFO: ProcessCDR(1,14419905,1,1,2) [2025-02-07 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419905', 'tblTempUsageDetail_20' ) start [2025-02-07 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419905', 'tblTempUsageDetail_20' ) end [2025-02-07 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:23:22] Production.INFO: ==28180== Releasing lock... [2025-02-07 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:23:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:24:05 [end_date_ymd] => 2025-02-07 04:24:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:24:05' and `end` < '2025-02-07 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-07 04:24:20] Production.INFO: count ==234 [2025-02-07 04:24:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:24:05 - End Time 2025-02-07 04:24:05 [2025-02-07 04:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419910', 'tblTempUsageDetail_20' ) start [2025-02-07 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419910', 'tblTempUsageDetail_20' ) end [2025-02-07 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419910', 'tblTempVendorCDR_20' ) start [2025-02-07 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419910', 'tblTempVendorCDR_20' ) end [2025-02-07 04:24:20] Production.INFO: ProcessCDR(1,14419910,1,1,2) [2025-02-07 04:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419910', 'tblTempUsageDetail_20' ) start [2025-02-07 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419910', 'tblTempUsageDetail_20' ) end [2025-02-07 04:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:24:23] Production.INFO: ==28255== Releasing lock... [2025-02-07 04:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:24:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:25:05 [end_date_ymd] => 2025-02-07 04:25:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:25:05' and `end` < '2025-02-07 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-07 04:25:18] Production.INFO: count ==234 [2025-02-07 04:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:25:05 - End Time 2025-02-07 04:25:05 [2025-02-07 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419915', 'tblTempUsageDetail_20' ) start [2025-02-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419915', 'tblTempUsageDetail_20' ) end [2025-02-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419915', 'tblTempVendorCDR_20' ) start [2025-02-07 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419915', 'tblTempVendorCDR_20' ) end [2025-02-07 04:25:18] Production.INFO: ProcessCDR(1,14419915,1,1,2) [2025-02-07 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419915', 'tblTempUsageDetail_20' ) start [2025-02-07 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419915', 'tblTempUsageDetail_20' ) end [2025-02-07 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:25:21] Production.INFO: ==28326== Releasing lock... [2025-02-07 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:26:06 [end_date_ymd] => 2025-02-07 04:26:06 [RateCDR] => 1 ) [2025-02-07 04: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-07 01:26:06' and `end` < '2025-02-07 04: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-07 04:26:18] Production.INFO: count ==234 [2025-02-07 04:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:26:06 - End Time 2025-02-07 04:26:06 [2025-02-07 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419920', 'tblTempUsageDetail_20' ) start [2025-02-07 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419920', 'tblTempUsageDetail_20' ) end [2025-02-07 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419920', 'tblTempVendorCDR_20' ) start [2025-02-07 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419920', 'tblTempVendorCDR_20' ) end [2025-02-07 04:26:19] Production.INFO: ProcessCDR(1,14419920,1,1,2) [2025-02-07 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419920', 'tblTempUsageDetail_20' ) start [2025-02-07 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419920', 'tblTempUsageDetail_20' ) end [2025-02-07 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:26:22] Production.INFO: ==28402== Releasing lock... [2025-02-07 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:26:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:27:05 [end_date_ymd] => 2025-02-07 04:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:27:05' and `end` < '2025-02-07 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-07 04:27:18] Production.INFO: count ==234 [2025-02-07 04:27:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:27:05 - End Time 2025-02-07 04:27:05 [2025-02-07 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419925', 'tblTempUsageDetail_20' ) start [2025-02-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419925', 'tblTempUsageDetail_20' ) end [2025-02-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419925', 'tblTempVendorCDR_20' ) start [2025-02-07 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419925', 'tblTempVendorCDR_20' ) end [2025-02-07 04:27:18] Production.INFO: ProcessCDR(1,14419925,1,1,2) [2025-02-07 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419925', 'tblTempUsageDetail_20' ) start [2025-02-07 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419925', 'tblTempUsageDetail_20' ) end [2025-02-07 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:27:21] Production.INFO: ==28474== Releasing lock... [2025-02-07 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:28:05 [end_date_ymd] => 2025-02-07 04:28:05 [RateCDR] => 1 ) [2025-02-07 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:28:05' and `end` < '2025-02-07 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:28:19] Production.INFO: count ==233 [2025-02-07 04:28:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:28:05 - End Time 2025-02-07 04:28:05 [2025-02-07 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419930', 'tblTempUsageDetail_20' ) start [2025-02-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419930', 'tblTempUsageDetail_20' ) end [2025-02-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419930', 'tblTempVendorCDR_20' ) start [2025-02-07 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419930', 'tblTempVendorCDR_20' ) end [2025-02-07 04:28:19] Production.INFO: ProcessCDR(1,14419930,1,1,2) [2025-02-07 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419930', 'tblTempUsageDetail_20' ) start [2025-02-07 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419930', 'tblTempUsageDetail_20' ) end [2025-02-07 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:28:22] Production.INFO: ==28551== Releasing lock... [2025-02-07 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:29:05 [end_date_ymd] => 2025-02-07 04:29:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:29:05' and `end` < '2025-02-07 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-07 04:29:18] Production.INFO: count ==233 [2025-02-07 04:29:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:29:05 - End Time 2025-02-07 04:29:05 [2025-02-07 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419935', 'tblTempUsageDetail_20' ) start [2025-02-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419935', 'tblTempUsageDetail_20' ) end [2025-02-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419935', 'tblTempVendorCDR_20' ) start [2025-02-07 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419935', 'tblTempVendorCDR_20' ) end [2025-02-07 04:29:18] Production.INFO: ProcessCDR(1,14419935,1,1,2) [2025-02-07 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419935', 'tblTempUsageDetail_20' ) start [2025-02-07 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419935', 'tblTempUsageDetail_20' ) end [2025-02-07 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:29:21] Production.INFO: ==28625== Releasing lock... [2025-02-07 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:30:05 [end_date_ymd] => 2025-02-07 04:30:05 [RateCDR] => 1 ) [2025-02-07 04:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:30:05' and `end` < '2025-02-07 04:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:30:19] Production.INFO: count ==230 [2025-02-07 04:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:30:05 - End Time 2025-02-07 04:30:05 [2025-02-07 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419940', 'tblTempUsageDetail_20' ) start [2025-02-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419940', 'tblTempUsageDetail_20' ) end [2025-02-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419940', 'tblTempVendorCDR_20' ) start [2025-02-07 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419940', 'tblTempVendorCDR_20' ) end [2025-02-07 04:30:19] Production.INFO: ProcessCDR(1,14419940,1,1,2) [2025-02-07 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419940', 'tblTempUsageDetail_20' ) start [2025-02-07 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419940', 'tblTempUsageDetail_20' ) end [2025-02-07 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:30:23] Production.INFO: ==28700== Releasing lock... [2025-02-07 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:30:23] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:31:06 [end_date_ymd] => 2025-02-07 04:31:06 [RateCDR] => 1 ) [2025-02-07 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-07 01:31:06' and `end` < '2025-02-07 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-07 04:31:19] Production.INFO: count ==229 [2025-02-07 04:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:31:06 - End Time 2025-02-07 04:31:06 [2025-02-07 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419947', 'tblTempUsageDetail_20' ) start [2025-02-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419947', 'tblTempUsageDetail_20' ) end [2025-02-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419947', 'tblTempVendorCDR_20' ) start [2025-02-07 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419947', 'tblTempVendorCDR_20' ) end [2025-02-07 04:31:19] Production.INFO: ProcessCDR(1,14419947,1,1,2) [2025-02-07 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419947', 'tblTempUsageDetail_20' ) start [2025-02-07 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419947', 'tblTempUsageDetail_20' ) end [2025-02-07 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:31:22] Production.INFO: ==28782== Releasing lock... [2025-02-07 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:31:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:32:05 [end_date_ymd] => 2025-02-07 04:32:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:32:05' and `end` < '2025-02-07 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-07 04:32:18] Production.INFO: count ==229 [2025-02-07 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:32:05 - End Time 2025-02-07 04:32:05 [2025-02-07 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419952', 'tblTempUsageDetail_20' ) start [2025-02-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419952', 'tblTempUsageDetail_20' ) end [2025-02-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419952', 'tblTempVendorCDR_20' ) start [2025-02-07 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419952', 'tblTempVendorCDR_20' ) end [2025-02-07 04:32:18] Production.INFO: ProcessCDR(1,14419952,1,1,2) [2025-02-07 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419952', 'tblTempUsageDetail_20' ) start [2025-02-07 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419952', 'tblTempUsageDetail_20' ) end [2025-02-07 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:32:21] Production.INFO: ==28921== Releasing lock... [2025-02-07 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:33:06 [end_date_ymd] => 2025-02-07 04:33:06 [RateCDR] => 1 ) [2025-02-07 04:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:33:06' and `end` < '2025-02-07 04:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:33:19] Production.INFO: count ==228 [2025-02-07 04:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:33:06 - End Time 2025-02-07 04:33:06 [2025-02-07 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419957', 'tblTempUsageDetail_20' ) start [2025-02-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419957', 'tblTempUsageDetail_20' ) end [2025-02-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419957', 'tblTempVendorCDR_20' ) start [2025-02-07 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419957', 'tblTempVendorCDR_20' ) end [2025-02-07 04:33:19] Production.INFO: ProcessCDR(1,14419957,1,1,2) [2025-02-07 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419957', 'tblTempUsageDetail_20' ) start [2025-02-07 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419957', 'tblTempUsageDetail_20' ) end [2025-02-07 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:33:22] Production.INFO: ==28992== Releasing lock... [2025-02-07 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:33:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:34:05 [end_date_ymd] => 2025-02-07 04:34:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:34:05' and `end` < '2025-02-07 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-07 04:34:18] Production.INFO: count ==228 [2025-02-07 04:34:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:34:05 - End Time 2025-02-07 04:34:05 [2025-02-07 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419962', 'tblTempUsageDetail_20' ) start [2025-02-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419962', 'tblTempUsageDetail_20' ) end [2025-02-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419962', 'tblTempVendorCDR_20' ) start [2025-02-07 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419962', 'tblTempVendorCDR_20' ) end [2025-02-07 04:34:18] Production.INFO: ProcessCDR(1,14419962,1,1,2) [2025-02-07 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419962', 'tblTempUsageDetail_20' ) start [2025-02-07 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419962', 'tblTempUsageDetail_20' ) end [2025-02-07 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:34:21] Production.INFO: ==29063== Releasing lock... [2025-02-07 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:35:05 [end_date_ymd] => 2025-02-07 04:35:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:35:05' and `end` < '2025-02-07 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-07 04:35:19] Production.INFO: count ==226 [2025-02-07 04:35:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:35:05 - End Time 2025-02-07 04:35:05 [2025-02-07 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419967', 'tblTempUsageDetail_20' ) start [2025-02-07 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419967', 'tblTempUsageDetail_20' ) end [2025-02-07 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419967', 'tblTempVendorCDR_20' ) start [2025-02-07 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419967', 'tblTempVendorCDR_20' ) end [2025-02-07 04:35:19] Production.INFO: ProcessCDR(1,14419967,1,1,2) [2025-02-07 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419967', 'tblTempUsageDetail_20' ) start [2025-02-07 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419967', 'tblTempUsageDetail_20' ) end [2025-02-07 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:35:22] Production.INFO: ==29176== Releasing lock... [2025-02-07 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:35:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:36:05 [end_date_ymd] => 2025-02-07 04:36:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:36:05' and `end` < '2025-02-07 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-07 04:36:18] Production.INFO: count ==223 [2025-02-07 04:36:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:36:05 - End Time 2025-02-07 04:36:05 [2025-02-07 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419972', 'tblTempUsageDetail_20' ) start [2025-02-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419972', 'tblTempUsageDetail_20' ) end [2025-02-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419972', 'tblTempVendorCDR_20' ) start [2025-02-07 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419972', 'tblTempVendorCDR_20' ) end [2025-02-07 04:36:18] Production.INFO: ProcessCDR(1,14419972,1,1,2) [2025-02-07 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419972', 'tblTempUsageDetail_20' ) start [2025-02-07 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419972', 'tblTempUsageDetail_20' ) end [2025-02-07 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:36:22] Production.INFO: ==29246== Releasing lock... [2025-02-07 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:36:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:37:05 [end_date_ymd] => 2025-02-07 04:37:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:37:05' and `end` < '2025-02-07 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-07 04:37:19] Production.INFO: count ==223 [2025-02-07 04:37:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:37:05 - End Time 2025-02-07 04:37:05 [2025-02-07 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419977', 'tblTempUsageDetail_20' ) start [2025-02-07 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419977', 'tblTempUsageDetail_20' ) end [2025-02-07 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419977', 'tblTempVendorCDR_20' ) start [2025-02-07 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419977', 'tblTempVendorCDR_20' ) end [2025-02-07 04:37:19] Production.INFO: ProcessCDR(1,14419977,1,1,2) [2025-02-07 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419977', 'tblTempUsageDetail_20' ) start [2025-02-07 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419977', 'tblTempUsageDetail_20' ) end [2025-02-07 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:37:22] Production.INFO: ==29316== Releasing lock... [2025-02-07 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:37:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:38:05 [end_date_ymd] => 2025-02-07 04:38:05 [RateCDR] => 1 ) [2025-02-07 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:38:05' and `end` < '2025-02-07 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:38:19] Production.INFO: count ==220 [2025-02-07 04:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:38:05 - End Time 2025-02-07 04:38:05 [2025-02-07 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419982', 'tblTempUsageDetail_20' ) start [2025-02-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419982', 'tblTempUsageDetail_20' ) end [2025-02-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419982', 'tblTempVendorCDR_20' ) start [2025-02-07 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419982', 'tblTempVendorCDR_20' ) end [2025-02-07 04:38:19] Production.INFO: ProcessCDR(1,14419982,1,1,2) [2025-02-07 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419982', 'tblTempUsageDetail_20' ) start [2025-02-07 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419982', 'tblTempUsageDetail_20' ) end [2025-02-07 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:38:22] Production.INFO: ==29390== Releasing lock... [2025-02-07 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:38:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:39:05 [end_date_ymd] => 2025-02-07 04:39:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:39:05' and `end` < '2025-02-07 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-07 04:39:19] Production.INFO: count ==220 [2025-02-07 04:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:39:05 - End Time 2025-02-07 04:39:05 [2025-02-07 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419987', 'tblTempUsageDetail_20' ) start [2025-02-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419987', 'tblTempUsageDetail_20' ) end [2025-02-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419987', 'tblTempVendorCDR_20' ) start [2025-02-07 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419987', 'tblTempVendorCDR_20' ) end [2025-02-07 04:39:19] Production.INFO: ProcessCDR(1,14419987,1,1,2) [2025-02-07 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419987', 'tblTempUsageDetail_20' ) start [2025-02-07 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419987', 'tblTempUsageDetail_20' ) end [2025-02-07 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:39:22] Production.INFO: ==29460== Releasing lock... [2025-02-07 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:39:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:40:06 [end_date_ymd] => 2025-02-07 04:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 01:40:06' and `end` < '2025-02-07 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-07 04:40:19] Production.INFO: count ==216 [2025-02-07 04:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:40:06 - End Time 2025-02-07 04:40:06 [2025-02-07 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419992', 'tblTempUsageDetail_20' ) start [2025-02-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419992', 'tblTempUsageDetail_20' ) end [2025-02-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419992', 'tblTempVendorCDR_20' ) start [2025-02-07 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419992', 'tblTempVendorCDR_20' ) end [2025-02-07 04:40:19] Production.INFO: ProcessCDR(1,14419992,1,1,2) [2025-02-07 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419992', 'tblTempUsageDetail_20' ) start [2025-02-07 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419992', 'tblTempUsageDetail_20' ) end [2025-02-07 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:40:22] Production.INFO: ==29532== Releasing lock... [2025-02-07 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:40:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:41:05 [end_date_ymd] => 2025-02-07 04:41:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:41:05' and `end` < '2025-02-07 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-07 04:41:18] Production.INFO: count ==216 [2025-02-07 04:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:41:05 - End Time 2025-02-07 04:41:05 [2025-02-07 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419998', 'tblTempUsageDetail_20' ) start [2025-02-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14419998', 'tblTempUsageDetail_20' ) end [2025-02-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419998', 'tblTempVendorCDR_20' ) start [2025-02-07 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14419998', 'tblTempVendorCDR_20' ) end [2025-02-07 04:41:18] Production.INFO: ProcessCDR(1,14419998,1,1,2) [2025-02-07 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14419998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14419998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14419998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14419998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419998', 'tblTempUsageDetail_20' ) start [2025-02-07 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14419998', 'tblTempUsageDetail_20' ) end [2025-02-07 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:41:21] Production.INFO: ==29605== Releasing lock... [2025-02-07 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:41:21] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:42:05 [end_date_ymd] => 2025-02-07 04:42:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:42:05' and `end` < '2025-02-07 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-07 04:42:19] Production.INFO: count ==216 [2025-02-07 04:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:42:05 - End Time 2025-02-07 04:42:05 [2025-02-07 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420003', 'tblTempUsageDetail_20' ) start [2025-02-07 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420003', 'tblTempUsageDetail_20' ) end [2025-02-07 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420003', 'tblTempVendorCDR_20' ) start [2025-02-07 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420003', 'tblTempVendorCDR_20' ) end [2025-02-07 04:42:19] Production.INFO: ProcessCDR(1,14420003,1,1,2) [2025-02-07 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420003', 'tblTempUsageDetail_20' ) start [2025-02-07 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420003', 'tblTempUsageDetail_20' ) end [2025-02-07 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:42:22] Production.INFO: ==29688== Releasing lock... [2025-02-07 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:42:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:43:05 [end_date_ymd] => 2025-02-07 04:43:05 [RateCDR] => 1 ) [2025-02-07 04:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:43:05' and `end` < '2025-02-07 04:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:43:18] Production.INFO: count ==216 [2025-02-07 04:43:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:43:05 - End Time 2025-02-07 04:43:05 [2025-02-07 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420008', 'tblTempUsageDetail_20' ) start [2025-02-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420008', 'tblTempUsageDetail_20' ) end [2025-02-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420008', 'tblTempVendorCDR_20' ) start [2025-02-07 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420008', 'tblTempVendorCDR_20' ) end [2025-02-07 04:43:18] Production.INFO: ProcessCDR(1,14420008,1,1,2) [2025-02-07 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420008', 'tblTempUsageDetail_20' ) start [2025-02-07 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420008', 'tblTempUsageDetail_20' ) end [2025-02-07 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:43:21] Production.INFO: ==29757== Releasing lock... [2025-02-07 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:43:21] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:44:05 [end_date_ymd] => 2025-02-07 04:44:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:44:05' and `end` < '2025-02-07 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-07 04:44:19] Production.INFO: count ==216 [2025-02-07 04:44:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:44:05 - End Time 2025-02-07 04:44:05 [2025-02-07 04:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420013', 'tblTempUsageDetail_20' ) start [2025-02-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420013', 'tblTempUsageDetail_20' ) end [2025-02-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420013', 'tblTempVendorCDR_20' ) start [2025-02-07 04:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420013', 'tblTempVendorCDR_20' ) end [2025-02-07 04:44:19] Production.INFO: ProcessCDR(1,14420013,1,1,2) [2025-02-07 04:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420013', 'tblTempUsageDetail_20' ) start [2025-02-07 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420013', 'tblTempUsageDetail_20' ) end [2025-02-07 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:44:22] Production.INFO: ==29829== Releasing lock... [2025-02-07 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:44:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:45:05 [end_date_ymd] => 2025-02-07 04:45:05 [RateCDR] => 1 ) [2025-02-07 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:45:05' and `end` < '2025-02-07 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:45:18] Production.INFO: count ==216 [2025-02-07 04:45:18] Production.ERROR: pbx CDR StartTime 2025-02-07 01:45:05 - End Time 2025-02-07 04:45:05 [2025-02-07 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420018', 'tblTempUsageDetail_20' ) start [2025-02-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420018', 'tblTempUsageDetail_20' ) end [2025-02-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420018', 'tblTempVendorCDR_20' ) start [2025-02-07 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420018', 'tblTempVendorCDR_20' ) end [2025-02-07 04:45:18] Production.INFO: ProcessCDR(1,14420018,1,1,2) [2025-02-07 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420018', 'tblTempUsageDetail_20' ) start [2025-02-07 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420018', 'tblTempUsageDetail_20' ) end [2025-02-07 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:45:21] Production.INFO: ==29901== Releasing lock... [2025-02-07 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:45:21] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:46:06 [end_date_ymd] => 2025-02-07 04:46:06 [RateCDR] => 1 ) [2025-02-07 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-07 01:46:06' and `end` < '2025-02-07 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-07 04:47:02] Production.INFO: count ==213 [2025-02-07 04:47:02] Production.ERROR: pbx CDR StartTime 2025-02-07 01:46:06 - End Time 2025-02-07 04:46:06 [2025-02-07 04:47:02] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:47:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420023', 'tblTempUsageDetail_20' ) start [2025-02-07 04:47:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420023', 'tblTempUsageDetail_20' ) end [2025-02-07 04:47:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420023', 'tblTempVendorCDR_20' ) start [2025-02-07 04:47:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420023', 'tblTempVendorCDR_20' ) end [2025-02-07 04:47:02] Production.INFO: ProcessCDR(1,14420023,1,1,2) [2025-02-07 04:47:02] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:47:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:47:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:47:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:47:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420023', 'tblTempUsageDetail_20' ) start [2025-02-07 04:47:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420023', 'tblTempUsageDetail_20' ) end [2025-02-07 04:47:08] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:47:08] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:47:08] Production.INFO: ==29978== Releasing lock... [2025-02-07 04:47:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:47:08] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:48:05 [end_date_ymd] => 2025-02-07 04:48:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:48:05' and `end` < '2025-02-07 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-07 04:48:20] Production.INFO: count ==213 [2025-02-07 04:48:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:48:05 - End Time 2025-02-07 04:48:05 [2025-02-07 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420032', 'tblTempUsageDetail_20' ) start [2025-02-07 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420032', 'tblTempUsageDetail_20' ) end [2025-02-07 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420032', 'tblTempVendorCDR_20' ) start [2025-02-07 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420032', 'tblTempVendorCDR_20' ) end [2025-02-07 04:48:20] Production.INFO: ProcessCDR(1,14420032,1,1,2) [2025-02-07 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420032', 'tblTempUsageDetail_20' ) start [2025-02-07 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420032', 'tblTempUsageDetail_20' ) end [2025-02-07 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:48:24] Production.INFO: ==30116== Releasing lock... [2025-02-07 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:48:24] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:49:05 [end_date_ymd] => 2025-02-07 04:49:05 [RateCDR] => 1 ) [2025-02-07 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:49:05' and `end` < '2025-02-07 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:49:19] Production.INFO: count ==213 [2025-02-07 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:49:05 - End Time 2025-02-07 04:49:05 [2025-02-07 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420037', 'tblTempUsageDetail_20' ) start [2025-02-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420037', 'tblTempUsageDetail_20' ) end [2025-02-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420037', 'tblTempVendorCDR_20' ) start [2025-02-07 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420037', 'tblTempVendorCDR_20' ) end [2025-02-07 04:49:19] Production.INFO: ProcessCDR(1,14420037,1,1,2) [2025-02-07 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420037', 'tblTempUsageDetail_20' ) start [2025-02-07 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420037', 'tblTempUsageDetail_20' ) end [2025-02-07 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:49:22] Production.INFO: ==30192== Releasing lock... [2025-02-07 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:49:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:50:06 [end_date_ymd] => 2025-02-07 04:50:06 [RateCDR] => 1 ) [2025-02-07 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:50:06' and `end` < '2025-02-07 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:50:20] Production.INFO: count ==209 [2025-02-07 04:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:50:06 - End Time 2025-02-07 04:50:06 [2025-02-07 04:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420042', 'tblTempUsageDetail_20' ) start [2025-02-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420042', 'tblTempUsageDetail_20' ) end [2025-02-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420042', 'tblTempVendorCDR_20' ) start [2025-02-07 04:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420042', 'tblTempVendorCDR_20' ) end [2025-02-07 04:50:20] Production.INFO: ProcessCDR(1,14420042,1,1,2) [2025-02-07 04:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420042', 'tblTempUsageDetail_20' ) start [2025-02-07 04:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420042', 'tblTempUsageDetail_20' ) end [2025-02-07 04:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:50:23] Production.INFO: ==30304== Releasing lock... [2025-02-07 04:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:50:23] Production.INFO: 29 MB #Memory Used# [2025-02-07 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:51:05 [end_date_ymd] => 2025-02-07 04:51:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:51:05' and `end` < '2025-02-07 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-07 04:51:20] Production.INFO: count ==195 [2025-02-07 04:51:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:51:05 - End Time 2025-02-07 04:51:05 [2025-02-07 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420048', 'tblTempUsageDetail_20' ) start [2025-02-07 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420048', 'tblTempUsageDetail_20' ) end [2025-02-07 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420048', 'tblTempVendorCDR_20' ) start [2025-02-07 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420048', 'tblTempVendorCDR_20' ) end [2025-02-07 04:51:20] Production.INFO: ProcessCDR(1,14420048,1,1,2) [2025-02-07 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420048', 'tblTempUsageDetail_20' ) start [2025-02-07 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420048', 'tblTempUsageDetail_20' ) end [2025-02-07 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:51:23] Production.INFO: ==30377== Releasing lock... [2025-02-07 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:51:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:52:05 [end_date_ymd] => 2025-02-07 04:52:05 [RateCDR] => 1 ) [2025-02-07 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:52:05' and `end` < '2025-02-07 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-07 04:52:19] Production.INFO: count ==195 [2025-02-07 04:52:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:52:05 - End Time 2025-02-07 04:52:05 [2025-02-07 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420053', 'tblTempUsageDetail_20' ) start [2025-02-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420053', 'tblTempUsageDetail_20' ) end [2025-02-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420053', 'tblTempVendorCDR_20' ) start [2025-02-07 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420053', 'tblTempVendorCDR_20' ) end [2025-02-07 04:52:19] Production.INFO: ProcessCDR(1,14420053,1,1,2) [2025-02-07 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420053', 'tblTempUsageDetail_20' ) start [2025-02-07 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420053', 'tblTempUsageDetail_20' ) end [2025-02-07 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:52:22] Production.INFO: ==30451== Releasing lock... [2025-02-07 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:53:06 [end_date_ymd] => 2025-02-07 04:53:06 [RateCDR] => 1 ) [2025-02-07 04:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 01:53:06' and `end` < '2025-02-07 04:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 04:53:20] Production.INFO: count ==195 [2025-02-07 04:53:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:53:06 - End Time 2025-02-07 04:53:06 [2025-02-07 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420058', 'tblTempUsageDetail_20' ) start [2025-02-07 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420058', 'tblTempUsageDetail_20' ) end [2025-02-07 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420058', 'tblTempVendorCDR_20' ) start [2025-02-07 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420058', 'tblTempVendorCDR_20' ) end [2025-02-07 04:53:21] Production.INFO: ProcessCDR(1,14420058,1,1,2) [2025-02-07 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420058', 'tblTempUsageDetail_20' ) start [2025-02-07 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420058', 'tblTempUsageDetail_20' ) end [2025-02-07 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:53:24] Production.INFO: ==30523== Releasing lock... [2025-02-07 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:53:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:54:05 [end_date_ymd] => 2025-02-07 04:54:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:54:05' and `end` < '2025-02-07 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-07 04:54:19] Production.INFO: count ==195 [2025-02-07 04:54:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:54:05 - End Time 2025-02-07 04:54:05 [2025-02-07 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420063', 'tblTempUsageDetail_20' ) start [2025-02-07 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420063', 'tblTempUsageDetail_20' ) end [2025-02-07 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420063', 'tblTempVendorCDR_20' ) start [2025-02-07 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420063', 'tblTempVendorCDR_20' ) end [2025-02-07 04:54:19] Production.INFO: ProcessCDR(1,14420063,1,1,2) [2025-02-07 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420063', 'tblTempUsageDetail_20' ) start [2025-02-07 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420063', 'tblTempUsageDetail_20' ) end [2025-02-07 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:54:23] Production.INFO: ==30592== Releasing lock... [2025-02-07 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:55:05 [end_date_ymd] => 2025-02-07 04:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:55:05' and `end` < '2025-02-07 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-07 04:55:19] Production.INFO: count ==195 [2025-02-07 04:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:55:05 - End Time 2025-02-07 04:55:05 [2025-02-07 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420068', 'tblTempUsageDetail_20' ) start [2025-02-07 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420068', 'tblTempUsageDetail_20' ) end [2025-02-07 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420068', 'tblTempVendorCDR_20' ) start [2025-02-07 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420068', 'tblTempVendorCDR_20' ) end [2025-02-07 04:55:19] Production.INFO: ProcessCDR(1,14420068,1,1,2) [2025-02-07 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420068', 'tblTempUsageDetail_20' ) start [2025-02-07 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420068', 'tblTempUsageDetail_20' ) end [2025-02-07 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:55:22] Production.INFO: ==30666== Releasing lock... [2025-02-07 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:56:05 [end_date_ymd] => 2025-02-07 04:56:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:56:05' and `end` < '2025-02-07 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-07 04:56:19] Production.INFO: count ==195 [2025-02-07 04:56:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:56:05 - End Time 2025-02-07 04:56:05 [2025-02-07 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420073', 'tblTempUsageDetail_20' ) start [2025-02-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420073', 'tblTempUsageDetail_20' ) end [2025-02-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420073', 'tblTempVendorCDR_20' ) start [2025-02-07 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420073', 'tblTempVendorCDR_20' ) end [2025-02-07 04:56:19] Production.INFO: ProcessCDR(1,14420073,1,1,2) [2025-02-07 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420073', 'tblTempUsageDetail_20' ) start [2025-02-07 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420073', 'tblTempUsageDetail_20' ) end [2025-02-07 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:56:23] Production.INFO: ==30745== Releasing lock... [2025-02-07 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:56:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:57:05 [end_date_ymd] => 2025-02-07 04:57:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:57:05' and `end` < '2025-02-07 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-07 04:57:20] Production.INFO: count ==195 [2025-02-07 04:57:20] Production.ERROR: pbx CDR StartTime 2025-02-07 01:57:05 - End Time 2025-02-07 04:57:05 [2025-02-07 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420078', 'tblTempUsageDetail_20' ) start [2025-02-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420078', 'tblTempUsageDetail_20' ) end [2025-02-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420078', 'tblTempVendorCDR_20' ) start [2025-02-07 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420078', 'tblTempVendorCDR_20' ) end [2025-02-07 04:57:20] Production.INFO: ProcessCDR(1,14420078,1,1,2) [2025-02-07 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420078', 'tblTempUsageDetail_20' ) start [2025-02-07 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420078', 'tblTempUsageDetail_20' ) end [2025-02-07 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:57:23] Production.INFO: ==30817== Releasing lock... [2025-02-07 04:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:57:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:58:05 [end_date_ymd] => 2025-02-07 04:58:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:58:05' and `end` < '2025-02-07 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-07 04:58:19] Production.INFO: count ==195 [2025-02-07 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:58:05 - End Time 2025-02-07 04:58:05 [2025-02-07 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420083', 'tblTempUsageDetail_20' ) start [2025-02-07 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420083', 'tblTempUsageDetail_20' ) end [2025-02-07 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420083', 'tblTempVendorCDR_20' ) start [2025-02-07 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420083', 'tblTempVendorCDR_20' ) end [2025-02-07 04:58:19] Production.INFO: ProcessCDR(1,14420083,1,1,2) [2025-02-07 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420083', 'tblTempUsageDetail_20' ) start [2025-02-07 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420083', 'tblTempUsageDetail_20' ) end [2025-02-07 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:58:22] Production.INFO: ==30889== Releasing lock... [2025-02-07 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 01:59:05 [end_date_ymd] => 2025-02-07 04:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 01:59:05' and `end` < '2025-02-07 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-07 04:59:19] Production.INFO: count ==195 [2025-02-07 04:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 01:59:05 - End Time 2025-02-07 04:59:05 [2025-02-07 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420088', 'tblTempUsageDetail_20' ) start [2025-02-07 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420088', 'tblTempUsageDetail_20' ) end [2025-02-07 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420088', 'tblTempVendorCDR_20' ) start [2025-02-07 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420088', 'tblTempVendorCDR_20' ) end [2025-02-07 04:59:19] Production.INFO: ProcessCDR(1,14420088,1,1,2) [2025-02-07 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420088', 'tblTempUsageDetail_20' ) start [2025-02-07 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420088', 'tblTempUsageDetail_20' ) end [2025-02-07 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 04:59:22] Production.INFO: ==30960== Releasing lock... [2025-02-07 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 04:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:00:06 [end_date_ymd] => 2025-02-07 05:00:06 [RateCDR] => 1 ) [2025-02-07 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-07 02:00:06' and `end` < '2025-02-07 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-07 05:00:20] Production.INFO: count ==190 [2025-02-07 05:00:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:00:06 - End Time 2025-02-07 05:00:06 [2025-02-07 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420094', 'tblTempUsageDetail_20' ) start [2025-02-07 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420094', 'tblTempUsageDetail_20' ) end [2025-02-07 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420094', 'tblTempVendorCDR_20' ) start [2025-02-07 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420094', 'tblTempVendorCDR_20' ) end [2025-02-07 05:00:21] Production.INFO: ProcessCDR(1,14420094,1,1,2) [2025-02-07 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420094', 'tblTempUsageDetail_20' ) start [2025-02-07 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420094', 'tblTempUsageDetail_20' ) end [2025-02-07 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:00:24] Production.INFO: ==31034== Releasing lock... [2025-02-07 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:00:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:01:06 [end_date_ymd] => 2025-02-07 05:01:06 [RateCDR] => 1 ) [2025-02-07 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:01:06' and `end` < '2025-02-07 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:01:20] Production.INFO: count ==190 [2025-02-07 05:01:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:01:06 - End Time 2025-02-07 05:01:06 [2025-02-07 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420099', 'tblTempUsageDetail_20' ) start [2025-02-07 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420099', 'tblTempUsageDetail_20' ) end [2025-02-07 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420099', 'tblTempVendorCDR_20' ) start [2025-02-07 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420099', 'tblTempVendorCDR_20' ) end [2025-02-07 05:01:20] Production.INFO: ProcessCDR(1,14420099,1,1,2) [2025-02-07 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420099', 'tblTempUsageDetail_20' ) start [2025-02-07 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420099', 'tblTempUsageDetail_20' ) end [2025-02-07 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:01:23] Production.INFO: ==31121== Releasing lock... [2025-02-07 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:01:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:02:05 [end_date_ymd] => 2025-02-07 05:02:05 [RateCDR] => 1 ) [2025-02-07 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:02:05' and `end` < '2025-02-07 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:02:19] Production.INFO: count ==190 [2025-02-07 05:02:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:02:05 - End Time 2025-02-07 05:02:05 [2025-02-07 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420104', 'tblTempUsageDetail_20' ) start [2025-02-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420104', 'tblTempUsageDetail_20' ) end [2025-02-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420104', 'tblTempVendorCDR_20' ) start [2025-02-07 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420104', 'tblTempVendorCDR_20' ) end [2025-02-07 05:02:19] Production.INFO: ProcessCDR(1,14420104,1,1,2) [2025-02-07 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420104', 'tblTempUsageDetail_20' ) start [2025-02-07 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420104', 'tblTempUsageDetail_20' ) end [2025-02-07 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:02:23] Production.INFO: ==31190== Releasing lock... [2025-02-07 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:03:06 [end_date_ymd] => 2025-02-07 05:03:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:03:06' and `end` < '2025-02-07 05: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-07 05:03:21] Production.INFO: count ==187 [2025-02-07 05:03:21] Production.ERROR: pbx CDR StartTime 2025-02-07 02:03:06 - End Time 2025-02-07 05:03:06 [2025-02-07 05:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420109', 'tblTempUsageDetail_20' ) start [2025-02-07 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420109', 'tblTempUsageDetail_20' ) end [2025-02-07 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420109', 'tblTempVendorCDR_20' ) start [2025-02-07 05:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420109', 'tblTempVendorCDR_20' ) end [2025-02-07 05:03:21] Production.INFO: ProcessCDR(1,14420109,1,1,2) [2025-02-07 05:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420109', 'tblTempUsageDetail_20' ) start [2025-02-07 05:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420109', 'tblTempUsageDetail_20' ) end [2025-02-07 05:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:03:25] Production.INFO: ==31264== Releasing lock... [2025-02-07 05:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:03:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:04:05 [end_date_ymd] => 2025-02-07 05:04:05 [RateCDR] => 1 ) [2025-02-07 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:04:05' and `end` < '2025-02-07 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:04:20] Production.INFO: count ==187 [2025-02-07 05:04:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:04:05 - End Time 2025-02-07 05:04:05 [2025-02-07 05:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420114', 'tblTempUsageDetail_20' ) start [2025-02-07 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420114', 'tblTempUsageDetail_20' ) end [2025-02-07 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420114', 'tblTempVendorCDR_20' ) start [2025-02-07 05:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420114', 'tblTempVendorCDR_20' ) end [2025-02-07 05:04:20] Production.INFO: ProcessCDR(1,14420114,1,1,2) [2025-02-07 05:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420114', 'tblTempUsageDetail_20' ) start [2025-02-07 05:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420114', 'tblTempUsageDetail_20' ) end [2025-02-07 05:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:04:24] Production.INFO: ==31334== Releasing lock... [2025-02-07 05:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:04:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:05:06 [end_date_ymd] => 2025-02-07 05:05:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:05:06' and `end` < '2025-02-07 05: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-07 05:05:19] Production.INFO: count ==187 [2025-02-07 05:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:05:06 - End Time 2025-02-07 05:05:06 [2025-02-07 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420119', 'tblTempUsageDetail_20' ) start [2025-02-07 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420119', 'tblTempUsageDetail_20' ) end [2025-02-07 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420119', 'tblTempVendorCDR_20' ) start [2025-02-07 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420119', 'tblTempVendorCDR_20' ) end [2025-02-07 05:05:19] Production.INFO: ProcessCDR(1,14420119,1,1,2) [2025-02-07 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420119', 'tblTempUsageDetail_20' ) start [2025-02-07 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420119', 'tblTempUsageDetail_20' ) end [2025-02-07 05:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:05:23] Production.INFO: ==31449== Releasing lock... [2025-02-07 05:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:05:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:06:05 [end_date_ymd] => 2025-02-07 05:06:05 [RateCDR] => 1 ) [2025-02-07 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:06:05' and `end` < '2025-02-07 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:06:19] Production.INFO: count ==187 [2025-02-07 05:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:06:05 - End Time 2025-02-07 05:06:05 [2025-02-07 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420124', 'tblTempUsageDetail_20' ) start [2025-02-07 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420124', 'tblTempUsageDetail_20' ) end [2025-02-07 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420124', 'tblTempVendorCDR_20' ) start [2025-02-07 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420124', 'tblTempVendorCDR_20' ) end [2025-02-07 05:06:19] Production.INFO: ProcessCDR(1,14420124,1,1,2) [2025-02-07 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420124', 'tblTempUsageDetail_20' ) start [2025-02-07 05:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420124', 'tblTempUsageDetail_20' ) end [2025-02-07 05:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:06:23] Production.INFO: ==31519== Releasing lock... [2025-02-07 05:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:06:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:07:06 [end_date_ymd] => 2025-02-07 05:07:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:07:06' and `end` < '2025-02-07 05: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-07 05:07:19] Production.INFO: count ==190 [2025-02-07 05:07:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:07:06 - End Time 2025-02-07 05:07:06 [2025-02-07 05:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420129', 'tblTempUsageDetail_20' ) start [2025-02-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420129', 'tblTempUsageDetail_20' ) end [2025-02-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420129', 'tblTempVendorCDR_20' ) start [2025-02-07 05:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420129', 'tblTempVendorCDR_20' ) end [2025-02-07 05:07:19] Production.INFO: ProcessCDR(1,14420129,1,1,2) [2025-02-07 05:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420129', 'tblTempUsageDetail_20' ) start [2025-02-07 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420129', 'tblTempUsageDetail_20' ) end [2025-02-07 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:07:22] Production.INFO: ==31594== Releasing lock... [2025-02-07 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:08:05 [end_date_ymd] => 2025-02-07 05:08:05 [RateCDR] => 1 ) [2025-02-07 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:08:05' and `end` < '2025-02-07 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:08:18] Production.INFO: count ==190 [2025-02-07 05:08:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:08:05 - End Time 2025-02-07 05:08:05 [2025-02-07 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420134', 'tblTempUsageDetail_20' ) start [2025-02-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420134', 'tblTempUsageDetail_20' ) end [2025-02-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420134', 'tblTempVendorCDR_20' ) start [2025-02-07 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420134', 'tblTempVendorCDR_20' ) end [2025-02-07 05:08:18] Production.INFO: ProcessCDR(1,14420134,1,1,2) [2025-02-07 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420134', 'tblTempUsageDetail_20' ) start [2025-02-07 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420134', 'tblTempUsageDetail_20' ) end [2025-02-07 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:08:22] Production.INFO: ==31664== Releasing lock... [2025-02-07 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:09:05 [end_date_ymd] => 2025-02-07 05:09:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:09:05' and `end` < '2025-02-07 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-07 05:09:18] Production.INFO: count ==193 [2025-02-07 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:09:05 - End Time 2025-02-07 05:09:05 [2025-02-07 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420139', 'tblTempUsageDetail_20' ) start [2025-02-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420139', 'tblTempUsageDetail_20' ) end [2025-02-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420139', 'tblTempVendorCDR_20' ) start [2025-02-07 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420139', 'tblTempVendorCDR_20' ) end [2025-02-07 05:09:18] Production.INFO: ProcessCDR(1,14420139,1,1,2) [2025-02-07 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420139', 'tblTempUsageDetail_20' ) start [2025-02-07 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420139', 'tblTempUsageDetail_20' ) end [2025-02-07 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:09:22] Production.INFO: ==31735== Releasing lock... [2025-02-07 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:10:06 [end_date_ymd] => 2025-02-07 05:10:06 [RateCDR] => 1 ) [2025-02-07 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:10:06' and `end` < '2025-02-07 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-07 05:10:20] Production.INFO: count ==191 [2025-02-07 05:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:10:06 - End Time 2025-02-07 05:10:06 [2025-02-07 05:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420145', 'tblTempUsageDetail_20' ) start [2025-02-07 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420145', 'tblTempUsageDetail_20' ) end [2025-02-07 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420145', 'tblTempVendorCDR_20' ) start [2025-02-07 05:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420145', 'tblTempVendorCDR_20' ) end [2025-02-07 05:10:20] Production.INFO: ProcessCDR(1,14420145,1,1,2) [2025-02-07 05:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420145', 'tblTempUsageDetail_20' ) start [2025-02-07 05:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420145', 'tblTempUsageDetail_20' ) end [2025-02-07 05:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:10:24] Production.INFO: ==31812== Releasing lock... [2025-02-07 05:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:10:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:11:06 [end_date_ymd] => 2025-02-07 05:11:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:11:06' and `end` < '2025-02-07 05: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-07 05:11:19] Production.INFO: count ==178 [2025-02-07 05:11:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:11:06 - End Time 2025-02-07 05:11:06 [2025-02-07 05:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420150', 'tblTempUsageDetail_20' ) start [2025-02-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420150', 'tblTempUsageDetail_20' ) end [2025-02-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420150', 'tblTempVendorCDR_20' ) start [2025-02-07 05:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420150', 'tblTempVendorCDR_20' ) end [2025-02-07 05:11:19] Production.INFO: ProcessCDR(1,14420150,1,1,2) [2025-02-07 05:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420150', 'tblTempUsageDetail_20' ) start [2025-02-07 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420150', 'tblTempUsageDetail_20' ) end [2025-02-07 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:11:22] Production.INFO: ==31895== Releasing lock... [2025-02-07 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:12:06 [end_date_ymd] => 2025-02-07 05:12:06 [RateCDR] => 1 ) [2025-02-07 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-07 02:12:06' and `end` < '2025-02-07 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-07 05:12:19] Production.INFO: count ==178 [2025-02-07 05:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:12:06 - End Time 2025-02-07 05:12:06 [2025-02-07 05:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420155', 'tblTempUsageDetail_20' ) start [2025-02-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420155', 'tblTempUsageDetail_20' ) end [2025-02-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420155', 'tblTempVendorCDR_20' ) start [2025-02-07 05:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420155', 'tblTempVendorCDR_20' ) end [2025-02-07 05:12:19] Production.INFO: ProcessCDR(1,14420155,1,1,2) [2025-02-07 05:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420155', 'tblTempUsageDetail_20' ) start [2025-02-07 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420155', 'tblTempUsageDetail_20' ) end [2025-02-07 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:12:22] Production.INFO: ==31966== Releasing lock... [2025-02-07 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:12:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:13:06 [end_date_ymd] => 2025-02-07 05:13:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:13:06' and `end` < '2025-02-07 05: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-07 05:13:19] Production.INFO: count ==178 [2025-02-07 05:13:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:13:06 - End Time 2025-02-07 05:13:06 [2025-02-07 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420160', 'tblTempUsageDetail_20' ) start [2025-02-07 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420160', 'tblTempUsageDetail_20' ) end [2025-02-07 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420160', 'tblTempVendorCDR_20' ) start [2025-02-07 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420160', 'tblTempVendorCDR_20' ) end [2025-02-07 05:13:19] Production.INFO: ProcessCDR(1,14420160,1,1,2) [2025-02-07 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420160', 'tblTempUsageDetail_20' ) start [2025-02-07 05:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420160', 'tblTempUsageDetail_20' ) end [2025-02-07 05:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:13:23] Production.INFO: ==32040== Releasing lock... [2025-02-07 05:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:13:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:14:05 [end_date_ymd] => 2025-02-07 05:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:14:05' and `end` < '2025-02-07 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-07 05:14:18] Production.INFO: count ==178 [2025-02-07 05:14:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:14:05 - End Time 2025-02-07 05:14:05 [2025-02-07 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420165', 'tblTempUsageDetail_20' ) start [2025-02-07 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420165', 'tblTempUsageDetail_20' ) end [2025-02-07 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420165', 'tblTempVendorCDR_20' ) start [2025-02-07 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420165', 'tblTempVendorCDR_20' ) end [2025-02-07 05:14:18] Production.INFO: ProcessCDR(1,14420165,1,1,2) [2025-02-07 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420165', 'tblTempUsageDetail_20' ) start [2025-02-07 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420165', 'tblTempUsageDetail_20' ) end [2025-02-07 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:14:22] Production.INFO: ==32114== Releasing lock... [2025-02-07 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:15:06 [end_date_ymd] => 2025-02-07 05:15:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:15:06' and `end` < '2025-02-07 05: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-07 05:15:18] Production.INFO: count ==178 [2025-02-07 05:15:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:15:06 - End Time 2025-02-07 05:15:06 [2025-02-07 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420170', 'tblTempUsageDetail_20' ) start [2025-02-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420170', 'tblTempUsageDetail_20' ) end [2025-02-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420170', 'tblTempVendorCDR_20' ) start [2025-02-07 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420170', 'tblTempVendorCDR_20' ) end [2025-02-07 05:15:18] Production.INFO: ProcessCDR(1,14420170,1,1,2) [2025-02-07 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420170', 'tblTempUsageDetail_20' ) start [2025-02-07 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420170', 'tblTempUsageDetail_20' ) end [2025-02-07 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:15:22] Production.INFO: ==32185== Releasing lock... [2025-02-07 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:15:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:16:05 [end_date_ymd] => 2025-02-07 05:16:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:16:05' and `end` < '2025-02-07 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-07 05:16:19] Production.INFO: count ==178 [2025-02-07 05:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:16:05 - End Time 2025-02-07 05:16:05 [2025-02-07 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420175', 'tblTempUsageDetail_20' ) start [2025-02-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420175', 'tblTempUsageDetail_20' ) end [2025-02-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420175', 'tblTempVendorCDR_20' ) start [2025-02-07 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420175', 'tblTempVendorCDR_20' ) end [2025-02-07 05:16:19] Production.INFO: ProcessCDR(1,14420175,1,1,2) [2025-02-07 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420175', 'tblTempUsageDetail_20' ) start [2025-02-07 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420175', 'tblTempUsageDetail_20' ) end [2025-02-07 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:16:22] Production.INFO: ==32257== Releasing lock... [2025-02-07 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:17:06 [end_date_ymd] => 2025-02-07 05:17:06 [RateCDR] => 1 ) [2025-02-07 05:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:17:06' and `end` < '2025-02-07 05:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:17:19] Production.INFO: count ==178 [2025-02-07 05:17:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:17:06 - End Time 2025-02-07 05:17:06 [2025-02-07 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420180', 'tblTempUsageDetail_20' ) start [2025-02-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420180', 'tblTempUsageDetail_20' ) end [2025-02-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420180', 'tblTempVendorCDR_20' ) start [2025-02-07 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420180', 'tblTempVendorCDR_20' ) end [2025-02-07 05:17:19] Production.INFO: ProcessCDR(1,14420180,1,1,2) [2025-02-07 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420180', 'tblTempUsageDetail_20' ) start [2025-02-07 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420180', 'tblTempUsageDetail_20' ) end [2025-02-07 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:17:23] Production.INFO: ==32333== Releasing lock... [2025-02-07 05:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:17:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:18:06 [end_date_ymd] => 2025-02-07 05:18:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:18:06' and `end` < '2025-02-07 05: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-07 05:18:19] Production.INFO: count ==178 [2025-02-07 05:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:18:06 - End Time 2025-02-07 05:18:06 [2025-02-07 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420185', 'tblTempUsageDetail_20' ) start [2025-02-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420185', 'tblTempUsageDetail_20' ) end [2025-02-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420185', 'tblTempVendorCDR_20' ) start [2025-02-07 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420185', 'tblTempVendorCDR_20' ) end [2025-02-07 05:18:19] Production.INFO: ProcessCDR(1,14420185,1,1,2) [2025-02-07 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420185', 'tblTempUsageDetail_20' ) start [2025-02-07 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420185', 'tblTempUsageDetail_20' ) end [2025-02-07 05:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:18:23] Production.INFO: ==32409== Releasing lock... [2025-02-07 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:18:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:19:05 [end_date_ymd] => 2025-02-07 05:19:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:19:05' and `end` < '2025-02-07 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-07 05:19:19] Production.INFO: count ==178 [2025-02-07 05:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:19:05 - End Time 2025-02-07 05:19:05 [2025-02-07 05:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420190', 'tblTempUsageDetail_20' ) start [2025-02-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420190', 'tblTempUsageDetail_20' ) end [2025-02-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420190', 'tblTempVendorCDR_20' ) start [2025-02-07 05:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420190', 'tblTempVendorCDR_20' ) end [2025-02-07 05:19:19] Production.INFO: ProcessCDR(1,14420190,1,1,2) [2025-02-07 05:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420190', 'tblTempUsageDetail_20' ) start [2025-02-07 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420190', 'tblTempUsageDetail_20' ) end [2025-02-07 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:19:22] Production.INFO: ==32483== Releasing lock... [2025-02-07 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:19:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:20:06 [end_date_ymd] => 2025-02-07 05:20:06 [RateCDR] => 1 ) [2025-02-07 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:20:06' and `end` < '2025-02-07 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:20:19] Production.INFO: count ==174 [2025-02-07 05:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:20:06 - End Time 2025-02-07 05:20:06 [2025-02-07 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420195', 'tblTempUsageDetail_20' ) start [2025-02-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420195', 'tblTempUsageDetail_20' ) end [2025-02-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420195', 'tblTempVendorCDR_20' ) start [2025-02-07 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420195', 'tblTempVendorCDR_20' ) end [2025-02-07 05:20:19] Production.INFO: ProcessCDR(1,14420195,1,1,2) [2025-02-07 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420195', 'tblTempUsageDetail_20' ) start [2025-02-07 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420195', 'tblTempUsageDetail_20' ) end [2025-02-07 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:20:23] Production.INFO: ==32558== Releasing lock... [2025-02-07 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:21:06 [end_date_ymd] => 2025-02-07 05:21:06 [RateCDR] => 1 ) [2025-02-07 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-07 02:21:06' and `end` < '2025-02-07 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-07 05:21:19] Production.INFO: count ==172 [2025-02-07 05:21:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:21:06 - End Time 2025-02-07 05:21:06 [2025-02-07 05:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420201', 'tblTempUsageDetail_20' ) start [2025-02-07 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420201', 'tblTempUsageDetail_20' ) end [2025-02-07 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420201', 'tblTempVendorCDR_20' ) start [2025-02-07 05:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420201', 'tblTempVendorCDR_20' ) end [2025-02-07 05:21:19] Production.INFO: ProcessCDR(1,14420201,1,1,2) [2025-02-07 05:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420201', 'tblTempUsageDetail_20' ) start [2025-02-07 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420201', 'tblTempUsageDetail_20' ) end [2025-02-07 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:21:22] Production.INFO: ==32673== Releasing lock... [2025-02-07 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:22:06 [end_date_ymd] => 2025-02-07 05:22:06 [RateCDR] => 1 ) [2025-02-07 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:22:06' and `end` < '2025-02-07 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:22:19] Production.INFO: count ==169 [2025-02-07 05:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:22:06 - End Time 2025-02-07 05:22:06 [2025-02-07 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420206', 'tblTempUsageDetail_20' ) start [2025-02-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420206', 'tblTempUsageDetail_20' ) end [2025-02-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420206', 'tblTempVendorCDR_20' ) start [2025-02-07 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420206', 'tblTempVendorCDR_20' ) end [2025-02-07 05:22:19] Production.INFO: ProcessCDR(1,14420206,1,1,2) [2025-02-07 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420206', 'tblTempUsageDetail_20' ) start [2025-02-07 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420206', 'tblTempUsageDetail_20' ) end [2025-02-07 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:22:23] Production.INFO: ==32747== Releasing lock... [2025-02-07 05:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:22:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:23:05 [end_date_ymd] => 2025-02-07 05:23:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:23:05' and `end` < '2025-02-07 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-07 05:23:18] Production.INFO: count ==169 [2025-02-07 05:23:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:23:05 - End Time 2025-02-07 05:23:05 [2025-02-07 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420211', 'tblTempUsageDetail_20' ) start [2025-02-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420211', 'tblTempUsageDetail_20' ) end [2025-02-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420211', 'tblTempVendorCDR_20' ) start [2025-02-07 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420211', 'tblTempVendorCDR_20' ) end [2025-02-07 05:23:18] Production.INFO: ProcessCDR(1,14420211,1,1,2) [2025-02-07 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420211', 'tblTempUsageDetail_20' ) start [2025-02-07 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420211', 'tblTempUsageDetail_20' ) end [2025-02-07 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:23:21] Production.INFO: ==375== Releasing lock... [2025-02-07 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:24:05 [end_date_ymd] => 2025-02-07 05:24:05 [RateCDR] => 1 ) [2025-02-07 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:24:05' and `end` < '2025-02-07 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:24:19] Production.INFO: count ==169 [2025-02-07 05:24:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:24:05 - End Time 2025-02-07 05:24:05 [2025-02-07 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420216', 'tblTempUsageDetail_20' ) start [2025-02-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420216', 'tblTempUsageDetail_20' ) end [2025-02-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420216', 'tblTempVendorCDR_20' ) start [2025-02-07 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420216', 'tblTempVendorCDR_20' ) end [2025-02-07 05:24:19] Production.INFO: ProcessCDR(1,14420216,1,1,2) [2025-02-07 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420216', 'tblTempUsageDetail_20' ) start [2025-02-07 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420216', 'tblTempUsageDetail_20' ) end [2025-02-07 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:24:22] Production.INFO: ==455== Releasing lock... [2025-02-07 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:25:05 [end_date_ymd] => 2025-02-07 05:25:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:25:05' and `end` < '2025-02-07 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-07 05:25:18] Production.INFO: count ==168 [2025-02-07 05:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:25:05 - End Time 2025-02-07 05:25:05 [2025-02-07 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420221', 'tblTempUsageDetail_20' ) start [2025-02-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420221', 'tblTempUsageDetail_20' ) end [2025-02-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420221', 'tblTempVendorCDR_20' ) start [2025-02-07 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420221', 'tblTempVendorCDR_20' ) end [2025-02-07 05:25:18] Production.INFO: ProcessCDR(1,14420221,1,1,2) [2025-02-07 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420221', 'tblTempUsageDetail_20' ) start [2025-02-07 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420221', 'tblTempUsageDetail_20' ) end [2025-02-07 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:25:21] Production.INFO: ==533== Releasing lock... [2025-02-07 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:26:05 [end_date_ymd] => 2025-02-07 05:26:05 [RateCDR] => 1 ) [2025-02-07 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:26:05' and `end` < '2025-02-07 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:26:19] Production.INFO: count ==168 [2025-02-07 05:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:26:05 - End Time 2025-02-07 05:26:05 [2025-02-07 05:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420226', 'tblTempUsageDetail_20' ) start [2025-02-07 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420226', 'tblTempUsageDetail_20' ) end [2025-02-07 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420226', 'tblTempVendorCDR_20' ) start [2025-02-07 05:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420226', 'tblTempVendorCDR_20' ) end [2025-02-07 05:26:19] Production.INFO: ProcessCDR(1,14420226,1,1,2) [2025-02-07 05:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420226', 'tblTempUsageDetail_20' ) start [2025-02-07 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420226', 'tblTempUsageDetail_20' ) end [2025-02-07 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:26:22] Production.INFO: ==611== Releasing lock... [2025-02-07 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:27:05 [end_date_ymd] => 2025-02-07 05:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:27:05' and `end` < '2025-02-07 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-07 05:27:19] Production.INFO: count ==166 [2025-02-07 05:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:27:05 - End Time 2025-02-07 05:27:05 [2025-02-07 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420231', 'tblTempUsageDetail_20' ) start [2025-02-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420231', 'tblTempUsageDetail_20' ) end [2025-02-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420231', 'tblTempVendorCDR_20' ) start [2025-02-07 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420231', 'tblTempVendorCDR_20' ) end [2025-02-07 05:27:19] Production.INFO: ProcessCDR(1,14420231,1,1,2) [2025-02-07 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420231', 'tblTempUsageDetail_20' ) start [2025-02-07 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420231', 'tblTempUsageDetail_20' ) end [2025-02-07 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:27:22] Production.INFO: ==712== Releasing lock... [2025-02-07 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:27:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:28:05 [end_date_ymd] => 2025-02-07 05:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:28:05' and `end` < '2025-02-07 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-07 05:28:18] Production.INFO: count ==165 [2025-02-07 05:28:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:28:05 - End Time 2025-02-07 05:28:05 [2025-02-07 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420236', 'tblTempUsageDetail_20' ) start [2025-02-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420236', 'tblTempUsageDetail_20' ) end [2025-02-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420236', 'tblTempVendorCDR_20' ) start [2025-02-07 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420236', 'tblTempVendorCDR_20' ) end [2025-02-07 05:28:18] Production.INFO: ProcessCDR(1,14420236,1,1,2) [2025-02-07 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420236', 'tblTempUsageDetail_20' ) start [2025-02-07 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420236', 'tblTempUsageDetail_20' ) end [2025-02-07 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:28:21] Production.INFO: ==788== Releasing lock... [2025-02-07 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:29:06 [end_date_ymd] => 2025-02-07 05:29:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:29:06' and `end` < '2025-02-07 05: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-07 05:29:19] Production.INFO: count ==165 [2025-02-07 05:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:29:06 - End Time 2025-02-07 05:29:06 [2025-02-07 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420241', 'tblTempUsageDetail_20' ) start [2025-02-07 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420241', 'tblTempUsageDetail_20' ) end [2025-02-07 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420241', 'tblTempVendorCDR_20' ) start [2025-02-07 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420241', 'tblTempVendorCDR_20' ) end [2025-02-07 05:29:19] Production.INFO: ProcessCDR(1,14420241,1,1,2) [2025-02-07 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420241', 'tblTempUsageDetail_20' ) start [2025-02-07 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420241', 'tblTempUsageDetail_20' ) end [2025-02-07 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:29:22] Production.INFO: ==865== Releasing lock... [2025-02-07 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:30:05 [end_date_ymd] => 2025-02-07 05:30:05 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:30:05' and `end` < '2025-02-07 05: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-07 05:30:19] Production.INFO: count ==160 [2025-02-07 05:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:30:05 - End Time 2025-02-07 05:30:05 [2025-02-07 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420246', 'tblTempUsageDetail_20' ) start [2025-02-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420246', 'tblTempUsageDetail_20' ) end [2025-02-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420246', 'tblTempVendorCDR_20' ) start [2025-02-07 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420246', 'tblTempVendorCDR_20' ) end [2025-02-07 05:30:19] Production.INFO: ProcessCDR(1,14420246,1,1,2) [2025-02-07 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420246', 'tblTempUsageDetail_20' ) start [2025-02-07 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420246', 'tblTempUsageDetail_20' ) end [2025-02-07 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:30:22] Production.INFO: ==942== Releasing lock... [2025-02-07 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:31:05 [end_date_ymd] => 2025-02-07 05:31:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:31:05' and `end` < '2025-02-07 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-07 05:31:18] Production.INFO: count ==157 [2025-02-07 05:31:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:31:05 - End Time 2025-02-07 05:31:05 [2025-02-07 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420252', 'tblTempUsageDetail_20' ) start [2025-02-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420252', 'tblTempUsageDetail_20' ) end [2025-02-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420252', 'tblTempVendorCDR_20' ) start [2025-02-07 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420252', 'tblTempVendorCDR_20' ) end [2025-02-07 05:31:18] Production.INFO: ProcessCDR(1,14420252,1,1,2) [2025-02-07 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420252', 'tblTempUsageDetail_20' ) start [2025-02-07 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420252', 'tblTempUsageDetail_20' ) end [2025-02-07 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:31:21] Production.INFO: ==1060== Releasing lock... [2025-02-07 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:32:05 [end_date_ymd] => 2025-02-07 05:32:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:32:05' and `end` < '2025-02-07 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-07 05:32:18] Production.INFO: count ==156 [2025-02-07 05:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:32:05 - End Time 2025-02-07 05:32:05 [2025-02-07 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420257', 'tblTempUsageDetail_20' ) start [2025-02-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420257', 'tblTempUsageDetail_20' ) end [2025-02-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420257', 'tblTempVendorCDR_20' ) start [2025-02-07 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420257', 'tblTempVendorCDR_20' ) end [2025-02-07 05:32:18] Production.INFO: ProcessCDR(1,14420257,1,1,2) [2025-02-07 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420257', 'tblTempUsageDetail_20' ) start [2025-02-07 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420257', 'tblTempUsageDetail_20' ) end [2025-02-07 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:32:22] Production.INFO: ==1143== Releasing lock... [2025-02-07 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:33:06 [end_date_ymd] => 2025-02-07 05:33:06 [RateCDR] => 1 ) [2025-02-07 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:33:06' and `end` < '2025-02-07 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:33:19] Production.INFO: count ==158 [2025-02-07 05:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:33:06 - End Time 2025-02-07 05:33:06 [2025-02-07 05:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420262', 'tblTempUsageDetail_20' ) start [2025-02-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420262', 'tblTempUsageDetail_20' ) end [2025-02-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420262', 'tblTempVendorCDR_20' ) start [2025-02-07 05:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420262', 'tblTempVendorCDR_20' ) end [2025-02-07 05:33:19] Production.INFO: ProcessCDR(1,14420262,1,1,2) [2025-02-07 05:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420262', 'tblTempUsageDetail_20' ) start [2025-02-07 05:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420262', 'tblTempUsageDetail_20' ) end [2025-02-07 05:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:33:22] Production.INFO: ==1223== Releasing lock... [2025-02-07 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:34:06 [end_date_ymd] => 2025-02-07 05:34:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:34:06' and `end` < '2025-02-07 05: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-07 05:34:19] Production.INFO: count ==158 [2025-02-07 05:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:34:06 - End Time 2025-02-07 05:34:06 [2025-02-07 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420267', 'tblTempUsageDetail_20' ) start [2025-02-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420267', 'tblTempUsageDetail_20' ) end [2025-02-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420267', 'tblTempVendorCDR_20' ) start [2025-02-07 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420267', 'tblTempVendorCDR_20' ) end [2025-02-07 05:34:19] Production.INFO: ProcessCDR(1,14420267,1,1,2) [2025-02-07 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420267', 'tblTempUsageDetail_20' ) start [2025-02-07 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420267', 'tblTempUsageDetail_20' ) end [2025-02-07 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:34:22] Production.INFO: ==1311== Releasing lock... [2025-02-07 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:35:05 [end_date_ymd] => 2025-02-07 05:35:05 [RateCDR] => 1 ) [2025-02-07 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:35:05' and `end` < '2025-02-07 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:35:18] Production.INFO: count ==158 [2025-02-07 05:35:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:35:05 - End Time 2025-02-07 05:35:05 [2025-02-07 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420272', 'tblTempUsageDetail_20' ) start [2025-02-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420272', 'tblTempUsageDetail_20' ) end [2025-02-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420272', 'tblTempVendorCDR_20' ) start [2025-02-07 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420272', 'tblTempVendorCDR_20' ) end [2025-02-07 05:35:18] Production.INFO: ProcessCDR(1,14420272,1,1,2) [2025-02-07 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420272', 'tblTempUsageDetail_20' ) start [2025-02-07 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420272', 'tblTempUsageDetail_20' ) end [2025-02-07 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:35:21] Production.INFO: ==1385== Releasing lock... [2025-02-07 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:36:06 [end_date_ymd] => 2025-02-07 05:36:06 [RateCDR] => 1 ) [2025-02-07 05:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:36:06' and `end` < '2025-02-07 05:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:36:19] Production.INFO: count ==158 [2025-02-07 05:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:36:06 - End Time 2025-02-07 05:36:06 [2025-02-07 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420277', 'tblTempUsageDetail_20' ) start [2025-02-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420277', 'tblTempUsageDetail_20' ) end [2025-02-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420277', 'tblTempVendorCDR_20' ) start [2025-02-07 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420277', 'tblTempVendorCDR_20' ) end [2025-02-07 05:36:19] Production.INFO: ProcessCDR(1,14420277,1,1,2) [2025-02-07 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420277', 'tblTempUsageDetail_20' ) start [2025-02-07 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420277', 'tblTempUsageDetail_20' ) end [2025-02-07 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:36:22] Production.INFO: ==1497== Releasing lock... [2025-02-07 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:37:05 [end_date_ymd] => 2025-02-07 05:37:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:37:05' and `end` < '2025-02-07 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-07 05:37:18] Production.INFO: count ==158 [2025-02-07 05:37:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:37:05 - End Time 2025-02-07 05:37:05 [2025-02-07 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420282', 'tblTempUsageDetail_20' ) start [2025-02-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420282', 'tblTempUsageDetail_20' ) end [2025-02-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420282', 'tblTempVendorCDR_20' ) start [2025-02-07 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420282', 'tblTempVendorCDR_20' ) end [2025-02-07 05:37:18] Production.INFO: ProcessCDR(1,14420282,1,1,2) [2025-02-07 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420282', 'tblTempUsageDetail_20' ) start [2025-02-07 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420282', 'tblTempUsageDetail_20' ) end [2025-02-07 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:37:22] Production.INFO: ==1610== Releasing lock... [2025-02-07 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:38:06 [end_date_ymd] => 2025-02-07 05:38:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:38:06' and `end` < '2025-02-07 05: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-07 05:38:19] Production.INFO: count ==156 [2025-02-07 05:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:38:06 - End Time 2025-02-07 05:38:06 [2025-02-07 05:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420287', 'tblTempUsageDetail_20' ) start [2025-02-07 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420287', 'tblTempUsageDetail_20' ) end [2025-02-07 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420287', 'tblTempVendorCDR_20' ) start [2025-02-07 05:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420287', 'tblTempVendorCDR_20' ) end [2025-02-07 05:38:19] Production.INFO: ProcessCDR(1,14420287,1,1,2) [2025-02-07 05:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420287', 'tblTempUsageDetail_20' ) start [2025-02-07 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420287', 'tblTempUsageDetail_20' ) end [2025-02-07 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:38:22] Production.INFO: ==1694== Releasing lock... [2025-02-07 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:38:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:39:05 [end_date_ymd] => 2025-02-07 05:39:05 [RateCDR] => 1 ) [2025-02-07 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:39:05' and `end` < '2025-02-07 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:39:19] Production.INFO: count ==155 [2025-02-07 05:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:39:05 - End Time 2025-02-07 05:39:05 [2025-02-07 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420292', 'tblTempUsageDetail_20' ) start [2025-02-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420292', 'tblTempUsageDetail_20' ) end [2025-02-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420292', 'tblTempVendorCDR_20' ) start [2025-02-07 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420292', 'tblTempVendorCDR_20' ) end [2025-02-07 05:39:19] Production.INFO: ProcessCDR(1,14420292,1,1,2) [2025-02-07 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420292', 'tblTempUsageDetail_20' ) start [2025-02-07 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420292', 'tblTempUsageDetail_20' ) end [2025-02-07 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:39:22] Production.INFO: ==1770== Releasing lock... [2025-02-07 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:39:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:40:06 [end_date_ymd] => 2025-02-07 05:40:06 [RateCDR] => 1 ) [2025-02-07 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:40:06' and `end` < '2025-02-07 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 05:40:20] Production.INFO: count ==152 [2025-02-07 05:40:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:40:06 - End Time 2025-02-07 05:40:06 [2025-02-07 05:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420297', 'tblTempUsageDetail_20' ) start [2025-02-07 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420297', 'tblTempUsageDetail_20' ) end [2025-02-07 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420297', 'tblTempVendorCDR_20' ) start [2025-02-07 05:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420297', 'tblTempVendorCDR_20' ) end [2025-02-07 05:40:20] Production.INFO: ProcessCDR(1,14420297,1,1,2) [2025-02-07 05:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420297', 'tblTempUsageDetail_20' ) start [2025-02-07 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420297', 'tblTempUsageDetail_20' ) end [2025-02-07 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:40:23] Production.INFO: ==1852== Releasing lock... [2025-02-07 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:40:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:41:05 [end_date_ymd] => 2025-02-07 05:41:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:41:05' and `end` < '2025-02-07 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-07 05:41:18] Production.INFO: count ==141 [2025-02-07 05:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:41:05 - End Time 2025-02-07 05:41:05 [2025-02-07 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420303', 'tblTempUsageDetail_20' ) start [2025-02-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420303', 'tblTempUsageDetail_20' ) end [2025-02-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420303', 'tblTempVendorCDR_20' ) start [2025-02-07 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420303', 'tblTempVendorCDR_20' ) end [2025-02-07 05:41:18] Production.INFO: ProcessCDR(1,14420303,1,1,2) [2025-02-07 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420303', 'tblTempUsageDetail_20' ) start [2025-02-07 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420303', 'tblTempUsageDetail_20' ) end [2025-02-07 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:41:21] Production.INFO: ==1926== Releasing lock... [2025-02-07 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:42:05 [end_date_ymd] => 2025-02-07 05:42:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:42:05' and `end` < '2025-02-07 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-07 05:42:19] Production.INFO: count ==141 [2025-02-07 05:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:42:05 - End Time 2025-02-07 05:42:05 [2025-02-07 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420308', 'tblTempUsageDetail_20' ) start [2025-02-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420308', 'tblTempUsageDetail_20' ) end [2025-02-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420308', 'tblTempVendorCDR_20' ) start [2025-02-07 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420308', 'tblTempVendorCDR_20' ) end [2025-02-07 05:42:19] Production.INFO: ProcessCDR(1,14420308,1,1,2) [2025-02-07 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420308', 'tblTempUsageDetail_20' ) start [2025-02-07 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420308', 'tblTempUsageDetail_20' ) end [2025-02-07 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:42:22] Production.INFO: ==2006== Releasing lock... [2025-02-07 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:43:05 [end_date_ymd] => 2025-02-07 05:43:05 [RateCDR] => 1 ) [2025-02-07 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 02:43:05' and `end` < '2025-02-07 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-07 05:43:18] Production.INFO: count ==141 [2025-02-07 05:43:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:43:05 - End Time 2025-02-07 05:43:05 [2025-02-07 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420313', 'tblTempUsageDetail_20' ) start [2025-02-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420313', 'tblTempUsageDetail_20' ) end [2025-02-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420313', 'tblTempVendorCDR_20' ) start [2025-02-07 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420313', 'tblTempVendorCDR_20' ) end [2025-02-07 05:43:18] Production.INFO: ProcessCDR(1,14420313,1,1,2) [2025-02-07 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420313', 'tblTempUsageDetail_20' ) start [2025-02-07 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420313', 'tblTempUsageDetail_20' ) end [2025-02-07 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:43:21] Production.INFO: ==2083== Releasing lock... [2025-02-07 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:44:05 [end_date_ymd] => 2025-02-07 05:44:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:44:05' and `end` < '2025-02-07 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-07 05:44:18] Production.INFO: count ==141 [2025-02-07 05:44:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:44:05 - End Time 2025-02-07 05:44:05 [2025-02-07 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420318', 'tblTempUsageDetail_20' ) start [2025-02-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420318', 'tblTempUsageDetail_20' ) end [2025-02-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420318', 'tblTempVendorCDR_20' ) start [2025-02-07 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420318', 'tblTempVendorCDR_20' ) end [2025-02-07 05:44:18] Production.INFO: ProcessCDR(1,14420318,1,1,2) [2025-02-07 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420318', 'tblTempUsageDetail_20' ) start [2025-02-07 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420318', 'tblTempUsageDetail_20' ) end [2025-02-07 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:44:22] Production.INFO: ==2165== Releasing lock... [2025-02-07 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:45:06 [end_date_ymd] => 2025-02-07 05:45:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:45:06' and `end` < '2025-02-07 05: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-07 05:45:19] Production.INFO: count ==141 [2025-02-07 05:45:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:45:06 - End Time 2025-02-07 05:45:06 [2025-02-07 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420323', 'tblTempUsageDetail_20' ) start [2025-02-07 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420323', 'tblTempUsageDetail_20' ) end [2025-02-07 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420323', 'tblTempVendorCDR_20' ) start [2025-02-07 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420323', 'tblTempVendorCDR_20' ) end [2025-02-07 05:45:19] Production.INFO: ProcessCDR(1,14420323,1,1,2) [2025-02-07 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420323', 'tblTempUsageDetail_20' ) start [2025-02-07 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420323', 'tblTempUsageDetail_20' ) end [2025-02-07 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:45:22] Production.INFO: ==2245== Releasing lock... [2025-02-07 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:46:05 [end_date_ymd] => 2025-02-07 05:46:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:46:05' and `end` < '2025-02-07 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-07 05:46:19] Production.INFO: count ==141 [2025-02-07 05:46:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:46:05 - End Time 2025-02-07 05:46:05 [2025-02-07 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420328', 'tblTempUsageDetail_20' ) start [2025-02-07 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420328', 'tblTempUsageDetail_20' ) end [2025-02-07 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420328', 'tblTempVendorCDR_20' ) start [2025-02-07 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420328', 'tblTempVendorCDR_20' ) end [2025-02-07 05:46:19] Production.INFO: ProcessCDR(1,14420328,1,1,2) [2025-02-07 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420328', 'tblTempUsageDetail_20' ) start [2025-02-07 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420328', 'tblTempUsageDetail_20' ) end [2025-02-07 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:46:22] Production.INFO: ==2318== Releasing lock... [2025-02-07 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:46:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:47:05 [end_date_ymd] => 2025-02-07 05:47:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:47:05' and `end` < '2025-02-07 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-07 05:47:19] Production.INFO: count ==141 [2025-02-07 05:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:47:05 - End Time 2025-02-07 05:47:05 [2025-02-07 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420333', 'tblTempUsageDetail_20' ) start [2025-02-07 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420333', 'tblTempUsageDetail_20' ) end [2025-02-07 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420333', 'tblTempVendorCDR_20' ) start [2025-02-07 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420333', 'tblTempVendorCDR_20' ) end [2025-02-07 05:47:19] Production.INFO: ProcessCDR(1,14420333,1,1,2) [2025-02-07 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420333', 'tblTempUsageDetail_20' ) start [2025-02-07 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420333', 'tblTempUsageDetail_20' ) end [2025-02-07 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:47:21] Production.INFO: ==2397== Releasing lock... [2025-02-07 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:48:05 [end_date_ymd] => 2025-02-07 05:48:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:48:05' and `end` < '2025-02-07 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-07 05:48:18] Production.INFO: count ==141 [2025-02-07 05:48:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:48:05 - End Time 2025-02-07 05:48:05 [2025-02-07 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420338', 'tblTempUsageDetail_20' ) start [2025-02-07 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420338', 'tblTempUsageDetail_20' ) end [2025-02-07 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420338', 'tblTempVendorCDR_20' ) start [2025-02-07 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420338', 'tblTempVendorCDR_20' ) end [2025-02-07 05:48:18] Production.INFO: ProcessCDR(1,14420338,1,1,2) [2025-02-07 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420338', 'tblTempUsageDetail_20' ) start [2025-02-07 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420338', 'tblTempUsageDetail_20' ) end [2025-02-07 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:48:21] Production.INFO: ==2472== Releasing lock... [2025-02-07 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:49:05 [end_date_ymd] => 2025-02-07 05:49:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:49:05' and `end` < '2025-02-07 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-07 05:49:19] Production.INFO: count ==141 [2025-02-07 05:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:49:05 - End Time 2025-02-07 05:49:05 [2025-02-07 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420343', 'tblTempUsageDetail_20' ) start [2025-02-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420343', 'tblTempUsageDetail_20' ) end [2025-02-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420343', 'tblTempVendorCDR_20' ) start [2025-02-07 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420343', 'tblTempVendorCDR_20' ) end [2025-02-07 05:49:19] Production.INFO: ProcessCDR(1,14420343,1,1,2) [2025-02-07 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420343', 'tblTempUsageDetail_20' ) start [2025-02-07 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420343', 'tblTempUsageDetail_20' ) end [2025-02-07 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:49:22] Production.INFO: ==2548== Releasing lock... [2025-02-07 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:49:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:50:07 [end_date_ymd] => 2025-02-07 05:50:07 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:50:07' and `end` < '2025-02-07 05: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-07 05:50:20] Production.INFO: count ==142 [2025-02-07 05:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:50:07 - End Time 2025-02-07 05:50:07 [2025-02-07 05:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420349', 'tblTempUsageDetail_20' ) start [2025-02-07 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420349', 'tblTempUsageDetail_20' ) end [2025-02-07 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420349', 'tblTempVendorCDR_20' ) start [2025-02-07 05:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420349', 'tblTempVendorCDR_20' ) end [2025-02-07 05:50:20] Production.INFO: ProcessCDR(1,14420349,1,1,2) [2025-02-07 05:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420349', 'tblTempUsageDetail_20' ) start [2025-02-07 05:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420349', 'tblTempUsageDetail_20' ) end [2025-02-07 05:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:50:25] Production.INFO: ==2623== Releasing lock... [2025-02-07 05:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:50:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:51:05 [end_date_ymd] => 2025-02-07 05:51:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:51:05' and `end` < '2025-02-07 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-07 05:51:18] Production.INFO: count ==142 [2025-02-07 05:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:51:05 - End Time 2025-02-07 05:51:05 [2025-02-07 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420354', 'tblTempUsageDetail_20' ) start [2025-02-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420354', 'tblTempUsageDetail_20' ) end [2025-02-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420354', 'tblTempVendorCDR_20' ) start [2025-02-07 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420354', 'tblTempVendorCDR_20' ) end [2025-02-07 05:51:18] Production.INFO: ProcessCDR(1,14420354,1,1,2) [2025-02-07 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420354', 'tblTempUsageDetail_20' ) start [2025-02-07 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420354', 'tblTempUsageDetail_20' ) end [2025-02-07 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:51:21] Production.INFO: ==2701== Releasing lock... [2025-02-07 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:52:06 [end_date_ymd] => 2025-02-07 05:52:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:52:06' and `end` < '2025-02-07 05: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-07 05:52:18] Production.INFO: count ==142 [2025-02-07 05:52:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:52:06 - End Time 2025-02-07 05:52:06 [2025-02-07 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420359', 'tblTempUsageDetail_20' ) start [2025-02-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420359', 'tblTempUsageDetail_20' ) end [2025-02-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420359', 'tblTempVendorCDR_20' ) start [2025-02-07 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420359', 'tblTempVendorCDR_20' ) end [2025-02-07 05:52:18] Production.INFO: ProcessCDR(1,14420359,1,1,2) [2025-02-07 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420359', 'tblTempUsageDetail_20' ) start [2025-02-07 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420359', 'tblTempUsageDetail_20' ) end [2025-02-07 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:52:22] Production.INFO: ==2819== Releasing lock... [2025-02-07 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:53:05 [end_date_ymd] => 2025-02-07 05:53:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:53:05' and `end` < '2025-02-07 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-07 05:53:18] Production.INFO: count ==142 [2025-02-07 05:53:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:53:05 - End Time 2025-02-07 05:53:05 [2025-02-07 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420364', 'tblTempUsageDetail_20' ) start [2025-02-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420364', 'tblTempUsageDetail_20' ) end [2025-02-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420364', 'tblTempVendorCDR_20' ) start [2025-02-07 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420364', 'tblTempVendorCDR_20' ) end [2025-02-07 05:53:18] Production.INFO: ProcessCDR(1,14420364,1,1,2) [2025-02-07 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420364', 'tblTempUsageDetail_20' ) start [2025-02-07 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420364', 'tblTempUsageDetail_20' ) end [2025-02-07 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:53:21] Production.INFO: ==2895== Releasing lock... [2025-02-07 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:54:06 [end_date_ymd] => 2025-02-07 05:54:06 [RateCDR] => 1 ) [2025-02-07 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-07 02:54:06' and `end` < '2025-02-07 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-07 05:54:20] Production.INFO: count ==142 [2025-02-07 05:54:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:54:06 - End Time 2025-02-07 05:54:06 [2025-02-07 05:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420369', 'tblTempUsageDetail_20' ) start [2025-02-07 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420369', 'tblTempUsageDetail_20' ) end [2025-02-07 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420369', 'tblTempVendorCDR_20' ) start [2025-02-07 05:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420369', 'tblTempVendorCDR_20' ) end [2025-02-07 05:54:20] Production.INFO: ProcessCDR(1,14420369,1,1,2) [2025-02-07 05:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420369', 'tblTempUsageDetail_20' ) start [2025-02-07 05:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420369', 'tblTempUsageDetail_20' ) end [2025-02-07 05:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:54:23] Production.INFO: ==2970== Releasing lock... [2025-02-07 05:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:55:05 [end_date_ymd] => 2025-02-07 05:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:55:05' and `end` < '2025-02-07 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-07 05:55:18] Production.INFO: count ==142 [2025-02-07 05:55:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:55:05 - End Time 2025-02-07 05:55:05 [2025-02-07 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420374', 'tblTempUsageDetail_20' ) start [2025-02-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420374', 'tblTempUsageDetail_20' ) end [2025-02-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420374', 'tblTempVendorCDR_20' ) start [2025-02-07 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420374', 'tblTempVendorCDR_20' ) end [2025-02-07 05:55:18] Production.INFO: ProcessCDR(1,14420374,1,1,2) [2025-02-07 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420374', 'tblTempUsageDetail_20' ) start [2025-02-07 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420374', 'tblTempUsageDetail_20' ) end [2025-02-07 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:55:22] Production.INFO: ==3051== Releasing lock... [2025-02-07 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:55:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:56:06 [end_date_ymd] => 2025-02-07 05:56:06 [RateCDR] => 1 ) [2025-02-07 05: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-07 02:56:06' and `end` < '2025-02-07 05: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-07 05:56:20] Production.INFO: count ==142 [2025-02-07 05:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 02:56:06 - End Time 2025-02-07 05:56:06 [2025-02-07 05:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420379', 'tblTempUsageDetail_20' ) start [2025-02-07 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420379', 'tblTempUsageDetail_20' ) end [2025-02-07 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420379', 'tblTempVendorCDR_20' ) start [2025-02-07 05:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420379', 'tblTempVendorCDR_20' ) end [2025-02-07 05:56:20] Production.INFO: ProcessCDR(1,14420379,1,1,2) [2025-02-07 05:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420379', 'tblTempUsageDetail_20' ) start [2025-02-07 05:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420379', 'tblTempUsageDetail_20' ) end [2025-02-07 05:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:56:23] Production.INFO: ==3125== Releasing lock... [2025-02-07 05:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:56:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:57:05 [end_date_ymd] => 2025-02-07 05:57:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:57:05' and `end` < '2025-02-07 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-07 05:57:19] Production.INFO: count ==142 [2025-02-07 05:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 02:57:05 - End Time 2025-02-07 05:57:05 [2025-02-07 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420384', 'tblTempUsageDetail_20' ) start [2025-02-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420384', 'tblTempUsageDetail_20' ) end [2025-02-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420384', 'tblTempVendorCDR_20' ) start [2025-02-07 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420384', 'tblTempVendorCDR_20' ) end [2025-02-07 05:57:19] Production.INFO: ProcessCDR(1,14420384,1,1,2) [2025-02-07 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420384', 'tblTempUsageDetail_20' ) start [2025-02-07 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420384', 'tblTempUsageDetail_20' ) end [2025-02-07 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:57:22] Production.INFO: ==3197== Releasing lock... [2025-02-07 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:58:05 [end_date_ymd] => 2025-02-07 05:58:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:58:05' and `end` < '2025-02-07 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-07 05:58:18] Production.INFO: count ==142 [2025-02-07 05:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:58:05 - End Time 2025-02-07 05:58:05 [2025-02-07 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420389', 'tblTempUsageDetail_20' ) start [2025-02-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420389', 'tblTempUsageDetail_20' ) end [2025-02-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420389', 'tblTempVendorCDR_20' ) start [2025-02-07 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420389', 'tblTempVendorCDR_20' ) end [2025-02-07 05:58:18] Production.INFO: ProcessCDR(1,14420389,1,1,2) [2025-02-07 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420389', 'tblTempUsageDetail_20' ) start [2025-02-07 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420389', 'tblTempUsageDetail_20' ) end [2025-02-07 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:58:21] Production.INFO: ==3274== Releasing lock... [2025-02-07 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 02:59:05 [end_date_ymd] => 2025-02-07 05:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 02:59:05' and `end` < '2025-02-07 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-07 05:59:18] Production.INFO: count ==142 [2025-02-07 05:59:18] Production.ERROR: pbx CDR StartTime 2025-02-07 02:59:05 - End Time 2025-02-07 05:59:05 [2025-02-07 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420394', 'tblTempUsageDetail_20' ) start [2025-02-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420394', 'tblTempUsageDetail_20' ) end [2025-02-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420394', 'tblTempVendorCDR_20' ) start [2025-02-07 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420394', 'tblTempVendorCDR_20' ) end [2025-02-07 05:59:18] Production.INFO: ProcessCDR(1,14420394,1,1,2) [2025-02-07 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420394', 'tblTempUsageDetail_20' ) start [2025-02-07 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420394', 'tblTempUsageDetail_20' ) end [2025-02-07 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 05:59:21] Production.INFO: ==3350== Releasing lock... [2025-02-07 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:00:06 [end_date_ymd] => 2025-02-07 06:00:06 [RateCDR] => 1 ) [2025-02-07 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-07 03:00:06' and `end` < '2025-02-07 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-07 06:00:19] Production.INFO: count ==143 [2025-02-07 06:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:00:06 - End Time 2025-02-07 06:00:06 [2025-02-07 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420400', 'tblTempUsageDetail_20' ) start [2025-02-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420400', 'tblTempUsageDetail_20' ) end [2025-02-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420400', 'tblTempVendorCDR_20' ) start [2025-02-07 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420400', 'tblTempVendorCDR_20' ) end [2025-02-07 06:00:19] Production.INFO: ProcessCDR(1,14420400,1,1,2) [2025-02-07 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420400', 'tblTempUsageDetail_20' ) start [2025-02-07 06:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420400', 'tblTempUsageDetail_20' ) end [2025-02-07 06:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:00:24] Production.INFO: ==3425== Releasing lock... [2025-02-07 06:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:00:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:01:05 [end_date_ymd] => 2025-02-07 06:01:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:01:05' and `end` < '2025-02-07 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-07 06:01:18] Production.INFO: count ==143 [2025-02-07 06:01:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:01:05 - End Time 2025-02-07 06:01:05 [2025-02-07 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420405', 'tblTempUsageDetail_20' ) start [2025-02-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420405', 'tblTempUsageDetail_20' ) end [2025-02-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420405', 'tblTempVendorCDR_20' ) start [2025-02-07 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420405', 'tblTempVendorCDR_20' ) end [2025-02-07 06:01:18] Production.INFO: ProcessCDR(1,14420405,1,1,2) [2025-02-07 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420405', 'tblTempUsageDetail_20' ) start [2025-02-07 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420405', 'tblTempUsageDetail_20' ) end [2025-02-07 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:01:21] Production.INFO: ==3511== Releasing lock... [2025-02-07 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:02:05 [end_date_ymd] => 2025-02-07 06:02:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:02:05' and `end` < '2025-02-07 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-07 06:02:18] Production.INFO: count ==143 [2025-02-07 06:02:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:02:05 - End Time 2025-02-07 06:02:05 [2025-02-07 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420410', 'tblTempUsageDetail_20' ) start [2025-02-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420410', 'tblTempUsageDetail_20' ) end [2025-02-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420410', 'tblTempVendorCDR_20' ) start [2025-02-07 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420410', 'tblTempVendorCDR_20' ) end [2025-02-07 06:02:18] Production.INFO: ProcessCDR(1,14420410,1,1,2) [2025-02-07 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420410', 'tblTempUsageDetail_20' ) start [2025-02-07 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420410', 'tblTempUsageDetail_20' ) end [2025-02-07 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:02:22] Production.INFO: ==3587== Releasing lock... [2025-02-07 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:02:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:03:06 [end_date_ymd] => 2025-02-07 06:03:06 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:03:06' and `end` < '2025-02-07 06: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-07 06:03:20] Production.INFO: count ==144 [2025-02-07 06:03:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:03:06 - End Time 2025-02-07 06:03:06 [2025-02-07 06:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420415', 'tblTempUsageDetail_20' ) start [2025-02-07 06:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420415', 'tblTempUsageDetail_20' ) end [2025-02-07 06:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420415', 'tblTempVendorCDR_20' ) start [2025-02-07 06:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420415', 'tblTempVendorCDR_20' ) end [2025-02-07 06:03:20] Production.INFO: ProcessCDR(1,14420415,1,1,2) [2025-02-07 06:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420415', 'tblTempUsageDetail_20' ) start [2025-02-07 06:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420415', 'tblTempUsageDetail_20' ) end [2025-02-07 06:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:03:25] Production.INFO: ==3668== Releasing lock... [2025-02-07 06:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:03:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:04:06 [end_date_ymd] => 2025-02-07 06:04:06 [RateCDR] => 1 ) [2025-02-07 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:04:06' and `end` < '2025-02-07 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:04:19] Production.INFO: count ==144 [2025-02-07 06:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:04:06 - End Time 2025-02-07 06:04:06 [2025-02-07 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420420', 'tblTempUsageDetail_20' ) start [2025-02-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420420', 'tblTempUsageDetail_20' ) end [2025-02-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420420', 'tblTempVendorCDR_20' ) start [2025-02-07 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420420', 'tblTempVendorCDR_20' ) end [2025-02-07 06:04:19] Production.INFO: ProcessCDR(1,14420420,1,1,2) [2025-02-07 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420420', 'tblTempUsageDetail_20' ) start [2025-02-07 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420420', 'tblTempUsageDetail_20' ) end [2025-02-07 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:04:23] Production.INFO: ==3741== Releasing lock... [2025-02-07 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:04:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:05:06 [end_date_ymd] => 2025-02-07 06:05:06 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:05:06' and `end` < '2025-02-07 06: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-07 06:05:19] Production.INFO: count ==147 [2025-02-07 06:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:05:06 - End Time 2025-02-07 06:05:06 [2025-02-07 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420425', 'tblTempUsageDetail_20' ) start [2025-02-07 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420425', 'tblTempUsageDetail_20' ) end [2025-02-07 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420425', 'tblTempVendorCDR_20' ) start [2025-02-07 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420425', 'tblTempVendorCDR_20' ) end [2025-02-07 06:05:19] Production.INFO: ProcessCDR(1,14420425,1,1,2) [2025-02-07 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420425', 'tblTempUsageDetail_20' ) start [2025-02-07 06:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420425', 'tblTempUsageDetail_20' ) end [2025-02-07 06:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:05:23] Production.INFO: ==3815== Releasing lock... [2025-02-07 06:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:05:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:06:06 [end_date_ymd] => 2025-02-07 06:06:06 [RateCDR] => 1 ) [2025-02-07 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:06:06' and `end` < '2025-02-07 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:06:20] Production.INFO: count ==147 [2025-02-07 06:06:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:06:06 - End Time 2025-02-07 06:06:06 [2025-02-07 06:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420430', 'tblTempUsageDetail_20' ) start [2025-02-07 06:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420430', 'tblTempUsageDetail_20' ) end [2025-02-07 06:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420430', 'tblTempVendorCDR_20' ) start [2025-02-07 06:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420430', 'tblTempVendorCDR_20' ) end [2025-02-07 06:06:20] Production.INFO: ProcessCDR(1,14420430,1,1,2) [2025-02-07 06:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420430', 'tblTempUsageDetail_20' ) start [2025-02-07 06:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420430', 'tblTempUsageDetail_20' ) end [2025-02-07 06:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:06:24] Production.INFO: ==3895== Releasing lock... [2025-02-07 06:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:06:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:07:07 [end_date_ymd] => 2025-02-07 06:07:07 [RateCDR] => 1 ) [2025-02-07 06:07:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:07:07' and `end` < '2025-02-07 06:07:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:07:20] Production.INFO: count ==147 [2025-02-07 06:07:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:07:07 - End Time 2025-02-07 06:07:07 [2025-02-07 06:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420435', 'tblTempUsageDetail_20' ) start [2025-02-07 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420435', 'tblTempUsageDetail_20' ) end [2025-02-07 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420435', 'tblTempVendorCDR_20' ) start [2025-02-07 06:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420435', 'tblTempVendorCDR_20' ) end [2025-02-07 06:07:20] Production.INFO: ProcessCDR(1,14420435,1,1,2) [2025-02-07 06:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420435', 'tblTempUsageDetail_20' ) start [2025-02-07 06:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420435', 'tblTempUsageDetail_20' ) end [2025-02-07 06:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:07:24] Production.INFO: ==4015== Releasing lock... [2025-02-07 06:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:07:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:08:05 [end_date_ymd] => 2025-02-07 06:08:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:08:05' and `end` < '2025-02-07 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-07 06:08:18] Production.INFO: count ==144 [2025-02-07 06:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:08:05 - End Time 2025-02-07 06:08:05 [2025-02-07 06:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420440', 'tblTempUsageDetail_20' ) start [2025-02-07 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420440', 'tblTempUsageDetail_20' ) end [2025-02-07 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420440', 'tblTempVendorCDR_20' ) start [2025-02-07 06:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420440', 'tblTempVendorCDR_20' ) end [2025-02-07 06:08:19] Production.INFO: ProcessCDR(1,14420440,1,1,2) [2025-02-07 06:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420440', 'tblTempUsageDetail_20' ) start [2025-02-07 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420440', 'tblTempUsageDetail_20' ) end [2025-02-07 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:08:22] Production.INFO: ==4092== Releasing lock... [2025-02-07 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:08:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:09:06 [end_date_ymd] => 2025-02-07 06:09:06 [RateCDR] => 1 ) [2025-02-07 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-07 03:09:06' and `end` < '2025-02-07 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-07 06:09:20] Production.INFO: count ==144 [2025-02-07 06:09:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:09:06 - End Time 2025-02-07 06:09:06 [2025-02-07 06:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420445', 'tblTempUsageDetail_20' ) start [2025-02-07 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420445', 'tblTempUsageDetail_20' ) end [2025-02-07 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420445', 'tblTempVendorCDR_20' ) start [2025-02-07 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420445', 'tblTempVendorCDR_20' ) end [2025-02-07 06:09:20] Production.INFO: ProcessCDR(1,14420445,1,1,2) [2025-02-07 06:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420445', 'tblTempUsageDetail_20' ) start [2025-02-07 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420445', 'tblTempUsageDetail_20' ) end [2025-02-07 06:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:09:23] Production.INFO: ==4168== Releasing lock... [2025-02-07 06:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:09:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:10:06 [end_date_ymd] => 2025-02-07 06:10:06 [RateCDR] => 1 ) [2025-02-07 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-07 03:10:06' and `end` < '2025-02-07 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-07 06:10:20] Production.INFO: count ==144 [2025-02-07 06:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:10:06 - End Time 2025-02-07 06:10:06 [2025-02-07 06:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420451', 'tblTempUsageDetail_20' ) start [2025-02-07 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420451', 'tblTempUsageDetail_20' ) end [2025-02-07 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420451', 'tblTempVendorCDR_20' ) start [2025-02-07 06:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420451', 'tblTempVendorCDR_20' ) end [2025-02-07 06:10:20] Production.INFO: ProcessCDR(1,14420451,1,1,2) [2025-02-07 06:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420451', 'tblTempUsageDetail_20' ) start [2025-02-07 06:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420451', 'tblTempUsageDetail_20' ) end [2025-02-07 06:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:10:24] Production.INFO: ==4244== Releasing lock... [2025-02-07 06:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:10:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:11:06 [end_date_ymd] => 2025-02-07 06:11:06 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:11:06' and `end` < '2025-02-07 06: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-07 06:11:19] Production.INFO: count ==144 [2025-02-07 06:11:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:11:06 - End Time 2025-02-07 06:11:06 [2025-02-07 06:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420456', 'tblTempUsageDetail_20' ) start [2025-02-07 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420456', 'tblTempUsageDetail_20' ) end [2025-02-07 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420456', 'tblTempVendorCDR_20' ) start [2025-02-07 06:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420456', 'tblTempVendorCDR_20' ) end [2025-02-07 06:11:19] Production.INFO: ProcessCDR(1,14420456,1,1,2) [2025-02-07 06:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420456', 'tblTempUsageDetail_20' ) start [2025-02-07 06:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420456', 'tblTempUsageDetail_20' ) end [2025-02-07 06:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:11:22] Production.INFO: ==4322== Releasing lock... [2025-02-07 06:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:11:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:12:06 [end_date_ymd] => 2025-02-07 06:12:06 [RateCDR] => 1 ) [2025-02-07 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:12:06' and `end` < '2025-02-07 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:12:19] Production.INFO: count ==144 [2025-02-07 06:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:12:06 - End Time 2025-02-07 06:12:06 [2025-02-07 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420461', 'tblTempUsageDetail_20' ) start [2025-02-07 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420461', 'tblTempUsageDetail_20' ) end [2025-02-07 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420461', 'tblTempVendorCDR_20' ) start [2025-02-07 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420461', 'tblTempVendorCDR_20' ) end [2025-02-07 06:12:19] Production.INFO: ProcessCDR(1,14420461,1,1,2) [2025-02-07 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420461', 'tblTempUsageDetail_20' ) start [2025-02-07 06:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420461', 'tblTempUsageDetail_20' ) end [2025-02-07 06:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:12:23] Production.INFO: ==4396== Releasing lock... [2025-02-07 06:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:12:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:13:06 [end_date_ymd] => 2025-02-07 06:13:06 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:13:06' and `end` < '2025-02-07 06: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-07 06:13:19] Production.INFO: count ==144 [2025-02-07 06:13:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:13:06 - End Time 2025-02-07 06:13:06 [2025-02-07 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420466', 'tblTempUsageDetail_20' ) start [2025-02-07 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420466', 'tblTempUsageDetail_20' ) end [2025-02-07 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420466', 'tblTempVendorCDR_20' ) start [2025-02-07 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420466', 'tblTempVendorCDR_20' ) end [2025-02-07 06:13:19] Production.INFO: ProcessCDR(1,14420466,1,1,2) [2025-02-07 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420466', 'tblTempUsageDetail_20' ) start [2025-02-07 06:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420466', 'tblTempUsageDetail_20' ) end [2025-02-07 06:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:13:23] Production.INFO: ==4473== Releasing lock... [2025-02-07 06:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:13:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:14:05 [end_date_ymd] => 2025-02-07 06:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:14:05' and `end` < '2025-02-07 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-07 06:14:19] Production.INFO: count ==144 [2025-02-07 06:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:14:05 - End Time 2025-02-07 06:14:05 [2025-02-07 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420471', 'tblTempUsageDetail_20' ) start [2025-02-07 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420471', 'tblTempUsageDetail_20' ) end [2025-02-07 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420471', 'tblTempVendorCDR_20' ) start [2025-02-07 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420471', 'tblTempVendorCDR_20' ) end [2025-02-07 06:14:19] Production.INFO: ProcessCDR(1,14420471,1,1,2) [2025-02-07 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420471', 'tblTempUsageDetail_20' ) start [2025-02-07 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420471', 'tblTempUsageDetail_20' ) end [2025-02-07 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:14:22] Production.INFO: ==4548== Releasing lock... [2025-02-07 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:14:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:15:06 [end_date_ymd] => 2025-02-07 06:15:06 [RateCDR] => 1 ) [2025-02-07 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:15:06' and `end` < '2025-02-07 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:15:20] Production.INFO: count ==144 [2025-02-07 06:15:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:15:06 - End Time 2025-02-07 06:15:06 [2025-02-07 06:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420476', 'tblTempUsageDetail_20' ) start [2025-02-07 06:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420476', 'tblTempUsageDetail_20' ) end [2025-02-07 06:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420476', 'tblTempVendorCDR_20' ) start [2025-02-07 06:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420476', 'tblTempVendorCDR_20' ) end [2025-02-07 06:15:20] Production.INFO: ProcessCDR(1,14420476,1,1,2) [2025-02-07 06:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420476', 'tblTempUsageDetail_20' ) start [2025-02-07 06:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420476', 'tblTempUsageDetail_20' ) end [2025-02-07 06:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:15:23] Production.INFO: ==4631== Releasing lock... [2025-02-07 06:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:15:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:16:06 [end_date_ymd] => 2025-02-07 06:16:06 [RateCDR] => 1 ) [2025-02-07 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-07 03:16:06' and `end` < '2025-02-07 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-07 06:16:19] Production.INFO: count ==144 [2025-02-07 06:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:16:06 - End Time 2025-02-07 06:16:06 [2025-02-07 06:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420481', 'tblTempUsageDetail_20' ) start [2025-02-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420481', 'tblTempUsageDetail_20' ) end [2025-02-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420481', 'tblTempVendorCDR_20' ) start [2025-02-07 06:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420481', 'tblTempVendorCDR_20' ) end [2025-02-07 06:16:19] Production.INFO: ProcessCDR(1,14420481,1,1,2) [2025-02-07 06:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420481', 'tblTempUsageDetail_20' ) start [2025-02-07 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420481', 'tblTempUsageDetail_20' ) end [2025-02-07 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:16:23] Production.INFO: ==4711== Releasing lock... [2025-02-07 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:16:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:17:06 [end_date_ymd] => 2025-02-07 06:17:06 [RateCDR] => 1 ) [2025-02-07 06:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:17:06' and `end` < '2025-02-07 06:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:17:19] Production.INFO: count ==144 [2025-02-07 06:17:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:17:06 - End Time 2025-02-07 06:17:06 [2025-02-07 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420486', 'tblTempUsageDetail_20' ) start [2025-02-07 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420486', 'tblTempUsageDetail_20' ) end [2025-02-07 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420486', 'tblTempVendorCDR_20' ) start [2025-02-07 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420486', 'tblTempVendorCDR_20' ) end [2025-02-07 06:17:19] Production.INFO: ProcessCDR(1,14420486,1,1,2) [2025-02-07 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420486', 'tblTempUsageDetail_20' ) start [2025-02-07 06:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420486', 'tblTempUsageDetail_20' ) end [2025-02-07 06:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:17:23] Production.INFO: ==4785== Releasing lock... [2025-02-07 06:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:17:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:18:05 [end_date_ymd] => 2025-02-07 06:18:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:18:05' and `end` < '2025-02-07 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-07 06:18:18] Production.INFO: count ==144 [2025-02-07 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:18:05 - End Time 2025-02-07 06:18:05 [2025-02-07 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420491', 'tblTempUsageDetail_20' ) start [2025-02-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420491', 'tblTempUsageDetail_20' ) end [2025-02-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420491', 'tblTempVendorCDR_20' ) start [2025-02-07 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420491', 'tblTempVendorCDR_20' ) end [2025-02-07 06:18:18] Production.INFO: ProcessCDR(1,14420491,1,1,2) [2025-02-07 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420491', 'tblTempUsageDetail_20' ) start [2025-02-07 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420491', 'tblTempUsageDetail_20' ) end [2025-02-07 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:18:21] Production.INFO: ==4862== Releasing lock... [2025-02-07 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:19:05 [end_date_ymd] => 2025-02-07 06:19:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:19:05' and `end` < '2025-02-07 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-07 06:19:20] Production.INFO: count ==148 [2025-02-07 06:19:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:19:05 - End Time 2025-02-07 06:19:05 [2025-02-07 06:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420496', 'tblTempUsageDetail_20' ) start [2025-02-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420496', 'tblTempUsageDetail_20' ) end [2025-02-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420496', 'tblTempVendorCDR_20' ) start [2025-02-07 06:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420496', 'tblTempVendorCDR_20' ) end [2025-02-07 06:19:20] Production.INFO: ProcessCDR(1,14420496,1,1,2) [2025-02-07 06:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420496', 'tblTempUsageDetail_20' ) start [2025-02-07 06:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420496', 'tblTempUsageDetail_20' ) end [2025-02-07 06:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:19:23] Production.INFO: ==4940== Releasing lock... [2025-02-07 06:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:19:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:20:05 [end_date_ymd] => 2025-02-07 06:20:05 [RateCDR] => 1 ) [2025-02-07 06:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:20:05' and `end` < '2025-02-07 06:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:20:18] Production.INFO: count ==150 [2025-02-07 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:20:05 - End Time 2025-02-07 06:20:05 [2025-02-07 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420501', 'tblTempUsageDetail_20' ) start [2025-02-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420501', 'tblTempUsageDetail_20' ) end [2025-02-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420501', 'tblTempVendorCDR_20' ) start [2025-02-07 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420501', 'tblTempVendorCDR_20' ) end [2025-02-07 06:20:18] Production.INFO: ProcessCDR(1,14420501,1,1,2) [2025-02-07 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420501', 'tblTempUsageDetail_20' ) start [2025-02-07 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420501', 'tblTempUsageDetail_20' ) end [2025-02-07 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:20:22] Production.INFO: ==5024== Releasing lock... [2025-02-07 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:21:06 [end_date_ymd] => 2025-02-07 06:21:06 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:21:06' and `end` < '2025-02-07 06: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-07 06:21:19] Production.INFO: count ==148 [2025-02-07 06:21:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:21:06 - End Time 2025-02-07 06:21:06 [2025-02-07 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420507', 'tblTempUsageDetail_20' ) start [2025-02-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420507', 'tblTempUsageDetail_20' ) end [2025-02-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420507', 'tblTempVendorCDR_20' ) start [2025-02-07 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420507', 'tblTempVendorCDR_20' ) end [2025-02-07 06:21:19] Production.INFO: ProcessCDR(1,14420507,1,1,2) [2025-02-07 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420507', 'tblTempUsageDetail_20' ) start [2025-02-07 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420507', 'tblTempUsageDetail_20' ) end [2025-02-07 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:21:22] Production.INFO: ==5103== Releasing lock... [2025-02-07 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:21:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:22:05 [end_date_ymd] => 2025-02-07 06:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:22:05' and `end` < '2025-02-07 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-07 06:22:19] Production.INFO: count ==148 [2025-02-07 06:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:22:05 - End Time 2025-02-07 06:22:05 [2025-02-07 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420512', 'tblTempUsageDetail_20' ) start [2025-02-07 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420512', 'tblTempUsageDetail_20' ) end [2025-02-07 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420512', 'tblTempVendorCDR_20' ) start [2025-02-07 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420512', 'tblTempVendorCDR_20' ) end [2025-02-07 06:22:19] Production.INFO: ProcessCDR(1,14420512,1,1,2) [2025-02-07 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420512', 'tblTempUsageDetail_20' ) start [2025-02-07 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420512', 'tblTempUsageDetail_20' ) end [2025-02-07 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:22:22] Production.INFO: ==5186== Releasing lock... [2025-02-07 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:23:06 [end_date_ymd] => 2025-02-07 06:23:06 [RateCDR] => 1 ) [2025-02-07 06:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:23:06' and `end` < '2025-02-07 06:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:23:19] Production.INFO: count ==148 [2025-02-07 06:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:23:06 - End Time 2025-02-07 06:23:06 [2025-02-07 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420517', 'tblTempUsageDetail_20' ) start [2025-02-07 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420517', 'tblTempUsageDetail_20' ) end [2025-02-07 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420517', 'tblTempVendorCDR_20' ) start [2025-02-07 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420517', 'tblTempVendorCDR_20' ) end [2025-02-07 06:23:19] Production.INFO: ProcessCDR(1,14420517,1,1,2) [2025-02-07 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420517', 'tblTempUsageDetail_20' ) start [2025-02-07 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420517', 'tblTempUsageDetail_20' ) end [2025-02-07 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:23:22] Production.INFO: ==5306== Releasing lock... [2025-02-07 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:23:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:24:05 [end_date_ymd] => 2025-02-07 06:24:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:24:05' and `end` < '2025-02-07 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-07 06:24:18] Production.INFO: count ==148 [2025-02-07 06:24:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:24:05 - End Time 2025-02-07 06:24:05 [2025-02-07 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420522', 'tblTempUsageDetail_20' ) start [2025-02-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420522', 'tblTempUsageDetail_20' ) end [2025-02-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420522', 'tblTempVendorCDR_20' ) start [2025-02-07 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420522', 'tblTempVendorCDR_20' ) end [2025-02-07 06:24:18] Production.INFO: ProcessCDR(1,14420522,1,1,2) [2025-02-07 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420522', 'tblTempUsageDetail_20' ) start [2025-02-07 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420522', 'tblTempUsageDetail_20' ) end [2025-02-07 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:24:21] Production.INFO: ==5383== Releasing lock... [2025-02-07 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:25:06 [end_date_ymd] => 2025-02-07 06:25:06 [RateCDR] => 1 ) [2025-02-07 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:25:06' and `end` < '2025-02-07 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:25:19] Production.INFO: count ==148 [2025-02-07 06:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:25:06 - End Time 2025-02-07 06:25:06 [2025-02-07 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420527', 'tblTempUsageDetail_20' ) start [2025-02-07 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420527', 'tblTempUsageDetail_20' ) end [2025-02-07 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420527', 'tblTempVendorCDR_20' ) start [2025-02-07 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420527', 'tblTempVendorCDR_20' ) end [2025-02-07 06:25:19] Production.INFO: ProcessCDR(1,14420527,1,1,2) [2025-02-07 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420527', 'tblTempUsageDetail_20' ) start [2025-02-07 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420527', 'tblTempUsageDetail_20' ) end [2025-02-07 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:25:22] Production.INFO: ==5470== Releasing lock... [2025-02-07 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:25:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:26:05 [end_date_ymd] => 2025-02-07 06:26:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:26:05' and `end` < '2025-02-07 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-07 06:26:18] Production.INFO: count ==148 [2025-02-07 06:26:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:26:05 - End Time 2025-02-07 06:26:05 [2025-02-07 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420532', 'tblTempUsageDetail_20' ) start [2025-02-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420532', 'tblTempUsageDetail_20' ) end [2025-02-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420532', 'tblTempVendorCDR_20' ) start [2025-02-07 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420532', 'tblTempVendorCDR_20' ) end [2025-02-07 06:26:18] Production.INFO: ProcessCDR(1,14420532,1,1,2) [2025-02-07 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420532', 'tblTempUsageDetail_20' ) start [2025-02-07 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420532', 'tblTempUsageDetail_20' ) end [2025-02-07 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:26:22] Production.INFO: ==5580== Releasing lock... [2025-02-07 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:27:05 [end_date_ymd] => 2025-02-07 06:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:27:05' and `end` < '2025-02-07 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-07 06:27:18] Production.INFO: count ==148 [2025-02-07 06:27:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:27:05 - End Time 2025-02-07 06:27:05 [2025-02-07 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420537', 'tblTempUsageDetail_20' ) start [2025-02-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420537', 'tblTempUsageDetail_20' ) end [2025-02-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420537', 'tblTempVendorCDR_20' ) start [2025-02-07 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420537', 'tblTempVendorCDR_20' ) end [2025-02-07 06:27:18] Production.INFO: ProcessCDR(1,14420537,1,1,2) [2025-02-07 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420537', 'tblTempUsageDetail_20' ) start [2025-02-07 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420537', 'tblTempUsageDetail_20' ) end [2025-02-07 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:27:21] Production.INFO: ==5694== Releasing lock... [2025-02-07 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:28:05 [end_date_ymd] => 2025-02-07 06:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:28:05' and `end` < '2025-02-07 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-07 06:28:18] Production.INFO: count ==149 [2025-02-07 06:28:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:28:05 - End Time 2025-02-07 06:28:05 [2025-02-07 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420542', 'tblTempUsageDetail_20' ) start [2025-02-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420542', 'tblTempUsageDetail_20' ) end [2025-02-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420542', 'tblTempVendorCDR_20' ) start [2025-02-07 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420542', 'tblTempVendorCDR_20' ) end [2025-02-07 06:28:18] Production.INFO: ProcessCDR(1,14420542,1,1,2) [2025-02-07 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420542', 'tblTempUsageDetail_20' ) start [2025-02-07 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420542', 'tblTempUsageDetail_20' ) end [2025-02-07 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:28:21] Production.INFO: ==5807== Releasing lock... [2025-02-07 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:29:05 [end_date_ymd] => 2025-02-07 06:29:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:29:05' and `end` < '2025-02-07 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-07 06:29:19] Production.INFO: count ==151 [2025-02-07 06:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:29:05 - End Time 2025-02-07 06:29:05 [2025-02-07 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420547', 'tblTempUsageDetail_20' ) start [2025-02-07 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420547', 'tblTempUsageDetail_20' ) end [2025-02-07 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420547', 'tblTempVendorCDR_20' ) start [2025-02-07 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420547', 'tblTempVendorCDR_20' ) end [2025-02-07 06:29:19] Production.INFO: ProcessCDR(1,14420547,1,1,2) [2025-02-07 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420547', 'tblTempUsageDetail_20' ) start [2025-02-07 06:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420547', 'tblTempUsageDetail_20' ) end [2025-02-07 06:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:29:23] Production.INFO: ==5921== Releasing lock... [2025-02-07 06:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:29:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:30:07 [end_date_ymd] => 2025-02-07 06:30:07 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:30:07' and `end` < '2025-02-07 06: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-07 06:30:19] Production.INFO: count ==149 [2025-02-07 06:30:20] Production.ERROR: pbx CDR StartTime 2025-02-07 03:30:07 - End Time 2025-02-07 06:30:07 [2025-02-07 06:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420553', 'tblTempUsageDetail_20' ) start [2025-02-07 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420553', 'tblTempUsageDetail_20' ) end [2025-02-07 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420553', 'tblTempVendorCDR_20' ) start [2025-02-07 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420553', 'tblTempVendorCDR_20' ) end [2025-02-07 06:30:20] Production.INFO: ProcessCDR(1,14420553,1,1,2) [2025-02-07 06:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420553', 'tblTempUsageDetail_20' ) start [2025-02-07 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420553', 'tblTempUsageDetail_20' ) end [2025-02-07 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:30:23] Production.INFO: ==6037== Releasing lock... [2025-02-07 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:30:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:31:05 [end_date_ymd] => 2025-02-07 06:31:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:31:05' and `end` < '2025-02-07 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-07 06:31:19] Production.INFO: count ==150 [2025-02-07 06:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:31:05 - End Time 2025-02-07 06:31:05 [2025-02-07 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420558', 'tblTempUsageDetail_20' ) start [2025-02-07 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420558', 'tblTempUsageDetail_20' ) end [2025-02-07 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420558', 'tblTempVendorCDR_20' ) start [2025-02-07 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420558', 'tblTempVendorCDR_20' ) end [2025-02-07 06:31:19] Production.INFO: ProcessCDR(1,14420558,1,1,2) [2025-02-07 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420558', 'tblTempUsageDetail_20' ) start [2025-02-07 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420558', 'tblTempUsageDetail_20' ) end [2025-02-07 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:31:22] Production.INFO: ==6154== Releasing lock... [2025-02-07 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:32:05 [end_date_ymd] => 2025-02-07 06:32:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:32:05' and `end` < '2025-02-07 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-07 06:32:18] Production.INFO: count ==149 [2025-02-07 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:32:05 - End Time 2025-02-07 06:32:05 [2025-02-07 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420563', 'tblTempUsageDetail_20' ) start [2025-02-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420563', 'tblTempUsageDetail_20' ) end [2025-02-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420563', 'tblTempVendorCDR_20' ) start [2025-02-07 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420563', 'tblTempVendorCDR_20' ) end [2025-02-07 06:32:18] Production.INFO: ProcessCDR(1,14420563,1,1,2) [2025-02-07 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420563', 'tblTempUsageDetail_20' ) start [2025-02-07 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420563', 'tblTempUsageDetail_20' ) end [2025-02-07 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:32:21] Production.INFO: ==6265== Releasing lock... [2025-02-07 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:33:05 [end_date_ymd] => 2025-02-07 06:33:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:33:05' and `end` < '2025-02-07 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-07 06:33:19] Production.INFO: count ==149 [2025-02-07 06:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:33:05 - End Time 2025-02-07 06:33:05 [2025-02-07 06:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420568', 'tblTempUsageDetail_20' ) start [2025-02-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420568', 'tblTempUsageDetail_20' ) end [2025-02-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420568', 'tblTempVendorCDR_20' ) start [2025-02-07 06:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420568', 'tblTempVendorCDR_20' ) end [2025-02-07 06:33:19] Production.INFO: ProcessCDR(1,14420568,1,1,2) [2025-02-07 06:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420568', 'tblTempUsageDetail_20' ) start [2025-02-07 06:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420568', 'tblTempUsageDetail_20' ) end [2025-02-07 06:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:33:22] Production.INFO: ==6378== Releasing lock... [2025-02-07 06:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:33:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:34:05 [end_date_ymd] => 2025-02-07 06:34:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:34:05' and `end` < '2025-02-07 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-07 06:34:18] Production.INFO: count ==149 [2025-02-07 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:34:05 - End Time 2025-02-07 06:34:05 [2025-02-07 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420573', 'tblTempUsageDetail_20' ) start [2025-02-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420573', 'tblTempUsageDetail_20' ) end [2025-02-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420573', 'tblTempVendorCDR_20' ) start [2025-02-07 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420573', 'tblTempVendorCDR_20' ) end [2025-02-07 06:34:18] Production.INFO: ProcessCDR(1,14420573,1,1,2) [2025-02-07 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420573', 'tblTempUsageDetail_20' ) start [2025-02-07 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420573', 'tblTempUsageDetail_20' ) end [2025-02-07 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:34:22] Production.INFO: ==6498== Releasing lock... [2025-02-07 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:35:05 [end_date_ymd] => 2025-02-07 06:35:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:35:05' and `end` < '2025-02-07 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-07 06:35:18] Production.INFO: count ==149 [2025-02-07 06:35:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:35:05 - End Time 2025-02-07 06:35:05 [2025-02-07 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420578', 'tblTempUsageDetail_20' ) start [2025-02-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420578', 'tblTempUsageDetail_20' ) end [2025-02-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420578', 'tblTempVendorCDR_20' ) start [2025-02-07 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420578', 'tblTempVendorCDR_20' ) end [2025-02-07 06:35:18] Production.INFO: ProcessCDR(1,14420578,1,1,2) [2025-02-07 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420578', 'tblTempUsageDetail_20' ) start [2025-02-07 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420578', 'tblTempUsageDetail_20' ) end [2025-02-07 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:35:21] Production.INFO: ==6610== Releasing lock... [2025-02-07 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:36:05 [end_date_ymd] => 2025-02-07 06:36:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:36:05' and `end` < '2025-02-07 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-07 06:36:18] Production.INFO: count ==149 [2025-02-07 06:36:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:36:05 - End Time 2025-02-07 06:36:05 [2025-02-07 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420583', 'tblTempUsageDetail_20' ) start [2025-02-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420583', 'tblTempUsageDetail_20' ) end [2025-02-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420583', 'tblTempVendorCDR_20' ) start [2025-02-07 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420583', 'tblTempVendorCDR_20' ) end [2025-02-07 06:36:18] Production.INFO: ProcessCDR(1,14420583,1,1,2) [2025-02-07 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420583', 'tblTempUsageDetail_20' ) start [2025-02-07 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420583', 'tblTempUsageDetail_20' ) end [2025-02-07 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:36:21] Production.INFO: ==6727== Releasing lock... [2025-02-07 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:37:05 [end_date_ymd] => 2025-02-07 06:37:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:37:05' and `end` < '2025-02-07 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-07 06:37:18] Production.INFO: count ==149 [2025-02-07 06:37:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:37:05 - End Time 2025-02-07 06:37:05 [2025-02-07 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420588', 'tblTempUsageDetail_20' ) start [2025-02-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420588', 'tblTempUsageDetail_20' ) end [2025-02-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420588', 'tblTempVendorCDR_20' ) start [2025-02-07 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420588', 'tblTempVendorCDR_20' ) end [2025-02-07 06:37:18] Production.INFO: ProcessCDR(1,14420588,1,1,2) [2025-02-07 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420588', 'tblTempUsageDetail_20' ) start [2025-02-07 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420588', 'tblTempUsageDetail_20' ) end [2025-02-07 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:37:21] Production.INFO: ==6842== Releasing lock... [2025-02-07 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:38:06 [end_date_ymd] => 2025-02-07 06:38:06 [RateCDR] => 1 ) [2025-02-07 06:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:38:06' and `end` < '2025-02-07 06:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:38:19] Production.INFO: count ==150 [2025-02-07 06:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:38:06 - End Time 2025-02-07 06:38:06 [2025-02-07 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420593', 'tblTempUsageDetail_20' ) start [2025-02-07 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420593', 'tblTempUsageDetail_20' ) end [2025-02-07 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420593', 'tblTempVendorCDR_20' ) start [2025-02-07 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420593', 'tblTempVendorCDR_20' ) end [2025-02-07 06:38:19] Production.INFO: ProcessCDR(1,14420593,1,1,2) [2025-02-07 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420593', 'tblTempUsageDetail_20' ) start [2025-02-07 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420593', 'tblTempUsageDetail_20' ) end [2025-02-07 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:38:22] Production.INFO: ==6997== Releasing lock... [2025-02-07 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:39:06 [end_date_ymd] => 2025-02-07 06:39:06 [RateCDR] => 1 ) [2025-02-07 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:39:06' and `end` < '2025-02-07 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:39:19] Production.INFO: count ==152 [2025-02-07 06:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:39:06 - End Time 2025-02-07 06:39:06 [2025-02-07 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420598', 'tblTempUsageDetail_20' ) start [2025-02-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420598', 'tblTempUsageDetail_20' ) end [2025-02-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420598', 'tblTempVendorCDR_20' ) start [2025-02-07 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420598', 'tblTempVendorCDR_20' ) end [2025-02-07 06:39:19] Production.INFO: ProcessCDR(1,14420598,1,1,2) [2025-02-07 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420598', 'tblTempUsageDetail_20' ) start [2025-02-07 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420598', 'tblTempUsageDetail_20' ) end [2025-02-07 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:39:22] Production.INFO: ==7110== Releasing lock... [2025-02-07 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:40:06 [end_date_ymd] => 2025-02-07 06:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 03:40:06' and `end` < '2025-02-07 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:40:19] Production.INFO: count ==152 [2025-02-07 06:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:40:06 - End Time 2025-02-07 06:40:06 [2025-02-07 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420604', 'tblTempUsageDetail_20' ) start [2025-02-07 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420604', 'tblTempUsageDetail_20' ) end [2025-02-07 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420604', 'tblTempVendorCDR_20' ) start [2025-02-07 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420604', 'tblTempVendorCDR_20' ) end [2025-02-07 06:40:19] Production.INFO: ProcessCDR(1,14420604,1,1,2) [2025-02-07 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420604', 'tblTempUsageDetail_20' ) start [2025-02-07 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420604', 'tblTempUsageDetail_20' ) end [2025-02-07 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:40:22] Production.INFO: ==7227== Releasing lock... [2025-02-07 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:41:05 [end_date_ymd] => 2025-02-07 06:41:05 [RateCDR] => 1 ) [2025-02-07 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:41:05' and `end` < '2025-02-07 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:41:18] Production.INFO: count ==152 [2025-02-07 06:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:41:05 - End Time 2025-02-07 06:41:05 [2025-02-07 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420609', 'tblTempUsageDetail_20' ) start [2025-02-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420609', 'tblTempUsageDetail_20' ) end [2025-02-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420609', 'tblTempVendorCDR_20' ) start [2025-02-07 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420609', 'tblTempVendorCDR_20' ) end [2025-02-07 06:41:18] Production.INFO: ProcessCDR(1,14420609,1,1,2) [2025-02-07 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420609', 'tblTempUsageDetail_20' ) start [2025-02-07 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420609', 'tblTempUsageDetail_20' ) end [2025-02-07 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:41:21] Production.INFO: ==7323== Releasing lock... [2025-02-07 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:42:05 [end_date_ymd] => 2025-02-07 06:42:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:42:05' and `end` < '2025-02-07 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-07 06:42:18] Production.INFO: count ==152 [2025-02-07 06:42:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:42:05 - End Time 2025-02-07 06:42:05 [2025-02-07 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420614', 'tblTempUsageDetail_20' ) start [2025-02-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420614', 'tblTempUsageDetail_20' ) end [2025-02-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420614', 'tblTempVendorCDR_20' ) start [2025-02-07 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420614', 'tblTempVendorCDR_20' ) end [2025-02-07 06:42:18] Production.INFO: ProcessCDR(1,14420614,1,1,2) [2025-02-07 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420614', 'tblTempUsageDetail_20' ) start [2025-02-07 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420614', 'tblTempUsageDetail_20' ) end [2025-02-07 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:42:21] Production.INFO: ==7408== Releasing lock... [2025-02-07 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:43:05 [end_date_ymd] => 2025-02-07 06:43:05 [RateCDR] => 1 ) [2025-02-07 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:43:05' and `end` < '2025-02-07 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:43:19] Production.INFO: count ==152 [2025-02-07 06:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:43:05 - End Time 2025-02-07 06:43:05 [2025-02-07 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420619', 'tblTempUsageDetail_20' ) start [2025-02-07 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420619', 'tblTempUsageDetail_20' ) end [2025-02-07 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420619', 'tblTempVendorCDR_20' ) start [2025-02-07 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420619', 'tblTempVendorCDR_20' ) end [2025-02-07 06:43:19] Production.INFO: ProcessCDR(1,14420619,1,1,2) [2025-02-07 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420619', 'tblTempUsageDetail_20' ) start [2025-02-07 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420619', 'tblTempUsageDetail_20' ) end [2025-02-07 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:43:22] Production.INFO: ==7494== Releasing lock... [2025-02-07 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:44:05 [end_date_ymd] => 2025-02-07 06:44:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:44:05' and `end` < '2025-02-07 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-07 06:44:18] Production.INFO: count ==152 [2025-02-07 06:44:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:44:05 - End Time 2025-02-07 06:44:05 [2025-02-07 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420624', 'tblTempUsageDetail_20' ) start [2025-02-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420624', 'tblTempUsageDetail_20' ) end [2025-02-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420624', 'tblTempVendorCDR_20' ) start [2025-02-07 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420624', 'tblTempVendorCDR_20' ) end [2025-02-07 06:44:18] Production.INFO: ProcessCDR(1,14420624,1,1,2) [2025-02-07 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420624', 'tblTempUsageDetail_20' ) start [2025-02-07 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420624', 'tblTempUsageDetail_20' ) end [2025-02-07 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:44:21] Production.INFO: ==7575== Releasing lock... [2025-02-07 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:45:05 [end_date_ymd] => 2025-02-07 06:45:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:45:05' and `end` < '2025-02-07 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-07 06:45:18] Production.INFO: count ==152 [2025-02-07 06:45:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:45:05 - End Time 2025-02-07 06:45:05 [2025-02-07 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420629', 'tblTempUsageDetail_20' ) start [2025-02-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420629', 'tblTempUsageDetail_20' ) end [2025-02-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420629', 'tblTempVendorCDR_20' ) start [2025-02-07 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420629', 'tblTempVendorCDR_20' ) end [2025-02-07 06:45:18] Production.INFO: ProcessCDR(1,14420629,1,1,2) [2025-02-07 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420629', 'tblTempUsageDetail_20' ) start [2025-02-07 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420629', 'tblTempUsageDetail_20' ) end [2025-02-07 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:45:21] Production.INFO: ==7682== Releasing lock... [2025-02-07 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:46:05 [end_date_ymd] => 2025-02-07 06:46:05 [RateCDR] => 1 ) [2025-02-07 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:46:05' and `end` < '2025-02-07 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:46:21] Production.INFO: count ==153 [2025-02-07 06:46:21] Production.ERROR: pbx CDR StartTime 2025-02-07 03:46:05 - End Time 2025-02-07 06:46:05 [2025-02-07 06:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420634', 'tblTempUsageDetail_20' ) start [2025-02-07 06:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420634', 'tblTempUsageDetail_20' ) end [2025-02-07 06:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420634', 'tblTempVendorCDR_20' ) start [2025-02-07 06:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420634', 'tblTempVendorCDR_20' ) end [2025-02-07 06:46:21] Production.INFO: ProcessCDR(1,14420634,1,1,2) [2025-02-07 06:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420634', 'tblTempUsageDetail_20' ) start [2025-02-07 06:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420634', 'tblTempUsageDetail_20' ) end [2025-02-07 06:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:46:25] Production.INFO: ==7763== Releasing lock... [2025-02-07 06:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:46:25] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:47:04 [end_date_ymd] => 2025-02-07 06:47:04 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:47:04' and `end` < '2025-02-07 06: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-07 06:47:19] Production.INFO: count ==153 [2025-02-07 06:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:47:04 - End Time 2025-02-07 06:47:04 [2025-02-07 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420639', 'tblTempUsageDetail_20' ) start [2025-02-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420639', 'tblTempUsageDetail_20' ) end [2025-02-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420639', 'tblTempVendorCDR_20' ) start [2025-02-07 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420639', 'tblTempVendorCDR_20' ) end [2025-02-07 06:47:19] Production.INFO: ProcessCDR(1,14420639,1,1,2) [2025-02-07 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420639', 'tblTempUsageDetail_20' ) start [2025-02-07 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420639', 'tblTempUsageDetail_20' ) end [2025-02-07 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:47:22] Production.INFO: ==7843== Releasing lock... [2025-02-07 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:48:05 [end_date_ymd] => 2025-02-07 06:48:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:48:05' and `end` < '2025-02-07 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-07 06:48:19] Production.INFO: count ==158 [2025-02-07 06:48:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:48:05 - End Time 2025-02-07 06:48:05 [2025-02-07 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420644', 'tblTempUsageDetail_20' ) start [2025-02-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420644', 'tblTempUsageDetail_20' ) end [2025-02-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420644', 'tblTempVendorCDR_20' ) start [2025-02-07 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420644', 'tblTempVendorCDR_20' ) end [2025-02-07 06:48:19] Production.INFO: ProcessCDR(1,14420644,1,1,2) [2025-02-07 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420644', 'tblTempUsageDetail_20' ) start [2025-02-07 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420644', 'tblTempUsageDetail_20' ) end [2025-02-07 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:48:22] Production.INFO: ==7930== Releasing lock... [2025-02-07 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:49:05 [end_date_ymd] => 2025-02-07 06:49:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:49:05' and `end` < '2025-02-07 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-07 06:49:19] Production.INFO: count ==158 [2025-02-07 06:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:49:05 - End Time 2025-02-07 06:49:05 [2025-02-07 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420649', 'tblTempUsageDetail_20' ) start [2025-02-07 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420649', 'tblTempUsageDetail_20' ) end [2025-02-07 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420649', 'tblTempVendorCDR_20' ) start [2025-02-07 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420649', 'tblTempVendorCDR_20' ) end [2025-02-07 06:49:19] Production.INFO: ProcessCDR(1,14420649,1,1,2) [2025-02-07 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420649', 'tblTempUsageDetail_20' ) start [2025-02-07 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420649', 'tblTempUsageDetail_20' ) end [2025-02-07 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:49:22] Production.INFO: ==8020== Releasing lock... [2025-02-07 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:50:06 [end_date_ymd] => 2025-02-07 06:50:06 [RateCDR] => 1 ) [2025-02-07 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:50:06' and `end` < '2025-02-07 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:50:19] Production.INFO: count ==152 [2025-02-07 06:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:50:06 - End Time 2025-02-07 06:50:06 [2025-02-07 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420655', 'tblTempUsageDetail_20' ) start [2025-02-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420655', 'tblTempUsageDetail_20' ) end [2025-02-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420655', 'tblTempVendorCDR_20' ) start [2025-02-07 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420655', 'tblTempVendorCDR_20' ) end [2025-02-07 06:50:19] Production.INFO: ProcessCDR(1,14420655,1,1,2) [2025-02-07 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420655', 'tblTempUsageDetail_20' ) start [2025-02-07 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420655', 'tblTempUsageDetail_20' ) end [2025-02-07 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:50:22] Production.INFO: ==8101== Releasing lock... [2025-02-07 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:51:05 [end_date_ymd] => 2025-02-07 06:51:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:51:05' and `end` < '2025-02-07 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-07 06:51:18] Production.INFO: count ==145 [2025-02-07 06:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:51:05 - End Time 2025-02-07 06:51:05 [2025-02-07 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420660', 'tblTempUsageDetail_20' ) start [2025-02-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420660', 'tblTempUsageDetail_20' ) end [2025-02-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420660', 'tblTempVendorCDR_20' ) start [2025-02-07 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420660', 'tblTempVendorCDR_20' ) end [2025-02-07 06:51:18] Production.INFO: ProcessCDR(1,14420660,1,1,2) [2025-02-07 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420660', 'tblTempUsageDetail_20' ) start [2025-02-07 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420660', 'tblTempUsageDetail_20' ) end [2025-02-07 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:51:21] Production.INFO: ==8186== Releasing lock... [2025-02-07 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:52:06 [end_date_ymd] => 2025-02-07 06:52:06 [RateCDR] => 1 ) [2025-02-07 06: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-07 03:52:06' and `end` < '2025-02-07 06: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-07 06:52:18] Production.INFO: count ==145 [2025-02-07 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:52:06 - End Time 2025-02-07 06:52:06 [2025-02-07 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420665', 'tblTempUsageDetail_20' ) start [2025-02-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420665', 'tblTempUsageDetail_20' ) end [2025-02-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420665', 'tblTempVendorCDR_20' ) start [2025-02-07 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420665', 'tblTempVendorCDR_20' ) end [2025-02-07 06:52:18] Production.INFO: ProcessCDR(1,14420665,1,1,2) [2025-02-07 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420665', 'tblTempUsageDetail_20' ) start [2025-02-07 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420665', 'tblTempUsageDetail_20' ) end [2025-02-07 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:52:22] Production.INFO: ==8270== Releasing lock... [2025-02-07 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:53:05 [end_date_ymd] => 2025-02-07 06:53:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:53:05' and `end` < '2025-02-07 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-07 06:53:19] Production.INFO: count ==145 [2025-02-07 06:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:53:05 - End Time 2025-02-07 06:53:05 [2025-02-07 06:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420670', 'tblTempUsageDetail_20' ) start [2025-02-07 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420670', 'tblTempUsageDetail_20' ) end [2025-02-07 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420670', 'tblTempVendorCDR_20' ) start [2025-02-07 06:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420670', 'tblTempVendorCDR_20' ) end [2025-02-07 06:53:19] Production.INFO: ProcessCDR(1,14420670,1,1,2) [2025-02-07 06:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420670', 'tblTempUsageDetail_20' ) start [2025-02-07 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420670', 'tblTempUsageDetail_20' ) end [2025-02-07 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:53:22] Production.INFO: ==8390== Releasing lock... [2025-02-07 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:53:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:54:05 [end_date_ymd] => 2025-02-07 06:54:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:54:05' and `end` < '2025-02-07 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-07 06:54:18] Production.INFO: count ==145 [2025-02-07 06:54:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:54:05 - End Time 2025-02-07 06:54:05 [2025-02-07 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420675', 'tblTempUsageDetail_20' ) start [2025-02-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420675', 'tblTempUsageDetail_20' ) end [2025-02-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420675', 'tblTempVendorCDR_20' ) start [2025-02-07 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420675', 'tblTempVendorCDR_20' ) end [2025-02-07 06:54:19] Production.INFO: ProcessCDR(1,14420675,1,1,2) [2025-02-07 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420675', 'tblTempUsageDetail_20' ) start [2025-02-07 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420675', 'tblTempUsageDetail_20' ) end [2025-02-07 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:54:22] Production.INFO: ==8473== Releasing lock... [2025-02-07 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:55:06 [end_date_ymd] => 2025-02-07 06:55:06 [RateCDR] => 1 ) [2025-02-07 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:55:06' and `end` < '2025-02-07 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:55:19] Production.INFO: count ==145 [2025-02-07 06:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:55:06 - End Time 2025-02-07 06:55:06 [2025-02-07 06:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420680', 'tblTempUsageDetail_20' ) start [2025-02-07 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420680', 'tblTempUsageDetail_20' ) end [2025-02-07 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420680', 'tblTempVendorCDR_20' ) start [2025-02-07 06:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420680', 'tblTempVendorCDR_20' ) end [2025-02-07 06:55:19] Production.INFO: ProcessCDR(1,14420680,1,1,2) [2025-02-07 06:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420680', 'tblTempUsageDetail_20' ) start [2025-02-07 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420680', 'tblTempUsageDetail_20' ) end [2025-02-07 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:55:21] Production.INFO: ==8565== Releasing lock... [2025-02-07 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:56:05 [end_date_ymd] => 2025-02-07 06:56:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:56:05' and `end` < '2025-02-07 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-07 06:56:19] Production.INFO: count ==143 [2025-02-07 06:56:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:56:05 - End Time 2025-02-07 06:56:05 [2025-02-07 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420685', 'tblTempUsageDetail_20' ) start [2025-02-07 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420685', 'tblTempUsageDetail_20' ) end [2025-02-07 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420685', 'tblTempVendorCDR_20' ) start [2025-02-07 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420685', 'tblTempVendorCDR_20' ) end [2025-02-07 06:56:19] Production.INFO: ProcessCDR(1,14420685,1,1,2) [2025-02-07 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420685', 'tblTempUsageDetail_20' ) start [2025-02-07 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420685', 'tblTempUsageDetail_20' ) end [2025-02-07 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:56:22] Production.INFO: ==8649== Releasing lock... [2025-02-07 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:57:05 [end_date_ymd] => 2025-02-07 06:57:05 [RateCDR] => 1 ) [2025-02-07 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 03:57:05' and `end` < '2025-02-07 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 06:57:18] Production.INFO: count ==142 [2025-02-07 06:57:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:57:05 - End Time 2025-02-07 06:57:05 [2025-02-07 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420690', 'tblTempUsageDetail_20' ) start [2025-02-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420690', 'tblTempUsageDetail_20' ) end [2025-02-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420690', 'tblTempVendorCDR_20' ) start [2025-02-07 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420690', 'tblTempVendorCDR_20' ) end [2025-02-07 06:57:18] Production.INFO: ProcessCDR(1,14420690,1,1,2) [2025-02-07 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420690', 'tblTempUsageDetail_20' ) start [2025-02-07 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420690', 'tblTempUsageDetail_20' ) end [2025-02-07 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:57:22] Production.INFO: ==8728== Releasing lock... [2025-02-07 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:58:05 [end_date_ymd] => 2025-02-07 06:58:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:58:05' and `end` < '2025-02-07 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-07 06:58:18] Production.INFO: count ==142 [2025-02-07 06:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 03:58:05 - End Time 2025-02-07 06:58:05 [2025-02-07 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420695', 'tblTempUsageDetail_20' ) start [2025-02-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420695', 'tblTempUsageDetail_20' ) end [2025-02-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420695', 'tblTempVendorCDR_20' ) start [2025-02-07 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420695', 'tblTempVendorCDR_20' ) end [2025-02-07 06:58:18] Production.INFO: ProcessCDR(1,14420695,1,1,2) [2025-02-07 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420695', 'tblTempUsageDetail_20' ) start [2025-02-07 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420695', 'tblTempUsageDetail_20' ) end [2025-02-07 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:58:21] Production.INFO: ==8810== Releasing lock... [2025-02-07 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 03:59:05 [end_date_ymd] => 2025-02-07 06:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 03:59:05' and `end` < '2025-02-07 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-07 06:59:19] Production.INFO: count ==145 [2025-02-07 06:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 03:59:05 - End Time 2025-02-07 06:59:05 [2025-02-07 06:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420700', 'tblTempUsageDetail_20' ) start [2025-02-07 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420700', 'tblTempUsageDetail_20' ) end [2025-02-07 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420700', 'tblTempVendorCDR_20' ) start [2025-02-07 06:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420700', 'tblTempVendorCDR_20' ) end [2025-02-07 06:59:19] Production.INFO: ProcessCDR(1,14420700,1,1,2) [2025-02-07 06:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420700', 'tblTempUsageDetail_20' ) start [2025-02-07 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420700', 'tblTempUsageDetail_20' ) end [2025-02-07 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 06:59:22] Production.INFO: ==8893== Releasing lock... [2025-02-07 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 06:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:00:06 [end_date_ymd] => 2025-02-07 07:00:06 [RateCDR] => 1 ) [2025-02-07 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-07 04:00:06' and `end` < '2025-02-07 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-07 07:00:19] Production.INFO: count ==144 [2025-02-07 07:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:00:06 - End Time 2025-02-07 07:00:06 [2025-02-07 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420706', 'tblTempUsageDetail_20' ) start [2025-02-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420706', 'tblTempUsageDetail_20' ) end [2025-02-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420706', 'tblTempVendorCDR_20' ) start [2025-02-07 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420706', 'tblTempVendorCDR_20' ) end [2025-02-07 07:00:19] Production.INFO: ProcessCDR(1,14420706,1,1,2) [2025-02-07 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420706', 'tblTempUsageDetail_20' ) start [2025-02-07 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420706', 'tblTempUsageDetail_20' ) end [2025-02-07 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:00:23] Production.INFO: ==8978== Releasing lock... [2025-02-07 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:01:06 [end_date_ymd] => 2025-02-07 07:01:06 [RateCDR] => 1 ) [2025-02-07 07:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:01:06' and `end` < '2025-02-07 07:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:01:33] Production.INFO: count ==144 [2025-02-07 07:01:33] Production.ERROR: pbx CDR StartTime 2025-02-07 04:01:06 - End Time 2025-02-07 07:01:06 [2025-02-07 07:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420711', 'tblTempUsageDetail_20' ) start [2025-02-07 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420711', 'tblTempUsageDetail_20' ) end [2025-02-07 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420711', 'tblTempVendorCDR_20' ) start [2025-02-07 07:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420711', 'tblTempVendorCDR_20' ) end [2025-02-07 07:01:33] Production.INFO: ProcessCDR(1,14420711,1,1,2) [2025-02-07 07:01:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:01:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:01:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420711', 'tblTempUsageDetail_20' ) start [2025-02-07 07:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420711', 'tblTempUsageDetail_20' ) end [2025-02-07 07:01:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:01:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:01:36] Production.INFO: ==9155== Releasing lock... [2025-02-07 07:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:01:36] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:02:05 [end_date_ymd] => 2025-02-07 07:02:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:02:05' and `end` < '2025-02-07 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-07 07:02:20] Production.INFO: count ==144 [2025-02-07 07:02:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:02:05 - End Time 2025-02-07 07:02:05 [2025-02-07 07:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420716', 'tblTempUsageDetail_20' ) start [2025-02-07 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420716', 'tblTempUsageDetail_20' ) end [2025-02-07 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420716', 'tblTempVendorCDR_20' ) start [2025-02-07 07:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420716', 'tblTempVendorCDR_20' ) end [2025-02-07 07:02:20] Production.INFO: ProcessCDR(1,14420716,1,1,2) [2025-02-07 07:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420716', 'tblTempUsageDetail_20' ) start [2025-02-07 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420716', 'tblTempUsageDetail_20' ) end [2025-02-07 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:02:24] Production.INFO: ==9242== Releasing lock... [2025-02-07 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:02:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:03:06 [end_date_ymd] => 2025-02-07 07:03:06 [RateCDR] => 1 ) [2025-02-07 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-07 04:03:06' and `end` < '2025-02-07 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-07 07:03:20] Production.INFO: count ==141 [2025-02-07 07:03:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:03:06 - End Time 2025-02-07 07:03:06 [2025-02-07 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420721', 'tblTempUsageDetail_20' ) start [2025-02-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420721', 'tblTempUsageDetail_20' ) end [2025-02-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420721', 'tblTempVendorCDR_20' ) start [2025-02-07 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420721', 'tblTempVendorCDR_20' ) end [2025-02-07 07:03:20] Production.INFO: ProcessCDR(1,14420721,1,1,2) [2025-02-07 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420721', 'tblTempUsageDetail_20' ) start [2025-02-07 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420721', 'tblTempUsageDetail_20' ) end [2025-02-07 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:03:24] Production.INFO: ==9325== Releasing lock... [2025-02-07 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:03:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:04:06 [end_date_ymd] => 2025-02-07 07:04:06 [RateCDR] => 1 ) [2025-02-07 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:04:06' and `end` < '2025-02-07 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:04:20] Production.INFO: count ==141 [2025-02-07 07:04:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:04:06 - End Time 2025-02-07 07:04:06 [2025-02-07 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420726', 'tblTempUsageDetail_20' ) start [2025-02-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420726', 'tblTempUsageDetail_20' ) end [2025-02-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420726', 'tblTempVendorCDR_20' ) start [2025-02-07 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420726', 'tblTempVendorCDR_20' ) end [2025-02-07 07:04:20] Production.INFO: ProcessCDR(1,14420726,1,1,2) [2025-02-07 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420726', 'tblTempUsageDetail_20' ) start [2025-02-07 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420726', 'tblTempUsageDetail_20' ) end [2025-02-07 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:04:24] Production.INFO: ==9404== Releasing lock... [2025-02-07 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:04:24] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:05:05 [end_date_ymd] => 2025-02-07 07:05:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:05:05' and `end` < '2025-02-07 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-07 07:05:19] Production.INFO: count ==141 [2025-02-07 07:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:05:05 - End Time 2025-02-07 07:05:05 [2025-02-07 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420731', 'tblTempUsageDetail_20' ) start [2025-02-07 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420731', 'tblTempUsageDetail_20' ) end [2025-02-07 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420731', 'tblTempVendorCDR_20' ) start [2025-02-07 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420731', 'tblTempVendorCDR_20' ) end [2025-02-07 07:05:19] Production.INFO: ProcessCDR(1,14420731,1,1,2) [2025-02-07 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420731', 'tblTempUsageDetail_20' ) start [2025-02-07 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420731', 'tblTempUsageDetail_20' ) end [2025-02-07 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:05:22] Production.INFO: ==9561== Releasing lock... [2025-02-07 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:06:05 [end_date_ymd] => 2025-02-07 07:06:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:06:05' and `end` < '2025-02-07 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-07 07:06:19] Production.INFO: count ==139 [2025-02-07 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:06:05 - End Time 2025-02-07 07:06:05 [2025-02-07 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420736', 'tblTempUsageDetail_20' ) start [2025-02-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420736', 'tblTempUsageDetail_20' ) end [2025-02-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420736', 'tblTempVendorCDR_20' ) start [2025-02-07 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420736', 'tblTempVendorCDR_20' ) end [2025-02-07 07:06:19] Production.INFO: ProcessCDR(1,14420736,1,1,2) [2025-02-07 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420736', 'tblTempUsageDetail_20' ) start [2025-02-07 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420736', 'tblTempUsageDetail_20' ) end [2025-02-07 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:06:22] Production.INFO: ==9645== Releasing lock... [2025-02-07 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:07:06 [end_date_ymd] => 2025-02-07 07:07:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:07:06' and `end` < '2025-02-07 07: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-07 07:07:21] Production.INFO: count ==138 [2025-02-07 07:07:21] Production.ERROR: pbx CDR StartTime 2025-02-07 04:07:06 - End Time 2025-02-07 07:07:06 [2025-02-07 07:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420741', 'tblTempUsageDetail_20' ) start [2025-02-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420741', 'tblTempUsageDetail_20' ) end [2025-02-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420741', 'tblTempVendorCDR_20' ) start [2025-02-07 07:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420741', 'tblTempVendorCDR_20' ) end [2025-02-07 07:07:21] Production.INFO: ProcessCDR(1,14420741,1,1,2) [2025-02-07 07:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420741', 'tblTempUsageDetail_20' ) start [2025-02-07 07:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420741', 'tblTempUsageDetail_20' ) end [2025-02-07 07:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:07:24] Production.INFO: ==9723== Releasing lock... [2025-02-07 07:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:07:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:08:06 [end_date_ymd] => 2025-02-07 07:08:06 [RateCDR] => 1 ) [2025-02-07 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:08:06' and `end` < '2025-02-07 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:08:20] Production.INFO: count ==138 [2025-02-07 07:08:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:08:06 - End Time 2025-02-07 07:08:06 [2025-02-07 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420746', 'tblTempUsageDetail_20' ) start [2025-02-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420746', 'tblTempUsageDetail_20' ) end [2025-02-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420746', 'tblTempVendorCDR_20' ) start [2025-02-07 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420746', 'tblTempVendorCDR_20' ) end [2025-02-07 07:08:20] Production.INFO: ProcessCDR(1,14420746,1,1,2) [2025-02-07 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420746', 'tblTempUsageDetail_20' ) start [2025-02-07 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420746', 'tblTempUsageDetail_20' ) end [2025-02-07 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:08:24] Production.INFO: ==9885== Releasing lock... [2025-02-07 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:08:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:09:06 [end_date_ymd] => 2025-02-07 07:09:06 [RateCDR] => 1 ) [2025-02-07 07:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:09:06' and `end` < '2025-02-07 07:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:09:20] Production.INFO: count ==138 [2025-02-07 07:09:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:09:06 - End Time 2025-02-07 07:09:06 [2025-02-07 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420751', 'tblTempUsageDetail_20' ) start [2025-02-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420751', 'tblTempUsageDetail_20' ) end [2025-02-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420751', 'tblTempVendorCDR_20' ) start [2025-02-07 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420751', 'tblTempVendorCDR_20' ) end [2025-02-07 07:09:20] Production.INFO: ProcessCDR(1,14420751,1,1,2) [2025-02-07 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420751', 'tblTempUsageDetail_20' ) start [2025-02-07 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420751', 'tblTempUsageDetail_20' ) end [2025-02-07 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:09:23] Production.INFO: ==10006== Releasing lock... [2025-02-07 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:09:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:10:06 [end_date_ymd] => 2025-02-07 07:10:06 [RateCDR] => 1 ) [2025-02-07 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:10:06' and `end` < '2025-02-07 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:10:20] Production.INFO: count ==138 [2025-02-07 07:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:10:06 - End Time 2025-02-07 07:10:06 [2025-02-07 07:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420757', 'tblTempUsageDetail_20' ) start [2025-02-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420757', 'tblTempUsageDetail_20' ) end [2025-02-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420757', 'tblTempVendorCDR_20' ) start [2025-02-07 07:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420757', 'tblTempVendorCDR_20' ) end [2025-02-07 07:10:20] Production.INFO: ProcessCDR(1,14420757,1,1,2) [2025-02-07 07:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420757', 'tblTempUsageDetail_20' ) start [2025-02-07 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420757', 'tblTempUsageDetail_20' ) end [2025-02-07 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:10:24] Production.INFO: ==10092== Releasing lock... [2025-02-07 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:10:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:11:06 [end_date_ymd] => 2025-02-07 07:11:06 [RateCDR] => 1 ) [2025-02-07 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:11:06' and `end` < '2025-02-07 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:11:20] Production.INFO: count ==138 [2025-02-07 07:11:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:11:06 - End Time 2025-02-07 07:11:06 [2025-02-07 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420762', 'tblTempUsageDetail_20' ) start [2025-02-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420762', 'tblTempUsageDetail_20' ) end [2025-02-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420762', 'tblTempVendorCDR_20' ) start [2025-02-07 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420762', 'tblTempVendorCDR_20' ) end [2025-02-07 07:11:20] Production.INFO: ProcessCDR(1,14420762,1,1,2) [2025-02-07 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420762', 'tblTempUsageDetail_20' ) start [2025-02-07 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420762', 'tblTempUsageDetail_20' ) end [2025-02-07 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:11:24] Production.INFO: ==10173== Releasing lock... [2025-02-07 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:11:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:12:05 [end_date_ymd] => 2025-02-07 07:12:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:12:05' and `end` < '2025-02-07 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-07 07:12:19] Production.INFO: count ==138 [2025-02-07 07:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:12:05 - End Time 2025-02-07 07:12:05 [2025-02-07 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420767', 'tblTempUsageDetail_20' ) start [2025-02-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420767', 'tblTempUsageDetail_20' ) end [2025-02-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420767', 'tblTempVendorCDR_20' ) start [2025-02-07 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420767', 'tblTempVendorCDR_20' ) end [2025-02-07 07:12:19] Production.INFO: ProcessCDR(1,14420767,1,1,2) [2025-02-07 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420767', 'tblTempUsageDetail_20' ) start [2025-02-07 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420767', 'tblTempUsageDetail_20' ) end [2025-02-07 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:12:23] Production.INFO: ==10333== Releasing lock... [2025-02-07 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:12:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:13:06 [end_date_ymd] => 2025-02-07 07:13:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:13:06' and `end` < '2025-02-07 07: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-07 07:13:20] Production.INFO: count ==138 [2025-02-07 07:13:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:13:06 - End Time 2025-02-07 07:13:06 [2025-02-07 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420772', 'tblTempUsageDetail_20' ) start [2025-02-07 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420772', 'tblTempUsageDetail_20' ) end [2025-02-07 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420772', 'tblTempVendorCDR_20' ) start [2025-02-07 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420772', 'tblTempVendorCDR_20' ) end [2025-02-07 07:13:20] Production.INFO: ProcessCDR(1,14420772,1,1,2) [2025-02-07 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420772', 'tblTempUsageDetail_20' ) start [2025-02-07 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420772', 'tblTempUsageDetail_20' ) end [2025-02-07 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:13:23] Production.INFO: ==10410== Releasing lock... [2025-02-07 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:13:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:14:06 [end_date_ymd] => 2025-02-07 07:14:06 [RateCDR] => 1 ) [2025-02-07 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:14:06' and `end` < '2025-02-07 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:14:20] Production.INFO: count ==138 [2025-02-07 07:14:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:14:06 - End Time 2025-02-07 07:14:06 [2025-02-07 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420777', 'tblTempUsageDetail_20' ) start [2025-02-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420777', 'tblTempUsageDetail_20' ) end [2025-02-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420777', 'tblTempVendorCDR_20' ) start [2025-02-07 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420777', 'tblTempVendorCDR_20' ) end [2025-02-07 07:14:20] Production.INFO: ProcessCDR(1,14420777,1,1,2) [2025-02-07 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420777', 'tblTempUsageDetail_20' ) start [2025-02-07 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420777', 'tblTempUsageDetail_20' ) end [2025-02-07 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:14:24] Production.INFO: ==10487== Releasing lock... [2025-02-07 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:14:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:15:06 [end_date_ymd] => 2025-02-07 07:15:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:15:06' and `end` < '2025-02-07 07: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-07 07:15:19] Production.INFO: count ==138 [2025-02-07 07:15:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:15:06 - End Time 2025-02-07 07:15:06 [2025-02-07 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420782', 'tblTempUsageDetail_20' ) start [2025-02-07 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420782', 'tblTempUsageDetail_20' ) end [2025-02-07 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420782', 'tblTempVendorCDR_20' ) start [2025-02-07 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420782', 'tblTempVendorCDR_20' ) end [2025-02-07 07:15:19] Production.INFO: ProcessCDR(1,14420782,1,1,2) [2025-02-07 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420782', 'tblTempUsageDetail_20' ) start [2025-02-07 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420782', 'tblTempUsageDetail_20' ) end [2025-02-07 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:15:23] Production.INFO: ==10646== Releasing lock... [2025-02-07 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:15:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:16:05 [end_date_ymd] => 2025-02-07 07:16:05 [RateCDR] => 1 ) [2025-02-07 07:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:16:05' and `end` < '2025-02-07 07:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:16:19] Production.INFO: count ==138 [2025-02-07 07:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:16:05 - End Time 2025-02-07 07:16:05 [2025-02-07 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420787', 'tblTempUsageDetail_20' ) start [2025-02-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420787', 'tblTempUsageDetail_20' ) end [2025-02-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420787', 'tblTempVendorCDR_20' ) start [2025-02-07 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420787', 'tblTempVendorCDR_20' ) end [2025-02-07 07:16:19] Production.INFO: ProcessCDR(1,14420787,1,1,2) [2025-02-07 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420787', 'tblTempUsageDetail_20' ) start [2025-02-07 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420787', 'tblTempUsageDetail_20' ) end [2025-02-07 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:16:23] Production.INFO: ==10723== Releasing lock... [2025-02-07 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:16:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:17:06 [end_date_ymd] => 2025-02-07 07:17:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:17:06' and `end` < '2025-02-07 07: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-07 07:17:21] Production.INFO: count ==138 [2025-02-07 07:17:21] Production.ERROR: pbx CDR StartTime 2025-02-07 04:17:06 - End Time 2025-02-07 07:17:06 [2025-02-07 07:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420792', 'tblTempUsageDetail_20' ) start [2025-02-07 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420792', 'tblTempUsageDetail_20' ) end [2025-02-07 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420792', 'tblTempVendorCDR_20' ) start [2025-02-07 07:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420792', 'tblTempVendorCDR_20' ) end [2025-02-07 07:17:21] Production.INFO: ProcessCDR(1,14420792,1,1,2) [2025-02-07 07:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420792', 'tblTempUsageDetail_20' ) start [2025-02-07 07:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420792', 'tblTempUsageDetail_20' ) end [2025-02-07 07:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:17:25] Production.INFO: ==10809== Releasing lock... [2025-02-07 07:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:17:25] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:18:05 [end_date_ymd] => 2025-02-07 07:18:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:18:05' and `end` < '2025-02-07 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-07 07:18:19] Production.INFO: count ==138 [2025-02-07 07:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:18:05 - End Time 2025-02-07 07:18:05 [2025-02-07 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420797', 'tblTempUsageDetail_20' ) start [2025-02-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420797', 'tblTempUsageDetail_20' ) end [2025-02-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420797', 'tblTempVendorCDR_20' ) start [2025-02-07 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420797', 'tblTempVendorCDR_20' ) end [2025-02-07 07:18:19] Production.INFO: ProcessCDR(1,14420797,1,1,2) [2025-02-07 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420797', 'tblTempUsageDetail_20' ) start [2025-02-07 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420797', 'tblTempUsageDetail_20' ) end [2025-02-07 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:18:23] Production.INFO: ==10889== Releasing lock... [2025-02-07 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:18:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:19:05 [end_date_ymd] => 2025-02-07 07:19:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:19:05' and `end` < '2025-02-07 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-07 07:19:19] Production.INFO: count ==138 [2025-02-07 07:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:19:05 - End Time 2025-02-07 07:19:05 [2025-02-07 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420802', 'tblTempUsageDetail_20' ) start [2025-02-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420802', 'tblTempUsageDetail_20' ) end [2025-02-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420802', 'tblTempVendorCDR_20' ) start [2025-02-07 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420802', 'tblTempVendorCDR_20' ) end [2025-02-07 07:19:19] Production.INFO: ProcessCDR(1,14420802,1,1,2) [2025-02-07 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420802', 'tblTempUsageDetail_20' ) start [2025-02-07 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420802', 'tblTempUsageDetail_20' ) end [2025-02-07 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:19:23] Production.INFO: ==10964== Releasing lock... [2025-02-07 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:19:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:20:06 [end_date_ymd] => 2025-02-07 07:20:06 [RateCDR] => 1 ) [2025-02-07 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:20:06' and `end` < '2025-02-07 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:20:20] Production.INFO: count ==138 [2025-02-07 07:20:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:20:06 - End Time 2025-02-07 07:20:06 [2025-02-07 07:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420808', 'tblTempUsageDetail_20' ) start [2025-02-07 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420808', 'tblTempUsageDetail_20' ) end [2025-02-07 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420808', 'tblTempVendorCDR_20' ) start [2025-02-07 07:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420808', 'tblTempVendorCDR_20' ) end [2025-02-07 07:20:20] Production.INFO: ProcessCDR(1,14420808,1,1,2) [2025-02-07 07:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420808', 'tblTempUsageDetail_20' ) start [2025-02-07 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420808', 'tblTempUsageDetail_20' ) end [2025-02-07 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:20:23] Production.INFO: ==11050== Releasing lock... [2025-02-07 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:20:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:21:06 [end_date_ymd] => 2025-02-07 07:21:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:21:06' and `end` < '2025-02-07 07: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-07 07:21:20] Production.INFO: count ==138 [2025-02-07 07:21:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:21:06 - End Time 2025-02-07 07:21:06 [2025-02-07 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420813', 'tblTempUsageDetail_20' ) start [2025-02-07 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420813', 'tblTempUsageDetail_20' ) end [2025-02-07 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420813', 'tblTempVendorCDR_20' ) start [2025-02-07 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420813', 'tblTempVendorCDR_20' ) end [2025-02-07 07:21:20] Production.INFO: ProcessCDR(1,14420813,1,1,2) [2025-02-07 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420813', 'tblTempUsageDetail_20' ) start [2025-02-07 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420813', 'tblTempUsageDetail_20' ) end [2025-02-07 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:21:24] Production.INFO: ==11132== Releasing lock... [2025-02-07 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:21:24] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:22:05 [end_date_ymd] => 2025-02-07 07:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:22:05' and `end` < '2025-02-07 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-07 07:22:19] Production.INFO: count ==138 [2025-02-07 07:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:22:05 - End Time 2025-02-07 07:22:05 [2025-02-07 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420818', 'tblTempUsageDetail_20' ) start [2025-02-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420818', 'tblTempUsageDetail_20' ) end [2025-02-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420818', 'tblTempVendorCDR_20' ) start [2025-02-07 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420818', 'tblTempVendorCDR_20' ) end [2025-02-07 07:22:19] Production.INFO: ProcessCDR(1,14420818,1,1,2) [2025-02-07 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420818', 'tblTempUsageDetail_20' ) start [2025-02-07 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420818', 'tblTempUsageDetail_20' ) end [2025-02-07 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:22:22] Production.INFO: ==11210== Releasing lock... [2025-02-07 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:23:06 [end_date_ymd] => 2025-02-07 07:23:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:23:06' and `end` < '2025-02-07 07: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-07 07:23:19] Production.INFO: count ==136 [2025-02-07 07:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:23:06 - End Time 2025-02-07 07:23:06 [2025-02-07 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420823', 'tblTempUsageDetail_20' ) start [2025-02-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420823', 'tblTempUsageDetail_20' ) end [2025-02-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420823', 'tblTempVendorCDR_20' ) start [2025-02-07 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420823', 'tblTempVendorCDR_20' ) end [2025-02-07 07:23:19] Production.INFO: ProcessCDR(1,14420823,1,1,2) [2025-02-07 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420823', 'tblTempUsageDetail_20' ) start [2025-02-07 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420823', 'tblTempUsageDetail_20' ) end [2025-02-07 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:23:23] Production.INFO: ==11287== Releasing lock... [2025-02-07 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:23:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:24:06 [end_date_ymd] => 2025-02-07 07:24:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:24:06' and `end` < '2025-02-07 07: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-07 07:24:19] Production.INFO: count ==138 [2025-02-07 07:24:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:24:06 - End Time 2025-02-07 07:24:06 [2025-02-07 07:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420828', 'tblTempUsageDetail_20' ) start [2025-02-07 07:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420828', 'tblTempUsageDetail_20' ) end [2025-02-07 07:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420828', 'tblTempVendorCDR_20' ) start [2025-02-07 07:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420828', 'tblTempVendorCDR_20' ) end [2025-02-07 07:24:20] Production.INFO: ProcessCDR(1,14420828,1,1,2) [2025-02-07 07:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420828', 'tblTempUsageDetail_20' ) start [2025-02-07 07:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420828', 'tblTempUsageDetail_20' ) end [2025-02-07 07:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:24:23] Production.INFO: ==11404== Releasing lock... [2025-02-07 07:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:24:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:25:06 [end_date_ymd] => 2025-02-07 07:25:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:25:06' and `end` < '2025-02-07 07: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-07 07:25:20] Production.INFO: count ==138 [2025-02-07 07:25:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:25:06 - End Time 2025-02-07 07:25:06 [2025-02-07 07:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420833', 'tblTempUsageDetail_20' ) start [2025-02-07 07:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420833', 'tblTempUsageDetail_20' ) end [2025-02-07 07:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420833', 'tblTempVendorCDR_20' ) start [2025-02-07 07:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420833', 'tblTempVendorCDR_20' ) end [2025-02-07 07:25:20] Production.INFO: ProcessCDR(1,14420833,1,1,2) [2025-02-07 07:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420833', 'tblTempUsageDetail_20' ) start [2025-02-07 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420833', 'tblTempUsageDetail_20' ) end [2025-02-07 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:25:23] Production.INFO: ==11484== Releasing lock... [2025-02-07 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:26:05 [end_date_ymd] => 2025-02-07 07:26:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:26:05' and `end` < '2025-02-07 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-07 07:26:18] Production.INFO: count ==138 [2025-02-07 07:26:18] Production.ERROR: pbx CDR StartTime 2025-02-07 04:26:05 - End Time 2025-02-07 07:26:05 [2025-02-07 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420838', 'tblTempUsageDetail_20' ) start [2025-02-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420838', 'tblTempUsageDetail_20' ) end [2025-02-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420838', 'tblTempVendorCDR_20' ) start [2025-02-07 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420838', 'tblTempVendorCDR_20' ) end [2025-02-07 07:26:18] Production.INFO: ProcessCDR(1,14420838,1,1,2) [2025-02-07 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420838', 'tblTempUsageDetail_20' ) start [2025-02-07 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420838', 'tblTempUsageDetail_20' ) end [2025-02-07 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:26:22] Production.INFO: ==11562== Releasing lock... [2025-02-07 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:27:06 [end_date_ymd] => 2025-02-07 07:27:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:27:06' and `end` < '2025-02-07 07: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-07 07:27:20] Production.INFO: count ==138 [2025-02-07 07:27:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:27:06 - End Time 2025-02-07 07:27:06 [2025-02-07 07:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420843', 'tblTempUsageDetail_20' ) start [2025-02-07 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420843', 'tblTempUsageDetail_20' ) end [2025-02-07 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420843', 'tblTempVendorCDR_20' ) start [2025-02-07 07:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420843', 'tblTempVendorCDR_20' ) end [2025-02-07 07:27:20] Production.INFO: ProcessCDR(1,14420843,1,1,2) [2025-02-07 07:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420843', 'tblTempUsageDetail_20' ) start [2025-02-07 07:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420843', 'tblTempUsageDetail_20' ) end [2025-02-07 07:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:27:23] Production.INFO: ==11639== Releasing lock... [2025-02-07 07:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:27:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:28:05 [end_date_ymd] => 2025-02-07 07:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:28:05' and `end` < '2025-02-07 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-07 07:28:19] Production.INFO: count ==138 [2025-02-07 07:28:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:28:05 - End Time 2025-02-07 07:28:05 [2025-02-07 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420848', 'tblTempUsageDetail_20' ) start [2025-02-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420848', 'tblTempUsageDetail_20' ) end [2025-02-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420848', 'tblTempVendorCDR_20' ) start [2025-02-07 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420848', 'tblTempVendorCDR_20' ) end [2025-02-07 07:28:19] Production.INFO: ProcessCDR(1,14420848,1,1,2) [2025-02-07 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420848', 'tblTempUsageDetail_20' ) start [2025-02-07 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420848', 'tblTempUsageDetail_20' ) end [2025-02-07 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:28:22] Production.INFO: ==11713== Releasing lock... [2025-02-07 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:28:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:29:06 [end_date_ymd] => 2025-02-07 07:29:06 [RateCDR] => 1 ) [2025-02-07 07:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:29:06' and `end` < '2025-02-07 07:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:29:19] Production.INFO: count ==138 [2025-02-07 07:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:29:06 - End Time 2025-02-07 07:29:06 [2025-02-07 07:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420853', 'tblTempUsageDetail_20' ) start [2025-02-07 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420853', 'tblTempUsageDetail_20' ) end [2025-02-07 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420853', 'tblTempVendorCDR_20' ) start [2025-02-07 07:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420853', 'tblTempVendorCDR_20' ) end [2025-02-07 07:29:19] Production.INFO: ProcessCDR(1,14420853,1,1,2) [2025-02-07 07:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420853', 'tblTempUsageDetail_20' ) start [2025-02-07 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420853', 'tblTempUsageDetail_20' ) end [2025-02-07 07:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:29:23] Production.INFO: ==11791== Releasing lock... [2025-02-07 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:29:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:30:06 [end_date_ymd] => 2025-02-07 07:30:06 [RateCDR] => 1 ) [2025-02-07 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:30:06' and `end` < '2025-02-07 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:30:19] Production.INFO: count ==135 [2025-02-07 07:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:30:06 - End Time 2025-02-07 07:30:06 [2025-02-07 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420858', 'tblTempUsageDetail_20' ) start [2025-02-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420858', 'tblTempUsageDetail_20' ) end [2025-02-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420858', 'tblTempVendorCDR_20' ) start [2025-02-07 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420858', 'tblTempVendorCDR_20' ) end [2025-02-07 07:30:19] Production.INFO: ProcessCDR(1,14420858,1,1,2) [2025-02-07 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420858', 'tblTempUsageDetail_20' ) start [2025-02-07 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420858', 'tblTempUsageDetail_20' ) end [2025-02-07 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:30:22] Production.INFO: ==11883== Releasing lock... [2025-02-07 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:31:06 [end_date_ymd] => 2025-02-07 07:31:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:31:06' and `end` < '2025-02-07 07: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-07 07:31:19] Production.INFO: count ==135 [2025-02-07 07:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:31:06 - End Time 2025-02-07 07:31:06 [2025-02-07 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420864', 'tblTempUsageDetail_20' ) start [2025-02-07 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420864', 'tblTempUsageDetail_20' ) end [2025-02-07 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420864', 'tblTempVendorCDR_20' ) start [2025-02-07 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420864', 'tblTempVendorCDR_20' ) end [2025-02-07 07:31:19] Production.INFO: ProcessCDR(1,14420864,1,1,2) [2025-02-07 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420864', 'tblTempUsageDetail_20' ) start [2025-02-07 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420864', 'tblTempUsageDetail_20' ) end [2025-02-07 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:31:22] Production.INFO: ==11962== Releasing lock... [2025-02-07 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:32:05 [end_date_ymd] => 2025-02-07 07:32:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:32:05' and `end` < '2025-02-07 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-07 07:32:19] Production.INFO: count ==135 [2025-02-07 07:32:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:32:05 - End Time 2025-02-07 07:32:05 [2025-02-07 07:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420869', 'tblTempUsageDetail_20' ) start [2025-02-07 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420869', 'tblTempUsageDetail_20' ) end [2025-02-07 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420869', 'tblTempVendorCDR_20' ) start [2025-02-07 07:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420869', 'tblTempVendorCDR_20' ) end [2025-02-07 07:32:19] Production.INFO: ProcessCDR(1,14420869,1,1,2) [2025-02-07 07:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420869', 'tblTempUsageDetail_20' ) start [2025-02-07 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420869', 'tblTempUsageDetail_20' ) end [2025-02-07 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:32:22] Production.INFO: ==12040== Releasing lock... [2025-02-07 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:33:06 [end_date_ymd] => 2025-02-07 07:33:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:33:06' and `end` < '2025-02-07 07: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-07 07:33:19] Production.INFO: count ==135 [2025-02-07 07:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:33:06 - End Time 2025-02-07 07:33:06 [2025-02-07 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420874', 'tblTempUsageDetail_20' ) start [2025-02-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420874', 'tblTempUsageDetail_20' ) end [2025-02-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420874', 'tblTempVendorCDR_20' ) start [2025-02-07 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420874', 'tblTempVendorCDR_20' ) end [2025-02-07 07:33:19] Production.INFO: ProcessCDR(1,14420874,1,1,2) [2025-02-07 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420874', 'tblTempUsageDetail_20' ) start [2025-02-07 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420874', 'tblTempUsageDetail_20' ) end [2025-02-07 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:33:22] Production.INFO: ==12118== Releasing lock... [2025-02-07 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:34:06 [end_date_ymd] => 2025-02-07 07:34:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:34:06' and `end` < '2025-02-07 07: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-07 07:34:19] Production.INFO: count ==138 [2025-02-07 07:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:34:06 - End Time 2025-02-07 07:34:06 [2025-02-07 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420879', 'tblTempUsageDetail_20' ) start [2025-02-07 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420879', 'tblTempUsageDetail_20' ) end [2025-02-07 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420879', 'tblTempVendorCDR_20' ) start [2025-02-07 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420879', 'tblTempVendorCDR_20' ) end [2025-02-07 07:34:19] Production.INFO: ProcessCDR(1,14420879,1,1,2) [2025-02-07 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420879', 'tblTempUsageDetail_20' ) start [2025-02-07 07:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420879', 'tblTempUsageDetail_20' ) end [2025-02-07 07:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:34:23] Production.INFO: ==12211== Releasing lock... [2025-02-07 07:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:34:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:35:06 [end_date_ymd] => 2025-02-07 07:35:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:35:06' and `end` < '2025-02-07 07: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-07 07:35:19] Production.INFO: count ==138 [2025-02-07 07:35:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:35:06 - End Time 2025-02-07 07:35:06 [2025-02-07 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420884', 'tblTempUsageDetail_20' ) start [2025-02-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420884', 'tblTempUsageDetail_20' ) end [2025-02-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420884', 'tblTempVendorCDR_20' ) start [2025-02-07 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420884', 'tblTempVendorCDR_20' ) end [2025-02-07 07:35:19] Production.INFO: ProcessCDR(1,14420884,1,1,2) [2025-02-07 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420884', 'tblTempUsageDetail_20' ) start [2025-02-07 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420884', 'tblTempUsageDetail_20' ) end [2025-02-07 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:35:23] Production.INFO: ==12283== Releasing lock... [2025-02-07 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:35:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:36:06 [end_date_ymd] => 2025-02-07 07:36:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:36:06' and `end` < '2025-02-07 07: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-07 07:36:19] Production.INFO: count ==138 [2025-02-07 07:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:36:06 - End Time 2025-02-07 07:36:06 [2025-02-07 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420889', 'tblTempUsageDetail_20' ) start [2025-02-07 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420889', 'tblTempUsageDetail_20' ) end [2025-02-07 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420889', 'tblTempVendorCDR_20' ) start [2025-02-07 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420889', 'tblTempVendorCDR_20' ) end [2025-02-07 07:36:19] Production.INFO: ProcessCDR(1,14420889,1,1,2) [2025-02-07 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420889', 'tblTempUsageDetail_20' ) start [2025-02-07 07:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420889', 'tblTempUsageDetail_20' ) end [2025-02-07 07:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:36:23] Production.INFO: ==12356== Releasing lock... [2025-02-07 07:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:36:23] Production.INFO: 28.5 MB #Memory Used# [2025-02-07 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:37:06 [end_date_ymd] => 2025-02-07 07:37:06 [RateCDR] => 1 ) [2025-02-07 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-07 04:37:06' and `end` < '2025-02-07 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-07 07:37:20] Production.INFO: count ==139 [2025-02-07 07:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:37:06 - End Time 2025-02-07 07:37:06 [2025-02-07 07:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420894', 'tblTempUsageDetail_20' ) start [2025-02-07 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420894', 'tblTempUsageDetail_20' ) end [2025-02-07 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420894', 'tblTempVendorCDR_20' ) start [2025-02-07 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420894', 'tblTempVendorCDR_20' ) end [2025-02-07 07:37:20] Production.INFO: ProcessCDR(1,14420894,1,1,2) [2025-02-07 07:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420894', 'tblTempUsageDetail_20' ) start [2025-02-07 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420894', 'tblTempUsageDetail_20' ) end [2025-02-07 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:37:23] Production.INFO: ==12428== Releasing lock... [2025-02-07 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:37:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:38:05 [end_date_ymd] => 2025-02-07 07:38:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:38:05' and `end` < '2025-02-07 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-07 07:38:18] Production.INFO: count ==141 [2025-02-07 07:38:18] Production.ERROR: pbx CDR StartTime 2025-02-07 04:38:05 - End Time 2025-02-07 07:38:05 [2025-02-07 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420899', 'tblTempUsageDetail_20' ) start [2025-02-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420899', 'tblTempUsageDetail_20' ) end [2025-02-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420899', 'tblTempVendorCDR_20' ) start [2025-02-07 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420899', 'tblTempVendorCDR_20' ) end [2025-02-07 07:38:18] Production.INFO: ProcessCDR(1,14420899,1,1,2) [2025-02-07 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420899', 'tblTempUsageDetail_20' ) start [2025-02-07 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420899', 'tblTempUsageDetail_20' ) end [2025-02-07 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:38:21] Production.INFO: ==12507== Releasing lock... [2025-02-07 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:39:05 [end_date_ymd] => 2025-02-07 07:39:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:39:05' and `end` < '2025-02-07 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-07 07:39:19] Production.INFO: count ==141 [2025-02-07 07:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:39:05 - End Time 2025-02-07 07:39:05 [2025-02-07 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420904', 'tblTempUsageDetail_20' ) start [2025-02-07 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420904', 'tblTempUsageDetail_20' ) end [2025-02-07 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420904', 'tblTempVendorCDR_20' ) start [2025-02-07 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420904', 'tblTempVendorCDR_20' ) end [2025-02-07 07:39:19] Production.INFO: ProcessCDR(1,14420904,1,1,2) [2025-02-07 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420904', 'tblTempUsageDetail_20' ) start [2025-02-07 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420904', 'tblTempUsageDetail_20' ) end [2025-02-07 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:39:23] Production.INFO: ==12578== Releasing lock... [2025-02-07 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:39:23] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:40:06 [end_date_ymd] => 2025-02-07 07:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 04:40:06' and `end` < '2025-02-07 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-07 07:40:19] Production.INFO: count ==145 [2025-02-07 07:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:40:06 - End Time 2025-02-07 07:40:06 [2025-02-07 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420909', 'tblTempUsageDetail_20' ) start [2025-02-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420909', 'tblTempUsageDetail_20' ) end [2025-02-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420909', 'tblTempVendorCDR_20' ) start [2025-02-07 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420909', 'tblTempVendorCDR_20' ) end [2025-02-07 07:40:19] Production.INFO: ProcessCDR(1,14420909,1,1,2) [2025-02-07 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420909', 'tblTempUsageDetail_20' ) start [2025-02-07 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420909', 'tblTempUsageDetail_20' ) end [2025-02-07 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:40:22] Production.INFO: ==12696== Releasing lock... [2025-02-07 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:41:06 [end_date_ymd] => 2025-02-07 07:41:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:41:06' and `end` < '2025-02-07 07: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-07 07:41:19] Production.INFO: count ==151 [2025-02-07 07:41:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:41:06 - End Time 2025-02-07 07:41:06 [2025-02-07 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420915', 'tblTempUsageDetail_20' ) start [2025-02-07 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420915', 'tblTempUsageDetail_20' ) end [2025-02-07 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420915', 'tblTempVendorCDR_20' ) start [2025-02-07 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420915', 'tblTempVendorCDR_20' ) end [2025-02-07 07:41:19] Production.INFO: ProcessCDR(1,14420915,1,1,2) [2025-02-07 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420915', 'tblTempUsageDetail_20' ) start [2025-02-07 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420915', 'tblTempUsageDetail_20' ) end [2025-02-07 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:41:22] Production.INFO: ==12771== Releasing lock... [2025-02-07 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:42:05 [end_date_ymd] => 2025-02-07 07:42:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:42:05' and `end` < '2025-02-07 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-07 07:42:19] Production.INFO: count ==151 [2025-02-07 07:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:42:05 - End Time 2025-02-07 07:42:05 [2025-02-07 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420920', 'tblTempUsageDetail_20' ) start [2025-02-07 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420920', 'tblTempUsageDetail_20' ) end [2025-02-07 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420920', 'tblTempVendorCDR_20' ) start [2025-02-07 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420920', 'tblTempVendorCDR_20' ) end [2025-02-07 07:42:19] Production.INFO: ProcessCDR(1,14420920,1,1,2) [2025-02-07 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420920', 'tblTempUsageDetail_20' ) start [2025-02-07 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420920', 'tblTempUsageDetail_20' ) end [2025-02-07 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:42:22] Production.INFO: ==12844== Releasing lock... [2025-02-07 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:43:05 [end_date_ymd] => 2025-02-07 07:43:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:43:05' and `end` < '2025-02-07 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-07 07:43:18] Production.INFO: count ==151 [2025-02-07 07:43:18] Production.ERROR: pbx CDR StartTime 2025-02-07 04:43:05 - End Time 2025-02-07 07:43:05 [2025-02-07 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420925', 'tblTempUsageDetail_20' ) start [2025-02-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420925', 'tblTempUsageDetail_20' ) end [2025-02-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420925', 'tblTempVendorCDR_20' ) start [2025-02-07 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420925', 'tblTempVendorCDR_20' ) end [2025-02-07 07:43:18] Production.INFO: ProcessCDR(1,14420925,1,1,2) [2025-02-07 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420925', 'tblTempUsageDetail_20' ) start [2025-02-07 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420925', 'tblTempUsageDetail_20' ) end [2025-02-07 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:43:22] Production.INFO: ==12917== Releasing lock... [2025-02-07 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:44:05 [end_date_ymd] => 2025-02-07 07:44:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:44:05' and `end` < '2025-02-07 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-07 07:44:18] Production.INFO: count ==156 [2025-02-07 07:44:18] Production.ERROR: pbx CDR StartTime 2025-02-07 04:44:05 - End Time 2025-02-07 07:44:05 [2025-02-07 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420930', 'tblTempUsageDetail_20' ) start [2025-02-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420930', 'tblTempUsageDetail_20' ) end [2025-02-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420930', 'tblTempVendorCDR_20' ) start [2025-02-07 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420930', 'tblTempVendorCDR_20' ) end [2025-02-07 07:44:18] Production.INFO: ProcessCDR(1,14420930,1,1,2) [2025-02-07 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420930', 'tblTempUsageDetail_20' ) start [2025-02-07 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420930', 'tblTempUsageDetail_20' ) end [2025-02-07 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:44:22] Production.INFO: ==12987== Releasing lock... [2025-02-07 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-07 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:45:05 [end_date_ymd] => 2025-02-07 07:45:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:45:05' and `end` < '2025-02-07 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-07 07:45:20] Production.INFO: count ==160 [2025-02-07 07:45:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:45:05 - End Time 2025-02-07 07:45:05 [2025-02-07 07:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420935', 'tblTempUsageDetail_20' ) start [2025-02-07 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420935', 'tblTempUsageDetail_20' ) end [2025-02-07 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420935', 'tblTempVendorCDR_20' ) start [2025-02-07 07:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420935', 'tblTempVendorCDR_20' ) end [2025-02-07 07:45:20] Production.INFO: ProcessCDR(1,14420935,1,1,2) [2025-02-07 07:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420935', 'tblTempUsageDetail_20' ) start [2025-02-07 07:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420935', 'tblTempUsageDetail_20' ) end [2025-02-07 07:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:45:23] Production.INFO: ==13063== Releasing lock... [2025-02-07 07:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:45:23] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:46:04 [end_date_ymd] => 2025-02-07 07:46:04 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:46:04' and `end` < '2025-02-07 07: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-07 07:46:19] Production.INFO: count ==160 [2025-02-07 07:46:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:46:04 - End Time 2025-02-07 07:46:04 [2025-02-07 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420936', 'tblTempUsageDetail_20' ) start [2025-02-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420936', 'tblTempUsageDetail_20' ) end [2025-02-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420936', 'tblTempVendorCDR_20' ) start [2025-02-07 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420936', 'tblTempVendorCDR_20' ) end [2025-02-07 07:46:19] Production.INFO: ProcessCDR(1,14420936,1,1,2) [2025-02-07 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420936', 'tblTempUsageDetail_20' ) start [2025-02-07 07:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420936', 'tblTempUsageDetail_20' ) end [2025-02-07 07:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:46:23] Production.INFO: ==13138== Releasing lock... [2025-02-07 07:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:46:23] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:47:06 [end_date_ymd] => 2025-02-07 07:47:06 [RateCDR] => 1 ) [2025-02-07 07:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:47:06' and `end` < '2025-02-07 07:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:47:19] Production.INFO: count ==160 [2025-02-07 07:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:47:06 - End Time 2025-02-07 07:47:06 [2025-02-07 07:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420945', 'tblTempUsageDetail_20' ) start [2025-02-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420945', 'tblTempUsageDetail_20' ) end [2025-02-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420945', 'tblTempVendorCDR_20' ) start [2025-02-07 07:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420945', 'tblTempVendorCDR_20' ) end [2025-02-07 07:47:19] Production.INFO: ProcessCDR(1,14420945,1,1,2) [2025-02-07 07:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420945', 'tblTempUsageDetail_20' ) start [2025-02-07 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420945', 'tblTempUsageDetail_20' ) end [2025-02-07 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:47:22] Production.INFO: ==13212== Releasing lock... [2025-02-07 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:47:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:48:05 [end_date_ymd] => 2025-02-07 07:48:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:48:05' and `end` < '2025-02-07 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-07 07:48:19] Production.INFO: count ==160 [2025-02-07 07:48:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:48:05 - End Time 2025-02-07 07:48:05 [2025-02-07 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420950', 'tblTempUsageDetail_20' ) start [2025-02-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420950', 'tblTempUsageDetail_20' ) end [2025-02-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420950', 'tblTempVendorCDR_20' ) start [2025-02-07 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420950', 'tblTempVendorCDR_20' ) end [2025-02-07 07:48:19] Production.INFO: ProcessCDR(1,14420950,1,1,2) [2025-02-07 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420950', 'tblTempUsageDetail_20' ) start [2025-02-07 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420950', 'tblTempUsageDetail_20' ) end [2025-02-07 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:48:23] Production.INFO: ==13281== Releasing lock... [2025-02-07 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:48:23] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:49:05 [end_date_ymd] => 2025-02-07 07:49:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:49:05' and `end` < '2025-02-07 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-07 07:49:19] Production.INFO: count ==161 [2025-02-07 07:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:49:05 - End Time 2025-02-07 07:49:05 [2025-02-07 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420955', 'tblTempUsageDetail_20' ) start [2025-02-07 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420955', 'tblTempUsageDetail_20' ) end [2025-02-07 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420955', 'tblTempVendorCDR_20' ) start [2025-02-07 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420955', 'tblTempVendorCDR_20' ) end [2025-02-07 07:49:19] Production.INFO: ProcessCDR(1,14420955,1,1,2) [2025-02-07 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420955', 'tblTempUsageDetail_20' ) start [2025-02-07 07:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420955', 'tblTempUsageDetail_20' ) end [2025-02-07 07:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:49:24] Production.INFO: ==13354== Releasing lock... [2025-02-07 07:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:49:24] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:50:06 [end_date_ymd] => 2025-02-07 07:50:06 [RateCDR] => 1 ) [2025-02-07 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-07 04:50:06' and `end` < '2025-02-07 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-07 07:50:19] Production.INFO: count ==172 [2025-02-07 07:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:50:06 - End Time 2025-02-07 07:50:06 [2025-02-07 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420960', 'tblTempUsageDetail_20' ) start [2025-02-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420960', 'tblTempUsageDetail_20' ) end [2025-02-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420960', 'tblTempVendorCDR_20' ) start [2025-02-07 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420960', 'tblTempVendorCDR_20' ) end [2025-02-07 07:50:19] Production.INFO: ProcessCDR(1,14420960,1,1,2) [2025-02-07 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420960', 'tblTempUsageDetail_20' ) start [2025-02-07 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420960', 'tblTempUsageDetail_20' ) end [2025-02-07 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:50:23] Production.INFO: ==13426== Releasing lock... [2025-02-07 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:50:23] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:51:06 [end_date_ymd] => 2025-02-07 07:51:06 [RateCDR] => 1 ) [2025-02-07 07:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:51:06' and `end` < '2025-02-07 07:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:51:20] Production.INFO: count ==186 [2025-02-07 07:51:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:51:06 - End Time 2025-02-07 07:51:06 [2025-02-07 07:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420966', 'tblTempUsageDetail_20' ) start [2025-02-07 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420966', 'tblTempUsageDetail_20' ) end [2025-02-07 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420966', 'tblTempVendorCDR_20' ) start [2025-02-07 07:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420966', 'tblTempVendorCDR_20' ) end [2025-02-07 07:51:20] Production.INFO: ProcessCDR(1,14420966,1,1,2) [2025-02-07 07:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420966', 'tblTempUsageDetail_20' ) start [2025-02-07 07:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420966', 'tblTempUsageDetail_20' ) end [2025-02-07 07:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:51:25] Production.INFO: ==13499== Releasing lock... [2025-02-07 07:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:51:25] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:52:06 [end_date_ymd] => 2025-02-07 07:52:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:52:06' and `end` < '2025-02-07 07: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-07 07:52:20] Production.INFO: count ==190 [2025-02-07 07:52:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:52:06 - End Time 2025-02-07 07:52:06 [2025-02-07 07:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420971', 'tblTempUsageDetail_20' ) start [2025-02-07 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420971', 'tblTempUsageDetail_20' ) end [2025-02-07 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420971', 'tblTempVendorCDR_20' ) start [2025-02-07 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420971', 'tblTempVendorCDR_20' ) end [2025-02-07 07:52:20] Production.INFO: ProcessCDR(1,14420971,1,1,2) [2025-02-07 07:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420971', 'tblTempUsageDetail_20' ) start [2025-02-07 07:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420971', 'tblTempUsageDetail_20' ) end [2025-02-07 07:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:52:24] Production.INFO: ==13573== Releasing lock... [2025-02-07 07:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:52:24] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:53:06 [end_date_ymd] => 2025-02-07 07:53:06 [RateCDR] => 1 ) [2025-02-07 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:53:06' and `end` < '2025-02-07 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:53:19] Production.INFO: count ==190 [2025-02-07 07:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:53:06 - End Time 2025-02-07 07:53:06 [2025-02-07 07:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420976', 'tblTempUsageDetail_20' ) start [2025-02-07 07:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420976', 'tblTempUsageDetail_20' ) end [2025-02-07 07:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420976', 'tblTempVendorCDR_20' ) start [2025-02-07 07:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420976', 'tblTempVendorCDR_20' ) end [2025-02-07 07:53:20] Production.INFO: ProcessCDR(1,14420976,1,1,2) [2025-02-07 07:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420976', 'tblTempUsageDetail_20' ) start [2025-02-07 07:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420976', 'tblTempUsageDetail_20' ) end [2025-02-07 07:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:53:23] Production.INFO: ==13649== Releasing lock... [2025-02-07 07:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:53:23] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:54:06 [end_date_ymd] => 2025-02-07 07:54:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:54:06' and `end` < '2025-02-07 07: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-07 07:54:20] Production.INFO: count ==191 [2025-02-07 07:54:20] Production.ERROR: pbx CDR StartTime 2025-02-07 04:54:06 - End Time 2025-02-07 07:54:06 [2025-02-07 07:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420981', 'tblTempUsageDetail_20' ) start [2025-02-07 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420981', 'tblTempUsageDetail_20' ) end [2025-02-07 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420981', 'tblTempVendorCDR_20' ) start [2025-02-07 07:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420981', 'tblTempVendorCDR_20' ) end [2025-02-07 07:54:20] Production.INFO: ProcessCDR(1,14420981,1,1,2) [2025-02-07 07:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420981', 'tblTempUsageDetail_20' ) start [2025-02-07 07:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420981', 'tblTempUsageDetail_20' ) end [2025-02-07 07:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:54:25] Production.INFO: ==13719== Releasing lock... [2025-02-07 07:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:54:25] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:55:05 [end_date_ymd] => 2025-02-07 07:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:55:05' and `end` < '2025-02-07 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-07 07:55:18] Production.INFO: count ==191 [2025-02-07 07:55:18] Production.ERROR: pbx CDR StartTime 2025-02-07 04:55:05 - End Time 2025-02-07 07:55:05 [2025-02-07 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420986', 'tblTempUsageDetail_20' ) start [2025-02-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420986', 'tblTempUsageDetail_20' ) end [2025-02-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420986', 'tblTempVendorCDR_20' ) start [2025-02-07 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420986', 'tblTempVendorCDR_20' ) end [2025-02-07 07:55:18] Production.INFO: ProcessCDR(1,14420986,1,1,2) [2025-02-07 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420986', 'tblTempUsageDetail_20' ) start [2025-02-07 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420986', 'tblTempUsageDetail_20' ) end [2025-02-07 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:55:22] Production.INFO: ==13830== Releasing lock... [2025-02-07 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:55:22] Production.INFO: 29 MB #Memory Used# [2025-02-07 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:56:06 [end_date_ymd] => 2025-02-07 07:56:06 [RateCDR] => 1 ) [2025-02-07 07: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-07 04:56:06' and `end` < '2025-02-07 07: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-07 07:56:21] Production.INFO: count ==193 [2025-02-07 07:56:21] Production.ERROR: pbx CDR StartTime 2025-02-07 04:56:06 - End Time 2025-02-07 07:56:06 [2025-02-07 07:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420991', 'tblTempUsageDetail_20' ) start [2025-02-07 07:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420991', 'tblTempUsageDetail_20' ) end [2025-02-07 07:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420991', 'tblTempVendorCDR_20' ) start [2025-02-07 07:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420991', 'tblTempVendorCDR_20' ) end [2025-02-07 07:56:21] Production.INFO: ProcessCDR(1,14420991,1,1,2) [2025-02-07 07:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420991', 'tblTempUsageDetail_20' ) start [2025-02-07 07:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420991', 'tblTempUsageDetail_20' ) end [2025-02-07 07:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:56:26] Production.INFO: ==13905== Releasing lock... [2025-02-07 07:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:56:26] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:57:05 [end_date_ymd] => 2025-02-07 07:57:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:57:05' and `end` < '2025-02-07 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-07 07:57:19] Production.INFO: count ==198 [2025-02-07 07:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:57:05 - End Time 2025-02-07 07:57:05 [2025-02-07 07:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420996', 'tblTempUsageDetail_20' ) start [2025-02-07 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14420996', 'tblTempUsageDetail_20' ) end [2025-02-07 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420996', 'tblTempVendorCDR_20' ) start [2025-02-07 07:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14420996', 'tblTempVendorCDR_20' ) end [2025-02-07 07:57:19] Production.INFO: ProcessCDR(1,14420996,1,1,2) [2025-02-07 07:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14420996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14420996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14420996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14420996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420996', 'tblTempUsageDetail_20' ) start [2025-02-07 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14420996', 'tblTempUsageDetail_20' ) end [2025-02-07 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:57:23] Production.INFO: ==13979== Releasing lock... [2025-02-07 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:57:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:58:06 [end_date_ymd] => 2025-02-07 07:58:06 [RateCDR] => 1 ) [2025-02-07 07:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 04:58:06' and `end` < '2025-02-07 07:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 07:58:19] Production.INFO: count ==206 [2025-02-07 07:58:19] Production.ERROR: pbx CDR StartTime 2025-02-07 04:58:06 - End Time 2025-02-07 07:58:06 [2025-02-07 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421001', 'tblTempUsageDetail_20' ) start [2025-02-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421001', 'tblTempUsageDetail_20' ) end [2025-02-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421001', 'tblTempVendorCDR_20' ) start [2025-02-07 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421001', 'tblTempVendorCDR_20' ) end [2025-02-07 07:58:19] Production.INFO: ProcessCDR(1,14421001,1,1,2) [2025-02-07 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421001', 'tblTempUsageDetail_20' ) start [2025-02-07 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421001', 'tblTempUsageDetail_20' ) end [2025-02-07 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:58:22] Production.INFO: ==14054== Releasing lock... [2025-02-07 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:58:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 04:59:05 [end_date_ymd] => 2025-02-07 07:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 04:59:05' and `end` < '2025-02-07 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-07 07:59:18] Production.INFO: count ==206 [2025-02-07 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-07 04:59:05 - End Time 2025-02-07 07:59:05 [2025-02-07 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421006', 'tblTempUsageDetail_20' ) start [2025-02-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421006', 'tblTempUsageDetail_20' ) end [2025-02-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421006', 'tblTempVendorCDR_20' ) start [2025-02-07 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421006', 'tblTempVendorCDR_20' ) end [2025-02-07 07:59:18] Production.INFO: ProcessCDR(1,14421006,1,1,2) [2025-02-07 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421006', 'tblTempUsageDetail_20' ) start [2025-02-07 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421006', 'tblTempUsageDetail_20' ) end [2025-02-07 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 07:59:22] Production.INFO: ==14132== Releasing lock... [2025-02-07 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 07:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:00:06 [end_date_ymd] => 2025-02-07 08:00:06 [RateCDR] => 1 ) [2025-02-07 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:00:06' and `end` < '2025-02-07 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:00:20] Production.INFO: count ==210 [2025-02-07 08:00:21] Production.ERROR: pbx CDR StartTime 2025-02-07 05:00:06 - End Time 2025-02-07 08:00:06 [2025-02-07 08:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421012', 'tblTempUsageDetail_20' ) start [2025-02-07 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421012', 'tblTempUsageDetail_20' ) end [2025-02-07 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421012', 'tblTempVendorCDR_20' ) start [2025-02-07 08:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421012', 'tblTempVendorCDR_20' ) end [2025-02-07 08:00:21] Production.INFO: ProcessCDR(1,14421012,1,1,2) [2025-02-07 08:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421012', 'tblTempUsageDetail_20' ) start [2025-02-07 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421012', 'tblTempUsageDetail_20' ) end [2025-02-07 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:00:24] Production.INFO: ==14205== Releasing lock... [2025-02-07 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:00:24] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:01:05 [end_date_ymd] => 2025-02-07 08:01:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:01:05' and `end` < '2025-02-07 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-07 08:01:19] Production.INFO: count ==222 [2025-02-07 08:01:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:01:05 - End Time 2025-02-07 08:01:05 [2025-02-07 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421017', 'tblTempUsageDetail_20' ) start [2025-02-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421017', 'tblTempUsageDetail_20' ) end [2025-02-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421017', 'tblTempVendorCDR_20' ) start [2025-02-07 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421017', 'tblTempVendorCDR_20' ) end [2025-02-07 08:01:19] Production.INFO: ProcessCDR(1,14421017,1,1,2) [2025-02-07 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421017', 'tblTempUsageDetail_20' ) start [2025-02-07 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421017', 'tblTempUsageDetail_20' ) end [2025-02-07 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:01:22] Production.INFO: ==14295== Releasing lock... [2025-02-07 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:02:06 [end_date_ymd] => 2025-02-07 08:02:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:02:06' and `end` < '2025-02-07 08: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-07 08:02:18] Production.INFO: count ==225 [2025-02-07 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:02:06 - End Time 2025-02-07 08:02:06 [2025-02-07 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421022', 'tblTempUsageDetail_20' ) start [2025-02-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421022', 'tblTempUsageDetail_20' ) end [2025-02-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421022', 'tblTempVendorCDR_20' ) start [2025-02-07 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421022', 'tblTempVendorCDR_20' ) end [2025-02-07 08:02:18] Production.INFO: ProcessCDR(1,14421022,1,1,2) [2025-02-07 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421022', 'tblTempUsageDetail_20' ) start [2025-02-07 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421022', 'tblTempUsageDetail_20' ) end [2025-02-07 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:02:22] Production.INFO: ==14364== Releasing lock... [2025-02-07 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:03:05 [end_date_ymd] => 2025-02-07 08:03:05 [RateCDR] => 1 ) [2025-02-07 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:03:05' and `end` < '2025-02-07 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:03:18] Production.INFO: count ==225 [2025-02-07 08:03:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:03:05 - End Time 2025-02-07 08:03:05 [2025-02-07 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421027', 'tblTempUsageDetail_20' ) start [2025-02-07 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421027', 'tblTempUsageDetail_20' ) end [2025-02-07 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421027', 'tblTempVendorCDR_20' ) start [2025-02-07 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421027', 'tblTempVendorCDR_20' ) end [2025-02-07 08:03:18] Production.INFO: ProcessCDR(1,14421027,1,1,2) [2025-02-07 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421027', 'tblTempUsageDetail_20' ) start [2025-02-07 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421027', 'tblTempUsageDetail_20' ) end [2025-02-07 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:03:22] Production.INFO: ==14436== Releasing lock... [2025-02-07 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-07 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:04:06 [end_date_ymd] => 2025-02-07 08:04:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:04:06' and `end` < '2025-02-07 08: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-07 08:04:19] Production.INFO: count ==236 [2025-02-07 08:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:04:06 - End Time 2025-02-07 08:04:06 [2025-02-07 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421032', 'tblTempUsageDetail_20' ) start [2025-02-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421032', 'tblTempUsageDetail_20' ) end [2025-02-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421032', 'tblTempVendorCDR_20' ) start [2025-02-07 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421032', 'tblTempVendorCDR_20' ) end [2025-02-07 08:04:19] Production.INFO: ProcessCDR(1,14421032,1,1,2) [2025-02-07 08:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421032', 'tblTempUsageDetail_20' ) start [2025-02-07 08:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421032', 'tblTempUsageDetail_20' ) end [2025-02-07 08:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:04:25] Production.INFO: ==14507== Releasing lock... [2025-02-07 08:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:04:25] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:05:05 [end_date_ymd] => 2025-02-07 08:05:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:05:05' and `end` < '2025-02-07 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:05:19] Production.INFO: count ==242 [2025-02-07 08:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:05:05 - End Time 2025-02-07 08:05:05 [2025-02-07 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421037', 'tblTempUsageDetail_20' ) start [2025-02-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421037', 'tblTempUsageDetail_20' ) end [2025-02-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421037', 'tblTempVendorCDR_20' ) start [2025-02-07 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421037', 'tblTempVendorCDR_20' ) end [2025-02-07 08:05:19] Production.INFO: ProcessCDR(1,14421037,1,1,2) [2025-02-07 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421037', 'tblTempUsageDetail_20' ) start [2025-02-07 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421037', 'tblTempUsageDetail_20' ) end [2025-02-07 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:05:22] Production.INFO: ==14580== Releasing lock... [2025-02-07 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:05:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:06:05 [end_date_ymd] => 2025-02-07 08:06:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:06:05' and `end` < '2025-02-07 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-07 08:06:18] Production.INFO: count ==242 [2025-02-07 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:06:05 - End Time 2025-02-07 08:06:05 [2025-02-07 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421042', 'tblTempUsageDetail_20' ) start [2025-02-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421042', 'tblTempUsageDetail_20' ) end [2025-02-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421042', 'tblTempVendorCDR_20' ) start [2025-02-07 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421042', 'tblTempVendorCDR_20' ) end [2025-02-07 08:06:18] Production.INFO: ProcessCDR(1,14421042,1,1,2) [2025-02-07 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421042', 'tblTempUsageDetail_20' ) start [2025-02-07 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421042', 'tblTempUsageDetail_20' ) end [2025-02-07 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:06:22] Production.INFO: ==14654== Releasing lock... [2025-02-07 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:07:06 [end_date_ymd] => 2025-02-07 08:07:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:07:06' and `end` < '2025-02-07 08: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-07 08:07:19] Production.INFO: count ==244 [2025-02-07 08:07:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:07:06 - End Time 2025-02-07 08:07:06 [2025-02-07 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421047', 'tblTempUsageDetail_20' ) start [2025-02-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421047', 'tblTempUsageDetail_20' ) end [2025-02-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421047', 'tblTempVendorCDR_20' ) start [2025-02-07 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421047', 'tblTempVendorCDR_20' ) end [2025-02-07 08:07:19] Production.INFO: ProcessCDR(1,14421047,1,1,2) [2025-02-07 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421047', 'tblTempUsageDetail_20' ) start [2025-02-07 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421047', 'tblTempUsageDetail_20' ) end [2025-02-07 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:07:22] Production.INFO: ==14730== Releasing lock... [2025-02-07 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:08:06 [end_date_ymd] => 2025-02-07 08:08:06 [RateCDR] => 1 ) [2025-02-07 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:08:06' and `end` < '2025-02-07 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:08:19] Production.INFO: count ==244 [2025-02-07 08:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:08:06 - End Time 2025-02-07 08:08:06 [2025-02-07 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421052', 'tblTempUsageDetail_20' ) start [2025-02-07 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421052', 'tblTempUsageDetail_20' ) end [2025-02-07 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421052', 'tblTempVendorCDR_20' ) start [2025-02-07 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421052', 'tblTempVendorCDR_20' ) end [2025-02-07 08:08:19] Production.INFO: ProcessCDR(1,14421052,1,1,2) [2025-02-07 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421052', 'tblTempUsageDetail_20' ) start [2025-02-07 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421052', 'tblTempUsageDetail_20' ) end [2025-02-07 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:08:23] Production.INFO: ==14805== Releasing lock... [2025-02-07 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:08:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:09:05 [end_date_ymd] => 2025-02-07 08:09:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:09:05' and `end` < '2025-02-07 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-07 08:09:20] Production.INFO: count ==246 [2025-02-07 08:09:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:09:05 - End Time 2025-02-07 08:09:05 [2025-02-07 08:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421057', 'tblTempUsageDetail_20' ) start [2025-02-07 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421057', 'tblTempUsageDetail_20' ) end [2025-02-07 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421057', 'tblTempVendorCDR_20' ) start [2025-02-07 08:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421057', 'tblTempVendorCDR_20' ) end [2025-02-07 08:09:20] Production.INFO: ProcessCDR(1,14421057,1,1,2) [2025-02-07 08:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421057', 'tblTempUsageDetail_20' ) start [2025-02-07 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421057', 'tblTempUsageDetail_20' ) end [2025-02-07 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:09:23] Production.INFO: ==14880== Releasing lock... [2025-02-07 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:09:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:10:07 [end_date_ymd] => 2025-02-07 08:10:07 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:10:07' and `end` < '2025-02-07 08: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-07 08:10:20] Production.INFO: count ==250 [2025-02-07 08:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:10:07 - End Time 2025-02-07 08:10:07 [2025-02-07 08:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421063', 'tblTempUsageDetail_20' ) start [2025-02-07 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421063', 'tblTempUsageDetail_20' ) end [2025-02-07 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421063', 'tblTempVendorCDR_20' ) start [2025-02-07 08:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421063', 'tblTempVendorCDR_20' ) end [2025-02-07 08:10:20] Production.INFO: ProcessCDR(1,14421063,1,1,2) [2025-02-07 08:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421063', 'tblTempUsageDetail_20' ) start [2025-02-07 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421063', 'tblTempUsageDetail_20' ) end [2025-02-07 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:10:23] Production.INFO: ==14956== Releasing lock... [2025-02-07 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:11:05 [end_date_ymd] => 2025-02-07 08:11:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:11:05' and `end` < '2025-02-07 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-07 08:11:18] Production.INFO: count ==263 [2025-02-07 08:11:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:11:05 - End Time 2025-02-07 08:11:05 [2025-02-07 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421068', 'tblTempUsageDetail_20' ) start [2025-02-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421068', 'tblTempUsageDetail_20' ) end [2025-02-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421068', 'tblTempVendorCDR_20' ) start [2025-02-07 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421068', 'tblTempVendorCDR_20' ) end [2025-02-07 08:11:18] Production.INFO: ProcessCDR(1,14421068,1,1,2) [2025-02-07 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421068', 'tblTempUsageDetail_20' ) start [2025-02-07 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421068', 'tblTempUsageDetail_20' ) end [2025-02-07 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:11:21] Production.INFO: ==15070== Releasing lock... [2025-02-07 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:12:05 [end_date_ymd] => 2025-02-07 08:12:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:12:05' and `end` < '2025-02-07 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-07 08:12:19] Production.INFO: count ==263 [2025-02-07 08:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:12:05 - End Time 2025-02-07 08:12:05 [2025-02-07 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421073', 'tblTempUsageDetail_20' ) start [2025-02-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421073', 'tblTempUsageDetail_20' ) end [2025-02-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421073', 'tblTempVendorCDR_20' ) start [2025-02-07 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421073', 'tblTempVendorCDR_20' ) end [2025-02-07 08:12:19] Production.INFO: ProcessCDR(1,14421073,1,1,2) [2025-02-07 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421073', 'tblTempUsageDetail_20' ) start [2025-02-07 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421073', 'tblTempUsageDetail_20' ) end [2025-02-07 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:12:23] Production.INFO: ==15149== Releasing lock... [2025-02-07 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:12:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-07 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:13:05 [end_date_ymd] => 2025-02-07 08:13:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:13:05' and `end` < '2025-02-07 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-07 08:13:19] Production.INFO: count ==265 [2025-02-07 08:13:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:13:05 - End Time 2025-02-07 08:13:05 [2025-02-07 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421078', 'tblTempUsageDetail_20' ) start [2025-02-07 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421078', 'tblTempUsageDetail_20' ) end [2025-02-07 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421078', 'tblTempVendorCDR_20' ) start [2025-02-07 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421078', 'tblTempVendorCDR_20' ) end [2025-02-07 08:13:19] Production.INFO: ProcessCDR(1,14421078,1,1,2) [2025-02-07 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421078', 'tblTempUsageDetail_20' ) start [2025-02-07 08:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421078', 'tblTempUsageDetail_20' ) end [2025-02-07 08:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:13:24] Production.INFO: ==15224== Releasing lock... [2025-02-07 08:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:13:24] Production.INFO: 30 MB #Memory Used# [2025-02-07 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:14:05 [end_date_ymd] => 2025-02-07 08:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:14:05' and `end` < '2025-02-07 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-07 08:14:20] Production.INFO: count ==271 [2025-02-07 08:14:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:14:05 - End Time 2025-02-07 08:14:05 [2025-02-07 08:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421083', 'tblTempUsageDetail_20' ) start [2025-02-07 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421083', 'tblTempUsageDetail_20' ) end [2025-02-07 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421083', 'tblTempVendorCDR_20' ) start [2025-02-07 08:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421083', 'tblTempVendorCDR_20' ) end [2025-02-07 08:14:20] Production.INFO: ProcessCDR(1,14421083,1,1,2) [2025-02-07 08:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421083', 'tblTempUsageDetail_20' ) start [2025-02-07 08:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421083', 'tblTempUsageDetail_20' ) end [2025-02-07 08:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:14:25] Production.INFO: ==15300== Releasing lock... [2025-02-07 08:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:14:25] Production.INFO: 29.75 MB #Memory Used# [2025-02-07 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:15:05 [end_date_ymd] => 2025-02-07 08:15:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:15:05' and `end` < '2025-02-07 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-07 08:15:18] Production.INFO: count ==276 [2025-02-07 08:15:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:15:05 - End Time 2025-02-07 08:15:05 [2025-02-07 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421088', 'tblTempUsageDetail_20' ) start [2025-02-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421088', 'tblTempUsageDetail_20' ) end [2025-02-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421088', 'tblTempVendorCDR_20' ) start [2025-02-07 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421088', 'tblTempVendorCDR_20' ) end [2025-02-07 08:15:18] Production.INFO: ProcessCDR(1,14421088,1,1,2) [2025-02-07 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421088', 'tblTempUsageDetail_20' ) start [2025-02-07 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421088', 'tblTempUsageDetail_20' ) end [2025-02-07 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:15:22] Production.INFO: ==15373== Releasing lock... [2025-02-07 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:16:05 [end_date_ymd] => 2025-02-07 08:16:05 [RateCDR] => 1 ) [2025-02-07 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:16:05' and `end` < '2025-02-07 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:16:19] Production.INFO: count ==280 [2025-02-07 08:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:16:05 - End Time 2025-02-07 08:16:05 [2025-02-07 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421093', 'tblTempUsageDetail_20' ) start [2025-02-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421093', 'tblTempUsageDetail_20' ) end [2025-02-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421093', 'tblTempVendorCDR_20' ) start [2025-02-07 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421093', 'tblTempVendorCDR_20' ) end [2025-02-07 08:16:19] Production.INFO: ProcessCDR(1,14421093,1,1,2) [2025-02-07 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421093', 'tblTempUsageDetail_20' ) start [2025-02-07 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421093', 'tblTempUsageDetail_20' ) end [2025-02-07 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:16:23] Production.INFO: ==15447== Releasing lock... [2025-02-07 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:16:23] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:17:05 [end_date_ymd] => 2025-02-07 08:17:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:17:05' and `end` < '2025-02-07 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-07 08:17:18] Production.INFO: count ==287 [2025-02-07 08:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:17:05 - End Time 2025-02-07 08:17:05 [2025-02-07 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421098', 'tblTempUsageDetail_20' ) start [2025-02-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421098', 'tblTempUsageDetail_20' ) end [2025-02-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421098', 'tblTempVendorCDR_20' ) start [2025-02-07 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421098', 'tblTempVendorCDR_20' ) end [2025-02-07 08:17:18] Production.INFO: ProcessCDR(1,14421098,1,1,2) [2025-02-07 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421098', 'tblTempUsageDetail_20' ) start [2025-02-07 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421098', 'tblTempUsageDetail_20' ) end [2025-02-07 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:17:22] Production.INFO: ==15520== Releasing lock... [2025-02-07 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:17:22] Production.INFO: 30 MB #Memory Used# [2025-02-07 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:18:06 [end_date_ymd] => 2025-02-07 08:18:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:18:06' and `end` < '2025-02-07 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-07 08:18:19] Production.INFO: count ==291 [2025-02-07 08:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:18:06 - End Time 2025-02-07 08:18:06 [2025-02-07 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421103', 'tblTempUsageDetail_20' ) start [2025-02-07 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421103', 'tblTempUsageDetail_20' ) end [2025-02-07 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421103', 'tblTempVendorCDR_20' ) start [2025-02-07 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421103', 'tblTempVendorCDR_20' ) end [2025-02-07 08:18:19] Production.INFO: ProcessCDR(1,14421103,1,1,2) [2025-02-07 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421103', 'tblTempUsageDetail_20' ) start [2025-02-07 08:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421103', 'tblTempUsageDetail_20' ) end [2025-02-07 08:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:18:24] Production.INFO: ==15606== Releasing lock... [2025-02-07 08:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:18:24] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 08:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:19:06 [end_date_ymd] => 2025-02-07 08:19:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:19:06' and `end` < '2025-02-07 08: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-07 08:19:19] Production.INFO: count ==292 [2025-02-07 08:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:19:06 - End Time 2025-02-07 08:19:06 [2025-02-07 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421108', 'tblTempUsageDetail_20' ) start [2025-02-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421108', 'tblTempUsageDetail_20' ) end [2025-02-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421108', 'tblTempVendorCDR_20' ) start [2025-02-07 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421108', 'tblTempVendorCDR_20' ) end [2025-02-07 08:19:19] Production.INFO: ProcessCDR(1,14421108,1,1,2) [2025-02-07 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421108', 'tblTempUsageDetail_20' ) start [2025-02-07 08:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421108', 'tblTempUsageDetail_20' ) end [2025-02-07 08:19:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:19:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:19:25] Production.INFO: ==15683== Releasing lock... [2025-02-07 08:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:19:25] Production.INFO: 30.25 MB #Memory Used# [2025-02-07 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:20:06 [end_date_ymd] => 2025-02-07 08:20:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:20:06' and `end` < '2025-02-07 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-07 08:20:19] Production.INFO: count ==302 [2025-02-07 08:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:20:06 - End Time 2025-02-07 08:20:06 [2025-02-07 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421113', 'tblTempUsageDetail_20' ) start [2025-02-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421113', 'tblTempUsageDetail_20' ) end [2025-02-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421113', 'tblTempVendorCDR_20' ) start [2025-02-07 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421113', 'tblTempVendorCDR_20' ) end [2025-02-07 08:20:19] Production.INFO: ProcessCDR(1,14421113,1,1,2) [2025-02-07 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421113', 'tblTempUsageDetail_20' ) start [2025-02-07 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421113', 'tblTempUsageDetail_20' ) end [2025-02-07 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:20:24] Production.INFO: ==15757== Releasing lock... [2025-02-07 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:20:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:21:05 [end_date_ymd] => 2025-02-07 08:21:05 [RateCDR] => 1 ) [2025-02-07 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:21:05' and `end` < '2025-02-07 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:21:19] Production.INFO: count ==333 [2025-02-07 08:21:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:21:05 - End Time 2025-02-07 08:21:05 [2025-02-07 08:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421119', 'tblTempUsageDetail_20' ) start [2025-02-07 08:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421119', 'tblTempUsageDetail_20' ) end [2025-02-07 08:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421119', 'tblTempVendorCDR_20' ) start [2025-02-07 08:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421119', 'tblTempVendorCDR_20' ) end [2025-02-07 08:21:20] Production.INFO: ProcessCDR(1,14421119,1,1,2) [2025-02-07 08:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421119', 'tblTempUsageDetail_20' ) start [2025-02-07 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421119', 'tblTempUsageDetail_20' ) end [2025-02-07 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:21:23] Production.INFO: ==15840== Releasing lock... [2025-02-07 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:21:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-07 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:22:05 [end_date_ymd] => 2025-02-07 08:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:22:05' and `end` < '2025-02-07 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-07 08:22:18] Production.INFO: count ==334 [2025-02-07 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:22:05 - End Time 2025-02-07 08:22:05 [2025-02-07 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421124', 'tblTempUsageDetail_20' ) start [2025-02-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421124', 'tblTempUsageDetail_20' ) end [2025-02-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421124', 'tblTempVendorCDR_20' ) start [2025-02-07 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421124', 'tblTempVendorCDR_20' ) end [2025-02-07 08:22:18] Production.INFO: ProcessCDR(1,14421124,1,1,2) [2025-02-07 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421124', 'tblTempUsageDetail_20' ) start [2025-02-07 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421124', 'tblTempUsageDetail_20' ) end [2025-02-07 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:22:24] Production.INFO: ==15915== Releasing lock... [2025-02-07 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:22:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:23:05 [end_date_ymd] => 2025-02-07 08:23:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:23:05' and `end` < '2025-02-07 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-07 08:23:18] Production.INFO: count ==344 [2025-02-07 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:23:05 - End Time 2025-02-07 08:23:05 [2025-02-07 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421126', 'tblTempUsageDetail_20' ) start [2025-02-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421126', 'tblTempUsageDetail_20' ) end [2025-02-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421126', 'tblTempVendorCDR_20' ) start [2025-02-07 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421126', 'tblTempVendorCDR_20' ) end [2025-02-07 08:23:18] Production.INFO: ProcessCDR(1,14421126,1,1,2) [2025-02-07 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421126', 'tblTempUsageDetail_20' ) start [2025-02-07 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421126', 'tblTempUsageDetail_20' ) end [2025-02-07 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:23:22] Production.INFO: ==15987== Releasing lock... [2025-02-07 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:24:05 [end_date_ymd] => 2025-02-07 08:24:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:24:05' and `end` < '2025-02-07 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-07 08:24:19] Production.INFO: count ==353 [2025-02-07 08:24:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:24:05 - End Time 2025-02-07 08:24:05 [2025-02-07 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421134', 'tblTempUsageDetail_20' ) start [2025-02-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421134', 'tblTempUsageDetail_20' ) end [2025-02-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421134', 'tblTempVendorCDR_20' ) start [2025-02-07 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421134', 'tblTempVendorCDR_20' ) end [2025-02-07 08:24:19] Production.INFO: ProcessCDR(1,14421134,1,1,2) [2025-02-07 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421134', 'tblTempUsageDetail_20' ) start [2025-02-07 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421134', 'tblTempUsageDetail_20' ) end [2025-02-07 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:24:22] Production.INFO: ==16061== Releasing lock... [2025-02-07 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-07 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:25:05 [end_date_ymd] => 2025-02-07 08:25:05 [RateCDR] => 1 ) [2025-02-07 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:25:05' and `end` < '2025-02-07 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-07 08:25:18] Production.INFO: count ==368 [2025-02-07 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:25:05 - End Time 2025-02-07 08:25:05 [2025-02-07 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421139', 'tblTempUsageDetail_20' ) start [2025-02-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421139', 'tblTempUsageDetail_20' ) end [2025-02-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421139', 'tblTempVendorCDR_20' ) start [2025-02-07 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421139', 'tblTempVendorCDR_20' ) end [2025-02-07 08:25:18] Production.INFO: ProcessCDR(1,14421139,1,1,2) [2025-02-07 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421139', 'tblTempUsageDetail_20' ) start [2025-02-07 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421139', 'tblTempUsageDetail_20' ) end [2025-02-07 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:25:23] Production.INFO: ==16139== Releasing lock... [2025-02-07 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:25:23] Production.INFO: 31 MB #Memory Used# [2025-02-07 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:26:05 [end_date_ymd] => 2025-02-07 08:26:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:26:05' and `end` < '2025-02-07 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-07 08:26:18] Production.INFO: count ==373 [2025-02-07 08:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:26:05 - End Time 2025-02-07 08:26:05 [2025-02-07 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421144', 'tblTempUsageDetail_20' ) start [2025-02-07 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421144', 'tblTempUsageDetail_20' ) end [2025-02-07 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421144', 'tblTempVendorCDR_20' ) start [2025-02-07 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421144', 'tblTempVendorCDR_20' ) end [2025-02-07 08:26:19] Production.INFO: ProcessCDR(1,14421144,1,1,2) [2025-02-07 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421144', 'tblTempUsageDetail_20' ) start [2025-02-07 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421144', 'tblTempUsageDetail_20' ) end [2025-02-07 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:26:22] Production.INFO: ==16260== Releasing lock... [2025-02-07 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:26:22] Production.INFO: 31 MB #Memory Used# [2025-02-07 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:27:05 [end_date_ymd] => 2025-02-07 08:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:27:05' and `end` < '2025-02-07 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-07 08:27:19] Production.INFO: count ==373 [2025-02-07 08:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:27:05 - End Time 2025-02-07 08:27:05 [2025-02-07 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421149', 'tblTempUsageDetail_20' ) start [2025-02-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421149', 'tblTempUsageDetail_20' ) end [2025-02-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421149', 'tblTempVendorCDR_20' ) start [2025-02-07 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421149', 'tblTempVendorCDR_20' ) end [2025-02-07 08:27:19] Production.INFO: ProcessCDR(1,14421149,1,1,2) [2025-02-07 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421149', 'tblTempUsageDetail_20' ) start [2025-02-07 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421149', 'tblTempUsageDetail_20' ) end [2025-02-07 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:27:23] Production.INFO: ==16334== Releasing lock... [2025-02-07 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:27:23] Production.INFO: 31 MB #Memory Used# [2025-02-07 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:28:05 [end_date_ymd] => 2025-02-07 08:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:28:05' and `end` < '2025-02-07 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-07 08:28:18] Production.INFO: count ==378 [2025-02-07 08:28:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:28:05 - End Time 2025-02-07 08:28:05 [2025-02-07 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421154', 'tblTempUsageDetail_20' ) start [2025-02-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421154', 'tblTempUsageDetail_20' ) end [2025-02-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421154', 'tblTempVendorCDR_20' ) start [2025-02-07 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421154', 'tblTempVendorCDR_20' ) end [2025-02-07 08:28:18] Production.INFO: ProcessCDR(1,14421154,1,1,2) [2025-02-07 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421154', 'tblTempUsageDetail_20' ) start [2025-02-07 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421154', 'tblTempUsageDetail_20' ) end [2025-02-07 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:28:22] Production.INFO: ==16411== Releasing lock... [2025-02-07 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-07 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:29:06 [end_date_ymd] => 2025-02-07 08:29:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:29:06' and `end` < '2025-02-07 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-07 08:29:19] Production.INFO: count ==378 [2025-02-07 08:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:29:06 - End Time 2025-02-07 08:29:06 [2025-02-07 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421159', 'tblTempUsageDetail_20' ) start [2025-02-07 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421159', 'tblTempUsageDetail_20' ) end [2025-02-07 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421159', 'tblTempVendorCDR_20' ) start [2025-02-07 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421159', 'tblTempVendorCDR_20' ) end [2025-02-07 08:29:19] Production.INFO: ProcessCDR(1,14421159,1,1,2) [2025-02-07 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421159', 'tblTempUsageDetail_20' ) start [2025-02-07 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421159', 'tblTempUsageDetail_20' ) end [2025-02-07 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:29:22] Production.INFO: ==16488== Releasing lock... [2025-02-07 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-07 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:30:06 [end_date_ymd] => 2025-02-07 08:30:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:30:06' and `end` < '2025-02-07 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-07 08:30:20] Production.INFO: count ==383 [2025-02-07 08:30:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:30:06 - End Time 2025-02-07 08:30:06 [2025-02-07 08:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421165', 'tblTempUsageDetail_20' ) start [2025-02-07 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421165', 'tblTempUsageDetail_20' ) end [2025-02-07 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421165', 'tblTempVendorCDR_20' ) start [2025-02-07 08:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421165', 'tblTempVendorCDR_20' ) end [2025-02-07 08:30:20] Production.INFO: ProcessCDR(1,14421165,1,1,2) [2025-02-07 08:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421165', 'tblTempUsageDetail_20' ) start [2025-02-07 08:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421165', 'tblTempUsageDetail_20' ) end [2025-02-07 08:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:30:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:30:25] Production.INFO: ==16569== Releasing lock... [2025-02-07 08:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:30:25] Production.INFO: 31.25 MB #Memory Used# [2025-02-07 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:31:05 [end_date_ymd] => 2025-02-07 08:31:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:31:05' and `end` < '2025-02-07 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-07 08:31:18] Production.INFO: count ==406 [2025-02-07 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:31:05 - End Time 2025-02-07 08:31:05 [2025-02-07 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421170', 'tblTempUsageDetail_20' ) start [2025-02-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421170', 'tblTempUsageDetail_20' ) end [2025-02-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421170', 'tblTempVendorCDR_20' ) start [2025-02-07 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421170', 'tblTempVendorCDR_20' ) end [2025-02-07 08:31:18] Production.INFO: ProcessCDR(1,14421170,1,1,2) [2025-02-07 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421170', 'tblTempUsageDetail_20' ) start [2025-02-07 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421170', 'tblTempUsageDetail_20' ) end [2025-02-07 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:31:22] Production.INFO: ==16651== Releasing lock... [2025-02-07 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:31:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-07 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:32:06 [end_date_ymd] => 2025-02-07 08:32:06 [RateCDR] => 1 ) [2025-02-07 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:32:06' and `end` < '2025-02-07 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:32:20] Production.INFO: count ==407 [2025-02-07 08:32:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:32:06 - End Time 2025-02-07 08:32:06 [2025-02-07 08:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421175', 'tblTempUsageDetail_20' ) start [2025-02-07 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421175', 'tblTempUsageDetail_20' ) end [2025-02-07 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421175', 'tblTempVendorCDR_20' ) start [2025-02-07 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421175', 'tblTempVendorCDR_20' ) end [2025-02-07 08:32:20] Production.INFO: ProcessCDR(1,14421175,1,1,2) [2025-02-07 08:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421175', 'tblTempUsageDetail_20' ) start [2025-02-07 08:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421175', 'tblTempUsageDetail_20' ) end [2025-02-07 08:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:32:25] Production.INFO: ==16730== Releasing lock... [2025-02-07 08:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:32:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-07 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:33:06 [end_date_ymd] => 2025-02-07 08:33:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:33:06' and `end` < '2025-02-07 08: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-07 08:33:19] Production.INFO: count ==414 [2025-02-07 08:33:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:33:06 - End Time 2025-02-07 08:33:06 [2025-02-07 08:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421180', 'tblTempUsageDetail_20' ) start [2025-02-07 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421180', 'tblTempUsageDetail_20' ) end [2025-02-07 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421180', 'tblTempVendorCDR_20' ) start [2025-02-07 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421180', 'tblTempVendorCDR_20' ) end [2025-02-07 08:33:20] Production.INFO: ProcessCDR(1,14421180,1,1,2) [2025-02-07 08:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421180', 'tblTempUsageDetail_20' ) start [2025-02-07 08:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421180', 'tblTempUsageDetail_20' ) end [2025-02-07 08:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:33:25] Production.INFO: ==16809== Releasing lock... [2025-02-07 08:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:33:25] Production.INFO: 31.75 MB #Memory Used# [2025-02-07 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:34:06 [end_date_ymd] => 2025-02-07 08:34:06 [RateCDR] => 1 ) [2025-02-07 08:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:34:06' and `end` < '2025-02-07 08:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:34:19] Production.INFO: count ==415 [2025-02-07 08:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:34:06 - End Time 2025-02-07 08:34:06 [2025-02-07 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421185', 'tblTempUsageDetail_20' ) start [2025-02-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421185', 'tblTempUsageDetail_20' ) end [2025-02-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421185', 'tblTempVendorCDR_20' ) start [2025-02-07 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421185', 'tblTempVendorCDR_20' ) end [2025-02-07 08:34:19] Production.INFO: ProcessCDR(1,14421185,1,1,2) [2025-02-07 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421185', 'tblTempUsageDetail_20' ) start [2025-02-07 08:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421185', 'tblTempUsageDetail_20' ) end [2025-02-07 08:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:34:24] Production.INFO: ==16889== Releasing lock... [2025-02-07 08:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:34:24] Production.INFO: 31.75 MB #Memory Used# [2025-02-07 08:35:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:35:07 [end_date_ymd] => 2025-02-07 08:35:07 [RateCDR] => 1 ) [2025-02-07 08:35: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-07 05:35:07' and `end` < '2025-02-07 08:35: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-07 08:35:20] Production.INFO: count ==415 [2025-02-07 08:35:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:35:07 - End Time 2025-02-07 08:35:07 [2025-02-07 08:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421190', 'tblTempUsageDetail_20' ) start [2025-02-07 08:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421190', 'tblTempUsageDetail_20' ) end [2025-02-07 08:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421190', 'tblTempVendorCDR_20' ) start [2025-02-07 08:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421190', 'tblTempVendorCDR_20' ) end [2025-02-07 08:35:20] Production.INFO: ProcessCDR(1,14421190,1,1,2) [2025-02-07 08:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421190', 'tblTempUsageDetail_20' ) start [2025-02-07 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421190', 'tblTempUsageDetail_20' ) end [2025-02-07 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:35:23] Production.INFO: ==16969== Releasing lock... [2025-02-07 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:35:23] Production.INFO: 31.75 MB #Memory Used# [2025-02-07 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:36:06 [end_date_ymd] => 2025-02-07 08:36:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:36:06' and `end` < '2025-02-07 08: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-07 08:36:18] Production.INFO: count ==426 [2025-02-07 08:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:36:06 - End Time 2025-02-07 08:36:06 [2025-02-07 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421195', 'tblTempUsageDetail_20' ) start [2025-02-07 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421195', 'tblTempUsageDetail_20' ) end [2025-02-07 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421195', 'tblTempVendorCDR_20' ) start [2025-02-07 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421195', 'tblTempVendorCDR_20' ) end [2025-02-07 08:36:19] Production.INFO: ProcessCDR(1,14421195,1,1,2) [2025-02-07 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421195', 'tblTempUsageDetail_20' ) start [2025-02-07 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421195', 'tblTempUsageDetail_20' ) end [2025-02-07 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:36:22] Production.INFO: ==17044== Releasing lock... [2025-02-07 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:36:22] Production.INFO: 31 MB #Memory Used# [2025-02-07 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:37:06 [end_date_ymd] => 2025-02-07 08:37:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:37:06' and `end` < '2025-02-07 08: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-07 08:37:20] Production.INFO: count ==431 [2025-02-07 08:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:37:06 - End Time 2025-02-07 08:37:06 [2025-02-07 08:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421200', 'tblTempUsageDetail_20' ) start [2025-02-07 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421200', 'tblTempUsageDetail_20' ) end [2025-02-07 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421200', 'tblTempVendorCDR_20' ) start [2025-02-07 08:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421200', 'tblTempVendorCDR_20' ) end [2025-02-07 08:37:20] Production.INFO: ProcessCDR(1,14421200,1,1,2) [2025-02-07 08:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421200', 'tblTempUsageDetail_20' ) start [2025-02-07 08:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421200', 'tblTempUsageDetail_20' ) end [2025-02-07 08:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:37:25] Production.INFO: ==17118== Releasing lock... [2025-02-07 08:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:37:25] Production.INFO: 32 MB #Memory Used# [2025-02-07 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:38:05 [end_date_ymd] => 2025-02-07 08:38:05 [RateCDR] => 1 ) [2025-02-07 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:38:05' and `end` < '2025-02-07 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:38:19] Production.INFO: count ==443 [2025-02-07 08:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:38:05 - End Time 2025-02-07 08:38:05 [2025-02-07 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421205', 'tblTempUsageDetail_20' ) start [2025-02-07 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421205', 'tblTempUsageDetail_20' ) end [2025-02-07 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421205', 'tblTempVendorCDR_20' ) start [2025-02-07 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421205', 'tblTempVendorCDR_20' ) end [2025-02-07 08:38:19] Production.INFO: ProcessCDR(1,14421205,1,1,2) [2025-02-07 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421205', 'tblTempUsageDetail_20' ) start [2025-02-07 08:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421205', 'tblTempUsageDetail_20' ) end [2025-02-07 08:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:38:25] Production.INFO: ==17204== Releasing lock... [2025-02-07 08:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:38:25] Production.INFO: 31.5 MB #Memory Used# [2025-02-07 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:39:06 [end_date_ymd] => 2025-02-07 08:39:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:39:06' and `end` < '2025-02-07 08: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-07 08:39:20] Production.INFO: count ==457 [2025-02-07 08:39:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:39:06 - End Time 2025-02-07 08:39:06 [2025-02-07 08:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421210', 'tblTempUsageDetail_20' ) start [2025-02-07 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421210', 'tblTempUsageDetail_20' ) end [2025-02-07 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421210', 'tblTempVendorCDR_20' ) start [2025-02-07 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421210', 'tblTempVendorCDR_20' ) end [2025-02-07 08:39:20] Production.INFO: ProcessCDR(1,14421210,1,1,2) [2025-02-07 08:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421210', 'tblTempUsageDetail_20' ) start [2025-02-07 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421210', 'tblTempUsageDetail_20' ) end [2025-02-07 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:39:24] Production.INFO: ==17285== Releasing lock... [2025-02-07 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:39:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-07 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:40:06 [end_date_ymd] => 2025-02-07 08:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:40:06' and `end` < '2025-02-07 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-07 08:40:19] Production.INFO: count ==477 [2025-02-07 08:40:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:40:06 - End Time 2025-02-07 08:40:06 [2025-02-07 08:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421215', 'tblTempUsageDetail_20' ) start [2025-02-07 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421215', 'tblTempUsageDetail_20' ) end [2025-02-07 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421215', 'tblTempVendorCDR_20' ) start [2025-02-07 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421215', 'tblTempVendorCDR_20' ) end [2025-02-07 08:40:20] Production.INFO: ProcessCDR(1,14421215,1,1,2) [2025-02-07 08:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421215', 'tblTempUsageDetail_20' ) start [2025-02-07 08:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421215', 'tblTempUsageDetail_20' ) end [2025-02-07 08:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:40:24] Production.INFO: ==17371== Releasing lock... [2025-02-07 08:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:40:24] Production.INFO: 32.25 MB #Memory Used# [2025-02-07 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:41:06 [end_date_ymd] => 2025-02-07 08:41:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:41:06' and `end` < '2025-02-07 08: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-07 08:41:21] Production.INFO: count ==530 [2025-02-07 08:41:21] Production.ERROR: pbx CDR StartTime 2025-02-07 05:41:06 - End Time 2025-02-07 08:41:06 [2025-02-07 08:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421221', 'tblTempUsageDetail_20' ) start [2025-02-07 08:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421221', 'tblTempUsageDetail_20' ) end [2025-02-07 08:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421221', 'tblTempVendorCDR_20' ) start [2025-02-07 08:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421221', 'tblTempVendorCDR_20' ) end [2025-02-07 08:41:21] Production.INFO: ProcessCDR(1,14421221,1,1,2) [2025-02-07 08:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421221', 'tblTempUsageDetail_20' ) start [2025-02-07 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421221', 'tblTempUsageDetail_20' ) end [2025-02-07 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:41:24] Production.INFO: ==17493== Releasing lock... [2025-02-07 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:41:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-07 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:42:06 [end_date_ymd] => 2025-02-07 08:42:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:42:06' and `end` < '2025-02-07 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-07 08:42:19] Production.INFO: count ==531 [2025-02-07 08:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:42:06 - End Time 2025-02-07 08:42:06 [2025-02-07 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421226', 'tblTempUsageDetail_20' ) start [2025-02-07 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421226', 'tblTempUsageDetail_20' ) end [2025-02-07 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421226', 'tblTempVendorCDR_20' ) start [2025-02-07 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421226', 'tblTempVendorCDR_20' ) end [2025-02-07 08:42:19] Production.INFO: ProcessCDR(1,14421226,1,1,2) [2025-02-07 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421226', 'tblTempUsageDetail_20' ) start [2025-02-07 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421226', 'tblTempUsageDetail_20' ) end [2025-02-07 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:42:22] Production.INFO: ==17581== Releasing lock... [2025-02-07 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:42:22] Production.INFO: 33 MB #Memory Used# [2025-02-07 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:43:06 [end_date_ymd] => 2025-02-07 08:43:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:43:06' and `end` < '2025-02-07 08: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-07 08:43:21] Production.INFO: count ==534 [2025-02-07 08:43:21] Production.ERROR: pbx CDR StartTime 2025-02-07 05:43:06 - End Time 2025-02-07 08:43:06 [2025-02-07 08:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421231', 'tblTempUsageDetail_20' ) start [2025-02-07 08:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421231', 'tblTempUsageDetail_20' ) end [2025-02-07 08:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421231', 'tblTempVendorCDR_20' ) start [2025-02-07 08:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421231', 'tblTempVendorCDR_20' ) end [2025-02-07 08:43:21] Production.INFO: ProcessCDR(1,14421231,1,1,2) [2025-02-07 08:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421231', 'tblTempUsageDetail_20' ) start [2025-02-07 08:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421231', 'tblTempUsageDetail_20' ) end [2025-02-07 08:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:43:26] Production.INFO: ==17658== Releasing lock... [2025-02-07 08:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:43:26] Production.INFO: 32.25 MB #Memory Used# [2025-02-07 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:44:06 [end_date_ymd] => 2025-02-07 08:44:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:44:06' and `end` < '2025-02-07 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-07 08:44:19] Production.INFO: count ==546 [2025-02-07 08:44:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:44:06 - End Time 2025-02-07 08:44:06 [2025-02-07 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421236', 'tblTempUsageDetail_20' ) start [2025-02-07 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421236', 'tblTempUsageDetail_20' ) end [2025-02-07 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421236', 'tblTempVendorCDR_20' ) start [2025-02-07 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421236', 'tblTempVendorCDR_20' ) end [2025-02-07 08:44:19] Production.INFO: ProcessCDR(1,14421236,1,1,2) [2025-02-07 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421236', 'tblTempUsageDetail_20' ) start [2025-02-07 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421236', 'tblTempUsageDetail_20' ) end [2025-02-07 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:44:23] Production.INFO: ==17737== Releasing lock... [2025-02-07 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:44:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-07 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:45:06 [end_date_ymd] => 2025-02-07 08:45:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:45:06' and `end` < '2025-02-07 08: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-07 08:45:19] Production.INFO: count ==547 [2025-02-07 08:45:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:45:06 - End Time 2025-02-07 08:45:06 [2025-02-07 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421241', 'tblTempUsageDetail_20' ) start [2025-02-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421241', 'tblTempUsageDetail_20' ) end [2025-02-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421241', 'tblTempVendorCDR_20' ) start [2025-02-07 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421241', 'tblTempVendorCDR_20' ) end [2025-02-07 08:45:19] Production.INFO: ProcessCDR(1,14421241,1,1,2) [2025-02-07 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421241', 'tblTempUsageDetail_20' ) start [2025-02-07 08:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421241', 'tblTempUsageDetail_20' ) end [2025-02-07 08:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:45:24] Production.INFO: ==17817== Releasing lock... [2025-02-07 08:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:45:24] Production.INFO: 33 MB #Memory Used# [2025-02-07 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:46:06 [end_date_ymd] => 2025-02-07 08:46:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:46:06' and `end` < '2025-02-07 08: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-07 08:46:20] Production.INFO: count ==548 [2025-02-07 08:46:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:46:06 - End Time 2025-02-07 08:46:06 [2025-02-07 08:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421246', 'tblTempUsageDetail_20' ) start [2025-02-07 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421246', 'tblTempUsageDetail_20' ) end [2025-02-07 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421246', 'tblTempVendorCDR_20' ) start [2025-02-07 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421246', 'tblTempVendorCDR_20' ) end [2025-02-07 08:46:20] Production.INFO: ProcessCDR(1,14421246,1,1,2) [2025-02-07 08:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421246', 'tblTempUsageDetail_20' ) start [2025-02-07 08:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421246', 'tblTempUsageDetail_20' ) end [2025-02-07 08:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:46:26] Production.INFO: ==17900== Releasing lock... [2025-02-07 08:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:46:26] Production.INFO: 33 MB #Memory Used# [2025-02-07 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:47:06 [end_date_ymd] => 2025-02-07 08:47:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:47:06' and `end` < '2025-02-07 08: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-07 08:47:19] Production.INFO: count ==555 [2025-02-07 08:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:47:06 - End Time 2025-02-07 08:47:06 [2025-02-07 08:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421251', 'tblTempUsageDetail_20' ) start [2025-02-07 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421251', 'tblTempUsageDetail_20' ) end [2025-02-07 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421251', 'tblTempVendorCDR_20' ) start [2025-02-07 08:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421251', 'tblTempVendorCDR_20' ) end [2025-02-07 08:47:19] Production.INFO: ProcessCDR(1,14421251,1,1,2) [2025-02-07 08:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421251', 'tblTempUsageDetail_20' ) start [2025-02-07 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421251', 'tblTempUsageDetail_20' ) end [2025-02-07 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:47:23] Production.INFO: ==17981== Releasing lock... [2025-02-07 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-07 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:48:06 [end_date_ymd] => 2025-02-07 08:48:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:48:06' and `end` < '2025-02-07 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-07 08:48:20] Production.INFO: count ==561 [2025-02-07 08:48:21] Production.ERROR: pbx CDR StartTime 2025-02-07 05:48:06 - End Time 2025-02-07 08:48:06 [2025-02-07 08:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421256', 'tblTempUsageDetail_20' ) start [2025-02-07 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421256', 'tblTempUsageDetail_20' ) end [2025-02-07 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421256', 'tblTempVendorCDR_20' ) start [2025-02-07 08:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421256', 'tblTempVendorCDR_20' ) end [2025-02-07 08:48:21] Production.INFO: ProcessCDR(1,14421256,1,1,2) [2025-02-07 08:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421256', 'tblTempUsageDetail_20' ) start [2025-02-07 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421256', 'tblTempUsageDetail_20' ) end [2025-02-07 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:48:24] Production.INFO: ==18059== Releasing lock... [2025-02-07 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:48:24] Production.INFO: 32.75 MB #Memory Used# [2025-02-07 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:49:06 [end_date_ymd] => 2025-02-07 08:49:06 [RateCDR] => 1 ) [2025-02-07 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:49:06' and `end` < '2025-02-07 08:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:49:19] Production.INFO: count ==567 [2025-02-07 08:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:49:06 - End Time 2025-02-07 08:49:06 [2025-02-07 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421261', 'tblTempUsageDetail_20' ) start [2025-02-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421261', 'tblTempUsageDetail_20' ) end [2025-02-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421261', 'tblTempVendorCDR_20' ) start [2025-02-07 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421261', 'tblTempVendorCDR_20' ) end [2025-02-07 08:49:19] Production.INFO: ProcessCDR(1,14421261,1,1,2) [2025-02-07 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421261', 'tblTempUsageDetail_20' ) start [2025-02-07 08:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421261', 'tblTempUsageDetail_20' ) end [2025-02-07 08:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:49:25] Production.INFO: ==18141== Releasing lock... [2025-02-07 08:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:49:25] Production.INFO: 33 MB #Memory Used# [2025-02-07 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:50:06 [end_date_ymd] => 2025-02-07 08:50:06 [RateCDR] => 1 ) [2025-02-07 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-07 05:50:06' and `end` < '2025-02-07 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-07 08:50:19] Production.INFO: count ==570 [2025-02-07 08:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:50:06 - End Time 2025-02-07 08:50:06 [2025-02-07 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421266', 'tblTempUsageDetail_20' ) start [2025-02-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421266', 'tblTempUsageDetail_20' ) end [2025-02-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421266', 'tblTempVendorCDR_20' ) start [2025-02-07 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421266', 'tblTempVendorCDR_20' ) end [2025-02-07 08:50:19] Production.INFO: ProcessCDR(1,14421266,1,1,2) [2025-02-07 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421266', 'tblTempUsageDetail_20' ) start [2025-02-07 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421266', 'tblTempUsageDetail_20' ) end [2025-02-07 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:50:23] Production.INFO: ==18222== Releasing lock... [2025-02-07 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:50:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-07 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:51:05 [end_date_ymd] => 2025-02-07 08:51:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:51:05' and `end` < '2025-02-07 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-07 08:51:18] Production.INFO: count ==592 [2025-02-07 08:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:51:05 - End Time 2025-02-07 08:51:05 [2025-02-07 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421272', 'tblTempUsageDetail_20' ) start [2025-02-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421272', 'tblTempUsageDetail_20' ) end [2025-02-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421272', 'tblTempVendorCDR_20' ) start [2025-02-07 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421272', 'tblTempVendorCDR_20' ) end [2025-02-07 08:51:18] Production.INFO: ProcessCDR(1,14421272,1,1,2) [2025-02-07 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421272', 'tblTempUsageDetail_20' ) start [2025-02-07 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421272', 'tblTempUsageDetail_20' ) end [2025-02-07 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:51:23] Production.INFO: ==18301== Releasing lock... [2025-02-07 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:51:23] Production.INFO: 32.75 MB #Memory Used# [2025-02-07 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:52:06 [end_date_ymd] => 2025-02-07 08:52:06 [RateCDR] => 1 ) [2025-02-07 08: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-07 05:52:06' and `end` < '2025-02-07 08: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-07 08:52:20] Production.INFO: count ==594 [2025-02-07 08:52:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:52:06 - End Time 2025-02-07 08:52:06 [2025-02-07 08:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421277', 'tblTempUsageDetail_20' ) start [2025-02-07 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421277', 'tblTempUsageDetail_20' ) end [2025-02-07 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421277', 'tblTempVendorCDR_20' ) start [2025-02-07 08:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421277', 'tblTempVendorCDR_20' ) end [2025-02-07 08:52:20] Production.INFO: ProcessCDR(1,14421277,1,1,2) [2025-02-07 08:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421277', 'tblTempUsageDetail_20' ) start [2025-02-07 08:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421277', 'tblTempUsageDetail_20' ) end [2025-02-07 08:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:52:25] Production.INFO: ==18378== Releasing lock... [2025-02-07 08:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:52:25] Production.INFO: 33 MB #Memory Used# [2025-02-07 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:53:06 [end_date_ymd] => 2025-02-07 08:53:06 [RateCDR] => 1 ) [2025-02-07 08:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:53:06' and `end` < '2025-02-07 08:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:53:19] Production.INFO: count ==599 [2025-02-07 08:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:53:06 - End Time 2025-02-07 08:53:06 [2025-02-07 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421282', 'tblTempUsageDetail_20' ) start [2025-02-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421282', 'tblTempUsageDetail_20' ) end [2025-02-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421282', 'tblTempVendorCDR_20' ) start [2025-02-07 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421282', 'tblTempVendorCDR_20' ) end [2025-02-07 08:53:19] Production.INFO: ProcessCDR(1,14421282,1,1,2) [2025-02-07 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421282', 'tblTempUsageDetail_20' ) start [2025-02-07 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421282', 'tblTempUsageDetail_20' ) end [2025-02-07 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:53:22] Production.INFO: ==18459== Releasing lock... [2025-02-07 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:53:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-07 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:54:06 [end_date_ymd] => 2025-02-07 08:54:06 [RateCDR] => 1 ) [2025-02-07 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:54:06' and `end` < '2025-02-07 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:54:19] Production.INFO: count ==601 [2025-02-07 08:54:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:54:06 - End Time 2025-02-07 08:54:06 [2025-02-07 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421287', 'tblTempUsageDetail_20' ) start [2025-02-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421287', 'tblTempUsageDetail_20' ) end [2025-02-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421287', 'tblTempVendorCDR_20' ) start [2025-02-07 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421287', 'tblTempVendorCDR_20' ) end [2025-02-07 08:54:19] Production.INFO: ProcessCDR(1,14421287,1,1,2) [2025-02-07 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421287', 'tblTempUsageDetail_20' ) start [2025-02-07 08:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421287', 'tblTempUsageDetail_20' ) end [2025-02-07 08:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:54:24] Production.INFO: ==18549== Releasing lock... [2025-02-07 08:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:54:24] Production.INFO: 33.25 MB #Memory Used# [2025-02-07 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:55:05 [end_date_ymd] => 2025-02-07 08:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 05:55:05' and `end` < '2025-02-07 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-07 08:55:18] Production.INFO: count ==601 [2025-02-07 08:55:18] Production.ERROR: pbx CDR StartTime 2025-02-07 05:55:05 - End Time 2025-02-07 08:55:05 [2025-02-07 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421292', 'tblTempUsageDetail_20' ) start [2025-02-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421292', 'tblTempUsageDetail_20' ) end [2025-02-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421292', 'tblTempVendorCDR_20' ) start [2025-02-07 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421292', 'tblTempVendorCDR_20' ) end [2025-02-07 08:55:19] Production.INFO: ProcessCDR(1,14421292,1,1,2) [2025-02-07 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421292', 'tblTempUsageDetail_20' ) start [2025-02-07 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421292', 'tblTempUsageDetail_20' ) end [2025-02-07 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:55:22] Production.INFO: ==18633== Releasing lock... [2025-02-07 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-07 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:56:06 [end_date_ymd] => 2025-02-07 08:56:06 [RateCDR] => 1 ) [2025-02-07 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:56:06' and `end` < '2025-02-07 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:56:20] Production.INFO: count ==602 [2025-02-07 08:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:56:06 - End Time 2025-02-07 08:56:06 [2025-02-07 08:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421297', 'tblTempUsageDetail_20' ) start [2025-02-07 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421297', 'tblTempUsageDetail_20' ) end [2025-02-07 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421297', 'tblTempVendorCDR_20' ) start [2025-02-07 08:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421297', 'tblTempVendorCDR_20' ) end [2025-02-07 08:56:20] Production.INFO: ProcessCDR(1,14421297,1,1,2) [2025-02-07 08:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421297', 'tblTempUsageDetail_20' ) start [2025-02-07 08:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421297', 'tblTempUsageDetail_20' ) end [2025-02-07 08:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:56:25] Production.INFO: ==18719== Releasing lock... [2025-02-07 08:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:56:25] Production.INFO: 33.25 MB #Memory Used# [2025-02-07 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:57:05 [end_date_ymd] => 2025-02-07 08:57:05 [RateCDR] => 1 ) [2025-02-07 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:57:05' and `end` < '2025-02-07 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:57:19] Production.INFO: count ==607 [2025-02-07 08:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:57:05 - End Time 2025-02-07 08:57:05 [2025-02-07 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421302', 'tblTempUsageDetail_20' ) start [2025-02-07 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421302', 'tblTempUsageDetail_20' ) end [2025-02-07 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421302', 'tblTempVendorCDR_20' ) start [2025-02-07 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421302', 'tblTempVendorCDR_20' ) end [2025-02-07 08:57:19] Production.INFO: ProcessCDR(1,14421302,1,1,2) [2025-02-07 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421302', 'tblTempUsageDetail_20' ) start [2025-02-07 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421302', 'tblTempUsageDetail_20' ) end [2025-02-07 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:57:23] Production.INFO: ==18849== Releasing lock... [2025-02-07 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-07 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:58:06 [end_date_ymd] => 2025-02-07 08:58:06 [RateCDR] => 1 ) [2025-02-07 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:58:06' and `end` < '2025-02-07 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:58:19] Production.INFO: count ==609 [2025-02-07 08:58:20] Production.ERROR: pbx CDR StartTime 2025-02-07 05:58:06 - End Time 2025-02-07 08:58:06 [2025-02-07 08:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421307', 'tblTempUsageDetail_20' ) start [2025-02-07 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421307', 'tblTempUsageDetail_20' ) end [2025-02-07 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421307', 'tblTempVendorCDR_20' ) start [2025-02-07 08:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421307', 'tblTempVendorCDR_20' ) end [2025-02-07 08:58:20] Production.INFO: ProcessCDR(1,14421307,1,1,2) [2025-02-07 08:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421307', 'tblTempUsageDetail_20' ) start [2025-02-07 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421307', 'tblTempUsageDetail_20' ) end [2025-02-07 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:58:23] Production.INFO: ==18934== Releasing lock... [2025-02-07 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:58:23] Production.INFO: 33 MB #Memory Used# [2025-02-07 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 05:59:06 [end_date_ymd] => 2025-02-07 08:59:06 [RateCDR] => 1 ) [2025-02-07 08:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 05:59:06' and `end` < '2025-02-07 08:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 08:59:19] Production.INFO: count ==626 [2025-02-07 08:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 05:59:06 - End Time 2025-02-07 08:59:06 [2025-02-07 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421312', 'tblTempUsageDetail_20' ) start [2025-02-07 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421312', 'tblTempUsageDetail_20' ) end [2025-02-07 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421312', 'tblTempVendorCDR_20' ) start [2025-02-07 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421312', 'tblTempVendorCDR_20' ) end [2025-02-07 08:59:19] Production.INFO: ProcessCDR(1,14421312,1,1,2) [2025-02-07 08:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421312', 'tblTempUsageDetail_20' ) start [2025-02-07 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421312', 'tblTempUsageDetail_20' ) end [2025-02-07 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 08:59:22] Production.INFO: ==19014== Releasing lock... [2025-02-07 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 08:59:22] Production.INFO: 33 MB #Memory Used# [2025-02-07 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:00:06 [end_date_ymd] => 2025-02-07 09:00:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:00:06' and `end` < '2025-02-07 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-07 09:00:20] Production.INFO: count ==643 [2025-02-07 09:00:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:00:06 - End Time 2025-02-07 09:00:06 [2025-02-07 09:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421318', 'tblTempUsageDetail_20' ) start [2025-02-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421318', 'tblTempUsageDetail_20' ) end [2025-02-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421318', 'tblTempVendorCDR_20' ) start [2025-02-07 09:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421318', 'tblTempVendorCDR_20' ) end [2025-02-07 09:00:20] Production.INFO: ProcessCDR(1,14421318,1,1,2) [2025-02-07 09:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421318', 'tblTempUsageDetail_20' ) start [2025-02-07 09:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421318', 'tblTempUsageDetail_20' ) end [2025-02-07 09:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:00:25] Production.INFO: ==19105== Releasing lock... [2025-02-07 09:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:00:25] Production.INFO: 33.5 MB #Memory Used# [2025-02-07 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:01:05 [end_date_ymd] => 2025-02-07 09:01:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:01:05' and `end` < '2025-02-07 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-07 09:01:20] Production.INFO: count ==696 [2025-02-07 09:01:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:01:05 - End Time 2025-02-07 09:01:05 [2025-02-07 09:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421323', 'tblTempUsageDetail_20' ) start [2025-02-07 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421323', 'tblTempUsageDetail_20' ) end [2025-02-07 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421323', 'tblTempVendorCDR_20' ) start [2025-02-07 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421323', 'tblTempVendorCDR_20' ) end [2025-02-07 09:01:20] Production.INFO: ProcessCDR(1,14421323,1,1,2) [2025-02-07 09:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421323', 'tblTempUsageDetail_20' ) start [2025-02-07 09:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421323', 'tblTempUsageDetail_20' ) end [2025-02-07 09:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:01:25] Production.INFO: ==19196== Releasing lock... [2025-02-07 09:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:01:25] Production.INFO: 34 MB #Memory Used# [2025-02-07 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:02:06 [end_date_ymd] => 2025-02-07 09:02:06 [RateCDR] => 1 ) [2025-02-07 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:02:06' and `end` < '2025-02-07 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:02:19] Production.INFO: count ==703 [2025-02-07 09:02:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:02:06 - End Time 2025-02-07 09:02:06 [2025-02-07 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421328', 'tblTempUsageDetail_20' ) start [2025-02-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421328', 'tblTempUsageDetail_20' ) end [2025-02-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421328', 'tblTempVendorCDR_20' ) start [2025-02-07 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421328', 'tblTempVendorCDR_20' ) end [2025-02-07 09:02:19] Production.INFO: ProcessCDR(1,14421328,1,1,2) [2025-02-07 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421328', 'tblTempUsageDetail_20' ) start [2025-02-07 09:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421328', 'tblTempUsageDetail_20' ) end [2025-02-07 09:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:02:25] Production.INFO: ==19272== Releasing lock... [2025-02-07 09:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:02:25] Production.INFO: 33.75 MB #Memory Used# [2025-02-07 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:03:06 [end_date_ymd] => 2025-02-07 09:03:06 [RateCDR] => 1 ) [2025-02-07 09:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:03:06' and `end` < '2025-02-07 09:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:03:19] Production.INFO: count ==727 [2025-02-07 09:03:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:03:06 - End Time 2025-02-07 09:03:06 [2025-02-07 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421333', 'tblTempUsageDetail_20' ) start [2025-02-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421333', 'tblTempUsageDetail_20' ) end [2025-02-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421333', 'tblTempVendorCDR_20' ) start [2025-02-07 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421333', 'tblTempVendorCDR_20' ) end [2025-02-07 09:03:19] Production.INFO: ProcessCDR(1,14421333,1,1,2) [2025-02-07 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421333', 'tblTempUsageDetail_20' ) start [2025-02-07 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421333', 'tblTempUsageDetail_20' ) end [2025-02-07 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:03:23] Production.INFO: ==19357== Releasing lock... [2025-02-07 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:03:23] Production.INFO: 34 MB #Memory Used# [2025-02-07 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:04:06 [end_date_ymd] => 2025-02-07 09:04:06 [RateCDR] => 1 ) [2025-02-07 09:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:04:06' and `end` < '2025-02-07 09:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:04:19] Production.INFO: count ==748 [2025-02-07 09:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:04:06 - End Time 2025-02-07 09:04:06 [2025-02-07 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421338', 'tblTempUsageDetail_20' ) start [2025-02-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421338', 'tblTempUsageDetail_20' ) end [2025-02-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421338', 'tblTempVendorCDR_20' ) start [2025-02-07 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421338', 'tblTempVendorCDR_20' ) end [2025-02-07 09:04:19] Production.INFO: ProcessCDR(1,14421338,1,1,2) [2025-02-07 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421338', 'tblTempUsageDetail_20' ) start [2025-02-07 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421338', 'tblTempUsageDetail_20' ) end [2025-02-07 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:04:23] Production.INFO: ==19433== Releasing lock... [2025-02-07 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:04:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-07 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:05:05 [end_date_ymd] => 2025-02-07 09:05:05 [RateCDR] => 1 ) [2025-02-07 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:05:05' and `end` < '2025-02-07 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:05:19] Production.INFO: count ==798 [2025-02-07 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:05:05 - End Time 2025-02-07 09:05:05 [2025-02-07 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421343', 'tblTempUsageDetail_20' ) start [2025-02-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421343', 'tblTempUsageDetail_20' ) end [2025-02-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421343', 'tblTempVendorCDR_20' ) start [2025-02-07 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421343', 'tblTempVendorCDR_20' ) end [2025-02-07 09:05:19] Production.INFO: ProcessCDR(1,14421343,1,1,2) [2025-02-07 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421343', 'tblTempUsageDetail_20' ) start [2025-02-07 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421343', 'tblTempUsageDetail_20' ) end [2025-02-07 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:05:24] Production.INFO: ==19515== Releasing lock... [2025-02-07 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:05:24] Production.INFO: 34 MB #Memory Used# [2025-02-07 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:06:05 [end_date_ymd] => 2025-02-07 09:06:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:06:05' and `end` < '2025-02-07 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-07 09:06:19] Production.INFO: count ==822 [2025-02-07 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:06:05 - End Time 2025-02-07 09:06:05 [2025-02-07 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421348', 'tblTempUsageDetail_20' ) start [2025-02-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421348', 'tblTempUsageDetail_20' ) end [2025-02-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421348', 'tblTempVendorCDR_20' ) start [2025-02-07 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421348', 'tblTempVendorCDR_20' ) end [2025-02-07 09:06:19] Production.INFO: ProcessCDR(1,14421348,1,1,2) [2025-02-07 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421348', 'tblTempUsageDetail_20' ) start [2025-02-07 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421348', 'tblTempUsageDetail_20' ) end [2025-02-07 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:06:24] Production.INFO: ==19599== Releasing lock... [2025-02-07 09:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:06:24] Production.INFO: 34.5 MB #Memory Used# [2025-02-07 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:07:05 [end_date_ymd] => 2025-02-07 09:07:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:07:05' and `end` < '2025-02-07 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-07 09:07:18] Production.INFO: count ==841 [2025-02-07 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-07 06:07:05 - End Time 2025-02-07 09:07:05 [2025-02-07 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421353', 'tblTempUsageDetail_20' ) start [2025-02-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421353', 'tblTempUsageDetail_20' ) end [2025-02-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421353', 'tblTempVendorCDR_20' ) start [2025-02-07 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421353', 'tblTempVendorCDR_20' ) end [2025-02-07 09:07:18] Production.INFO: ProcessCDR(1,14421353,1,1,2) [2025-02-07 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421353', 'tblTempUsageDetail_20' ) start [2025-02-07 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421353', 'tblTempUsageDetail_20' ) end [2025-02-07 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:07:22] Production.INFO: ==19683== Releasing lock... [2025-02-07 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:07:22] Production.INFO: 34.25 MB #Memory Used# [2025-02-07 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:08:06 [end_date_ymd] => 2025-02-07 09:08:06 [RateCDR] => 1 ) [2025-02-07 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:08:06' and `end` < '2025-02-07 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:08:19] Production.INFO: count ==848 [2025-02-07 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:08:06 - End Time 2025-02-07 09:08:06 [2025-02-07 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421358', 'tblTempUsageDetail_20' ) start [2025-02-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421358', 'tblTempUsageDetail_20' ) end [2025-02-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421358', 'tblTempVendorCDR_20' ) start [2025-02-07 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421358', 'tblTempVendorCDR_20' ) end [2025-02-07 09:08:19] Production.INFO: ProcessCDR(1,14421358,1,1,2) [2025-02-07 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421358', 'tblTempUsageDetail_20' ) start [2025-02-07 09:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421358', 'tblTempUsageDetail_20' ) end [2025-02-07 09:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:08:24] Production.INFO: ==19771== Releasing lock... [2025-02-07 09:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:08:24] Production.INFO: 34 MB #Memory Used# [2025-02-07 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:09:05 [end_date_ymd] => 2025-02-07 09:09:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:09:05' and `end` < '2025-02-07 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-07 09:09:18] Production.INFO: count ==871 [2025-02-07 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-07 06:09:05 - End Time 2025-02-07 09:09:05 [2025-02-07 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421363', 'tblTempUsageDetail_20' ) start [2025-02-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421363', 'tblTempUsageDetail_20' ) end [2025-02-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421363', 'tblTempVendorCDR_20' ) start [2025-02-07 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421363', 'tblTempVendorCDR_20' ) end [2025-02-07 09:09:18] Production.INFO: ProcessCDR(1,14421363,1,1,2) [2025-02-07 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421363', 'tblTempUsageDetail_20' ) start [2025-02-07 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421363', 'tblTempUsageDetail_20' ) end [2025-02-07 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:09:23] Production.INFO: ==19851== Releasing lock... [2025-02-07 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:09:23] Production.INFO: 35 MB #Memory Used# [2025-02-07 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:10:06 [end_date_ymd] => 2025-02-07 09:10:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:10:06' and `end` < '2025-02-07 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-07 09:10:19] Production.INFO: count ==905 [2025-02-07 09:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:10:06 - End Time 2025-02-07 09:10:06 [2025-02-07 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421369', 'tblTempUsageDetail_20' ) start [2025-02-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421369', 'tblTempUsageDetail_20' ) end [2025-02-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421369', 'tblTempVendorCDR_20' ) start [2025-02-07 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421369', 'tblTempVendorCDR_20' ) end [2025-02-07 09:10:20] Production.INFO: ProcessCDR(1,14421369,1,1,2) [2025-02-07 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421369', 'tblTempUsageDetail_20' ) start [2025-02-07 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421369', 'tblTempUsageDetail_20' ) end [2025-02-07 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:10:25] Production.INFO: ==19931== Releasing lock... [2025-02-07 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:10:25] Production.INFO: 35 MB #Memory Used# [2025-02-07 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:11:05 [end_date_ymd] => 2025-02-07 09:11:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:11:05' and `end` < '2025-02-07 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-07 09:11:19] Production.INFO: count ==971 [2025-02-07 09:11:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:11:05 - End Time 2025-02-07 09:11:05 [2025-02-07 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421374', 'tblTempUsageDetail_20' ) start [2025-02-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421374', 'tblTempUsageDetail_20' ) end [2025-02-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421374', 'tblTempVendorCDR_20' ) start [2025-02-07 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421374', 'tblTempVendorCDR_20' ) end [2025-02-07 09:11:20] Production.INFO: ProcessCDR(1,14421374,1,1,2) [2025-02-07 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421374', 'tblTempUsageDetail_20' ) start [2025-02-07 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421374', 'tblTempUsageDetail_20' ) end [2025-02-07 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:11:25] Production.INFO: ==20018== Releasing lock... [2025-02-07 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:11:25] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:12:06 [end_date_ymd] => 2025-02-07 09:12:06 [RateCDR] => 1 ) [2025-02-07 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:12:06' and `end` < '2025-02-07 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:12:19] Production.INFO: count ==1008 [2025-02-07 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:12:06 - End Time 2025-02-07 09:12:06 [2025-02-07 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421379', 'tblTempUsageDetail_20' ) start [2025-02-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421379', 'tblTempUsageDetail_20' ) end [2025-02-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421379', 'tblTempVendorCDR_20' ) start [2025-02-07 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421379', 'tblTempVendorCDR_20' ) end [2025-02-07 09:12:19] Production.INFO: ProcessCDR(1,14421379,1,1,2) [2025-02-07 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421379', 'tblTempUsageDetail_20' ) start [2025-02-07 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421379', 'tblTempUsageDetail_20' ) end [2025-02-07 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:12:23] Production.INFO: ==20140== Releasing lock... [2025-02-07 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:12:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:13:05 [end_date_ymd] => 2025-02-07 09:13:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:13:05' and `end` < '2025-02-07 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-07 09:13:18] Production.INFO: count ==1018 [2025-02-07 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-07 06:13:05 - End Time 2025-02-07 09:13:05 [2025-02-07 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421384', 'tblTempUsageDetail_20' ) start [2025-02-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421384', 'tblTempUsageDetail_20' ) end [2025-02-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421384', 'tblTempVendorCDR_20' ) start [2025-02-07 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421384', 'tblTempVendorCDR_20' ) end [2025-02-07 09:13:18] Production.INFO: ProcessCDR(1,14421384,1,1,2) [2025-02-07 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421384', 'tblTempUsageDetail_20' ) start [2025-02-07 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421384', 'tblTempUsageDetail_20' ) end [2025-02-07 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:13:22] Production.INFO: ==20218== Releasing lock... [2025-02-07 09:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:13:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:14:05 [end_date_ymd] => 2025-02-07 09:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:14:05' and `end` < '2025-02-07 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-07 09:14:18] Production.INFO: count ==1033 [2025-02-07 09:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:14:05 - End Time 2025-02-07 09:14:05 [2025-02-07 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421389', 'tblTempUsageDetail_20' ) start [2025-02-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421389', 'tblTempUsageDetail_20' ) end [2025-02-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421389', 'tblTempVendorCDR_20' ) start [2025-02-07 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421389', 'tblTempVendorCDR_20' ) end [2025-02-07 09:14:19] Production.INFO: ProcessCDR(1,14421389,1,1,2) [2025-02-07 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421389', 'tblTempUsageDetail_20' ) start [2025-02-07 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421389', 'tblTempUsageDetail_20' ) end [2025-02-07 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:14:24] Production.INFO: ==20297== Releasing lock... [2025-02-07 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:14:24] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:15:05 [end_date_ymd] => 2025-02-07 09:15:05 [RateCDR] => 1 ) [2025-02-07 09:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:15:05' and `end` < '2025-02-07 09:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:15:18] Production.INFO: count ==1111 [2025-02-07 09:15:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:15:05 - End Time 2025-02-07 09:15:05 [2025-02-07 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421394', 'tblTempUsageDetail_20' ) start [2025-02-07 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421394', 'tblTempUsageDetail_20' ) end [2025-02-07 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421394', 'tblTempVendorCDR_20' ) start [2025-02-07 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421394', 'tblTempVendorCDR_20' ) end [2025-02-07 09:15:19] Production.INFO: ProcessCDR(1,14421394,1,1,2) [2025-02-07 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421394', 'tblTempUsageDetail_20' ) start [2025-02-07 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421394', 'tblTempUsageDetail_20' ) end [2025-02-07 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:15:24] Production.INFO: ==20378== Releasing lock... [2025-02-07 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:15:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:16:05 [end_date_ymd] => 2025-02-07 09:16:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:16:05' and `end` < '2025-02-07 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-07 09:16:19] Production.INFO: count ==1123 [2025-02-07 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:16:05 - End Time 2025-02-07 09:16:05 [2025-02-07 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421399', 'tblTempUsageDetail_20' ) start [2025-02-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421399', 'tblTempUsageDetail_20' ) end [2025-02-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421399', 'tblTempVendorCDR_20' ) start [2025-02-07 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421399', 'tblTempVendorCDR_20' ) end [2025-02-07 09:16:19] Production.INFO: ProcessCDR(1,14421399,1,1,2) [2025-02-07 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421399', 'tblTempUsageDetail_20' ) start [2025-02-07 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421399', 'tblTempUsageDetail_20' ) end [2025-02-07 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:16:22] Production.INFO: ==20455== Releasing lock... [2025-02-07 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:16:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-07 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:17:05 [end_date_ymd] => 2025-02-07 09:17:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:17:05' and `end` < '2025-02-07 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-07 09:17:19] Production.INFO: count ==1134 [2025-02-07 09:17:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:17:05 - End Time 2025-02-07 09:17:05 [2025-02-07 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421404', 'tblTempUsageDetail_20' ) start [2025-02-07 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421404', 'tblTempUsageDetail_20' ) end [2025-02-07 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421404', 'tblTempVendorCDR_20' ) start [2025-02-07 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421404', 'tblTempVendorCDR_20' ) end [2025-02-07 09:17:19] Production.INFO: ProcessCDR(1,14421404,1,1,2) [2025-02-07 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421404', 'tblTempUsageDetail_20' ) start [2025-02-07 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421404', 'tblTempUsageDetail_20' ) end [2025-02-07 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:17:24] Production.INFO: ==20533== Releasing lock... [2025-02-07 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:17:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-07 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:18:05 [end_date_ymd] => 2025-02-07 09:18:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:18:05' and `end` < '2025-02-07 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-07 09:18:19] Production.INFO: count ==1164 [2025-02-07 09:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:18:05 - End Time 2025-02-07 09:18:05 [2025-02-07 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421409', 'tblTempUsageDetail_20' ) start [2025-02-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421409', 'tblTempUsageDetail_20' ) end [2025-02-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421409', 'tblTempVendorCDR_20' ) start [2025-02-07 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421409', 'tblTempVendorCDR_20' ) end [2025-02-07 09:18:19] Production.INFO: ProcessCDR(1,14421409,1,1,2) [2025-02-07 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421409', 'tblTempUsageDetail_20' ) start [2025-02-07 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421409', 'tblTempUsageDetail_20' ) end [2025-02-07 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:18:24] Production.INFO: ==20611== Releasing lock... [2025-02-07 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:18:24] Production.INFO: 37 MB #Memory Used# [2025-02-07 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:19:05 [end_date_ymd] => 2025-02-07 09:19:05 [RateCDR] => 1 ) [2025-02-07 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:19:05' and `end` < '2025-02-07 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:19:19] Production.INFO: count ==1181 [2025-02-07 09:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:19:05 - End Time 2025-02-07 09:19:05 [2025-02-07 09:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421414', 'tblTempUsageDetail_20' ) start [2025-02-07 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421414', 'tblTempUsageDetail_20' ) end [2025-02-07 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421414', 'tblTempVendorCDR_20' ) start [2025-02-07 09:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421414', 'tblTempVendorCDR_20' ) end [2025-02-07 09:19:19] Production.INFO: ProcessCDR(1,14421414,1,1,2) [2025-02-07 09:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421414', 'tblTempUsageDetail_20' ) start [2025-02-07 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421414', 'tblTempUsageDetail_20' ) end [2025-02-07 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:19:22] Production.INFO: ==20691== Releasing lock... [2025-02-07 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:19:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:20:06 [end_date_ymd] => 2025-02-07 09:20:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:20:06' and `end` < '2025-02-07 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-07 09:20:20] Production.INFO: count ==1192 [2025-02-07 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:20:06 - End Time 2025-02-07 09:20:06 [2025-02-07 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421420', 'tblTempUsageDetail_20' ) start [2025-02-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421420', 'tblTempUsageDetail_20' ) end [2025-02-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421420', 'tblTempVendorCDR_20' ) start [2025-02-07 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421420', 'tblTempVendorCDR_20' ) end [2025-02-07 09:20:20] Production.INFO: ProcessCDR(1,14421420,1,1,2) [2025-02-07 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421420', 'tblTempUsageDetail_20' ) start [2025-02-07 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421420', 'tblTempUsageDetail_20' ) end [2025-02-07 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:20:25] Production.INFO: ==20767== Releasing lock... [2025-02-07 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:20:25] Production.INFO: 37 MB #Memory Used# [2025-02-07 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:21:06 [end_date_ymd] => 2025-02-07 09:21:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:21:06' and `end` < '2025-02-07 09: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-07 09:21:19] Production.INFO: count ==1243 [2025-02-07 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:21:06 - End Time 2025-02-07 09:21:06 [2025-02-07 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421425', 'tblTempUsageDetail_20' ) start [2025-02-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421425', 'tblTempUsageDetail_20' ) end [2025-02-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421425', 'tblTempVendorCDR_20' ) start [2025-02-07 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421425', 'tblTempVendorCDR_20' ) end [2025-02-07 09:21:19] Production.INFO: ProcessCDR(1,14421425,1,1,2) [2025-02-07 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421425', 'tblTempUsageDetail_20' ) start [2025-02-07 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421425', 'tblTempUsageDetail_20' ) end [2025-02-07 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:21:24] Production.INFO: ==20838== Releasing lock... [2025-02-07 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:21:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:22:05 [end_date_ymd] => 2025-02-07 09:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:22:05' and `end` < '2025-02-07 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-07 09:22:19] Production.INFO: count ==1250 [2025-02-07 09:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:22:05 - End Time 2025-02-07 09:22:05 [2025-02-07 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421430', 'tblTempUsageDetail_20' ) start [2025-02-07 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421430', 'tblTempUsageDetail_20' ) end [2025-02-07 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421430', 'tblTempVendorCDR_20' ) start [2025-02-07 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421430', 'tblTempVendorCDR_20' ) end [2025-02-07 09:22:19] Production.INFO: ProcessCDR(1,14421430,1,1,2) [2025-02-07 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421430', 'tblTempUsageDetail_20' ) start [2025-02-07 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421430', 'tblTempUsageDetail_20' ) end [2025-02-07 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:22:24] Production.INFO: ==20919== Releasing lock... [2025-02-07 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-07 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:23:05 [end_date_ymd] => 2025-02-07 09:23:05 [RateCDR] => 1 ) [2025-02-07 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:23:05' and `end` < '2025-02-07 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:23:19] Production.INFO: count ==1262 [2025-02-07 09:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:23:05 - End Time 2025-02-07 09:23:05 [2025-02-07 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421435', 'tblTempUsageDetail_20' ) start [2025-02-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421435', 'tblTempUsageDetail_20' ) end [2025-02-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421435', 'tblTempVendorCDR_20' ) start [2025-02-07 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421435', 'tblTempVendorCDR_20' ) end [2025-02-07 09:23:19] Production.INFO: ProcessCDR(1,14421435,1,1,2) [2025-02-07 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421435', 'tblTempUsageDetail_20' ) start [2025-02-07 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421435', 'tblTempUsageDetail_20' ) end [2025-02-07 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:23:24] Production.INFO: ==21001== Releasing lock... [2025-02-07 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:23:24] Production.INFO: 37.5 MB #Memory Used# [2025-02-07 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:24:06 [end_date_ymd] => 2025-02-07 09:24:06 [RateCDR] => 1 ) [2025-02-07 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:24:06' and `end` < '2025-02-07 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:24:19] Production.INFO: count ==1274 [2025-02-07 09:24:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:24:06 - End Time 2025-02-07 09:24:06 [2025-02-07 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421440', 'tblTempUsageDetail_20' ) start [2025-02-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421440', 'tblTempUsageDetail_20' ) end [2025-02-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421440', 'tblTempVendorCDR_20' ) start [2025-02-07 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421440', 'tblTempVendorCDR_20' ) end [2025-02-07 09:24:20] Production.INFO: ProcessCDR(1,14421440,1,1,2) [2025-02-07 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421440', 'tblTempUsageDetail_20' ) start [2025-02-07 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421440', 'tblTempUsageDetail_20' ) end [2025-02-07 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:24:25] Production.INFO: ==21084== Releasing lock... [2025-02-07 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:24:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:25:06 [end_date_ymd] => 2025-02-07 09:25:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:25:06' and `end` < '2025-02-07 09: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-07 09:25:19] Production.INFO: count ==1303 [2025-02-07 09:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:25:06 - End Time 2025-02-07 09:25:06 [2025-02-07 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421445', 'tblTempUsageDetail_20' ) start [2025-02-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421445', 'tblTempUsageDetail_20' ) end [2025-02-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421445', 'tblTempVendorCDR_20' ) start [2025-02-07 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421445', 'tblTempVendorCDR_20' ) end [2025-02-07 09:25:20] Production.INFO: ProcessCDR(1,14421445,1,1,2) [2025-02-07 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421445', 'tblTempUsageDetail_20' ) start [2025-02-07 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421445', 'tblTempUsageDetail_20' ) end [2025-02-07 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:25:25] Production.INFO: ==21165== Releasing lock... [2025-02-07 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:25:25] Production.INFO: 37.5 MB #Memory Used# [2025-02-07 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:26:05 [end_date_ymd] => 2025-02-07 09:26:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:26:05' and `end` < '2025-02-07 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-07 09:26:19] Production.INFO: count ==1310 [2025-02-07 09:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:26:05 - End Time 2025-02-07 09:26:05 [2025-02-07 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421450', 'tblTempUsageDetail_20' ) start [2025-02-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421450', 'tblTempUsageDetail_20' ) end [2025-02-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421450', 'tblTempVendorCDR_20' ) start [2025-02-07 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421450', 'tblTempVendorCDR_20' ) end [2025-02-07 09:26:19] Production.INFO: ProcessCDR(1,14421450,1,1,2) [2025-02-07 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421450', 'tblTempUsageDetail_20' ) start [2025-02-07 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421450', 'tblTempUsageDetail_20' ) end [2025-02-07 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:26:24] Production.INFO: ==21246== Releasing lock... [2025-02-07 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:26:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:27:06 [end_date_ymd] => 2025-02-07 09:27:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:27:06' and `end` < '2025-02-07 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-07 09:27:23] Production.INFO: count ==1321 [2025-02-07 09:27:24] Production.ERROR: pbx CDR StartTime 2025-02-07 06:27:06 - End Time 2025-02-07 09:27:06 [2025-02-07 09:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421455', 'tblTempUsageDetail_20' ) start [2025-02-07 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421455', 'tblTempUsageDetail_20' ) end [2025-02-07 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421455', 'tblTempVendorCDR_20' ) start [2025-02-07 09:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421455', 'tblTempVendorCDR_20' ) end [2025-02-07 09:27:24] Production.INFO: ProcessCDR(1,14421455,1,1,2) [2025-02-07 09:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421455', 'tblTempUsageDetail_20' ) start [2025-02-07 09:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421455', 'tblTempUsageDetail_20' ) end [2025-02-07 09:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:27:29] Production.INFO: ==21329== Releasing lock... [2025-02-07 09:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:27:29] Production.INFO: 38 MB #Memory Used# [2025-02-07 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:28:05 [end_date_ymd] => 2025-02-07 09:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:28:05' and `end` < '2025-02-07 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-07 09:28:23] Production.INFO: count ==1333 [2025-02-07 09:28:23] Production.ERROR: pbx CDR StartTime 2025-02-07 06:28:05 - End Time 2025-02-07 09:28:05 [2025-02-07 09:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421460', 'tblTempUsageDetail_20' ) start [2025-02-07 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421460', 'tblTempUsageDetail_20' ) end [2025-02-07 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421460', 'tblTempVendorCDR_20' ) start [2025-02-07 09:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421460', 'tblTempVendorCDR_20' ) end [2025-02-07 09:28:24] Production.INFO: ProcessCDR(1,14421460,1,1,2) [2025-02-07 09:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421460', 'tblTempUsageDetail_20' ) start [2025-02-07 09:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421460', 'tblTempUsageDetail_20' ) end [2025-02-07 09:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:28:28] Production.INFO: ==21445== Releasing lock... [2025-02-07 09:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:28:28] Production.INFO: 38 MB #Memory Used# [2025-02-07 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:29:06 [end_date_ymd] => 2025-02-07 09:29:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:29:06' and `end` < '2025-02-07 09: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-07 09:29:22] Production.INFO: count ==1345 [2025-02-07 09:29:23] Production.ERROR: pbx CDR StartTime 2025-02-07 06:29:06 - End Time 2025-02-07 09:29:06 [2025-02-07 09:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421465', 'tblTempUsageDetail_20' ) start [2025-02-07 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421465', 'tblTempUsageDetail_20' ) end [2025-02-07 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421465', 'tblTempVendorCDR_20' ) start [2025-02-07 09:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421465', 'tblTempVendorCDR_20' ) end [2025-02-07 09:29:23] Production.INFO: ProcessCDR(1,14421465,1,1,2) [2025-02-07 09:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421465', 'tblTempUsageDetail_20' ) start [2025-02-07 09:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421465', 'tblTempUsageDetail_20' ) end [2025-02-07 09:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:29:28] Production.INFO: ==21525== Releasing lock... [2025-02-07 09:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:29:28] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:30:06 [end_date_ymd] => 2025-02-07 09:30:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:30:06' and `end` < '2025-02-07 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-07 09:30:19] Production.INFO: count ==1370 [2025-02-07 09:30:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:30:06 - End Time 2025-02-07 09:30:06 [2025-02-07 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421470', 'tblTempUsageDetail_20' ) start [2025-02-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421470', 'tblTempUsageDetail_20' ) end [2025-02-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421470', 'tblTempVendorCDR_20' ) start [2025-02-07 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421470', 'tblTempVendorCDR_20' ) end [2025-02-07 09:30:20] Production.INFO: ProcessCDR(1,14421470,1,1,2) [2025-02-07 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421470', 'tblTempUsageDetail_20' ) start [2025-02-07 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421470', 'tblTempUsageDetail_20' ) end [2025-02-07 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:30:26] Production.INFO: ==21609== Releasing lock... [2025-02-07 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:30:26] Production.INFO: 38 MB #Memory Used# [2025-02-07 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:31:06 [end_date_ymd] => 2025-02-07 09:31:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:31:06' and `end` < '2025-02-07 09: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-07 09:31:23] Production.INFO: count ==1444 [2025-02-07 09:31:23] Production.ERROR: pbx CDR StartTime 2025-02-07 06:31:06 - End Time 2025-02-07 09:31:06 [2025-02-07 09:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421476', 'tblTempUsageDetail_20' ) start [2025-02-07 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421476', 'tblTempUsageDetail_20' ) end [2025-02-07 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421476', 'tblTempVendorCDR_20' ) start [2025-02-07 09:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421476', 'tblTempVendorCDR_20' ) end [2025-02-07 09:31:23] Production.INFO: ProcessCDR(1,14421476,1,1,2) [2025-02-07 09:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421476', 'tblTempUsageDetail_20' ) start [2025-02-07 09:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421476', 'tblTempUsageDetail_20' ) end [2025-02-07 09:31:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:31:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:31:29] Production.INFO: ==21690== Releasing lock... [2025-02-07 09:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:31:29] Production.INFO: 39 MB #Memory Used# [2025-02-07 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:32:05 [end_date_ymd] => 2025-02-07 09:32:05 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:32:05' and `end` < '2025-02-07 09: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-07 09:32:20] Production.INFO: count ==1483 [2025-02-07 09:32:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:32:05 - End Time 2025-02-07 09:32:05 [2025-02-07 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421481', 'tblTempUsageDetail_20' ) start [2025-02-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421481', 'tblTempUsageDetail_20' ) end [2025-02-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421481', 'tblTempVendorCDR_20' ) start [2025-02-07 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421481', 'tblTempVendorCDR_20' ) end [2025-02-07 09:32:20] Production.INFO: ProcessCDR(1,14421481,1,1,2) [2025-02-07 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421481', 'tblTempUsageDetail_20' ) start [2025-02-07 09:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421481', 'tblTempUsageDetail_20' ) end [2025-02-07 09:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:32:26] Production.INFO: ==21775== Releasing lock... [2025-02-07 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:32:26] Production.INFO: 39.5 MB #Memory Used# [2025-02-07 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:33:06 [end_date_ymd] => 2025-02-07 09:33:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:33:06' and `end` < '2025-02-07 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-07 09:33:19] Production.INFO: count ==1490 [2025-02-07 09:33:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:33:06 - End Time 2025-02-07 09:33:06 [2025-02-07 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421486', 'tblTempUsageDetail_20' ) start [2025-02-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421486', 'tblTempUsageDetail_20' ) end [2025-02-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421486', 'tblTempVendorCDR_20' ) start [2025-02-07 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421486', 'tblTempVendorCDR_20' ) end [2025-02-07 09:33:20] Production.INFO: ProcessCDR(1,14421486,1,1,2) [2025-02-07 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421486', 'tblTempUsageDetail_20' ) start [2025-02-07 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421486', 'tblTempUsageDetail_20' ) end [2025-02-07 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:33:25] Production.INFO: ==21862== Releasing lock... [2025-02-07 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:33:25] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:34:05 [end_date_ymd] => 2025-02-07 09:34:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:34:05' and `end` < '2025-02-07 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-07 09:34:20] Production.INFO: count ==1510 [2025-02-07 09:34:21] Production.ERROR: pbx CDR StartTime 2025-02-07 06:34:05 - End Time 2025-02-07 09:34:05 [2025-02-07 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421491', 'tblTempUsageDetail_20' ) start [2025-02-07 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421491', 'tblTempUsageDetail_20' ) end [2025-02-07 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421491', 'tblTempVendorCDR_20' ) start [2025-02-07 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421491', 'tblTempVendorCDR_20' ) end [2025-02-07 09:34:21] Production.INFO: ProcessCDR(1,14421491,1,1,2) [2025-02-07 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421491', 'tblTempUsageDetail_20' ) start [2025-02-07 09:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421491', 'tblTempUsageDetail_20' ) end [2025-02-07 09:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:34:26] Production.INFO: ==21938== Releasing lock... [2025-02-07 09:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:34:26] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:35:05 [end_date_ymd] => 2025-02-07 09:35:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:35:05' and `end` < '2025-02-07 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-07 09:35:28] Production.INFO: count ==1534 [2025-02-07 09:35:29] Production.ERROR: pbx CDR StartTime 2025-02-07 06:35:05 - End Time 2025-02-07 09:35:05 [2025-02-07 09:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421496', 'tblTempUsageDetail_20' ) start [2025-02-07 09:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421496', 'tblTempUsageDetail_20' ) end [2025-02-07 09:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421496', 'tblTempVendorCDR_20' ) start [2025-02-07 09:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421496', 'tblTempVendorCDR_20' ) end [2025-02-07 09:35:29] Production.INFO: ProcessCDR(1,14421496,1,1,2) [2025-02-07 09:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421496', 'tblTempUsageDetail_20' ) start [2025-02-07 09:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421496', 'tblTempUsageDetail_20' ) end [2025-02-07 09:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:35:34] Production.INFO: ==22017== Releasing lock... [2025-02-07 09:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:35:34] Production.INFO: 39.5 MB #Memory Used# [2025-02-07 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:36:05 [end_date_ymd] => 2025-02-07 09:36:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:36:05' and `end` < '2025-02-07 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-07 09:36:23] Production.INFO: count ==1547 [2025-02-07 09:36:24] Production.ERROR: pbx CDR StartTime 2025-02-07 06:36:05 - End Time 2025-02-07 09:36:05 [2025-02-07 09:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421501', 'tblTempUsageDetail_20' ) start [2025-02-07 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421501', 'tblTempUsageDetail_20' ) end [2025-02-07 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421501', 'tblTempVendorCDR_20' ) start [2025-02-07 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421501', 'tblTempVendorCDR_20' ) end [2025-02-07 09:36:24] Production.INFO: ProcessCDR(1,14421501,1,1,2) [2025-02-07 09:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421501', 'tblTempUsageDetail_20' ) start [2025-02-07 09:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421501', 'tblTempUsageDetail_20' ) end [2025-02-07 09:36:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:36:29] Production.INFO: ==22106== Releasing lock... [2025-02-07 09:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:36:29] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:37:05 [end_date_ymd] => 2025-02-07 09:37:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:37:05' and `end` < '2025-02-07 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-07 09:37:19] Production.INFO: count ==1567 [2025-02-07 09:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:37:05 - End Time 2025-02-07 09:37:05 [2025-02-07 09:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421506', 'tblTempUsageDetail_20' ) start [2025-02-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421506', 'tblTempUsageDetail_20' ) end [2025-02-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421506', 'tblTempVendorCDR_20' ) start [2025-02-07 09:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421506', 'tblTempVendorCDR_20' ) end [2025-02-07 09:37:20] Production.INFO: ProcessCDR(1,14421506,1,1,2) [2025-02-07 09:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421506', 'tblTempUsageDetail_20' ) start [2025-02-07 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421506', 'tblTempUsageDetail_20' ) end [2025-02-07 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:37:25] Production.INFO: ==22193== Releasing lock... [2025-02-07 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:37:25] Production.INFO: 39.5 MB #Memory Used# [2025-02-07 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:38:05 [end_date_ymd] => 2025-02-07 09:38:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:38:05' and `end` < '2025-02-07 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-07 09:38:19] Production.INFO: count ==1570 [2025-02-07 09:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:38:05 - End Time 2025-02-07 09:38:05 [2025-02-07 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421511', 'tblTempUsageDetail_20' ) start [2025-02-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421511', 'tblTempUsageDetail_20' ) end [2025-02-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421511', 'tblTempVendorCDR_20' ) start [2025-02-07 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421511', 'tblTempVendorCDR_20' ) end [2025-02-07 09:38:19] Production.INFO: ProcessCDR(1,14421511,1,1,2) [2025-02-07 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421511', 'tblTempUsageDetail_20' ) start [2025-02-07 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421511', 'tblTempUsageDetail_20' ) end [2025-02-07 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:38:24] Production.INFO: ==22271== Releasing lock... [2025-02-07 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:38:24] Production.INFO: 40 MB #Memory Used# [2025-02-07 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:39:06 [end_date_ymd] => 2025-02-07 09:39:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:39:06' and `end` < '2025-02-07 09: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-07 09:39:21] Production.INFO: count ==1587 [2025-02-07 09:39:21] Production.ERROR: pbx CDR StartTime 2025-02-07 06:39:06 - End Time 2025-02-07 09:39:06 [2025-02-07 09:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421516', 'tblTempUsageDetail_20' ) start [2025-02-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421516', 'tblTempUsageDetail_20' ) end [2025-02-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421516', 'tblTempVendorCDR_20' ) start [2025-02-07 09:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421516', 'tblTempVendorCDR_20' ) end [2025-02-07 09:39:21] Production.INFO: ProcessCDR(1,14421516,1,1,2) [2025-02-07 09:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421516', 'tblTempUsageDetail_20' ) start [2025-02-07 09:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421516', 'tblTempUsageDetail_20' ) end [2025-02-07 09:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:39:26] Production.INFO: ==22351== Releasing lock... [2025-02-07 09:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:39:26] Production.INFO: 40 MB #Memory Used# [2025-02-07 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:40:06 [end_date_ymd] => 2025-02-07 09:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:40:06' and `end` < '2025-02-07 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-07 09:40:20] Production.INFO: count ==1607 [2025-02-07 09:40:21] Production.ERROR: pbx CDR StartTime 2025-02-07 06:40:06 - End Time 2025-02-07 09:40:06 [2025-02-07 09:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421522', 'tblTempUsageDetail_20' ) start [2025-02-07 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421522', 'tblTempUsageDetail_20' ) end [2025-02-07 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421522', 'tblTempVendorCDR_20' ) start [2025-02-07 09:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421522', 'tblTempVendorCDR_20' ) end [2025-02-07 09:40:21] Production.INFO: ProcessCDR(1,14421522,1,1,2) [2025-02-07 09:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421522', 'tblTempUsageDetail_20' ) start [2025-02-07 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421522', 'tblTempUsageDetail_20' ) end [2025-02-07 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:40:26] Production.INFO: ==22433== Releasing lock... [2025-02-07 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:40:26] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:41:05 [end_date_ymd] => 2025-02-07 09:41:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:41:05' and `end` < '2025-02-07 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-07 09:41:23] Production.INFO: count ==1712 [2025-02-07 09:41:23] Production.ERROR: pbx CDR StartTime 2025-02-07 06:41:05 - End Time 2025-02-07 09:41:05 [2025-02-07 09:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421527', 'tblTempUsageDetail_20' ) start [2025-02-07 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421527', 'tblTempUsageDetail_20' ) end [2025-02-07 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421527', 'tblTempVendorCDR_20' ) start [2025-02-07 09:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421527', 'tblTempVendorCDR_20' ) end [2025-02-07 09:41:23] Production.INFO: ProcessCDR(1,14421527,1,1,2) [2025-02-07 09:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421527', 'tblTempUsageDetail_20' ) start [2025-02-07 09:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421527', 'tblTempUsageDetail_20' ) end [2025-02-07 09:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:41:28] Production.INFO: ==22515== Releasing lock... [2025-02-07 09:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:41:28] Production.INFO: 41.5 MB #Memory Used# [2025-02-07 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:42:06 [end_date_ymd] => 2025-02-07 09:42:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:42:06' and `end` < '2025-02-07 09: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-07 09:42:23] Production.INFO: count ==1734 [2025-02-07 09:42:24] Production.ERROR: pbx CDR StartTime 2025-02-07 06:42:06 - End Time 2025-02-07 09:42:06 [2025-02-07 09:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421532', 'tblTempUsageDetail_20' ) start [2025-02-07 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421532', 'tblTempUsageDetail_20' ) end [2025-02-07 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421532', 'tblTempVendorCDR_20' ) start [2025-02-07 09:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421532', 'tblTempVendorCDR_20' ) end [2025-02-07 09:42:24] Production.INFO: ProcessCDR(1,14421532,1,1,2) [2025-02-07 09:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421532', 'tblTempUsageDetail_20' ) start [2025-02-07 09:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421532', 'tblTempUsageDetail_20' ) end [2025-02-07 09:42:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:42:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:42:29] Production.INFO: ==22604== Releasing lock... [2025-02-07 09:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:42:29] Production.INFO: 41 MB #Memory Used# [2025-02-07 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:43:05 [end_date_ymd] => 2025-02-07 09:43:05 [RateCDR] => 1 ) [2025-02-07 09:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:43:05' and `end` < '2025-02-07 09:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:43:18] Production.INFO: count ==1748 [2025-02-07 09:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:43:05 - End Time 2025-02-07 09:43:05 [2025-02-07 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421537', 'tblTempUsageDetail_20' ) start [2025-02-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421537', 'tblTempUsageDetail_20' ) end [2025-02-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421537', 'tblTempVendorCDR_20' ) start [2025-02-07 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421537', 'tblTempVendorCDR_20' ) end [2025-02-07 09:43:19] Production.INFO: ProcessCDR(1,14421537,1,1,2) [2025-02-07 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421537', 'tblTempUsageDetail_20' ) start [2025-02-07 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421537', 'tblTempUsageDetail_20' ) end [2025-02-07 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:43:24] Production.INFO: ==22720== Releasing lock... [2025-02-07 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:44:06 [end_date_ymd] => 2025-02-07 09:44:06 [RateCDR] => 1 ) [2025-02-07 09:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:44:06' and `end` < '2025-02-07 09:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:44:19] Production.INFO: count ==1771 [2025-02-07 09:44:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:44:06 - End Time 2025-02-07 09:44:06 [2025-02-07 09:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421542', 'tblTempUsageDetail_20' ) start [2025-02-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421542', 'tblTempUsageDetail_20' ) end [2025-02-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421542', 'tblTempVendorCDR_20' ) start [2025-02-07 09:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421542', 'tblTempVendorCDR_20' ) end [2025-02-07 09:44:20] Production.INFO: ProcessCDR(1,14421542,1,1,2) [2025-02-07 09:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421542', 'tblTempUsageDetail_20' ) start [2025-02-07 09:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421542', 'tblTempUsageDetail_20' ) end [2025-02-07 09:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:44:25] Production.INFO: ==22810== Releasing lock... [2025-02-07 09:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:44:25] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:45:05 [end_date_ymd] => 2025-02-07 09:45:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:45:05' and `end` < '2025-02-07 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-07 09:45:19] Production.INFO: count ==1784 [2025-02-07 09:45:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:45:05 - End Time 2025-02-07 09:45:05 [2025-02-07 09:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421547', 'tblTempUsageDetail_20' ) start [2025-02-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421547', 'tblTempUsageDetail_20' ) end [2025-02-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421547', 'tblTempVendorCDR_20' ) start [2025-02-07 09:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421547', 'tblTempVendorCDR_20' ) end [2025-02-07 09:45:20] Production.INFO: ProcessCDR(1,14421547,1,1,2) [2025-02-07 09:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421547', 'tblTempUsageDetail_20' ) start [2025-02-07 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421547', 'tblTempUsageDetail_20' ) end [2025-02-07 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:45:25] Production.INFO: ==22891== Releasing lock... [2025-02-07 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:45:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:46:05 [end_date_ymd] => 2025-02-07 09:46:05 [RateCDR] => 1 ) [2025-02-07 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:46:05' and `end` < '2025-02-07 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:46:20] Production.INFO: count ==1791 [2025-02-07 09:46:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:46:05 - End Time 2025-02-07 09:46:05 [2025-02-07 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421552', 'tblTempUsageDetail_20' ) start [2025-02-07 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421552', 'tblTempUsageDetail_20' ) end [2025-02-07 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421552', 'tblTempVendorCDR_20' ) start [2025-02-07 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421552', 'tblTempVendorCDR_20' ) end [2025-02-07 09:46:21] Production.INFO: ProcessCDR(1,14421552,1,1,2) [2025-02-07 09:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421552', 'tblTempUsageDetail_20' ) start [2025-02-07 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421552', 'tblTempUsageDetail_20' ) end [2025-02-07 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:46:25] Production.INFO: ==22978== Releasing lock... [2025-02-07 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:46:25] Production.INFO: 41.5 MB #Memory Used# [2025-02-07 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:47:05 [end_date_ymd] => 2025-02-07 09:47:05 [RateCDR] => 1 ) [2025-02-07 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:47:05' and `end` < '2025-02-07 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:47:18] Production.INFO: count ==1793 [2025-02-07 09:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:47:05 - End Time 2025-02-07 09:47:05 [2025-02-07 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421557', 'tblTempUsageDetail_20' ) start [2025-02-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421557', 'tblTempUsageDetail_20' ) end [2025-02-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421557', 'tblTempVendorCDR_20' ) start [2025-02-07 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421557', 'tblTempVendorCDR_20' ) end [2025-02-07 09:47:19] Production.INFO: ProcessCDR(1,14421557,1,1,2) [2025-02-07 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421557', 'tblTempUsageDetail_20' ) start [2025-02-07 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421557', 'tblTempUsageDetail_20' ) end [2025-02-07 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:47:24] Production.INFO: ==23062== Releasing lock... [2025-02-07 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:47:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-07 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:48:06 [end_date_ymd] => 2025-02-07 09:48:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:48:06' and `end` < '2025-02-07 09: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-07 09:48:21] Production.INFO: count ==1808 [2025-02-07 09:48:22] Production.ERROR: pbx CDR StartTime 2025-02-07 06:48:06 - End Time 2025-02-07 09:48:06 [2025-02-07 09:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421562', 'tblTempUsageDetail_20' ) start [2025-02-07 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421562', 'tblTempUsageDetail_20' ) end [2025-02-07 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421562', 'tblTempVendorCDR_20' ) start [2025-02-07 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421562', 'tblTempVendorCDR_20' ) end [2025-02-07 09:48:22] Production.INFO: ProcessCDR(1,14421562,1,1,2) [2025-02-07 09:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421562', 'tblTempUsageDetail_20' ) start [2025-02-07 09:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421562', 'tblTempUsageDetail_20' ) end [2025-02-07 09:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:48:27] Production.INFO: ==23143== Releasing lock... [2025-02-07 09:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:48:27] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:49:05 [end_date_ymd] => 2025-02-07 09:49:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:49:05' and `end` < '2025-02-07 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-07 09:49:22] Production.INFO: count ==1822 [2025-02-07 09:49:23] Production.ERROR: pbx CDR StartTime 2025-02-07 06:49:05 - End Time 2025-02-07 09:49:05 [2025-02-07 09:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421567', 'tblTempUsageDetail_20' ) start [2025-02-07 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421567', 'tblTempUsageDetail_20' ) end [2025-02-07 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421567', 'tblTempVendorCDR_20' ) start [2025-02-07 09:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421567', 'tblTempVendorCDR_20' ) end [2025-02-07 09:49:23] Production.INFO: ProcessCDR(1,14421567,1,1,2) [2025-02-07 09:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421567', 'tblTempUsageDetail_20' ) start [2025-02-07 09:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421567', 'tblTempUsageDetail_20' ) end [2025-02-07 09:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:49:27] Production.INFO: ==23230== Releasing lock... [2025-02-07 09:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:49:27] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:50:06 [end_date_ymd] => 2025-02-07 09:50:06 [RateCDR] => 1 ) [2025-02-07 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-07 06:50:06' and `end` < '2025-02-07 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-07 09:50:19] Production.INFO: count ==1832 [2025-02-07 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:50:06 - End Time 2025-02-07 09:50:06 [2025-02-07 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421573', 'tblTempUsageDetail_20' ) start [2025-02-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421573', 'tblTempUsageDetail_20' ) end [2025-02-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421573', 'tblTempVendorCDR_20' ) start [2025-02-07 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421573', 'tblTempVendorCDR_20' ) end [2025-02-07 09:50:20] Production.INFO: ProcessCDR(1,14421573,1,1,2) [2025-02-07 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421573', 'tblTempUsageDetail_20' ) start [2025-02-07 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421573', 'tblTempUsageDetail_20' ) end [2025-02-07 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:50:25] Production.INFO: ==23314== Releasing lock... [2025-02-07 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:50:25] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:51:05 [end_date_ymd] => 2025-02-07 09:51:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:51:05' and `end` < '2025-02-07 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-07 09:51:18] Production.INFO: count ==1911 [2025-02-07 09:51:19] Production.ERROR: pbx CDR StartTime 2025-02-07 06:51:05 - End Time 2025-02-07 09:51:05 [2025-02-07 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421578', 'tblTempUsageDetail_20' ) start [2025-02-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421578', 'tblTempUsageDetail_20' ) end [2025-02-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421578', 'tblTempVendorCDR_20' ) start [2025-02-07 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421578', 'tblTempVendorCDR_20' ) end [2025-02-07 09:51:19] Production.INFO: ProcessCDR(1,14421578,1,1,2) [2025-02-07 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421578', 'tblTempUsageDetail_20' ) start [2025-02-07 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421578', 'tblTempUsageDetail_20' ) end [2025-02-07 09:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:51:23] Production.INFO: ==23408== Releasing lock... [2025-02-07 09:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:51:23] Production.INFO: 42.5 MB #Memory Used# [2025-02-07 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:52:05 [end_date_ymd] => 2025-02-07 09:52:05 [RateCDR] => 1 ) [2025-02-07 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:52:05' and `end` < '2025-02-07 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:52:19] Production.INFO: count ==1916 [2025-02-07 09:52:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:52:05 - End Time 2025-02-07 09:52:05 [2025-02-07 09:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421583', 'tblTempUsageDetail_20' ) start [2025-02-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421583', 'tblTempUsageDetail_20' ) end [2025-02-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421583', 'tblTempVendorCDR_20' ) start [2025-02-07 09:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421583', 'tblTempVendorCDR_20' ) end [2025-02-07 09:52:20] Production.INFO: ProcessCDR(1,14421583,1,1,2) [2025-02-07 09:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421583', 'tblTempUsageDetail_20' ) start [2025-02-07 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421583', 'tblTempUsageDetail_20' ) end [2025-02-07 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:52:26] Production.INFO: ==23495== Releasing lock... [2025-02-07 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:52:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-07 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:53:06 [end_date_ymd] => 2025-02-07 09:53:06 [RateCDR] => 1 ) [2025-02-07 09: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-07 06:53:06' and `end` < '2025-02-07 09: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-07 09:53:22] Production.INFO: count ==1930 [2025-02-07 09:53:23] Production.ERROR: pbx CDR StartTime 2025-02-07 06:53:06 - End Time 2025-02-07 09:53:06 [2025-02-07 09:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421588', 'tblTempUsageDetail_20' ) start [2025-02-07 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421588', 'tblTempUsageDetail_20' ) end [2025-02-07 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421588', 'tblTempVendorCDR_20' ) start [2025-02-07 09:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421588', 'tblTempVendorCDR_20' ) end [2025-02-07 09:53:23] Production.INFO: ProcessCDR(1,14421588,1,1,2) [2025-02-07 09:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421588', 'tblTempUsageDetail_20' ) start [2025-02-07 09:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421588', 'tblTempUsageDetail_20' ) end [2025-02-07 09:53:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:53:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:53:28] Production.INFO: ==23580== Releasing lock... [2025-02-07 09:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:53:28] Production.INFO: 42.5 MB #Memory Used# [2025-02-07 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:54:05 [end_date_ymd] => 2025-02-07 09:54:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:54:05' and `end` < '2025-02-07 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-07 09:54:22] Production.INFO: count ==1940 [2025-02-07 09:54:22] Production.ERROR: pbx CDR StartTime 2025-02-07 06:54:05 - End Time 2025-02-07 09:54:05 [2025-02-07 09:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421593', 'tblTempUsageDetail_20' ) start [2025-02-07 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421593', 'tblTempUsageDetail_20' ) end [2025-02-07 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421593', 'tblTempVendorCDR_20' ) start [2025-02-07 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421593', 'tblTempVendorCDR_20' ) end [2025-02-07 09:54:23] Production.INFO: ProcessCDR(1,14421593,1,1,2) [2025-02-07 09:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421593', 'tblTempUsageDetail_20' ) start [2025-02-07 09:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421593', 'tblTempUsageDetail_20' ) end [2025-02-07 09:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:54:26] Production.INFO: ==23664== Releasing lock... [2025-02-07 09:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:54:26] Production.INFO: 42.5 MB #Memory Used# [2025-02-07 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:55:05 [end_date_ymd] => 2025-02-07 09:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:55:05' and `end` < '2025-02-07 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-07 09:55:20] Production.INFO: count ==1956 [2025-02-07 09:55:21] Production.ERROR: pbx CDR StartTime 2025-02-07 06:55:05 - End Time 2025-02-07 09:55:05 [2025-02-07 09:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421598', 'tblTempUsageDetail_20' ) start [2025-02-07 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421598', 'tblTempUsageDetail_20' ) end [2025-02-07 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421598', 'tblTempVendorCDR_20' ) start [2025-02-07 09:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421598', 'tblTempVendorCDR_20' ) end [2025-02-07 09:55:21] Production.INFO: ProcessCDR(1,14421598,1,1,2) [2025-02-07 09:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421598', 'tblTempUsageDetail_20' ) start [2025-02-07 09:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421598', 'tblTempUsageDetail_20' ) end [2025-02-07 09:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:55:26] Production.INFO: ==23754== Releasing lock... [2025-02-07 09:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:55:26] Production.INFO: 42.75 MB #Memory Used# [2025-02-07 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:56:06 [end_date_ymd] => 2025-02-07 09:56:06 [RateCDR] => 1 ) [2025-02-07 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 06:56:06' and `end` < '2025-02-07 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 09:56:19] Production.INFO: count ==1965 [2025-02-07 09:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:56:06 - End Time 2025-02-07 09:56:06 [2025-02-07 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421603', 'tblTempUsageDetail_20' ) start [2025-02-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421603', 'tblTempUsageDetail_20' ) end [2025-02-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421603', 'tblTempVendorCDR_20' ) start [2025-02-07 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421603', 'tblTempVendorCDR_20' ) end [2025-02-07 09:56:20] Production.INFO: ProcessCDR(1,14421603,1,1,2) [2025-02-07 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421603', 'tblTempUsageDetail_20' ) start [2025-02-07 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421603', 'tblTempUsageDetail_20' ) end [2025-02-07 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:56:25] Production.INFO: ==23833== Releasing lock... [2025-02-07 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:56:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-07 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:57:05 [end_date_ymd] => 2025-02-07 09:57:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:57:05' and `end` < '2025-02-07 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-07 09:57:21] Production.INFO: count ==1986 [2025-02-07 09:57:21] Production.ERROR: pbx CDR StartTime 2025-02-07 06:57:05 - End Time 2025-02-07 09:57:05 [2025-02-07 09:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421608', 'tblTempUsageDetail_20' ) start [2025-02-07 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421608', 'tblTempUsageDetail_20' ) end [2025-02-07 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421608', 'tblTempVendorCDR_20' ) start [2025-02-07 09:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421608', 'tblTempVendorCDR_20' ) end [2025-02-07 09:57:21] Production.INFO: ProcessCDR(1,14421608,1,1,2) [2025-02-07 09:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421608', 'tblTempUsageDetail_20' ) start [2025-02-07 09:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421608', 'tblTempUsageDetail_20' ) end [2025-02-07 09:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:57:26] Production.INFO: ==23910== Releasing lock... [2025-02-07 09:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:57:26] Production.INFO: 43 MB #Memory Used# [2025-02-07 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:58:05 [end_date_ymd] => 2025-02-07 09:58:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:58:05' and `end` < '2025-02-07 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-07 09:58:19] Production.INFO: count ==2002 [2025-02-07 09:58:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:58:05 - End Time 2025-02-07 09:58:05 [2025-02-07 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421613', 'tblTempUsageDetail_20' ) start [2025-02-07 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421613', 'tblTempUsageDetail_20' ) end [2025-02-07 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421613', 'tblTempVendorCDR_20' ) start [2025-02-07 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421613', 'tblTempVendorCDR_20' ) end [2025-02-07 09:58:20] Production.INFO: ProcessCDR(1,14421613,1,1,2) [2025-02-07 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421613', 'tblTempUsageDetail_20' ) start [2025-02-07 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421613', 'tblTempUsageDetail_20' ) end [2025-02-07 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:58:25] Production.INFO: ==23994== Releasing lock... [2025-02-07 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:58:25] Production.INFO: 43 MB #Memory Used# [2025-02-07 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 06:59:05 [end_date_ymd] => 2025-02-07 09:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 06:59:05' and `end` < '2025-02-07 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-07 09:59:19] Production.INFO: count ==2016 [2025-02-07 09:59:20] Production.ERROR: pbx CDR StartTime 2025-02-07 06:59:05 - End Time 2025-02-07 09:59:05 [2025-02-07 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421618', 'tblTempUsageDetail_20' ) start [2025-02-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421618', 'tblTempUsageDetail_20' ) end [2025-02-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421618', 'tblTempVendorCDR_20' ) start [2025-02-07 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421618', 'tblTempVendorCDR_20' ) end [2025-02-07 09:59:20] Production.INFO: ProcessCDR(1,14421618,1,1,2) [2025-02-07 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421618', 'tblTempUsageDetail_20' ) start [2025-02-07 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421618', 'tblTempUsageDetail_20' ) end [2025-02-07 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 09:59:25] Production.INFO: ==24109== Releasing lock... [2025-02-07 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 09:59:25] Production.INFO: 43 MB #Memory Used# [2025-02-07 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:00:07 [end_date_ymd] => 2025-02-07 10:00:07 [RateCDR] => 1 ) [2025-02-07 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-07 07:00:07' and `end` < '2025-02-07 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-07 10:00:30] Production.INFO: count ==2036 [2025-02-07 10:00:31] Production.ERROR: pbx CDR StartTime 2025-02-07 07:00:07 - End Time 2025-02-07 10:00:07 [2025-02-07 10:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421624', 'tblTempUsageDetail_20' ) start [2025-02-07 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421624', 'tblTempUsageDetail_20' ) end [2025-02-07 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421624', 'tblTempVendorCDR_20' ) start [2025-02-07 10:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421624', 'tblTempVendorCDR_20' ) end [2025-02-07 10:00:31] Production.INFO: ProcessCDR(1,14421624,1,1,2) [2025-02-07 10:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421624', 'tblTempUsageDetail_20' ) start [2025-02-07 10:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421624', 'tblTempUsageDetail_20' ) end [2025-02-07 10:00:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:00:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:00:37] Production.INFO: ==24199== Releasing lock... [2025-02-07 10:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:00:37] Production.INFO: 43.25 MB #Memory Used# [2025-02-07 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:01:05 [end_date_ymd] => 2025-02-07 10:01:05 [RateCDR] => 1 ) [2025-02-07 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:01:05' and `end` < '2025-02-07 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:01:21] Production.INFO: count ==2086 [2025-02-07 10:01:22] Production.ERROR: pbx CDR StartTime 2025-02-07 07:01:05 - End Time 2025-02-07 10:01:05 [2025-02-07 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421629', 'tblTempUsageDetail_20' ) start [2025-02-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421629', 'tblTempUsageDetail_20' ) end [2025-02-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421629', 'tblTempVendorCDR_20' ) start [2025-02-07 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421629', 'tblTempVendorCDR_20' ) end [2025-02-07 10:01:22] Production.INFO: ProcessCDR(1,14421629,1,1,2) [2025-02-07 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421629', 'tblTempUsageDetail_20' ) start [2025-02-07 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421629', 'tblTempUsageDetail_20' ) end [2025-02-07 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:01:27] Production.INFO: ==24291== Releasing lock... [2025-02-07 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:01:27] Production.INFO: 44 MB #Memory Used# [2025-02-07 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:02:06 [end_date_ymd] => 2025-02-07 10:02:06 [RateCDR] => 1 ) [2025-02-07 10:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:02:06' and `end` < '2025-02-07 10:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:02:20] Production.INFO: count ==2090 [2025-02-07 10:02:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:02:06 - End Time 2025-02-07 10:02:06 [2025-02-07 10:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421634', 'tblTempUsageDetail_20' ) start [2025-02-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421634', 'tblTempUsageDetail_20' ) end [2025-02-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421634', 'tblTempVendorCDR_20' ) start [2025-02-07 10:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421634', 'tblTempVendorCDR_20' ) end [2025-02-07 10:02:21] Production.INFO: ProcessCDR(1,14421634,1,1,2) [2025-02-07 10:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421634', 'tblTempUsageDetail_20' ) start [2025-02-07 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421634', 'tblTempUsageDetail_20' ) end [2025-02-07 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:02:26] Production.INFO: ==24374== Releasing lock... [2025-02-07 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:02:26] Production.INFO: 44 MB #Memory Used# [2025-02-07 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:03:05 [end_date_ymd] => 2025-02-07 10:03:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:03:05' and `end` < '2025-02-07 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-07 10:03:19] Production.INFO: count ==2098 [2025-02-07 10:03:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:03:05 - End Time 2025-02-07 10:03:05 [2025-02-07 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421639', 'tblTempUsageDetail_20' ) start [2025-02-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421639', 'tblTempUsageDetail_20' ) end [2025-02-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421639', 'tblTempVendorCDR_20' ) start [2025-02-07 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421639', 'tblTempVendorCDR_20' ) end [2025-02-07 10:03:20] Production.INFO: ProcessCDR(1,14421639,1,1,2) [2025-02-07 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421639', 'tblTempUsageDetail_20' ) start [2025-02-07 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421639', 'tblTempUsageDetail_20' ) end [2025-02-07 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:03:24] Production.INFO: ==24460== Releasing lock... [2025-02-07 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:03:24] Production.INFO: 44 MB #Memory Used# [2025-02-07 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:04:06 [end_date_ymd] => 2025-02-07 10:04:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:04:06' and `end` < '2025-02-07 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-07 10:04:21] Production.INFO: count ==2110 [2025-02-07 10:04:22] Production.ERROR: pbx CDR StartTime 2025-02-07 07:04:06 - End Time 2025-02-07 10:04:06 [2025-02-07 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421644', 'tblTempUsageDetail_20' ) start [2025-02-07 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421644', 'tblTempUsageDetail_20' ) end [2025-02-07 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421644', 'tblTempVendorCDR_20' ) start [2025-02-07 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421644', 'tblTempVendorCDR_20' ) end [2025-02-07 10:04:22] Production.INFO: ProcessCDR(1,14421644,1,1,2) [2025-02-07 10:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421644', 'tblTempUsageDetail_20' ) start [2025-02-07 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421644', 'tblTempUsageDetail_20' ) end [2025-02-07 10:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:04:27] Production.INFO: ==24541== Releasing lock... [2025-02-07 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:04:27] Production.INFO: 44 MB #Memory Used# [2025-02-07 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:05:05 [end_date_ymd] => 2025-02-07 10:05:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:05:05' and `end` < '2025-02-07 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-07 10:05:19] Production.INFO: count ==2129 [2025-02-07 10:05:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:05:05 - End Time 2025-02-07 10:05:05 [2025-02-07 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421649', 'tblTempUsageDetail_20' ) start [2025-02-07 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421649', 'tblTempUsageDetail_20' ) end [2025-02-07 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421649', 'tblTempVendorCDR_20' ) start [2025-02-07 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421649', 'tblTempVendorCDR_20' ) end [2025-02-07 10:05:20] Production.INFO: ProcessCDR(1,14421649,1,1,2) [2025-02-07 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421649', 'tblTempUsageDetail_20' ) start [2025-02-07 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421649', 'tblTempUsageDetail_20' ) end [2025-02-07 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:05:25] Production.INFO: ==24623== Releasing lock... [2025-02-07 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:05:25] Production.INFO: 44 MB #Memory Used# [2025-02-07 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:06:06 [end_date_ymd] => 2025-02-07 10:06:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:06:06' and `end` < '2025-02-07 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-07 10:06:19] Production.INFO: count ==2136 [2025-02-07 10:06:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:06:06 - End Time 2025-02-07 10:06:06 [2025-02-07 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421654', 'tblTempUsageDetail_20' ) start [2025-02-07 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421654', 'tblTempUsageDetail_20' ) end [2025-02-07 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421654', 'tblTempVendorCDR_20' ) start [2025-02-07 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421654', 'tblTempVendorCDR_20' ) end [2025-02-07 10:06:20] Production.INFO: ProcessCDR(1,14421654,1,1,2) [2025-02-07 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421654', 'tblTempUsageDetail_20' ) start [2025-02-07 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421654', 'tblTempUsageDetail_20' ) end [2025-02-07 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:06:26] Production.INFO: ==24705== Releasing lock... [2025-02-07 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:06:26] Production.INFO: 44 MB #Memory Used# [2025-02-07 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:07:06 [end_date_ymd] => 2025-02-07 10:07:06 [RateCDR] => 1 ) [2025-02-07 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:07:06' and `end` < '2025-02-07 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:07:22] Production.INFO: count ==2142 [2025-02-07 10:07:23] Production.ERROR: pbx CDR StartTime 2025-02-07 07:07:06 - End Time 2025-02-07 10:07:06 [2025-02-07 10:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421659', 'tblTempUsageDetail_20' ) start [2025-02-07 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421659', 'tblTempUsageDetail_20' ) end [2025-02-07 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421659', 'tblTempVendorCDR_20' ) start [2025-02-07 10:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421659', 'tblTempVendorCDR_20' ) end [2025-02-07 10:07:23] Production.INFO: ProcessCDR(1,14421659,1,1,2) [2025-02-07 10:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421659', 'tblTempUsageDetail_20' ) start [2025-02-07 10:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421659', 'tblTempUsageDetail_20' ) end [2025-02-07 10:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:07:28] Production.INFO: ==24784== Releasing lock... [2025-02-07 10:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:07:28] Production.INFO: 44.25 MB #Memory Used# [2025-02-07 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:08:06 [end_date_ymd] => 2025-02-07 10:08:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:08:06' and `end` < '2025-02-07 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-07 10:08:24] Production.INFO: count ==2157 [2025-02-07 10:08:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:08:06 - End Time 2025-02-07 10:08:06 [2025-02-07 10:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421664', 'tblTempUsageDetail_20' ) start [2025-02-07 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421664', 'tblTempUsageDetail_20' ) end [2025-02-07 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421664', 'tblTempVendorCDR_20' ) start [2025-02-07 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421664', 'tblTempVendorCDR_20' ) end [2025-02-07 10:08:25] Production.INFO: ProcessCDR(1,14421664,1,1,2) [2025-02-07 10:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421664', 'tblTempUsageDetail_20' ) start [2025-02-07 10:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421664', 'tblTempUsageDetail_20' ) end [2025-02-07 10:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:08:30] Production.INFO: ==24868== Releasing lock... [2025-02-07 10:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:08:30] Production.INFO: 44.25 MB #Memory Used# [2025-02-07 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:09:05 [end_date_ymd] => 2025-02-07 10:09:05 [RateCDR] => 1 ) [2025-02-07 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:09:05' and `end` < '2025-02-07 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:09:19] Production.INFO: count ==2173 [2025-02-07 10:09:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:09:05 - End Time 2025-02-07 10:09:05 [2025-02-07 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421669', 'tblTempUsageDetail_20' ) start [2025-02-07 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421669', 'tblTempUsageDetail_20' ) end [2025-02-07 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421669', 'tblTempVendorCDR_20' ) start [2025-02-07 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421669', 'tblTempVendorCDR_20' ) end [2025-02-07 10:09:20] Production.INFO: ProcessCDR(1,14421669,1,1,2) [2025-02-07 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421669', 'tblTempUsageDetail_20' ) start [2025-02-07 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421669', 'tblTempUsageDetail_20' ) end [2025-02-07 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:09:25] Production.INFO: ==24950== Releasing lock... [2025-02-07 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:09:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-07 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:10:07 [end_date_ymd] => 2025-02-07 10:10:07 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:10:07' and `end` < '2025-02-07 10: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-07 10:10:26] Production.INFO: count ==2187 [2025-02-07 10:10:27] Production.ERROR: pbx CDR StartTime 2025-02-07 07:10:07 - End Time 2025-02-07 10:10:07 [2025-02-07 10:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421675', 'tblTempUsageDetail_20' ) start [2025-02-07 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421675', 'tblTempUsageDetail_20' ) end [2025-02-07 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421675', 'tblTempVendorCDR_20' ) start [2025-02-07 10:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421675', 'tblTempVendorCDR_20' ) end [2025-02-07 10:10:27] Production.INFO: ProcessCDR(1,14421675,1,1,2) [2025-02-07 10:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421675', 'tblTempUsageDetail_20' ) start [2025-02-07 10:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421675', 'tblTempUsageDetail_20' ) end [2025-02-07 10:10:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:10:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:10:32] Production.INFO: ==25032== Releasing lock... [2025-02-07 10:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:10:32] Production.INFO: 44.5 MB #Memory Used# [2025-02-07 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:11:06 [end_date_ymd] => 2025-02-07 10:11:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:11:06' and `end` < '2025-02-07 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-07 10:11:23] Production.INFO: count ==2274 [2025-02-07 10:11:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:11:06 - End Time 2025-02-07 10:11:06 [2025-02-07 10:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421680', 'tblTempUsageDetail_20' ) start [2025-02-07 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421680', 'tblTempUsageDetail_20' ) end [2025-02-07 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421680', 'tblTempVendorCDR_20' ) start [2025-02-07 10:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421680', 'tblTempVendorCDR_20' ) end [2025-02-07 10:11:24] Production.INFO: ProcessCDR(1,14421680,1,1,2) [2025-02-07 10:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421680', 'tblTempUsageDetail_20' ) start [2025-02-07 10:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421680', 'tblTempUsageDetail_20' ) end [2025-02-07 10:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:11:29] Production.INFO: ==25114== Releasing lock... [2025-02-07 10:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:11:29] Production.INFO: 45.25 MB #Memory Used# [2025-02-07 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:12:06 [end_date_ymd] => 2025-02-07 10:12:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:12:06' and `end` < '2025-02-07 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-07 10:12:23] Production.INFO: count ==2290 [2025-02-07 10:12:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:12:06 - End Time 2025-02-07 10:12:06 [2025-02-07 10:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421685', 'tblTempUsageDetail_20' ) start [2025-02-07 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421685', 'tblTempUsageDetail_20' ) end [2025-02-07 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421685', 'tblTempVendorCDR_20' ) start [2025-02-07 10:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421685', 'tblTempVendorCDR_20' ) end [2025-02-07 10:12:24] Production.INFO: ProcessCDR(1,14421685,1,1,2) [2025-02-07 10:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421685', 'tblTempUsageDetail_20' ) start [2025-02-07 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421685', 'tblTempUsageDetail_20' ) end [2025-02-07 10:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:12:29] Production.INFO: ==25193== Releasing lock... [2025-02-07 10:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:12:29] Production.INFO: 45.25 MB #Memory Used# [2025-02-07 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:13:06 [end_date_ymd] => 2025-02-07 10:13:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:13:06' and `end` < '2025-02-07 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-07 10:13:23] Production.INFO: count ==2302 [2025-02-07 10:13:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:13:06 - End Time 2025-02-07 10:13:06 [2025-02-07 10:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421690', 'tblTempUsageDetail_20' ) start [2025-02-07 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421690', 'tblTempUsageDetail_20' ) end [2025-02-07 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421690', 'tblTempVendorCDR_20' ) start [2025-02-07 10:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421690', 'tblTempVendorCDR_20' ) end [2025-02-07 10:13:24] Production.INFO: ProcessCDR(1,14421690,1,1,2) [2025-02-07 10:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421690', 'tblTempUsageDetail_20' ) start [2025-02-07 10:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421690', 'tblTempUsageDetail_20' ) end [2025-02-07 10:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:13:29] Production.INFO: ==25271== Releasing lock... [2025-02-07 10:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:13:29] Production.INFO: 45.25 MB #Memory Used# [2025-02-07 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:14:06 [end_date_ymd] => 2025-02-07 10:14:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:14:06' and `end` < '2025-02-07 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-07 10:14:20] Production.INFO: count ==2311 [2025-02-07 10:14:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:14:06 - End Time 2025-02-07 10:14:06 [2025-02-07 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421695', 'tblTempUsageDetail_20' ) start [2025-02-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421695', 'tblTempUsageDetail_20' ) end [2025-02-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421695', 'tblTempVendorCDR_20' ) start [2025-02-07 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421695', 'tblTempVendorCDR_20' ) end [2025-02-07 10:14:21] Production.INFO: ProcessCDR(1,14421695,1,1,2) [2025-02-07 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421695', 'tblTempUsageDetail_20' ) start [2025-02-07 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421695', 'tblTempUsageDetail_20' ) end [2025-02-07 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:14:26] Production.INFO: ==25388== Releasing lock... [2025-02-07 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:14:26] Production.INFO: 45.5 MB #Memory Used# [2025-02-07 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:15:05 [end_date_ymd] => 2025-02-07 10:15:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:15:05' and `end` < '2025-02-07 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-07 10:15:21] Production.INFO: count ==2328 [2025-02-07 10:15:22] Production.ERROR: pbx CDR StartTime 2025-02-07 07:15:05 - End Time 2025-02-07 10:15:05 [2025-02-07 10:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421700', 'tblTempUsageDetail_20' ) start [2025-02-07 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421700', 'tblTempUsageDetail_20' ) end [2025-02-07 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421700', 'tblTempVendorCDR_20' ) start [2025-02-07 10:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421700', 'tblTempVendorCDR_20' ) end [2025-02-07 10:15:22] Production.INFO: ProcessCDR(1,14421700,1,1,2) [2025-02-07 10:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421700', 'tblTempUsageDetail_20' ) start [2025-02-07 10:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421700', 'tblTempUsageDetail_20' ) end [2025-02-07 10:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:15:28] Production.INFO: ==25474== Releasing lock... [2025-02-07 10:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:15:28] Production.INFO: 45.5 MB #Memory Used# [2025-02-07 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:16:05 [end_date_ymd] => 2025-02-07 10:16:05 [RateCDR] => 1 ) [2025-02-07 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:16:05' and `end` < '2025-02-07 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:16:19] Production.INFO: count ==2355 [2025-02-07 10:16:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:16:05 - End Time 2025-02-07 10:16:05 [2025-02-07 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421705', 'tblTempUsageDetail_20' ) start [2025-02-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421705', 'tblTempUsageDetail_20' ) end [2025-02-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421705', 'tblTempVendorCDR_20' ) start [2025-02-07 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421705', 'tblTempVendorCDR_20' ) end [2025-02-07 10:16:20] Production.INFO: ProcessCDR(1,14421705,1,1,2) [2025-02-07 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421705', 'tblTempUsageDetail_20' ) start [2025-02-07 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421705', 'tblTempUsageDetail_20' ) end [2025-02-07 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:16:25] Production.INFO: ==25558== Releasing lock... [2025-02-07 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:16:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-07 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:17:05 [end_date_ymd] => 2025-02-07 10:17:05 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:17:05' and `end` < '2025-02-07 10: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-07 10:17:21] Production.INFO: count ==2360 [2025-02-07 10:17:22] Production.ERROR: pbx CDR StartTime 2025-02-07 07:17:05 - End Time 2025-02-07 10:17:05 [2025-02-07 10:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421710', 'tblTempUsageDetail_20' ) start [2025-02-07 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421710', 'tblTempUsageDetail_20' ) end [2025-02-07 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421710', 'tblTempVendorCDR_20' ) start [2025-02-07 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421710', 'tblTempVendorCDR_20' ) end [2025-02-07 10:17:22] Production.INFO: ProcessCDR(1,14421710,1,1,2) [2025-02-07 10:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421710', 'tblTempUsageDetail_20' ) start [2025-02-07 10:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421710', 'tblTempUsageDetail_20' ) end [2025-02-07 10:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:17:27] Production.INFO: ==25630== Releasing lock... [2025-02-07 10:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:17:27] Production.INFO: 45.75 MB #Memory Used# [2025-02-07 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:18:06 [end_date_ymd] => 2025-02-07 10:18:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:18:06' and `end` < '2025-02-07 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-07 10:18:22] Production.INFO: count ==2369 [2025-02-07 10:18:23] Production.ERROR: pbx CDR StartTime 2025-02-07 07:18:06 - End Time 2025-02-07 10:18:06 [2025-02-07 10:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421715', 'tblTempUsageDetail_20' ) start [2025-02-07 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421715', 'tblTempUsageDetail_20' ) end [2025-02-07 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421715', 'tblTempVendorCDR_20' ) start [2025-02-07 10:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421715', 'tblTempVendorCDR_20' ) end [2025-02-07 10:18:23] Production.INFO: ProcessCDR(1,14421715,1,1,2) [2025-02-07 10:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421715', 'tblTempUsageDetail_20' ) start [2025-02-07 10:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421715', 'tblTempUsageDetail_20' ) end [2025-02-07 10:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:18:28] Production.INFO: ==25715== Releasing lock... [2025-02-07 10:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:18:28] Production.INFO: 45.75 MB #Memory Used# [2025-02-07 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:19:06 [end_date_ymd] => 2025-02-07 10:19:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:19:06' and `end` < '2025-02-07 10: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-07 10:19:21] Production.INFO: count ==2373 [2025-02-07 10:19:23] Production.ERROR: pbx CDR StartTime 2025-02-07 07:19:06 - End Time 2025-02-07 10:19:06 [2025-02-07 10:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421720', 'tblTempUsageDetail_20' ) start [2025-02-07 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421720', 'tblTempUsageDetail_20' ) end [2025-02-07 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421720', 'tblTempVendorCDR_20' ) start [2025-02-07 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421720', 'tblTempVendorCDR_20' ) end [2025-02-07 10:19:23] Production.INFO: ProcessCDR(1,14421720,1,1,2) [2025-02-07 10:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421720', 'tblTempUsageDetail_20' ) start [2025-02-07 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421720', 'tblTempUsageDetail_20' ) end [2025-02-07 10:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:19:28] Production.INFO: ==25796== Releasing lock... [2025-02-07 10:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:19:28] Production.INFO: 45.75 MB #Memory Used# [2025-02-07 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:20:06 [end_date_ymd] => 2025-02-07 10:20:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:20:06' and `end` < '2025-02-07 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-07 10:20:20] Production.INFO: count ==2392 [2025-02-07 10:20:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:20:06 - End Time 2025-02-07 10:20:06 [2025-02-07 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421726', 'tblTempUsageDetail_20' ) start [2025-02-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421726', 'tblTempUsageDetail_20' ) end [2025-02-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421726', 'tblTempVendorCDR_20' ) start [2025-02-07 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421726', 'tblTempVendorCDR_20' ) end [2025-02-07 10:20:21] Production.INFO: ProcessCDR(1,14421726,1,1,2) [2025-02-07 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421726', 'tblTempUsageDetail_20' ) start [2025-02-07 10:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421726', 'tblTempUsageDetail_20' ) end [2025-02-07 10:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:20:27] Production.INFO: ==25875== Releasing lock... [2025-02-07 10:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:20:27] Production.INFO: 46.25 MB #Memory Used# [2025-02-07 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:21:06 [end_date_ymd] => 2025-02-07 10:21:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:21:06' and `end` < '2025-02-07 10: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-07 10:21:24] Production.INFO: count ==2520 [2025-02-07 10:21:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:21:06 - End Time 2025-02-07 10:21:06 [2025-02-07 10:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421731', 'tblTempUsageDetail_20' ) start [2025-02-07 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421731', 'tblTempUsageDetail_20' ) end [2025-02-07 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421731', 'tblTempVendorCDR_20' ) start [2025-02-07 10:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421731', 'tblTempVendorCDR_20' ) end [2025-02-07 10:21:26] Production.INFO: ProcessCDR(1,14421731,1,1,2) [2025-02-07 10:21:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421731', 'tblTempUsageDetail_20' ) start [2025-02-07 10:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421731', 'tblTempUsageDetail_20' ) end [2025-02-07 10:21:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:21:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:21:31] Production.INFO: ==25957== Releasing lock... [2025-02-07 10:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:21:31] Production.INFO: 46.75 MB #Memory Used# [2025-02-07 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:22:05 [end_date_ymd] => 2025-02-07 10:22:05 [RateCDR] => 1 ) [2025-02-07 10:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:22:05' and `end` < '2025-02-07 10:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:22:24] Production.INFO: count ==2537 [2025-02-07 10:22:26] Production.ERROR: pbx CDR StartTime 2025-02-07 07:22:05 - End Time 2025-02-07 10:22:05 [2025-02-07 10:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421736', 'tblTempUsageDetail_20' ) start [2025-02-07 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421736', 'tblTempUsageDetail_20' ) end [2025-02-07 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421736', 'tblTempVendorCDR_20' ) start [2025-02-07 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421736', 'tblTempVendorCDR_20' ) end [2025-02-07 10:22:26] Production.INFO: ProcessCDR(1,14421736,1,1,2) [2025-02-07 10:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421736', 'tblTempUsageDetail_20' ) start [2025-02-07 10:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421736', 'tblTempUsageDetail_20' ) end [2025-02-07 10:22:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:22:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:22:31] Production.INFO: ==26036== Releasing lock... [2025-02-07 10:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:22:31] Production.INFO: 47 MB #Memory Used# [2025-02-07 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:23:06 [end_date_ymd] => 2025-02-07 10:23:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:23:06' and `end` < '2025-02-07 10: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-07 10:23:28] Production.INFO: count ==2548 [2025-02-07 10:23:29] Production.ERROR: pbx CDR StartTime 2025-02-07 07:23:06 - End Time 2025-02-07 10:23:06 [2025-02-07 10:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421741', 'tblTempUsageDetail_20' ) start [2025-02-07 10:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421741', 'tblTempUsageDetail_20' ) end [2025-02-07 10:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421741', 'tblTempVendorCDR_20' ) start [2025-02-07 10:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421741', 'tblTempVendorCDR_20' ) end [2025-02-07 10:23:29] Production.INFO: ProcessCDR(1,14421741,1,1,2) [2025-02-07 10:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421741', 'tblTempUsageDetail_20' ) start [2025-02-07 10:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421741', 'tblTempUsageDetail_20' ) end [2025-02-07 10:23:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:23:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:23:34] Production.INFO: ==26120== Releasing lock... [2025-02-07 10:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:23:34] Production.INFO: 47.25 MB #Memory Used# [2025-02-07 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:24:05 [end_date_ymd] => 2025-02-07 10:24:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:24:05' and `end` < '2025-02-07 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-07 10:24:25] Production.INFO: count ==2561 [2025-02-07 10:24:26] Production.ERROR: pbx CDR StartTime 2025-02-07 07:24:05 - End Time 2025-02-07 10:24:05 [2025-02-07 10:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421746', 'tblTempUsageDetail_20' ) start [2025-02-07 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421746', 'tblTempUsageDetail_20' ) end [2025-02-07 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421746', 'tblTempVendorCDR_20' ) start [2025-02-07 10:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421746', 'tblTempVendorCDR_20' ) end [2025-02-07 10:24:26] Production.INFO: ProcessCDR(1,14421746,1,1,2) [2025-02-07 10:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421746', 'tblTempUsageDetail_20' ) start [2025-02-07 10:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421746', 'tblTempUsageDetail_20' ) end [2025-02-07 10:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:24:31] Production.INFO: ==26201== Releasing lock... [2025-02-07 10:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:24:31] Production.INFO: 47.25 MB #Memory Used# [2025-02-07 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:25:06 [end_date_ymd] => 2025-02-07 10:25:06 [RateCDR] => 1 ) [2025-02-07 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:25:06' and `end` < '2025-02-07 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:25:24] Production.INFO: count ==2569 [2025-02-07 10:25:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:25:06 - End Time 2025-02-07 10:25:06 [2025-02-07 10:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421751', 'tblTempUsageDetail_20' ) start [2025-02-07 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421751', 'tblTempUsageDetail_20' ) end [2025-02-07 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421751', 'tblTempVendorCDR_20' ) start [2025-02-07 10:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421751', 'tblTempVendorCDR_20' ) end [2025-02-07 10:25:25] Production.INFO: ProcessCDR(1,14421751,1,1,2) [2025-02-07 10:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421751', 'tblTempUsageDetail_20' ) start [2025-02-07 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421751', 'tblTempUsageDetail_20' ) end [2025-02-07 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:25:28] Production.INFO: ==26288== Releasing lock... [2025-02-07 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:25:28] Production.INFO: 47.25 MB #Memory Used# [2025-02-07 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:26:06 [end_date_ymd] => 2025-02-07 10:26:06 [RateCDR] => 1 ) [2025-02-07 10:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:26:06' and `end` < '2025-02-07 10:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:26:24] Production.INFO: count ==2590 [2025-02-07 10:26:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:26:06 - End Time 2025-02-07 10:26:06 [2025-02-07 10:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421756', 'tblTempUsageDetail_20' ) start [2025-02-07 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421756', 'tblTempUsageDetail_20' ) end [2025-02-07 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421756', 'tblTempVendorCDR_20' ) start [2025-02-07 10:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421756', 'tblTempVendorCDR_20' ) end [2025-02-07 10:26:25] Production.INFO: ProcessCDR(1,14421756,1,1,2) [2025-02-07 10:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421756', 'tblTempUsageDetail_20' ) start [2025-02-07 10:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421756', 'tblTempUsageDetail_20' ) end [2025-02-07 10:26:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:26:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:26:30] Production.INFO: ==26367== Releasing lock... [2025-02-07 10:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:26:30] Production.INFO: 47.5 MB #Memory Used# [2025-02-07 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:27:05 [end_date_ymd] => 2025-02-07 10:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:27:05' and `end` < '2025-02-07 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-07 10:27:22] Production.INFO: count ==2611 [2025-02-07 10:27:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:27:05 - End Time 2025-02-07 10:27:05 [2025-02-07 10:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421761', 'tblTempUsageDetail_20' ) start [2025-02-07 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421761', 'tblTempUsageDetail_20' ) end [2025-02-07 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421761', 'tblTempVendorCDR_20' ) start [2025-02-07 10:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421761', 'tblTempVendorCDR_20' ) end [2025-02-07 10:27:24] Production.INFO: ProcessCDR(1,14421761,1,1,2) [2025-02-07 10:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421761', 'tblTempUsageDetail_20' ) start [2025-02-07 10:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421761', 'tblTempUsageDetail_20' ) end [2025-02-07 10:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:27:29] Production.INFO: ==26455== Releasing lock... [2025-02-07 10:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:27:29] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:28:05 [end_date_ymd] => 2025-02-07 10:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:28:05' and `end` < '2025-02-07 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-07 10:28:20] Production.INFO: count ==2627 [2025-02-07 10:28:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:28:05 - End Time 2025-02-07 10:28:05 [2025-02-07 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421766', 'tblTempUsageDetail_20' ) start [2025-02-07 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421766', 'tblTempUsageDetail_20' ) end [2025-02-07 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421766', 'tblTempVendorCDR_20' ) start [2025-02-07 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421766', 'tblTempVendorCDR_20' ) end [2025-02-07 10:28:21] Production.INFO: ProcessCDR(1,14421766,1,1,2) [2025-02-07 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421766', 'tblTempUsageDetail_20' ) start [2025-02-07 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421766', 'tblTempUsageDetail_20' ) end [2025-02-07 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:28:25] Production.INFO: ==26538== Releasing lock... [2025-02-07 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:28:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:29:06 [end_date_ymd] => 2025-02-07 10:29:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:29:06' and `end` < '2025-02-07 10: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-07 10:29:19] Production.INFO: count ==2627 [2025-02-07 10:29:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:29:06 - End Time 2025-02-07 10:29:06 [2025-02-07 10:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421771', 'tblTempUsageDetail_20' ) start [2025-02-07 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421771', 'tblTempUsageDetail_20' ) end [2025-02-07 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421771', 'tblTempVendorCDR_20' ) start [2025-02-07 10:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421771', 'tblTempVendorCDR_20' ) end [2025-02-07 10:29:21] Production.INFO: ProcessCDR(1,14421771,1,1,2) [2025-02-07 10:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421771', 'tblTempUsageDetail_20' ) start [2025-02-07 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421771', 'tblTempUsageDetail_20' ) end [2025-02-07 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:29:24] Production.INFO: ==26636== Releasing lock... [2025-02-07 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:29:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:30:06 [end_date_ymd] => 2025-02-07 10:30:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:30:06' and `end` < '2025-02-07 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-07 10:30:20] Production.INFO: count ==2649 [2025-02-07 10:30:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:30:06 - End Time 2025-02-07 10:30:06 [2025-02-07 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421776', 'tblTempUsageDetail_20' ) start [2025-02-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421776', 'tblTempUsageDetail_20' ) end [2025-02-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421776', 'tblTempVendorCDR_20' ) start [2025-02-07 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421776', 'tblTempVendorCDR_20' ) end [2025-02-07 10:30:21] Production.INFO: ProcessCDR(1,14421776,1,1,2) [2025-02-07 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421776', 'tblTempUsageDetail_20' ) start [2025-02-07 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421776', 'tblTempUsageDetail_20' ) end [2025-02-07 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:30:27] Production.INFO: ==26743== Releasing lock... [2025-02-07 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:30:27] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:31:06 [end_date_ymd] => 2025-02-07 10:31:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:31:06' and `end` < '2025-02-07 10: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-07 10:31:19] Production.INFO: count ==2731 [2025-02-07 10:31:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:31:06 - End Time 2025-02-07 10:31:06 [2025-02-07 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421782', 'tblTempUsageDetail_20' ) start [2025-02-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421782', 'tblTempUsageDetail_20' ) end [2025-02-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421782', 'tblTempVendorCDR_20' ) start [2025-02-07 10:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421782', 'tblTempVendorCDR_20' ) end [2025-02-07 10:31:21] Production.INFO: ProcessCDR(1,14421782,1,1,2) [2025-02-07 10:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421782', 'tblTempUsageDetail_20' ) start [2025-02-07 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421782', 'tblTempUsageDetail_20' ) end [2025-02-07 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:31:25] Production.INFO: ==26830== Releasing lock... [2025-02-07 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:31:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:32:05 [end_date_ymd] => 2025-02-07 10:32:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:32:05' and `end` < '2025-02-07 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-07 10:32:27] Production.INFO: count ==2752 [2025-02-07 10:32:28] Production.ERROR: pbx CDR StartTime 2025-02-07 07:32:05 - End Time 2025-02-07 10:32:05 [2025-02-07 10:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421787', 'tblTempUsageDetail_20' ) start [2025-02-07 10:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421787', 'tblTempUsageDetail_20' ) end [2025-02-07 10:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421787', 'tblTempVendorCDR_20' ) start [2025-02-07 10:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421787', 'tblTempVendorCDR_20' ) end [2025-02-07 10:32:28] Production.INFO: ProcessCDR(1,14421787,1,1,2) [2025-02-07 10:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421787', 'tblTempUsageDetail_20' ) start [2025-02-07 10:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421787', 'tblTempUsageDetail_20' ) end [2025-02-07 10:32:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:32:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:32:33] Production.INFO: ==26913== Releasing lock... [2025-02-07 10:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:32:33] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:33:06 [end_date_ymd] => 2025-02-07 10:33:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:33:06' and `end` < '2025-02-07 10: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-07 10:33:20] Production.INFO: count ==2762 [2025-02-07 10:33:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:33:06 - End Time 2025-02-07 10:33:06 [2025-02-07 10:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421792', 'tblTempUsageDetail_20' ) start [2025-02-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421792', 'tblTempUsageDetail_20' ) end [2025-02-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421792', 'tblTempVendorCDR_20' ) start [2025-02-07 10:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421792', 'tblTempVendorCDR_20' ) end [2025-02-07 10:33:21] Production.INFO: ProcessCDR(1,14421792,1,1,2) [2025-02-07 10:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421792', 'tblTempUsageDetail_20' ) start [2025-02-07 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421792', 'tblTempUsageDetail_20' ) end [2025-02-07 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:33:26] Production.INFO: ==26995== Releasing lock... [2025-02-07 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:33:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:34:06 [end_date_ymd] => 2025-02-07 10:34:06 [RateCDR] => 1 ) [2025-02-07 10:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:34:06' and `end` < '2025-02-07 10:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:34:22] Production.INFO: count ==2774 [2025-02-07 10:34:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:34:06 - End Time 2025-02-07 10:34:06 [2025-02-07 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421797', 'tblTempUsageDetail_20' ) start [2025-02-07 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421797', 'tblTempUsageDetail_20' ) end [2025-02-07 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421797', 'tblTempVendorCDR_20' ) start [2025-02-07 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421797', 'tblTempVendorCDR_20' ) end [2025-02-07 10:34:24] Production.INFO: ProcessCDR(1,14421797,1,1,2) [2025-02-07 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421797', 'tblTempUsageDetail_20' ) start [2025-02-07 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421797', 'tblTempUsageDetail_20' ) end [2025-02-07 10:34:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:34:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:34:29] Production.INFO: ==27074== Releasing lock... [2025-02-07 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:34:29] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:35:06 [end_date_ymd] => 2025-02-07 10:35:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:35:06' and `end` < '2025-02-07 10: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-07 10:35:38] Production.INFO: count ==2782 [2025-02-07 10:35:39] Production.ERROR: pbx CDR StartTime 2025-02-07 07:35:06 - End Time 2025-02-07 10:35:06 [2025-02-07 10:35:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421802', 'tblTempUsageDetail_20' ) start [2025-02-07 10:35:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421802', 'tblTempUsageDetail_20' ) end [2025-02-07 10:35:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421802', 'tblTempVendorCDR_20' ) start [2025-02-07 10:35:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421802', 'tblTempVendorCDR_20' ) end [2025-02-07 10:35:40] Production.INFO: ProcessCDR(1,14421802,1,1,2) [2025-02-07 10:35:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:35:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:35:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:35:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:35:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421802', 'tblTempUsageDetail_20' ) start [2025-02-07 10:35:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421802', 'tblTempUsageDetail_20' ) end [2025-02-07 10:35:45] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:35:45] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:35:45] Production.INFO: ==27155== Releasing lock... [2025-02-07 10:35:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:35:45] Production.INFO: 49 MB #Memory Used# [2025-02-07 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:36:05 [end_date_ymd] => 2025-02-07 10:36:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:36:05' and `end` < '2025-02-07 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-07 10:36:27] Production.INFO: count ==2793 [2025-02-07 10:36:29] Production.ERROR: pbx CDR StartTime 2025-02-07 07:36:05 - End Time 2025-02-07 10:36:05 [2025-02-07 10:36:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421807', 'tblTempUsageDetail_20' ) start [2025-02-07 10:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421807', 'tblTempUsageDetail_20' ) end [2025-02-07 10:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421807', 'tblTempVendorCDR_20' ) start [2025-02-07 10:36:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421807', 'tblTempVendorCDR_20' ) end [2025-02-07 10:36:29] Production.INFO: ProcessCDR(1,14421807,1,1,2) [2025-02-07 10:36:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421807', 'tblTempUsageDetail_20' ) start [2025-02-07 10:36:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421807', 'tblTempUsageDetail_20' ) end [2025-02-07 10:36:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:36:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:36:34] Production.INFO: ==27233== Releasing lock... [2025-02-07 10:36:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:36:34] Production.INFO: 49 MB #Memory Used# [2025-02-07 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:37:06 [end_date_ymd] => 2025-02-07 10:37:06 [RateCDR] => 1 ) [2025-02-07 10:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:37:06' and `end` < '2025-02-07 10:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:37:19] Production.INFO: count ==2819 [2025-02-07 10:37:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:37:06 - End Time 2025-02-07 10:37:06 [2025-02-07 10:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421812', 'tblTempUsageDetail_20' ) start [2025-02-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421812', 'tblTempUsageDetail_20' ) end [2025-02-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421812', 'tblTempVendorCDR_20' ) start [2025-02-07 10:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421812', 'tblTempVendorCDR_20' ) end [2025-02-07 10:37:21] Production.INFO: ProcessCDR(1,14421812,1,1,2) [2025-02-07 10:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421812', 'tblTempUsageDetail_20' ) start [2025-02-07 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421812', 'tblTempUsageDetail_20' ) end [2025-02-07 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:37:25] Production.INFO: ==27314== Releasing lock... [2025-02-07 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:37:25] Production.INFO: 49 MB #Memory Used# [2025-02-07 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:38:05 [end_date_ymd] => 2025-02-07 10:38:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:38:05' and `end` < '2025-02-07 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-07 10:38:20] Production.INFO: count ==2852 [2025-02-07 10:38:21] Production.ERROR: pbx CDR StartTime 2025-02-07 07:38:05 - End Time 2025-02-07 10:38:05 [2025-02-07 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421817', 'tblTempUsageDetail_20' ) start [2025-02-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421817', 'tblTempUsageDetail_20' ) end [2025-02-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421817', 'tblTempVendorCDR_20' ) start [2025-02-07 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421817', 'tblTempVendorCDR_20' ) end [2025-02-07 10:38:21] Production.INFO: ProcessCDR(1,14421817,1,1,2) [2025-02-07 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421817', 'tblTempUsageDetail_20' ) start [2025-02-07 10:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421817', 'tblTempUsageDetail_20' ) end [2025-02-07 10:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:38:27] Production.INFO: ==27393== Releasing lock... [2025-02-07 10:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:38:27] Production.INFO: 49.25 MB #Memory Used# [2025-02-07 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:39:06 [end_date_ymd] => 2025-02-07 10:39:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:39:06' and `end` < '2025-02-07 10: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-07 10:39:21] Production.INFO: count ==2870 [2025-02-07 10:39:23] Production.ERROR: pbx CDR StartTime 2025-02-07 07:39:06 - End Time 2025-02-07 10:39:06 [2025-02-07 10:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421822', 'tblTempUsageDetail_20' ) start [2025-02-07 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421822', 'tblTempUsageDetail_20' ) end [2025-02-07 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421822', 'tblTempVendorCDR_20' ) start [2025-02-07 10:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421822', 'tblTempVendorCDR_20' ) end [2025-02-07 10:39:23] Production.INFO: ProcessCDR(1,14421822,1,1,2) [2025-02-07 10:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421822', 'tblTempUsageDetail_20' ) start [2025-02-07 10:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421822', 'tblTempUsageDetail_20' ) end [2025-02-07 10:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:39:29] Production.INFO: ==27475== Releasing lock... [2025-02-07 10:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:39:29] Production.INFO: 49.25 MB #Memory Used# [2025-02-07 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:40:06 [end_date_ymd] => 2025-02-07 10:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 07:40:06' and `end` < '2025-02-07 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-07 10:40:24] Production.INFO: count ==2917 [2025-02-07 10:40:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:40:06 - End Time 2025-02-07 10:40:06 [2025-02-07 10:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421827', 'tblTempUsageDetail_20' ) start [2025-02-07 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421827', 'tblTempUsageDetail_20' ) end [2025-02-07 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421827', 'tblTempVendorCDR_20' ) start [2025-02-07 10:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421827', 'tblTempVendorCDR_20' ) end [2025-02-07 10:40:26] Production.INFO: ProcessCDR(1,14421827,1,1,2) [2025-02-07 10:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421827', 'tblTempUsageDetail_20' ) start [2025-02-07 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421827', 'tblTempUsageDetail_20' ) end [2025-02-07 10:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:40:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:40:31] Production.INFO: ==27560== Releasing lock... [2025-02-07 10:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:40:31] Production.INFO: 50 MB #Memory Used# [2025-02-07 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:41:05 [end_date_ymd] => 2025-02-07 10:41:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:41:05' and `end` < '2025-02-07 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-07 10:41:23] Production.INFO: count ==3016 [2025-02-07 10:41:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:41:05 - End Time 2025-02-07 10:41:05 [2025-02-07 10:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421833', 'tblTempUsageDetail_20' ) start [2025-02-07 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421833', 'tblTempUsageDetail_20' ) end [2025-02-07 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421833', 'tblTempVendorCDR_20' ) start [2025-02-07 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421833', 'tblTempVendorCDR_20' ) end [2025-02-07 10:41:25] Production.INFO: ProcessCDR(1,14421833,1,1,2) [2025-02-07 10:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421833', 'tblTempUsageDetail_20' ) start [2025-02-07 10:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421833', 'tblTempUsageDetail_20' ) end [2025-02-07 10:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:41:30] Production.INFO: ==27640== Releasing lock... [2025-02-07 10:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:41:30] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:42:05 [end_date_ymd] => 2025-02-07 10:42:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:42:05' and `end` < '2025-02-07 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-07 10:42:21] Production.INFO: count ==3064 [2025-02-07 10:42:22] Production.ERROR: pbx CDR StartTime 2025-02-07 07:42:05 - End Time 2025-02-07 10:42:05 [2025-02-07 10:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421838', 'tblTempUsageDetail_20' ) start [2025-02-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421838', 'tblTempUsageDetail_20' ) end [2025-02-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421838', 'tblTempVendorCDR_20' ) start [2025-02-07 10:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421838', 'tblTempVendorCDR_20' ) end [2025-02-07 10:42:22] Production.INFO: ProcessCDR(1,14421838,1,1,2) [2025-02-07 10:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421838', 'tblTempUsageDetail_20' ) start [2025-02-07 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421838', 'tblTempUsageDetail_20' ) end [2025-02-07 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:42:26] Production.INFO: ==27714== Releasing lock... [2025-02-07 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:42:26] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:43:05 [end_date_ymd] => 2025-02-07 10:43:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:43:05' and `end` < '2025-02-07 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-07 10:43:24] Production.INFO: count ==3090 [2025-02-07 10:43:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:43:05 - End Time 2025-02-07 10:43:05 [2025-02-07 10:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421843', 'tblTempUsageDetail_20' ) start [2025-02-07 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421843', 'tblTempUsageDetail_20' ) end [2025-02-07 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421843', 'tblTempVendorCDR_20' ) start [2025-02-07 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421843', 'tblTempVendorCDR_20' ) end [2025-02-07 10:43:25] Production.INFO: ProcessCDR(1,14421843,1,1,2) [2025-02-07 10:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421843', 'tblTempUsageDetail_20' ) start [2025-02-07 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421843', 'tblTempUsageDetail_20' ) end [2025-02-07 10:43:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:43:31] Production.INFO: ==27795== Releasing lock... [2025-02-07 10:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:43:31] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:44:05 [end_date_ymd] => 2025-02-07 10:44:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:44:05' and `end` < '2025-02-07 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-07 10:44:23] Production.INFO: count ==3112 [2025-02-07 10:44:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:44:05 - End Time 2025-02-07 10:44:05 [2025-02-07 10:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421848', 'tblTempUsageDetail_20' ) start [2025-02-07 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421848', 'tblTempUsageDetail_20' ) end [2025-02-07 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421848', 'tblTempVendorCDR_20' ) start [2025-02-07 10:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421848', 'tblTempVendorCDR_20' ) end [2025-02-07 10:44:24] Production.INFO: ProcessCDR(1,14421848,1,1,2) [2025-02-07 10:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:44:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:44:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421848', 'tblTempUsageDetail_20' ) start [2025-02-07 10:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421848', 'tblTempUsageDetail_20' ) end [2025-02-07 10:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:44:30] Production.INFO: ==27872== Releasing lock... [2025-02-07 10:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:44:30] Production.INFO: 51.25 MB #Memory Used# [2025-02-07 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:45:06 [end_date_ymd] => 2025-02-07 10:45:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:45:06' and `end` < '2025-02-07 10: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-07 10:45:26] Production.INFO: count ==3147 [2025-02-07 10:45:27] Production.ERROR: pbx CDR StartTime 2025-02-07 07:45:06 - End Time 2025-02-07 10:45:06 [2025-02-07 10:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421853', 'tblTempUsageDetail_20' ) start [2025-02-07 10:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421853', 'tblTempUsageDetail_20' ) end [2025-02-07 10:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421853', 'tblTempVendorCDR_20' ) start [2025-02-07 10:45:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421853', 'tblTempVendorCDR_20' ) end [2025-02-07 10:45:28] Production.INFO: ProcessCDR(1,14421853,1,1,2) [2025-02-07 10:45:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:45:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:45:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421853', 'tblTempUsageDetail_20' ) start [2025-02-07 10:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421853', 'tblTempUsageDetail_20' ) end [2025-02-07 10:45:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:45:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:45:33] Production.INFO: ==27995== Releasing lock... [2025-02-07 10:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:45:33] Production.INFO: 51.5 MB #Memory Used# [2025-02-07 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:46:05 [end_date_ymd] => 2025-02-07 10:46:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:46:05' and `end` < '2025-02-07 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-07 10:46:26] Production.INFO: count ==3173 [2025-02-07 10:46:27] Production.ERROR: pbx CDR StartTime 2025-02-07 07:46:05 - End Time 2025-02-07 10:46:05 [2025-02-07 10:46:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421858', 'tblTempUsageDetail_20' ) start [2025-02-07 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421858', 'tblTempUsageDetail_20' ) end [2025-02-07 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421858', 'tblTempVendorCDR_20' ) start [2025-02-07 10:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421858', 'tblTempVendorCDR_20' ) end [2025-02-07 10:46:27] Production.INFO: ProcessCDR(1,14421858,1,1,2) [2025-02-07 10:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:46:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:46:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:46:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421858', 'tblTempUsageDetail_20' ) start [2025-02-07 10:46:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421858', 'tblTempUsageDetail_20' ) end [2025-02-07 10:46:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:46:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:46:33] Production.INFO: ==28079== Releasing lock... [2025-02-07 10:46:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:46:33] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:47:06 [end_date_ymd] => 2025-02-07 10:47:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:47:06' and `end` < '2025-02-07 10: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-07 10:47:23] Production.INFO: count ==3192 [2025-02-07 10:47:24] Production.ERROR: pbx CDR StartTime 2025-02-07 07:47:06 - End Time 2025-02-07 10:47:06 [2025-02-07 10:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421863', 'tblTempUsageDetail_20' ) start [2025-02-07 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421863', 'tblTempUsageDetail_20' ) end [2025-02-07 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421863', 'tblTempVendorCDR_20' ) start [2025-02-07 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421863', 'tblTempVendorCDR_20' ) end [2025-02-07 10:47:24] Production.INFO: ProcessCDR(1,14421863,1,1,2) [2025-02-07 10:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421863', 'tblTempUsageDetail_20' ) start [2025-02-07 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421863', 'tblTempUsageDetail_20' ) end [2025-02-07 10:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:47:29] Production.INFO: ==28160== Releasing lock... [2025-02-07 10:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:47:29] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:48:05 [end_date_ymd] => 2025-02-07 10:48:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:48:05' and `end` < '2025-02-07 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-07 10:48:23] Production.INFO: count ==3195 [2025-02-07 10:48:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:48:05 - End Time 2025-02-07 10:48:05 [2025-02-07 10:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421868', 'tblTempUsageDetail_20' ) start [2025-02-07 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421868', 'tblTempUsageDetail_20' ) end [2025-02-07 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421868', 'tblTempVendorCDR_20' ) start [2025-02-07 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421868', 'tblTempVendorCDR_20' ) end [2025-02-07 10:48:25] Production.INFO: ProcessCDR(1,14421868,1,1,2) [2025-02-07 10:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421868', 'tblTempUsageDetail_20' ) start [2025-02-07 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421868', 'tblTempUsageDetail_20' ) end [2025-02-07 10:48:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:48:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:48:29] Production.INFO: ==28238== Releasing lock... [2025-02-07 10:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:48:29] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:49:05 [end_date_ymd] => 2025-02-07 10:49:05 [RateCDR] => 1 ) [2025-02-07 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:49:05' and `end` < '2025-02-07 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-07 10:49:19] Production.INFO: count ==3199 [2025-02-07 10:49:20] Production.ERROR: pbx CDR StartTime 2025-02-07 07:49:05 - End Time 2025-02-07 10:49:05 [2025-02-07 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421873', 'tblTempUsageDetail_20' ) start [2025-02-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421873', 'tblTempUsageDetail_20' ) end [2025-02-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421873', 'tblTempVendorCDR_20' ) start [2025-02-07 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421873', 'tblTempVendorCDR_20' ) end [2025-02-07 10:49:20] Production.INFO: ProcessCDR(1,14421873,1,1,2) [2025-02-07 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421873', 'tblTempUsageDetail_20' ) start [2025-02-07 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421873', 'tblTempUsageDetail_20' ) end [2025-02-07 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:49:25] Production.INFO: ==28323== Releasing lock... [2025-02-07 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:49:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:50:07 [end_date_ymd] => 2025-02-07 10:50:07 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:50:07' and `end` < '2025-02-07 10: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-07 10:50:26] Production.INFO: count ==3227 [2025-02-07 10:50:27] Production.ERROR: pbx CDR StartTime 2025-02-07 07:50:07 - End Time 2025-02-07 10:50:07 [2025-02-07 10:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421879', 'tblTempUsageDetail_20' ) start [2025-02-07 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421879', 'tblTempUsageDetail_20' ) end [2025-02-07 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421879', 'tblTempVendorCDR_20' ) start [2025-02-07 10:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421879', 'tblTempVendorCDR_20' ) end [2025-02-07 10:50:27] Production.INFO: ProcessCDR(1,14421879,1,1,2) [2025-02-07 10:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421879', 'tblTempUsageDetail_20' ) start [2025-02-07 10:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421879', 'tblTempUsageDetail_20' ) end [2025-02-07 10:50:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:50:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:50:32] Production.INFO: ==28399== Releasing lock... [2025-02-07 10:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:50:32] Production.INFO: 52 MB #Memory Used# [2025-02-07 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:51:06 [end_date_ymd] => 2025-02-07 10:51:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:51:06' and `end` < '2025-02-07 10: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-07 10:51:24] Production.INFO: count ==3338 [2025-02-07 10:51:26] Production.ERROR: pbx CDR StartTime 2025-02-07 07:51:06 - End Time 2025-02-07 10:51:06 [2025-02-07 10:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421884', 'tblTempUsageDetail_20' ) start [2025-02-07 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421884', 'tblTempUsageDetail_20' ) end [2025-02-07 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421884', 'tblTempVendorCDR_20' ) start [2025-02-07 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421884', 'tblTempVendorCDR_20' ) end [2025-02-07 10:51:26] Production.INFO: ProcessCDR(1,14421884,1,1,2) [2025-02-07 10:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421884', 'tblTempUsageDetail_20' ) start [2025-02-07 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421884', 'tblTempUsageDetail_20' ) end [2025-02-07 10:51:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:51:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:51:31] Production.INFO: ==28484== Releasing lock... [2025-02-07 10:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:51:31] Production.INFO: 53 MB #Memory Used# [2025-02-07 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:52:05 [end_date_ymd] => 2025-02-07 10:52:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:52:05' and `end` < '2025-02-07 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-07 10:52:24] Production.INFO: count ==3353 [2025-02-07 10:52:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:52:05 - End Time 2025-02-07 10:52:05 [2025-02-07 10:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421889', 'tblTempUsageDetail_20' ) start [2025-02-07 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421889', 'tblTempUsageDetail_20' ) end [2025-02-07 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421889', 'tblTempVendorCDR_20' ) start [2025-02-07 10:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421889', 'tblTempVendorCDR_20' ) end [2025-02-07 10:52:25] Production.INFO: ProcessCDR(1,14421889,1,1,2) [2025-02-07 10:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421889', 'tblTempUsageDetail_20' ) start [2025-02-07 10:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421889', 'tblTempUsageDetail_20' ) end [2025-02-07 10:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:52:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:52:31] Production.INFO: ==28565== Releasing lock... [2025-02-07 10:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:52:31] Production.INFO: 53 MB #Memory Used# [2025-02-07 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:53:05 [end_date_ymd] => 2025-02-07 10:53:05 [RateCDR] => 1 ) [2025-02-07 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:53:05' and `end` < '2025-02-07 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:53:27] Production.INFO: count ==3372 [2025-02-07 10:53:29] Production.ERROR: pbx CDR StartTime 2025-02-07 07:53:05 - End Time 2025-02-07 10:53:05 [2025-02-07 10:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421894', 'tblTempUsageDetail_20' ) start [2025-02-07 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421894', 'tblTempUsageDetail_20' ) end [2025-02-07 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421894', 'tblTempVendorCDR_20' ) start [2025-02-07 10:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421894', 'tblTempVendorCDR_20' ) end [2025-02-07 10:53:29] Production.INFO: ProcessCDR(1,14421894,1,1,2) [2025-02-07 10:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:53:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:53:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421894', 'tblTempUsageDetail_20' ) start [2025-02-07 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421894', 'tblTempUsageDetail_20' ) end [2025-02-07 10:53:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:53:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:53:34] Production.INFO: ==28643== Releasing lock... [2025-02-07 10:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:53:34] Production.INFO: 53.25 MB #Memory Used# [2025-02-07 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:54:06 [end_date_ymd] => 2025-02-07 10:54:06 [RateCDR] => 1 ) [2025-02-07 10:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 07:54:06' and `end` < '2025-02-07 10:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 10:54:32] Production.INFO: count ==3391 [2025-02-07 10:54:34] Production.ERROR: pbx CDR StartTime 2025-02-07 07:54:06 - End Time 2025-02-07 10:54:06 [2025-02-07 10:54:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421899', 'tblTempUsageDetail_20' ) start [2025-02-07 10:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421899', 'tblTempUsageDetail_20' ) end [2025-02-07 10:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421899', 'tblTempVendorCDR_20' ) start [2025-02-07 10:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421899', 'tblTempVendorCDR_20' ) end [2025-02-07 10:54:34] Production.INFO: ProcessCDR(1,14421899,1,1,2) [2025-02-07 10:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:54:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:54:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:54:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421899', 'tblTempUsageDetail_20' ) start [2025-02-07 10:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421899', 'tblTempUsageDetail_20' ) end [2025-02-07 10:54:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:54:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:54:40] Production.INFO: ==28727== Releasing lock... [2025-02-07 10:54:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:54:40] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:55:05 [end_date_ymd] => 2025-02-07 10:55:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:55:05' and `end` < '2025-02-07 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-07 10:55:31] Production.INFO: count ==3412 [2025-02-07 10:55:33] Production.ERROR: pbx CDR StartTime 2025-02-07 07:55:05 - End Time 2025-02-07 10:55:05 [2025-02-07 10:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421904', 'tblTempUsageDetail_20' ) start [2025-02-07 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421904', 'tblTempUsageDetail_20' ) end [2025-02-07 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421904', 'tblTempVendorCDR_20' ) start [2025-02-07 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421904', 'tblTempVendorCDR_20' ) end [2025-02-07 10:55:33] Production.INFO: ProcessCDR(1,14421904,1,1,2) [2025-02-07 10:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:55:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:55:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:55:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421904', 'tblTempUsageDetail_20' ) start [2025-02-07 10:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421904', 'tblTempUsageDetail_20' ) end [2025-02-07 10:55:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:55:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:55:38] Production.INFO: ==28810== Releasing lock... [2025-02-07 10:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:55:38] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:56:06 [end_date_ymd] => 2025-02-07 10:56:06 [RateCDR] => 1 ) [2025-02-07 10: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-07 07:56:06' and `end` < '2025-02-07 10: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-07 10:56:24] Production.INFO: count ==3432 [2025-02-07 10:56:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:56:06 - End Time 2025-02-07 10:56:06 [2025-02-07 10:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421909', 'tblTempUsageDetail_20' ) start [2025-02-07 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421909', 'tblTempUsageDetail_20' ) end [2025-02-07 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421909', 'tblTempVendorCDR_20' ) start [2025-02-07 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421909', 'tblTempVendorCDR_20' ) end [2025-02-07 10:56:26] Production.INFO: ProcessCDR(1,14421909,1,1,2) [2025-02-07 10:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421909', 'tblTempUsageDetail_20' ) start [2025-02-07 10:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421909', 'tblTempUsageDetail_20' ) end [2025-02-07 10:56:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:56:31] Production.INFO: ==28895== Releasing lock... [2025-02-07 10:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:56:31] Production.INFO: 54 MB #Memory Used# [2025-02-07 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:57:05 [end_date_ymd] => 2025-02-07 10:57:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:57:05' and `end` < '2025-02-07 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-07 10:57:23] Production.INFO: count ==3454 [2025-02-07 10:57:25] Production.ERROR: pbx CDR StartTime 2025-02-07 07:57:05 - End Time 2025-02-07 10:57:05 [2025-02-07 10:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421914', 'tblTempUsageDetail_20' ) start [2025-02-07 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421914', 'tblTempUsageDetail_20' ) end [2025-02-07 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421914', 'tblTempVendorCDR_20' ) start [2025-02-07 10:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421914', 'tblTempVendorCDR_20' ) end [2025-02-07 10:57:25] Production.INFO: ProcessCDR(1,14421914,1,1,2) [2025-02-07 10:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421914', 'tblTempUsageDetail_20' ) start [2025-02-07 10:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421914', 'tblTempUsageDetail_20' ) end [2025-02-07 10:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:57:29] Production.INFO: ==28979== Releasing lock... [2025-02-07 10:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:57:29] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:58:05 [end_date_ymd] => 2025-02-07 10:58:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:58:05' and `end` < '2025-02-07 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-07 10:58:22] Production.INFO: count ==3462 [2025-02-07 10:58:23] Production.ERROR: pbx CDR StartTime 2025-02-07 07:58:05 - End Time 2025-02-07 10:58:05 [2025-02-07 10:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421919', 'tblTempUsageDetail_20' ) start [2025-02-07 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421919', 'tblTempUsageDetail_20' ) end [2025-02-07 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421919', 'tblTempVendorCDR_20' ) start [2025-02-07 10:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421919', 'tblTempVendorCDR_20' ) end [2025-02-07 10:58:23] Production.INFO: ProcessCDR(1,14421919,1,1,2) [2025-02-07 10:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421919', 'tblTempUsageDetail_20' ) start [2025-02-07 10:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421919', 'tblTempUsageDetail_20' ) end [2025-02-07 10:58:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:58:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:58:28] Production.INFO: ==29059== Releasing lock... [2025-02-07 10:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:58:28] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 07:59:05 [end_date_ymd] => 2025-02-07 10:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 07:59:05' and `end` < '2025-02-07 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-07 10:59:26] Production.INFO: count ==3469 [2025-02-07 10:59:28] Production.ERROR: pbx CDR StartTime 2025-02-07 07:59:05 - End Time 2025-02-07 10:59:05 [2025-02-07 10:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421924', 'tblTempUsageDetail_20' ) start [2025-02-07 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421924', 'tblTempUsageDetail_20' ) end [2025-02-07 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421924', 'tblTempVendorCDR_20' ) start [2025-02-07 10:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421924', 'tblTempVendorCDR_20' ) end [2025-02-07 10:59:28] Production.INFO: ProcessCDR(1,14421924,1,1,2) [2025-02-07 10:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 10:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 10:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421924', 'tblTempUsageDetail_20' ) start [2025-02-07 10:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421924', 'tblTempUsageDetail_20' ) end [2025-02-07 10:59:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 10:59:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 10:59:33] Production.INFO: ==29140== Releasing lock... [2025-02-07 10:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 10:59:33] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:00:07 [end_date_ymd] => 2025-02-07 11:00:07 [RateCDR] => 1 ) [2025-02-07 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-07 08:00:07' and `end` < '2025-02-07 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-07 11:00:22] Production.INFO: count ==3477 [2025-02-07 11:00:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:00:07 - End Time 2025-02-07 11:00:07 [2025-02-07 11:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421930', 'tblTempUsageDetail_20' ) start [2025-02-07 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421930', 'tblTempUsageDetail_20' ) end [2025-02-07 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421930', 'tblTempVendorCDR_20' ) start [2025-02-07 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421930', 'tblTempVendorCDR_20' ) end [2025-02-07 11:00:24] Production.INFO: ProcessCDR(1,14421930,1,1,2) [2025-02-07 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421930', 'tblTempUsageDetail_20' ) start [2025-02-07 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421930', 'tblTempUsageDetail_20' ) end [2025-02-07 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:00:29] Production.INFO: ==29270== Releasing lock... [2025-02-07 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:00:29] Production.INFO: 54.5 MB #Memory Used# [2025-02-07 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:01:05 [end_date_ymd] => 2025-02-07 11:01:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:01:05' and `end` < '2025-02-07 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-07 11:01:29] Production.INFO: count ==3553 [2025-02-07 11:01:30] Production.ERROR: pbx CDR StartTime 2025-02-07 08:01:05 - End Time 2025-02-07 11:01:05 [2025-02-07 11:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421935', 'tblTempUsageDetail_20' ) start [2025-02-07 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421935', 'tblTempUsageDetail_20' ) end [2025-02-07 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421935', 'tblTempVendorCDR_20' ) start [2025-02-07 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421935', 'tblTempVendorCDR_20' ) end [2025-02-07 11:01:30] Production.INFO: ProcessCDR(1,14421935,1,1,2) [2025-02-07 11:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:01:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:01:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:01:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421935', 'tblTempUsageDetail_20' ) start [2025-02-07 11:01:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421935', 'tblTempUsageDetail_20' ) end [2025-02-07 11:01:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:01:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:01:36] Production.INFO: ==29439== Releasing lock... [2025-02-07 11:01:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:01:36] Production.INFO: 55.5 MB #Memory Used# [2025-02-07 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:02:06 [end_date_ymd] => 2025-02-07 11:02:06 [RateCDR] => 1 ) [2025-02-07 11:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:02:06' and `end` < '2025-02-07 11:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:02:26] Production.INFO: count ==3574 [2025-02-07 11:02:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:02:06 - End Time 2025-02-07 11:02:06 [2025-02-07 11:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421940', 'tblTempUsageDetail_20' ) start [2025-02-07 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421940', 'tblTempUsageDetail_20' ) end [2025-02-07 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421940', 'tblTempVendorCDR_20' ) start [2025-02-07 11:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421940', 'tblTempVendorCDR_20' ) end [2025-02-07 11:02:28] Production.INFO: ProcessCDR(1,14421940,1,1,2) [2025-02-07 11:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421940', 'tblTempUsageDetail_20' ) start [2025-02-07 11:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421940', 'tblTempUsageDetail_20' ) end [2025-02-07 11:02:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:02:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:02:34] Production.INFO: ==29526== Releasing lock... [2025-02-07 11:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:02:34] Production.INFO: 55.5 MB #Memory Used# [2025-02-07 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:03:05 [end_date_ymd] => 2025-02-07 11:03:05 [RateCDR] => 1 ) [2025-02-07 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:03:05' and `end` < '2025-02-07 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:03:22] Production.INFO: count ==3578 [2025-02-07 11:03:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:03:05 - End Time 2025-02-07 11:03:05 [2025-02-07 11:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421945', 'tblTempUsageDetail_20' ) start [2025-02-07 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421945', 'tblTempUsageDetail_20' ) end [2025-02-07 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421945', 'tblTempVendorCDR_20' ) start [2025-02-07 11:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421945', 'tblTempVendorCDR_20' ) end [2025-02-07 11:03:24] Production.INFO: ProcessCDR(1,14421945,1,1,2) [2025-02-07 11:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421945', 'tblTempUsageDetail_20' ) start [2025-02-07 11:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421945', 'tblTempUsageDetail_20' ) end [2025-02-07 11:03:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:03:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:03:30] Production.INFO: ==29606== Releasing lock... [2025-02-07 11:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:03:30] Production.INFO: 55 MB #Memory Used# [2025-02-07 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:04:06 [end_date_ymd] => 2025-02-07 11:04:06 [RateCDR] => 1 ) [2025-02-07 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:04:06' and `end` < '2025-02-07 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:04:21] Production.INFO: count ==3575 [2025-02-07 11:04:23] Production.ERROR: pbx CDR StartTime 2025-02-07 08:04:06 - End Time 2025-02-07 11:04:06 [2025-02-07 11:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421950', 'tblTempUsageDetail_20' ) start [2025-02-07 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421950', 'tblTempUsageDetail_20' ) end [2025-02-07 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421950', 'tblTempVendorCDR_20' ) start [2025-02-07 11:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421950', 'tblTempVendorCDR_20' ) end [2025-02-07 11:04:23] Production.INFO: ProcessCDR(1,14421950,1,1,2) [2025-02-07 11:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421950', 'tblTempUsageDetail_20' ) start [2025-02-07 11:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421950', 'tblTempUsageDetail_20' ) end [2025-02-07 11:04:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:04:29] Production.INFO: ==29688== Releasing lock... [2025-02-07 11:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:04:29] Production.INFO: 55.25 MB #Memory Used# [2025-02-07 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:05:05 [end_date_ymd] => 2025-02-07 11:05:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:05:05' and `end` < '2025-02-07 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-07 11:05:31] Production.INFO: count ==3601 [2025-02-07 11:05:32] Production.ERROR: pbx CDR StartTime 2025-02-07 08:05:05 - End Time 2025-02-07 11:05:05 [2025-02-07 11:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421955', 'tblTempUsageDetail_20' ) start [2025-02-07 11:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421955', 'tblTempUsageDetail_20' ) end [2025-02-07 11:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421955', 'tblTempVendorCDR_20' ) start [2025-02-07 11:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421955', 'tblTempVendorCDR_20' ) end [2025-02-07 11:05:32] Production.INFO: ProcessCDR(1,14421955,1,1,2) [2025-02-07 11:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421955', 'tblTempUsageDetail_20' ) start [2025-02-07 11:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421955', 'tblTempUsageDetail_20' ) end [2025-02-07 11:05:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:05:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:05:38] Production.INFO: ==29846== Releasing lock... [2025-02-07 11:05:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:05:38] Production.INFO: 55 MB #Memory Used# [2025-02-07 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:06:06 [end_date_ymd] => 2025-02-07 11:06:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:06:06' and `end` < '2025-02-07 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-07 11:06:25] Production.INFO: count ==3605 [2025-02-07 11:06:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:06:06 - End Time 2025-02-07 11:06:06 [2025-02-07 11:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421960', 'tblTempUsageDetail_20' ) start [2025-02-07 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421960', 'tblTempUsageDetail_20' ) end [2025-02-07 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421960', 'tblTempVendorCDR_20' ) start [2025-02-07 11:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421960', 'tblTempVendorCDR_20' ) end [2025-02-07 11:06:27] Production.INFO: ProcessCDR(1,14421960,1,1,2) [2025-02-07 11:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421960', 'tblTempUsageDetail_20' ) start [2025-02-07 11:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421960', 'tblTempUsageDetail_20' ) end [2025-02-07 11:06:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:06:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:06:32] Production.INFO: ==29931== Releasing lock... [2025-02-07 11:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:06:32] Production.INFO: 55 MB #Memory Used# [2025-02-07 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:07:05 [end_date_ymd] => 2025-02-07 11:07:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:07:05' and `end` < '2025-02-07 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-07 11:07:20] Production.INFO: count ==3622 [2025-02-07 11:07:22] Production.ERROR: pbx CDR StartTime 2025-02-07 08:07:05 - End Time 2025-02-07 11:07:05 [2025-02-07 11:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421965', 'tblTempUsageDetail_20' ) start [2025-02-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421965', 'tblTempUsageDetail_20' ) end [2025-02-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421965', 'tblTempVendorCDR_20' ) start [2025-02-07 11:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421965', 'tblTempVendorCDR_20' ) end [2025-02-07 11:07:22] Production.INFO: ProcessCDR(1,14421965,1,1,2) [2025-02-07 11:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421965', 'tblTempUsageDetail_20' ) start [2025-02-07 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421965', 'tblTempUsageDetail_20' ) end [2025-02-07 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:07:27] Production.INFO: ==30012== Releasing lock... [2025-02-07 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:07:27] Production.INFO: 55.25 MB #Memory Used# [2025-02-07 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:08:06 [end_date_ymd] => 2025-02-07 11:08:06 [RateCDR] => 1 ) [2025-02-07 11: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-07 08:08:06' and `end` < '2025-02-07 11: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-07 11:08:20] Production.INFO: count ==3634 [2025-02-07 11:08:22] Production.ERROR: pbx CDR StartTime 2025-02-07 08:08:06 - End Time 2025-02-07 11:08:06 [2025-02-07 11:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421970', 'tblTempUsageDetail_20' ) start [2025-02-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421970', 'tblTempUsageDetail_20' ) end [2025-02-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421970', 'tblTempVendorCDR_20' ) start [2025-02-07 11:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421970', 'tblTempVendorCDR_20' ) end [2025-02-07 11:08:22] Production.INFO: ProcessCDR(1,14421970,1,1,2) [2025-02-07 11:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421970', 'tblTempUsageDetail_20' ) start [2025-02-07 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421970', 'tblTempUsageDetail_20' ) end [2025-02-07 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:08:27] Production.INFO: ==30175== Releasing lock... [2025-02-07 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:08:27] Production.INFO: 55 MB #Memory Used# [2025-02-07 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:09:05 [end_date_ymd] => 2025-02-07 11:09:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:09:05' and `end` < '2025-02-07 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-07 11:09:19] Production.INFO: count ==3633 [2025-02-07 11:09:21] Production.ERROR: pbx CDR StartTime 2025-02-07 08:09:05 - End Time 2025-02-07 11:09:05 [2025-02-07 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421975', 'tblTempUsageDetail_20' ) start [2025-02-07 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421975', 'tblTempUsageDetail_20' ) end [2025-02-07 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421975', 'tblTempVendorCDR_20' ) start [2025-02-07 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421975', 'tblTempVendorCDR_20' ) end [2025-02-07 11:09:21] Production.INFO: ProcessCDR(1,14421975,1,1,2) [2025-02-07 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421975', 'tblTempUsageDetail_20' ) start [2025-02-07 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421975', 'tblTempUsageDetail_20' ) end [2025-02-07 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:09:26] Production.INFO: ==30253== Releasing lock... [2025-02-07 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:09:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-07 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:10:06 [end_date_ymd] => 2025-02-07 11:10:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:10:06' and `end` < '2025-02-07 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-07 11:10:30] Production.INFO: count ==3640 [2025-02-07 11:10:31] Production.ERROR: pbx CDR StartTime 2025-02-07 08:10:06 - End Time 2025-02-07 11:10:06 [2025-02-07 11:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421981', 'tblTempUsageDetail_20' ) start [2025-02-07 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421981', 'tblTempUsageDetail_20' ) end [2025-02-07 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421981', 'tblTempVendorCDR_20' ) start [2025-02-07 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421981', 'tblTempVendorCDR_20' ) end [2025-02-07 11:10:31] Production.INFO: ProcessCDR(1,14421981,1,1,2) [2025-02-07 11:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:10:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421981', 'tblTempUsageDetail_20' ) start [2025-02-07 11:10:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421981', 'tblTempUsageDetail_20' ) end [2025-02-07 11:10:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:10:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:10:37] Production.INFO: ==30339== Releasing lock... [2025-02-07 11:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:10:37] Production.INFO: 56.25 MB #Memory Used# [2025-02-07 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:11:05 [end_date_ymd] => 2025-02-07 11:11:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:11:05' and `end` < '2025-02-07 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-07 11:11:23] Production.INFO: count ==3745 [2025-02-07 11:11:25] Production.ERROR: pbx CDR StartTime 2025-02-07 08:11:05 - End Time 2025-02-07 11:11:05 [2025-02-07 11:11:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421986', 'tblTempUsageDetail_20' ) start [2025-02-07 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421986', 'tblTempUsageDetail_20' ) end [2025-02-07 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421986', 'tblTempVendorCDR_20' ) start [2025-02-07 11:11:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421986', 'tblTempVendorCDR_20' ) end [2025-02-07 11:11:25] Production.INFO: ProcessCDR(1,14421986,1,1,2) [2025-02-07 11:11:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421986', 'tblTempUsageDetail_20' ) start [2025-02-07 11:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421986', 'tblTempUsageDetail_20' ) end [2025-02-07 11:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:11:30] Production.INFO: ==30424== Releasing lock... [2025-02-07 11:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:11:30] Production.INFO: 56 MB #Memory Used# [2025-02-07 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:12:06 [end_date_ymd] => 2025-02-07 11:12:06 [RateCDR] => 1 ) [2025-02-07 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:12:06' and `end` < '2025-02-07 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:12:22] Production.INFO: count ==3751 [2025-02-07 11:12:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:12:06 - End Time 2025-02-07 11:12:06 [2025-02-07 11:12:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421991', 'tblTempUsageDetail_20' ) start [2025-02-07 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421991', 'tblTempUsageDetail_20' ) end [2025-02-07 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421991', 'tblTempVendorCDR_20' ) start [2025-02-07 11:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421991', 'tblTempVendorCDR_20' ) end [2025-02-07 11:12:24] Production.INFO: ProcessCDR(1,14421991,1,1,2) [2025-02-07 11:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421991', 'tblTempUsageDetail_20' ) start [2025-02-07 11:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421991', 'tblTempUsageDetail_20' ) end [2025-02-07 11:12:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:12:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:12:29] Production.INFO: ==30606== Releasing lock... [2025-02-07 11:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:12:29] Production.INFO: 56 MB #Memory Used# [2025-02-07 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:13:05 [end_date_ymd] => 2025-02-07 11:13:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:13:05' and `end` < '2025-02-07 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-07 11:13:18] Production.INFO: count ==3755 [2025-02-07 11:13:20] Production.ERROR: pbx CDR StartTime 2025-02-07 08:13:05 - End Time 2025-02-07 11:13:05 [2025-02-07 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421996', 'tblTempUsageDetail_20' ) start [2025-02-07 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14421996', 'tblTempUsageDetail_20' ) end [2025-02-07 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421996', 'tblTempVendorCDR_20' ) start [2025-02-07 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14421996', 'tblTempVendorCDR_20' ) end [2025-02-07 11:13:20] Production.INFO: ProcessCDR(1,14421996,1,1,2) [2025-02-07 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14421996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14421996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14421996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14421996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421996', 'tblTempUsageDetail_20' ) start [2025-02-07 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14421996', 'tblTempUsageDetail_20' ) end [2025-02-07 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:13:26] Production.INFO: ==30691== Releasing lock... [2025-02-07 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:13:26] Production.INFO: 56 MB #Memory Used# [2025-02-07 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:14:05 [end_date_ymd] => 2025-02-07 11:14:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:14:05' and `end` < '2025-02-07 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-07 11:14:25] Production.INFO: count ==3759 [2025-02-07 11:14:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:14:05 - End Time 2025-02-07 11:14:05 [2025-02-07 11:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422001', 'tblTempUsageDetail_20' ) start [2025-02-07 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422001', 'tblTempUsageDetail_20' ) end [2025-02-07 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422001', 'tblTempVendorCDR_20' ) start [2025-02-07 11:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422001', 'tblTempVendorCDR_20' ) end [2025-02-07 11:14:27] Production.INFO: ProcessCDR(1,14422001,1,1,2) [2025-02-07 11:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:14:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:14:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422001', 'tblTempUsageDetail_20' ) start [2025-02-07 11:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422001', 'tblTempUsageDetail_20' ) end [2025-02-07 11:14:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:14:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:14:32] Production.INFO: ==30775== Releasing lock... [2025-02-07 11:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:14:32] Production.INFO: 56 MB #Memory Used# [2025-02-07 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:15:06 [end_date_ymd] => 2025-02-07 11:15:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:15:06' and `end` < '2025-02-07 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-07 11:15:22] Production.INFO: count ==3766 [2025-02-07 11:15:23] Production.ERROR: pbx CDR StartTime 2025-02-07 08:15:06 - End Time 2025-02-07 11:15:06 [2025-02-07 11:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422006', 'tblTempUsageDetail_20' ) start [2025-02-07 11:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422006', 'tblTempUsageDetail_20' ) end [2025-02-07 11:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422006', 'tblTempVendorCDR_20' ) start [2025-02-07 11:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422006', 'tblTempVendorCDR_20' ) end [2025-02-07 11:15:24] Production.INFO: ProcessCDR(1,14422006,1,1,2) [2025-02-07 11:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:15:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422006', 'tblTempUsageDetail_20' ) start [2025-02-07 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422006', 'tblTempUsageDetail_20' ) end [2025-02-07 11:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:15:28] Production.INFO: ==30943== Releasing lock... [2025-02-07 11:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:15:28] Production.INFO: 56 MB #Memory Used# [2025-02-07 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:16:05 [end_date_ymd] => 2025-02-07 11:16:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:16:05' and `end` < '2025-02-07 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-07 11:16:20] Production.INFO: count ==3767 [2025-02-07 11:16:22] Production.ERROR: pbx CDR StartTime 2025-02-07 08:16:05 - End Time 2025-02-07 11:16:05 [2025-02-07 11:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422011', 'tblTempUsageDetail_20' ) start [2025-02-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422011', 'tblTempUsageDetail_20' ) end [2025-02-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422011', 'tblTempVendorCDR_20' ) start [2025-02-07 11:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422011', 'tblTempVendorCDR_20' ) end [2025-02-07 11:16:22] Production.INFO: ProcessCDR(1,14422011,1,1,2) [2025-02-07 11:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422011', 'tblTempUsageDetail_20' ) start [2025-02-07 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422011', 'tblTempUsageDetail_20' ) end [2025-02-07 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:16:27] Production.INFO: ==31064== Releasing lock... [2025-02-07 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:16:27] Production.INFO: 56 MB #Memory Used# [2025-02-07 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:17:06 [end_date_ymd] => 2025-02-07 11:17:06 [RateCDR] => 1 ) [2025-02-07 11: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-07 08:17:06' and `end` < '2025-02-07 11: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-07 11:17:21] Production.INFO: count ==3798 [2025-02-07 11:17:23] Production.ERROR: pbx CDR StartTime 2025-02-07 08:17:06 - End Time 2025-02-07 11:17:06 [2025-02-07 11:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422016', 'tblTempUsageDetail_20' ) start [2025-02-07 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422016', 'tblTempUsageDetail_20' ) end [2025-02-07 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422016', 'tblTempVendorCDR_20' ) start [2025-02-07 11:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422016', 'tblTempVendorCDR_20' ) end [2025-02-07 11:17:23] Production.INFO: ProcessCDR(1,14422016,1,1,2) [2025-02-07 11:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422016', 'tblTempUsageDetail_20' ) start [2025-02-07 11:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422016', 'tblTempUsageDetail_20' ) end [2025-02-07 11:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:17:28] Production.INFO: ==31143== Releasing lock... [2025-02-07 11:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:17:28] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:18:05 [end_date_ymd] => 2025-02-07 11:18:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:18:05' and `end` < '2025-02-07 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-07 11:18:23] Production.INFO: count ==3807 [2025-02-07 11:18:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:18:05 - End Time 2025-02-07 11:18:05 [2025-02-07 11:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422021', 'tblTempUsageDetail_20' ) start [2025-02-07 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422021', 'tblTempUsageDetail_20' ) end [2025-02-07 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422021', 'tblTempVendorCDR_20' ) start [2025-02-07 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422021', 'tblTempVendorCDR_20' ) end [2025-02-07 11:18:24] Production.INFO: ProcessCDR(1,14422021,1,1,2) [2025-02-07 11:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422021', 'tblTempUsageDetail_20' ) start [2025-02-07 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422021', 'tblTempUsageDetail_20' ) end [2025-02-07 11:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:18:29] Production.INFO: ==31226== Releasing lock... [2025-02-07 11:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:18:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:19:06 [end_date_ymd] => 2025-02-07 11:19:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:19:06' and `end` < '2025-02-07 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-07 11:19:19] Production.INFO: count ==3821 [2025-02-07 11:19:21] Production.ERROR: pbx CDR StartTime 2025-02-07 08:19:06 - End Time 2025-02-07 11:19:06 [2025-02-07 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422026', 'tblTempUsageDetail_20' ) start [2025-02-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422026', 'tblTempUsageDetail_20' ) end [2025-02-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422026', 'tblTempVendorCDR_20' ) start [2025-02-07 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422026', 'tblTempVendorCDR_20' ) end [2025-02-07 11:19:21] Production.INFO: ProcessCDR(1,14422026,1,1,2) [2025-02-07 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422026', 'tblTempUsageDetail_20' ) start [2025-02-07 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422026', 'tblTempUsageDetail_20' ) end [2025-02-07 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:19:26] Production.INFO: ==31305== Releasing lock... [2025-02-07 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:19:26] Production.INFO: 56.5 MB #Memory Used# [2025-02-07 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:20:06 [end_date_ymd] => 2025-02-07 11:20:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:20:06' and `end` < '2025-02-07 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-07 11:20:23] Production.INFO: count ==3814 [2025-02-07 11:20:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:20:06 - End Time 2025-02-07 11:20:06 [2025-02-07 11:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422032', 'tblTempUsageDetail_20' ) start [2025-02-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422032', 'tblTempUsageDetail_20' ) end [2025-02-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422032', 'tblTempVendorCDR_20' ) start [2025-02-07 11:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422032', 'tblTempVendorCDR_20' ) end [2025-02-07 11:20:24] Production.INFO: ProcessCDR(1,14422032,1,1,2) [2025-02-07 11:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422032', 'tblTempUsageDetail_20' ) start [2025-02-07 11:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422032', 'tblTempUsageDetail_20' ) end [2025-02-07 11:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:20:28] Production.INFO: ==31390== Releasing lock... [2025-02-07 11:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:20:28] Production.INFO: 56.5 MB #Memory Used# [2025-02-07 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:21:06 [end_date_ymd] => 2025-02-07 11:21:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:21:06' and `end` < '2025-02-07 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-07 11:21:22] Production.INFO: count ==3894 [2025-02-07 11:21:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:21:06 - End Time 2025-02-07 11:21:06 [2025-02-07 11:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422037', 'tblTempUsageDetail_20' ) start [2025-02-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422037', 'tblTempUsageDetail_20' ) end [2025-02-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422037', 'tblTempVendorCDR_20' ) start [2025-02-07 11:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422037', 'tblTempVendorCDR_20' ) end [2025-02-07 11:21:24] Production.INFO: ProcessCDR(1,14422037,1,1,2) [2025-02-07 11:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422037', 'tblTempUsageDetail_20' ) start [2025-02-07 11:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422037', 'tblTempUsageDetail_20' ) end [2025-02-07 11:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:21:29] Production.INFO: ==31473== Releasing lock... [2025-02-07 11:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:21:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:22:05 [end_date_ymd] => 2025-02-07 11:22:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:22:05' and `end` < '2025-02-07 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-07 11:22:26] Production.INFO: count ==3916 [2025-02-07 11:22:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:22:05 - End Time 2025-02-07 11:22:05 [2025-02-07 11:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422042', 'tblTempUsageDetail_20' ) start [2025-02-07 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422042', 'tblTempUsageDetail_20' ) end [2025-02-07 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422042', 'tblTempVendorCDR_20' ) start [2025-02-07 11:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422042', 'tblTempVendorCDR_20' ) end [2025-02-07 11:22:28] Production.INFO: ProcessCDR(1,14422042,1,1,2) [2025-02-07 11:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422042', 'tblTempUsageDetail_20' ) start [2025-02-07 11:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422042', 'tblTempUsageDetail_20' ) end [2025-02-07 11:22:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:22:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:22:32] Production.INFO: ==31554== Releasing lock... [2025-02-07 11:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:22:32] Production.INFO: 57.5 MB #Memory Used# [2025-02-07 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:23:06 [end_date_ymd] => 2025-02-07 11:23:06 [RateCDR] => 1 ) [2025-02-07 11: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-07 08:23:06' and `end` < '2025-02-07 11: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-07 11:23:23] Production.INFO: count ==3922 [2025-02-07 11:23:25] Production.ERROR: pbx CDR StartTime 2025-02-07 08:23:06 - End Time 2025-02-07 11:23:06 [2025-02-07 11:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422047', 'tblTempUsageDetail_20' ) start [2025-02-07 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422047', 'tblTempUsageDetail_20' ) end [2025-02-07 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422047', 'tblTempVendorCDR_20' ) start [2025-02-07 11:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422047', 'tblTempVendorCDR_20' ) end [2025-02-07 11:23:25] Production.INFO: ProcessCDR(1,14422047,1,1,2) [2025-02-07 11:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:23:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:23:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422047', 'tblTempUsageDetail_20' ) start [2025-02-07 11:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422047', 'tblTempUsageDetail_20' ) end [2025-02-07 11:23:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:23:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:23:30] Production.INFO: ==31637== Releasing lock... [2025-02-07 11:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:23:30] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:24:05 [end_date_ymd] => 2025-02-07 11:24:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:24:05' and `end` < '2025-02-07 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-07 11:24:22] Production.INFO: count ==3927 [2025-02-07 11:24:23] Production.ERROR: pbx CDR StartTime 2025-02-07 08:24:05 - End Time 2025-02-07 11:24:05 [2025-02-07 11:24:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422052', 'tblTempUsageDetail_20' ) start [2025-02-07 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422052', 'tblTempUsageDetail_20' ) end [2025-02-07 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422052', 'tblTempVendorCDR_20' ) start [2025-02-07 11:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422052', 'tblTempVendorCDR_20' ) end [2025-02-07 11:24:23] Production.INFO: ProcessCDR(1,14422052,1,1,2) [2025-02-07 11:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422052', 'tblTempUsageDetail_20' ) start [2025-02-07 11:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422052', 'tblTempUsageDetail_20' ) end [2025-02-07 11:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:24:29] Production.INFO: ==31721== Releasing lock... [2025-02-07 11:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:24:29] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:25:05 [end_date_ymd] => 2025-02-07 11:25:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:25:05' and `end` < '2025-02-07 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-07 11:25:25] Production.INFO: count ==3934 [2025-02-07 11:25:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:25:05 - End Time 2025-02-07 11:25:05 [2025-02-07 11:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422057', 'tblTempUsageDetail_20' ) start [2025-02-07 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422057', 'tblTempUsageDetail_20' ) end [2025-02-07 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422057', 'tblTempVendorCDR_20' ) start [2025-02-07 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422057', 'tblTempVendorCDR_20' ) end [2025-02-07 11:25:27] Production.INFO: ProcessCDR(1,14422057,1,1,2) [2025-02-07 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422057', 'tblTempUsageDetail_20' ) start [2025-02-07 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422057', 'tblTempUsageDetail_20' ) end [2025-02-07 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:25:32] Production.INFO: ==31804== Releasing lock... [2025-02-07 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:25:32] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:26:05 [end_date_ymd] => 2025-02-07 11:26:05 [RateCDR] => 1 ) [2025-02-07 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:26:05' and `end` < '2025-02-07 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:26:27] Production.INFO: count ==3936 [2025-02-07 11:26:29] Production.ERROR: pbx CDR StartTime 2025-02-07 08:26:05 - End Time 2025-02-07 11:26:05 [2025-02-07 11:26:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422062', 'tblTempUsageDetail_20' ) start [2025-02-07 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422062', 'tblTempUsageDetail_20' ) end [2025-02-07 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422062', 'tblTempVendorCDR_20' ) start [2025-02-07 11:26:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422062', 'tblTempVendorCDR_20' ) end [2025-02-07 11:26:29] Production.INFO: ProcessCDR(1,14422062,1,1,2) [2025-02-07 11:26:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422062', 'tblTempUsageDetail_20' ) start [2025-02-07 11:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422062', 'tblTempUsageDetail_20' ) end [2025-02-07 11:26:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:26:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:26:34] Production.INFO: ==31889== Releasing lock... [2025-02-07 11:26:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:26:34] Production.INFO: 57.5 MB #Memory Used# [2025-02-07 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:27:05 [end_date_ymd] => 2025-02-07 11:27:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:27:05' and `end` < '2025-02-07 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-07 11:27:23] Production.INFO: count ==3967 [2025-02-07 11:27:25] Production.ERROR: pbx CDR StartTime 2025-02-07 08:27:05 - End Time 2025-02-07 11:27:05 [2025-02-07 11:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422067', 'tblTempUsageDetail_20' ) start [2025-02-07 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422067', 'tblTempUsageDetail_20' ) end [2025-02-07 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422067', 'tblTempVendorCDR_20' ) start [2025-02-07 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422067', 'tblTempVendorCDR_20' ) end [2025-02-07 11:27:25] Production.INFO: ProcessCDR(1,14422067,1,1,2) [2025-02-07 11:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422067', 'tblTempUsageDetail_20' ) start [2025-02-07 11:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422067', 'tblTempUsageDetail_20' ) end [2025-02-07 11:27:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:27:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:27:30] Production.INFO: ==31970== Releasing lock... [2025-02-07 11:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:27:30] Production.INFO: 57.75 MB #Memory Used# [2025-02-07 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:28:05 [end_date_ymd] => 2025-02-07 11:28:05 [RateCDR] => 1 ) [2025-02-07 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:28:05' and `end` < '2025-02-07 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:28:20] Production.INFO: count ==3985 [2025-02-07 11:28:22] Production.ERROR: pbx CDR StartTime 2025-02-07 08:28:05 - End Time 2025-02-07 11:28:05 [2025-02-07 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422072', 'tblTempUsageDetail_20' ) start [2025-02-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422072', 'tblTempUsageDetail_20' ) end [2025-02-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422072', 'tblTempVendorCDR_20' ) start [2025-02-07 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422072', 'tblTempVendorCDR_20' ) end [2025-02-07 11:28:22] Production.INFO: ProcessCDR(1,14422072,1,1,2) [2025-02-07 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422072', 'tblTempUsageDetail_20' ) start [2025-02-07 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422072', 'tblTempUsageDetail_20' ) end [2025-02-07 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:28:27] Production.INFO: ==32052== Releasing lock... [2025-02-07 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:28:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-07 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:29:05 [end_date_ymd] => 2025-02-07 11:29:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:29:05' and `end` < '2025-02-07 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-07 11:29:29] Production.INFO: count ==4008 [2025-02-07 11:29:31] Production.ERROR: pbx CDR StartTime 2025-02-07 08:29:05 - End Time 2025-02-07 11:29:05 [2025-02-07 11:29:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422077', 'tblTempUsageDetail_20' ) start [2025-02-07 11:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422077', 'tblTempUsageDetail_20' ) end [2025-02-07 11:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422077', 'tblTempVendorCDR_20' ) start [2025-02-07 11:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422077', 'tblTempVendorCDR_20' ) end [2025-02-07 11:29:31] Production.INFO: ProcessCDR(1,14422077,1,1,2) [2025-02-07 11:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:29:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:29:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:29:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422077', 'tblTempUsageDetail_20' ) start [2025-02-07 11:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422077', 'tblTempUsageDetail_20' ) end [2025-02-07 11:29:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:29:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:29:36] Production.INFO: ==32136== Releasing lock... [2025-02-07 11:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:29:36] Production.INFO: 58 MB #Memory Used# [2025-02-07 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:30:06 [end_date_ymd] => 2025-02-07 11:30:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:30:06' and `end` < '2025-02-07 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-07 11:30:28] Production.INFO: count ==4032 [2025-02-07 11:30:30] Production.ERROR: pbx CDR StartTime 2025-02-07 08:30:06 - End Time 2025-02-07 11:30:06 [2025-02-07 11:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422083', 'tblTempUsageDetail_20' ) start [2025-02-07 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422083', 'tblTempUsageDetail_20' ) end [2025-02-07 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422083', 'tblTempVendorCDR_20' ) start [2025-02-07 11:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422083', 'tblTempVendorCDR_20' ) end [2025-02-07 11:30:30] Production.INFO: ProcessCDR(1,14422083,1,1,2) [2025-02-07 11:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422083', 'tblTempUsageDetail_20' ) start [2025-02-07 11:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422083', 'tblTempUsageDetail_20' ) end [2025-02-07 11:30:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:30:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:30:35] Production.INFO: ==32218== Releasing lock... [2025-02-07 11:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:30:35] Production.INFO: 58 MB #Memory Used# [2025-02-07 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:31:05 [end_date_ymd] => 2025-02-07 11:31:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:31:05' and `end` < '2025-02-07 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-07 11:31:34] Production.INFO: count ==4121 [2025-02-07 11:31:36] Production.ERROR: pbx CDR StartTime 2025-02-07 08:31:05 - End Time 2025-02-07 11:31:05 [2025-02-07 11:31:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422088', 'tblTempUsageDetail_20' ) start [2025-02-07 11:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422088', 'tblTempUsageDetail_20' ) end [2025-02-07 11:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422088', 'tblTempVendorCDR_20' ) start [2025-02-07 11:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422088', 'tblTempVendorCDR_20' ) end [2025-02-07 11:31:36] Production.INFO: ProcessCDR(1,14422088,1,1,2) [2025-02-07 11:31:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:31:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:31:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:31:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422088', 'tblTempUsageDetail_20' ) start [2025-02-07 11:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422088', 'tblTempUsageDetail_20' ) end [2025-02-07 11:31:41] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:31:41] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:31:41] Production.INFO: ==32340== Releasing lock... [2025-02-07 11:31:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:31:41] Production.INFO: 58.75 MB #Memory Used# [2025-02-07 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:32:05 [end_date_ymd] => 2025-02-07 11:32:05 [RateCDR] => 1 ) [2025-02-07 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:32:05' and `end` < '2025-02-07 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:32:27] Production.INFO: count ==4137 [2025-02-07 11:32:29] Production.ERROR: pbx CDR StartTime 2025-02-07 08:32:05 - End Time 2025-02-07 11:32:05 [2025-02-07 11:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422093', 'tblTempUsageDetail_20' ) start [2025-02-07 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422093', 'tblTempUsageDetail_20' ) end [2025-02-07 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422093', 'tblTempVendorCDR_20' ) start [2025-02-07 11:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422093', 'tblTempVendorCDR_20' ) end [2025-02-07 11:32:29] Production.INFO: ProcessCDR(1,14422093,1,1,2) [2025-02-07 11:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422093', 'tblTempUsageDetail_20' ) start [2025-02-07 11:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422093', 'tblTempUsageDetail_20' ) end [2025-02-07 11:32:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:32:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:32:34] Production.INFO: ==32425== Releasing lock... [2025-02-07 11:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:32:34] Production.INFO: 59 MB #Memory Used# [2025-02-07 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:33:05 [end_date_ymd] => 2025-02-07 11:33:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:33:05' and `end` < '2025-02-07 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-07 11:33:25] Production.INFO: count ==4143 [2025-02-07 11:33:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:33:05 - End Time 2025-02-07 11:33:05 [2025-02-07 11:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422098', 'tblTempUsageDetail_20' ) start [2025-02-07 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422098', 'tblTempUsageDetail_20' ) end [2025-02-07 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422098', 'tblTempVendorCDR_20' ) start [2025-02-07 11:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422098', 'tblTempVendorCDR_20' ) end [2025-02-07 11:33:27] Production.INFO: ProcessCDR(1,14422098,1,1,2) [2025-02-07 11:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422098', 'tblTempUsageDetail_20' ) start [2025-02-07 11:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422098', 'tblTempUsageDetail_20' ) end [2025-02-07 11:33:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:33:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:33:32] Production.INFO: ==32499== Releasing lock... [2025-02-07 11:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:33:32] Production.INFO: 59 MB #Memory Used# [2025-02-07 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:34:06 [end_date_ymd] => 2025-02-07 11:34:06 [RateCDR] => 1 ) [2025-02-07 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:34:06' and `end` < '2025-02-07 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:34:19] Production.INFO: count ==4166 [2025-02-07 11:34:21] Production.ERROR: pbx CDR StartTime 2025-02-07 08:34:06 - End Time 2025-02-07 11:34:06 [2025-02-07 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422103', 'tblTempUsageDetail_20' ) start [2025-02-07 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422103', 'tblTempUsageDetail_20' ) end [2025-02-07 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422103', 'tblTempVendorCDR_20' ) start [2025-02-07 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422103', 'tblTempVendorCDR_20' ) end [2025-02-07 11:34:21] Production.INFO: ProcessCDR(1,14422103,1,1,2) [2025-02-07 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422103', 'tblTempUsageDetail_20' ) start [2025-02-07 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422103', 'tblTempUsageDetail_20' ) end [2025-02-07 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:34:27] Production.INFO: ==32579== Releasing lock... [2025-02-07 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:34:27] Production.INFO: 59.25 MB #Memory Used# [2025-02-07 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:35:05 [end_date_ymd] => 2025-02-07 11:35:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:35:05' and `end` < '2025-02-07 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-07 11:35:29] Production.INFO: count ==4165 [2025-02-07 11:35:31] Production.ERROR: pbx CDR StartTime 2025-02-07 08:35:05 - End Time 2025-02-07 11:35:05 [2025-02-07 11:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422108', 'tblTempUsageDetail_20' ) start [2025-02-07 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422108', 'tblTempUsageDetail_20' ) end [2025-02-07 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422108', 'tblTempVendorCDR_20' ) start [2025-02-07 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422108', 'tblTempVendorCDR_20' ) end [2025-02-07 11:35:31] Production.INFO: ProcessCDR(1,14422108,1,1,2) [2025-02-07 11:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422108', 'tblTempUsageDetail_20' ) start [2025-02-07 11:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422108', 'tblTempUsageDetail_20' ) end [2025-02-07 11:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:35:36] Production.INFO: ==32655== Releasing lock... [2025-02-07 11:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:35:36] Production.INFO: 59.25 MB #Memory Used# [2025-02-07 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:36:06 [end_date_ymd] => 2025-02-07 11:36:06 [RateCDR] => 1 ) [2025-02-07 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:36:06' and `end` < '2025-02-07 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:36:24] Production.INFO: count ==4159 [2025-02-07 11:36:25] Production.ERROR: pbx CDR StartTime 2025-02-07 08:36:06 - End Time 2025-02-07 11:36:06 [2025-02-07 11:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422113', 'tblTempUsageDetail_20' ) start [2025-02-07 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422113', 'tblTempUsageDetail_20' ) end [2025-02-07 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422113', 'tblTempVendorCDR_20' ) start [2025-02-07 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422113', 'tblTempVendorCDR_20' ) end [2025-02-07 11:36:26] Production.INFO: ProcessCDR(1,14422113,1,1,2) [2025-02-07 11:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422113', 'tblTempUsageDetail_20' ) start [2025-02-07 11:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422113', 'tblTempUsageDetail_20' ) end [2025-02-07 11:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:36:30] Production.INFO: ==32738== Releasing lock... [2025-02-07 11:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:36:30] Production.INFO: 59 MB #Memory Used# [2025-02-07 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:37:05 [end_date_ymd] => 2025-02-07 11:37:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:37:05' and `end` < '2025-02-07 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-07 11:37:24] Production.INFO: count ==4163 [2025-02-07 11:37:26] Production.ERROR: pbx CDR StartTime 2025-02-07 08:37:05 - End Time 2025-02-07 11:37:05 [2025-02-07 11:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422118', 'tblTempUsageDetail_20' ) start [2025-02-07 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422118', 'tblTempUsageDetail_20' ) end [2025-02-07 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422118', 'tblTempVendorCDR_20' ) start [2025-02-07 11:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422118', 'tblTempVendorCDR_20' ) end [2025-02-07 11:37:26] Production.INFO: ProcessCDR(1,14422118,1,1,2) [2025-02-07 11:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422118', 'tblTempUsageDetail_20' ) start [2025-02-07 11:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422118', 'tblTempUsageDetail_20' ) end [2025-02-07 11:37:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:37:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:37:31] Production.INFO: ==372== Releasing lock... [2025-02-07 11:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:37:31] Production.INFO: 59 MB #Memory Used# [2025-02-07 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:38:05 [end_date_ymd] => 2025-02-07 11:38:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:38:05' and `end` < '2025-02-07 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-07 11:38:23] Production.INFO: count ==4181 [2025-02-07 11:38:25] Production.ERROR: pbx CDR StartTime 2025-02-07 08:38:05 - End Time 2025-02-07 11:38:05 [2025-02-07 11:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422123', 'tblTempUsageDetail_20' ) start [2025-02-07 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422123', 'tblTempUsageDetail_20' ) end [2025-02-07 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422123', 'tblTempVendorCDR_20' ) start [2025-02-07 11:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422123', 'tblTempVendorCDR_20' ) end [2025-02-07 11:38:25] Production.INFO: ProcessCDR(1,14422123,1,1,2) [2025-02-07 11:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422123', 'tblTempUsageDetail_20' ) start [2025-02-07 11:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422123', 'tblTempUsageDetail_20' ) end [2025-02-07 11:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:38:30] Production.INFO: ==451== Releasing lock... [2025-02-07 11:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:38:30] Production.INFO: 59.25 MB #Memory Used# [2025-02-07 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:39:05 [end_date_ymd] => 2025-02-07 11:39:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:39:05' and `end` < '2025-02-07 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-07 11:39:25] Production.INFO: count ==4166 [2025-02-07 11:39:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:39:05 - End Time 2025-02-07 11:39:05 [2025-02-07 11:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422128', 'tblTempUsageDetail_20' ) start [2025-02-07 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422128', 'tblTempUsageDetail_20' ) end [2025-02-07 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422128', 'tblTempVendorCDR_20' ) start [2025-02-07 11:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422128', 'tblTempVendorCDR_20' ) end [2025-02-07 11:39:27] Production.INFO: ProcessCDR(1,14422128,1,1,2) [2025-02-07 11:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:39:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422128', 'tblTempUsageDetail_20' ) start [2025-02-07 11:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422128', 'tblTempUsageDetail_20' ) end [2025-02-07 11:39:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:39:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:39:32] Production.INFO: ==530== Releasing lock... [2025-02-07 11:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:39:32] Production.INFO: 59.25 MB #Memory Used# [2025-02-07 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:40:06 [end_date_ymd] => 2025-02-07 11:40:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:40:06' and `end` < '2025-02-07 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-07 11:40:28] Production.INFO: count ==4150 [2025-02-07 11:40:30] Production.ERROR: pbx CDR StartTime 2025-02-07 08:40:06 - End Time 2025-02-07 11:40:06 [2025-02-07 11:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422133', 'tblTempUsageDetail_20' ) start [2025-02-07 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422133', 'tblTempUsageDetail_20' ) end [2025-02-07 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422133', 'tblTempVendorCDR_20' ) start [2025-02-07 11:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422133', 'tblTempVendorCDR_20' ) end [2025-02-07 11:40:30] Production.INFO: ProcessCDR(1,14422133,1,1,2) [2025-02-07 11:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422133', 'tblTempUsageDetail_20' ) start [2025-02-07 11:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422133', 'tblTempUsageDetail_20' ) end [2025-02-07 11:40:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:40:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:40:35] Production.INFO: ==617== Releasing lock... [2025-02-07 11:40:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:40:35] Production.INFO: 59 MB #Memory Used# [2025-02-07 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:41:05 [end_date_ymd] => 2025-02-07 11:41:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:41:05' and `end` < '2025-02-07 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-07 11:41:24] Production.INFO: count ==4325 [2025-02-07 11:41:26] Production.ERROR: pbx CDR StartTime 2025-02-07 08:41:05 - End Time 2025-02-07 11:41:05 [2025-02-07 11:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422139', 'tblTempUsageDetail_20' ) start [2025-02-07 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422139', 'tblTempUsageDetail_20' ) end [2025-02-07 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422139', 'tblTempVendorCDR_20' ) start [2025-02-07 11:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422139', 'tblTempVendorCDR_20' ) end [2025-02-07 11:41:26] Production.INFO: ProcessCDR(1,14422139,1,1,2) [2025-02-07 11:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:41:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:41:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422139', 'tblTempUsageDetail_20' ) start [2025-02-07 11:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422139', 'tblTempUsageDetail_20' ) end [2025-02-07 11:41:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:41:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:41:31] Production.INFO: ==725== Releasing lock... [2025-02-07 11:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:41:31] Production.INFO: 60.25 MB #Memory Used# [2025-02-07 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:42:05 [end_date_ymd] => 2025-02-07 11:42:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:42:05' and `end` < '2025-02-07 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-07 11:42:26] Production.INFO: count ==4349 [2025-02-07 11:42:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:42:05 - End Time 2025-02-07 11:42:05 [2025-02-07 11:42:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422144', 'tblTempUsageDetail_20' ) start [2025-02-07 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422144', 'tblTempUsageDetail_20' ) end [2025-02-07 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422144', 'tblTempVendorCDR_20' ) start [2025-02-07 11:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422144', 'tblTempVendorCDR_20' ) end [2025-02-07 11:42:28] Production.INFO: ProcessCDR(1,14422144,1,1,2) [2025-02-07 11:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:42:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422144', 'tblTempUsageDetail_20' ) start [2025-02-07 11:42:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422144', 'tblTempUsageDetail_20' ) end [2025-02-07 11:42:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:42:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:42:33] Production.INFO: ==826== Releasing lock... [2025-02-07 11:42:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:42:33] Production.INFO: 60.5 MB #Memory Used# [2025-02-07 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:43:05 [end_date_ymd] => 2025-02-07 11:43:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:43:05' and `end` < '2025-02-07 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-07 11:43:32] Production.INFO: count ==4393 [2025-02-07 11:43:34] Production.ERROR: pbx CDR StartTime 2025-02-07 08:43:05 - End Time 2025-02-07 11:43:05 [2025-02-07 11:43:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422149', 'tblTempUsageDetail_20' ) start [2025-02-07 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422149', 'tblTempUsageDetail_20' ) end [2025-02-07 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422149', 'tblTempVendorCDR_20' ) start [2025-02-07 11:43:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422149', 'tblTempVendorCDR_20' ) end [2025-02-07 11:43:34] Production.INFO: ProcessCDR(1,14422149,1,1,2) [2025-02-07 11:43:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:43:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422149', 'tblTempUsageDetail_20' ) start [2025-02-07 11:43:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422149', 'tblTempUsageDetail_20' ) end [2025-02-07 11:43:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:43:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:43:39] Production.INFO: ==905== Releasing lock... [2025-02-07 11:43:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:43:39] Production.INFO: 60.75 MB #Memory Used# [2025-02-07 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:44:05 [end_date_ymd] => 2025-02-07 11:44:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:44:05' and `end` < '2025-02-07 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-07 11:44:22] Production.INFO: count ==4413 [2025-02-07 11:44:24] Production.ERROR: pbx CDR StartTime 2025-02-07 08:44:05 - End Time 2025-02-07 11:44:05 [2025-02-07 11:44:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422154', 'tblTempUsageDetail_20' ) start [2025-02-07 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422154', 'tblTempUsageDetail_20' ) end [2025-02-07 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422154', 'tblTempVendorCDR_20' ) start [2025-02-07 11:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422154', 'tblTempVendorCDR_20' ) end [2025-02-07 11:44:24] Production.INFO: ProcessCDR(1,14422154,1,1,2) [2025-02-07 11:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:44:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422154', 'tblTempUsageDetail_20' ) start [2025-02-07 11:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422154', 'tblTempUsageDetail_20' ) end [2025-02-07 11:44:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:44:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:44:29] Production.INFO: ==985== Releasing lock... [2025-02-07 11:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:44:29] Production.INFO: 61 MB #Memory Used# [2025-02-07 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:45:05 [end_date_ymd] => 2025-02-07 11:45:05 [RateCDR] => 1 ) [2025-02-07 11:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:45:05' and `end` < '2025-02-07 11:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:45:21] Production.INFO: count ==4426 [2025-02-07 11:45:23] Production.ERROR: pbx CDR StartTime 2025-02-07 08:45:05 - End Time 2025-02-07 11:45:05 [2025-02-07 11:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422159', 'tblTempUsageDetail_20' ) start [2025-02-07 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422159', 'tblTempUsageDetail_20' ) end [2025-02-07 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422159', 'tblTempVendorCDR_20' ) start [2025-02-07 11:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422159', 'tblTempVendorCDR_20' ) end [2025-02-07 11:45:24] Production.INFO: ProcessCDR(1,14422159,1,1,2) [2025-02-07 11:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422159', 'tblTempUsageDetail_20' ) start [2025-02-07 11:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422159', 'tblTempUsageDetail_20' ) end [2025-02-07 11:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:45:29] Production.INFO: ==1064== Releasing lock... [2025-02-07 11:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:45:29] Production.INFO: 61 MB #Memory Used# [2025-02-07 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:46:05 [end_date_ymd] => 2025-02-07 11:46:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:46:05' and `end` < '2025-02-07 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-07 11:46:20] Production.INFO: count ==4434 [2025-02-07 11:46:22] Production.ERROR: pbx CDR StartTime 2025-02-07 08:46:05 - End Time 2025-02-07 11:46:05 [2025-02-07 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422164', 'tblTempUsageDetail_20' ) start [2025-02-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422164', 'tblTempUsageDetail_20' ) end [2025-02-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422164', 'tblTempVendorCDR_20' ) start [2025-02-07 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422164', 'tblTempVendorCDR_20' ) end [2025-02-07 11:46:22] Production.INFO: ProcessCDR(1,14422164,1,1,2) [2025-02-07 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422164', 'tblTempUsageDetail_20' ) start [2025-02-07 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422164', 'tblTempUsageDetail_20' ) end [2025-02-07 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:46:26] Production.INFO: ==1148== Releasing lock... [2025-02-07 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:46:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-07 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:47:06 [end_date_ymd] => 2025-02-07 11:47:06 [RateCDR] => 1 ) [2025-02-07 11:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:47:06' and `end` < '2025-02-07 11:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:47:25] Production.INFO: count ==4438 [2025-02-07 11:47:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:47:06 - End Time 2025-02-07 11:47:06 [2025-02-07 11:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422169', 'tblTempUsageDetail_20' ) start [2025-02-07 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422169', 'tblTempUsageDetail_20' ) end [2025-02-07 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422169', 'tblTempVendorCDR_20' ) start [2025-02-07 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422169', 'tblTempVendorCDR_20' ) end [2025-02-07 11:47:27] Production.INFO: ProcessCDR(1,14422169,1,1,2) [2025-02-07 11:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422169', 'tblTempUsageDetail_20' ) start [2025-02-07 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422169', 'tblTempUsageDetail_20' ) end [2025-02-07 11:47:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:47:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:47:32] Production.INFO: ==1283== Releasing lock... [2025-02-07 11:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:47:32] Production.INFO: 61.25 MB #Memory Used# [2025-02-07 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:48:05 [end_date_ymd] => 2025-02-07 11:48:05 [RateCDR] => 1 ) [2025-02-07 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:48:05' and `end` < '2025-02-07 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:48:36] Production.INFO: count ==4459 [2025-02-07 11:48:37] Production.ERROR: pbx CDR StartTime 2025-02-07 08:48:05 - End Time 2025-02-07 11:48:05 [2025-02-07 11:48:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:48:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422174', 'tblTempUsageDetail_20' ) start [2025-02-07 11:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422174', 'tblTempUsageDetail_20' ) end [2025-02-07 11:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422174', 'tblTempVendorCDR_20' ) start [2025-02-07 11:48:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422174', 'tblTempVendorCDR_20' ) end [2025-02-07 11:48:38] Production.INFO: ProcessCDR(1,14422174,1,1,2) [2025-02-07 11:48:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:48:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:48:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:48:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:48:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422174', 'tblTempUsageDetail_20' ) start [2025-02-07 11:48:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422174', 'tblTempUsageDetail_20' ) end [2025-02-07 11:48:43] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:48:43] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:48:43] Production.INFO: ==1357== Releasing lock... [2025-02-07 11:48:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:48:43] Production.INFO: 61.25 MB #Memory Used# [2025-02-07 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:49:06 [end_date_ymd] => 2025-02-07 11:49:06 [RateCDR] => 1 ) [2025-02-07 11:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:49:06' and `end` < '2025-02-07 11:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:49:25] Production.INFO: count ==4465 [2025-02-07 11:49:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:49:06 - End Time 2025-02-07 11:49:06 [2025-02-07 11:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422179', 'tblTempUsageDetail_20' ) start [2025-02-07 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422179', 'tblTempUsageDetail_20' ) end [2025-02-07 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422179', 'tblTempVendorCDR_20' ) start [2025-02-07 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422179', 'tblTempVendorCDR_20' ) end [2025-02-07 11:49:28] Production.INFO: ProcessCDR(1,14422179,1,1,2) [2025-02-07 11:49:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422179', 'tblTempUsageDetail_20' ) start [2025-02-07 11:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422179', 'tblTempUsageDetail_20' ) end [2025-02-07 11:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:49:33] Production.INFO: ==1441== Releasing lock... [2025-02-07 11:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:49:33] Production.INFO: 61.5 MB #Memory Used# [2025-02-07 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:50:06 [end_date_ymd] => 2025-02-07 11:50:06 [RateCDR] => 1 ) [2025-02-07 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-07 08:50:06' and `end` < '2025-02-07 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-07 11:50:32] Production.INFO: count ==4478 [2025-02-07 11:50:34] Production.ERROR: pbx CDR StartTime 2025-02-07 08:50:06 - End Time 2025-02-07 11:50:06 [2025-02-07 11:50:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422185', 'tblTempUsageDetail_20' ) start [2025-02-07 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422185', 'tblTempUsageDetail_20' ) end [2025-02-07 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422185', 'tblTempVendorCDR_20' ) start [2025-02-07 11:50:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422185', 'tblTempVendorCDR_20' ) end [2025-02-07 11:50:34] Production.INFO: ProcessCDR(1,14422185,1,1,2) [2025-02-07 11:50:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:50:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:50:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:50:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422185', 'tblTempUsageDetail_20' ) start [2025-02-07 11:50:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422185', 'tblTempUsageDetail_20' ) end [2025-02-07 11:50:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:50:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:50:39] Production.INFO: ==1551== Releasing lock... [2025-02-07 11:50:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:50:39] Production.INFO: 61.5 MB #Memory Used# [2025-02-07 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:51:06 [end_date_ymd] => 2025-02-07 11:51:06 [RateCDR] => 1 ) [2025-02-07 11:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:51:06' and `end` < '2025-02-07 11:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:51:26] Production.INFO: count ==4656 [2025-02-07 11:51:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:51:06 - End Time 2025-02-07 11:51:06 [2025-02-07 11:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422190', 'tblTempUsageDetail_20' ) start [2025-02-07 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422190', 'tblTempUsageDetail_20' ) end [2025-02-07 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422190', 'tblTempVendorCDR_20' ) start [2025-02-07 11:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422190', 'tblTempVendorCDR_20' ) end [2025-02-07 11:51:29] Production.INFO: ProcessCDR(1,14422190,1,1,2) [2025-02-07 11:51:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422190', 'tblTempUsageDetail_20' ) start [2025-02-07 11:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422190', 'tblTempUsageDetail_20' ) end [2025-02-07 11:51:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:51:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:51:33] Production.INFO: ==1640== Releasing lock... [2025-02-07 11:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:51:33] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:52:05 [end_date_ymd] => 2025-02-07 11:52:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:52:05' and `end` < '2025-02-07 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-07 11:52:29] Production.INFO: count ==4662 [2025-02-07 11:52:31] Production.ERROR: pbx CDR StartTime 2025-02-07 08:52:05 - End Time 2025-02-07 11:52:05 [2025-02-07 11:52:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422195', 'tblTempUsageDetail_20' ) start [2025-02-07 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422195', 'tblTempUsageDetail_20' ) end [2025-02-07 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422195', 'tblTempVendorCDR_20' ) start [2025-02-07 11:52:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422195', 'tblTempVendorCDR_20' ) end [2025-02-07 11:52:31] Production.INFO: ProcessCDR(1,14422195,1,1,2) [2025-02-07 11:52:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:52:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:52:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:52:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422195', 'tblTempUsageDetail_20' ) start [2025-02-07 11:52:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422195', 'tblTempUsageDetail_20' ) end [2025-02-07 11:52:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:52:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:52:36] Production.INFO: ==1726== Releasing lock... [2025-02-07 11:52:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:52:36] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:53:06 [end_date_ymd] => 2025-02-07 11:53:06 [RateCDR] => 1 ) [2025-02-07 11: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-07 08:53:06' and `end` < '2025-02-07 11: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-07 11:53:32] Production.INFO: count ==4696 [2025-02-07 11:53:34] Production.ERROR: pbx CDR StartTime 2025-02-07 08:53:06 - End Time 2025-02-07 11:53:06 [2025-02-07 11:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422200', 'tblTempUsageDetail_20' ) start [2025-02-07 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422200', 'tblTempUsageDetail_20' ) end [2025-02-07 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422200', 'tblTempVendorCDR_20' ) start [2025-02-07 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422200', 'tblTempVendorCDR_20' ) end [2025-02-07 11:53:34] Production.INFO: ProcessCDR(1,14422200,1,1,2) [2025-02-07 11:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:53:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422200', 'tblTempUsageDetail_20' ) start [2025-02-07 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422200', 'tblTempUsageDetail_20' ) end [2025-02-07 11:53:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:53:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:53:39] Production.INFO: ==1807== Releasing lock... [2025-02-07 11:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:53:39] Production.INFO: 63 MB #Memory Used# [2025-02-07 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:54:05 [end_date_ymd] => 2025-02-07 11:54:05 [RateCDR] => 1 ) [2025-02-07 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:54:05' and `end` < '2025-02-07 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:54:26] Production.INFO: count ==4707 [2025-02-07 11:54:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:54:05 - End Time 2025-02-07 11:54:05 [2025-02-07 11:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422205', 'tblTempUsageDetail_20' ) start [2025-02-07 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422205', 'tblTempUsageDetail_20' ) end [2025-02-07 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422205', 'tblTempVendorCDR_20' ) start [2025-02-07 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422205', 'tblTempVendorCDR_20' ) end [2025-02-07 11:54:28] Production.INFO: ProcessCDR(1,14422205,1,1,2) [2025-02-07 11:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422205', 'tblTempUsageDetail_20' ) start [2025-02-07 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422205', 'tblTempUsageDetail_20' ) end [2025-02-07 11:54:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:54:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:54:33] Production.INFO: ==1890== Releasing lock... [2025-02-07 11:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:54:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 11:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:55:06 [end_date_ymd] => 2025-02-07 11:55:06 [RateCDR] => 1 ) [2025-02-07 11: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-07 08:55:06' and `end` < '2025-02-07 11: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-07 11:55:26] Production.INFO: count ==4715 [2025-02-07 11:55:27] Production.ERROR: pbx CDR StartTime 2025-02-07 08:55:06 - End Time 2025-02-07 11:55:06 [2025-02-07 11:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422210', 'tblTempUsageDetail_20' ) start [2025-02-07 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422210', 'tblTempUsageDetail_20' ) end [2025-02-07 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422210', 'tblTempVendorCDR_20' ) start [2025-02-07 11:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422210', 'tblTempVendorCDR_20' ) end [2025-02-07 11:55:28] Production.INFO: ProcessCDR(1,14422210,1,1,2) [2025-02-07 11:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422210', 'tblTempUsageDetail_20' ) start [2025-02-07 11:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422210', 'tblTempUsageDetail_20' ) end [2025-02-07 11:55:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:55:33] Production.INFO: ==1971== Releasing lock... [2025-02-07 11:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:55:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:56:05 [end_date_ymd] => 2025-02-07 11:56:05 [RateCDR] => 1 ) [2025-02-07 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:56:05' and `end` < '2025-02-07 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:56:28] Production.INFO: count ==4722 [2025-02-07 11:56:30] Production.ERROR: pbx CDR StartTime 2025-02-07 08:56:05 - End Time 2025-02-07 11:56:05 [2025-02-07 11:56:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422215', 'tblTempUsageDetail_20' ) start [2025-02-07 11:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422215', 'tblTempUsageDetail_20' ) end [2025-02-07 11:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422215', 'tblTempVendorCDR_20' ) start [2025-02-07 11:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422215', 'tblTempVendorCDR_20' ) end [2025-02-07 11:56:30] Production.INFO: ProcessCDR(1,14422215,1,1,2) [2025-02-07 11:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422215', 'tblTempUsageDetail_20' ) start [2025-02-07 11:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422215', 'tblTempUsageDetail_20' ) end [2025-02-07 11:56:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:56:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:56:34] Production.INFO: ==2059== Releasing lock... [2025-02-07 11:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:56:34] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 11:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:57:06 [end_date_ymd] => 2025-02-07 11:57:06 [RateCDR] => 1 ) [2025-02-07 11:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:57:06' and `end` < '2025-02-07 11:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:57:24] Production.INFO: count ==4719 [2025-02-07 11:57:26] Production.ERROR: pbx CDR StartTime 2025-02-07 08:57:06 - End Time 2025-02-07 11:57:06 [2025-02-07 11:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422220', 'tblTempUsageDetail_20' ) start [2025-02-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422220', 'tblTempUsageDetail_20' ) end [2025-02-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422220', 'tblTempVendorCDR_20' ) start [2025-02-07 11:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422220', 'tblTempVendorCDR_20' ) end [2025-02-07 11:57:26] Production.INFO: ProcessCDR(1,14422220,1,1,2) [2025-02-07 11:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422220', 'tblTempUsageDetail_20' ) start [2025-02-07 11:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422220', 'tblTempUsageDetail_20' ) end [2025-02-07 11:57:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:57:31] Production.INFO: ==2138== Releasing lock... [2025-02-07 11:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:57:31] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:58:06 [end_date_ymd] => 2025-02-07 11:58:06 [RateCDR] => 1 ) [2025-02-07 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 08:58:06' and `end` < '2025-02-07 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 11:58:26] Production.INFO: count ==4730 [2025-02-07 11:58:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:58:06 - End Time 2025-02-07 11:58:06 [2025-02-07 11:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422225', 'tblTempUsageDetail_20' ) start [2025-02-07 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422225', 'tblTempUsageDetail_20' ) end [2025-02-07 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422225', 'tblTempVendorCDR_20' ) start [2025-02-07 11:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422225', 'tblTempVendorCDR_20' ) end [2025-02-07 11:58:29] Production.INFO: ProcessCDR(1,14422225,1,1,2) [2025-02-07 11:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422225', 'tblTempUsageDetail_20' ) start [2025-02-07 11:58:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422225', 'tblTempUsageDetail_20' ) end [2025-02-07 11:58:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:58:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:58:34] Production.INFO: ==2218== Releasing lock... [2025-02-07 11:58:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:58:34] Production.INFO: 63.5 MB #Memory Used# [2025-02-07 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 08:59:05 [end_date_ymd] => 2025-02-07 11:59:05 [RateCDR] => 1 ) [2025-02-07 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-07 08:59:05' and `end` < '2025-02-07 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-07 11:59:26] Production.INFO: count ==4723 [2025-02-07 11:59:28] Production.ERROR: pbx CDR StartTime 2025-02-07 08:59:05 - End Time 2025-02-07 11:59:05 [2025-02-07 11:59:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422230', 'tblTempUsageDetail_20' ) start [2025-02-07 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422230', 'tblTempUsageDetail_20' ) end [2025-02-07 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422230', 'tblTempVendorCDR_20' ) start [2025-02-07 11:59:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422230', 'tblTempVendorCDR_20' ) end [2025-02-07 11:59:28] Production.INFO: ProcessCDR(1,14422230,1,1,2) [2025-02-07 11:59:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:59:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 11:59:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:59:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 11:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422230', 'tblTempUsageDetail_20' ) start [2025-02-07 11:59:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422230', 'tblTempUsageDetail_20' ) end [2025-02-07 11:59:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 11:59:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 11:59:33] Production.INFO: ==2298== Releasing lock... [2025-02-07 11:59:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 11:59:33] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:00:06 [end_date_ymd] => 2025-02-07 12:00:06 [RateCDR] => 1 ) [2025-02-07 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-07 09:00:06' and `end` < '2025-02-07 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-07 12:00:30] Production.INFO: count ==4745 [2025-02-07 12:00:32] Production.ERROR: pbx CDR StartTime 2025-02-07 09:00:06 - End Time 2025-02-07 12:00:06 [2025-02-07 12:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422235', 'tblTempUsageDetail_20' ) start [2025-02-07 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422235', 'tblTempUsageDetail_20' ) end [2025-02-07 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422235', 'tblTempVendorCDR_20' ) start [2025-02-07 12:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422235', 'tblTempVendorCDR_20' ) end [2025-02-07 12:00:32] Production.INFO: ProcessCDR(1,14422235,1,1,2) [2025-02-07 12:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422235', 'tblTempUsageDetail_20' ) start [2025-02-07 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422235', 'tblTempUsageDetail_20' ) end [2025-02-07 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:00:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:00:37] Production.INFO: ==2386== Releasing lock... [2025-02-07 12:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:00:37] Production.INFO: 63.5 MB #Memory Used# [2025-02-07 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:01:06 [end_date_ymd] => 2025-02-07 12:01:06 [RateCDR] => 1 ) [2025-02-07 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:01:06' and `end` < '2025-02-07 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:01:23] Production.INFO: count ==4801 [2025-02-07 12:01:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:01:06 - End Time 2025-02-07 12:01:06 [2025-02-07 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422241', 'tblTempUsageDetail_20' ) start [2025-02-07 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422241', 'tblTempUsageDetail_20' ) end [2025-02-07 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422241', 'tblTempVendorCDR_20' ) start [2025-02-07 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422241', 'tblTempVendorCDR_20' ) end [2025-02-07 12:01:25] Production.INFO: ProcessCDR(1,14422241,1,1,2) [2025-02-07 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422241', 'tblTempUsageDetail_20' ) start [2025-02-07 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422241', 'tblTempUsageDetail_20' ) end [2025-02-07 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:01:30] Production.INFO: ==2484== Releasing lock... [2025-02-07 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:01:30] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:02:05 [end_date_ymd] => 2025-02-07 12:02:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:02:05' and `end` < '2025-02-07 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-07 12:02:19] Production.INFO: count ==4820 [2025-02-07 12:02:21] Production.ERROR: pbx CDR StartTime 2025-02-07 09:02:05 - End Time 2025-02-07 12:02:05 [2025-02-07 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422246', 'tblTempUsageDetail_20' ) start [2025-02-07 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422246', 'tblTempUsageDetail_20' ) end [2025-02-07 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422246', 'tblTempVendorCDR_20' ) start [2025-02-07 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422246', 'tblTempVendorCDR_20' ) end [2025-02-07 12:02:21] Production.INFO: ProcessCDR(1,14422246,1,1,2) [2025-02-07 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422246', 'tblTempUsageDetail_20' ) start [2025-02-07 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422246', 'tblTempUsageDetail_20' ) end [2025-02-07 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:02:26] Production.INFO: ==2601== Releasing lock... [2025-02-07 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:02:26] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:03:06 [end_date_ymd] => 2025-02-07 12:03:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:03:06' and `end` < '2025-02-07 12: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-07 12:03:23] Production.INFO: count ==4894 [2025-02-07 12:03:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:03:06 - End Time 2025-02-07 12:03:06 [2025-02-07 12:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422251', 'tblTempUsageDetail_20' ) start [2025-02-07 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422251', 'tblTempUsageDetail_20' ) end [2025-02-07 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422251', 'tblTempVendorCDR_20' ) start [2025-02-07 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422251', 'tblTempVendorCDR_20' ) end [2025-02-07 12:03:26] Production.INFO: ProcessCDR(1,14422251,1,1,2) [2025-02-07 12:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422251', 'tblTempUsageDetail_20' ) start [2025-02-07 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422251', 'tblTempUsageDetail_20' ) end [2025-02-07 12:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:03:31] Production.INFO: ==2680== Releasing lock... [2025-02-07 12:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:03:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:04:05 [end_date_ymd] => 2025-02-07 12:04:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:04:05' and `end` < '2025-02-07 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-07 12:04:28] Production.INFO: count ==4879 [2025-02-07 12:04:30] Production.ERROR: pbx CDR StartTime 2025-02-07 09:04:05 - End Time 2025-02-07 12:04:05 [2025-02-07 12:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422256', 'tblTempUsageDetail_20' ) start [2025-02-07 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422256', 'tblTempUsageDetail_20' ) end [2025-02-07 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422256', 'tblTempVendorCDR_20' ) start [2025-02-07 12:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422256', 'tblTempVendorCDR_20' ) end [2025-02-07 12:04:30] Production.INFO: ProcessCDR(1,14422256,1,1,2) [2025-02-07 12:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422256', 'tblTempUsageDetail_20' ) start [2025-02-07 12:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422256', 'tblTempUsageDetail_20' ) end [2025-02-07 12:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:04:35] Production.INFO: ==2760== Releasing lock... [2025-02-07 12:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:04:35] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:05:05 [end_date_ymd] => 2025-02-07 12:05:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:05:05' and `end` < '2025-02-07 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-07 12:05:25] Production.INFO: count ==4862 [2025-02-07 12:05:27] Production.ERROR: pbx CDR StartTime 2025-02-07 09:05:05 - End Time 2025-02-07 12:05:05 [2025-02-07 12:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422261', 'tblTempUsageDetail_20' ) start [2025-02-07 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422261', 'tblTempUsageDetail_20' ) end [2025-02-07 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422261', 'tblTempVendorCDR_20' ) start [2025-02-07 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422261', 'tblTempVendorCDR_20' ) end [2025-02-07 12:05:27] Production.INFO: ProcessCDR(1,14422261,1,1,2) [2025-02-07 12:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422261', 'tblTempUsageDetail_20' ) start [2025-02-07 12:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422261', 'tblTempUsageDetail_20' ) end [2025-02-07 12:05:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:05:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:05:32] Production.INFO: ==2842== Releasing lock... [2025-02-07 12:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:05:32] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:06:05 [end_date_ymd] => 2025-02-07 12:06:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:06:05' and `end` < '2025-02-07 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-07 12:06:24] Production.INFO: count ==4855 [2025-02-07 12:06:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:06:05 - End Time 2025-02-07 12:06:05 [2025-02-07 12:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422266', 'tblTempUsageDetail_20' ) start [2025-02-07 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422266', 'tblTempUsageDetail_20' ) end [2025-02-07 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422266', 'tblTempVendorCDR_20' ) start [2025-02-07 12:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422266', 'tblTempVendorCDR_20' ) end [2025-02-07 12:06:26] Production.INFO: ProcessCDR(1,14422266,1,1,2) [2025-02-07 12:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422266', 'tblTempUsageDetail_20' ) start [2025-02-07 12:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422266', 'tblTempUsageDetail_20' ) end [2025-02-07 12:06:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:06:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:06:31] Production.INFO: ==2925== Releasing lock... [2025-02-07 12:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:06:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:07:06 [end_date_ymd] => 2025-02-07 12:07:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:07:06' and `end` < '2025-02-07 12: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-07 12:07:24] Production.INFO: count ==4854 [2025-02-07 12:07:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:07:06 - End Time 2025-02-07 12:07:06 [2025-02-07 12:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422271', 'tblTempUsageDetail_20' ) start [2025-02-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422271', 'tblTempUsageDetail_20' ) end [2025-02-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422271', 'tblTempVendorCDR_20' ) start [2025-02-07 12:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422271', 'tblTempVendorCDR_20' ) end [2025-02-07 12:07:26] Production.INFO: ProcessCDR(1,14422271,1,1,2) [2025-02-07 12:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422271', 'tblTempUsageDetail_20' ) start [2025-02-07 12:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422271', 'tblTempUsageDetail_20' ) end [2025-02-07 12:07:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:07:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:07:32] Production.INFO: ==3006== Releasing lock... [2025-02-07 12:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:07:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:08:06 [end_date_ymd] => 2025-02-07 12:08:06 [RateCDR] => 1 ) [2025-02-07 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:08:06' and `end` < '2025-02-07 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:08:21] Production.INFO: count ==4848 [2025-02-07 12:08:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:08:06 - End Time 2025-02-07 12:08:06 [2025-02-07 12:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422276', 'tblTempUsageDetail_20' ) start [2025-02-07 12:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422276', 'tblTempUsageDetail_20' ) end [2025-02-07 12:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422276', 'tblTempVendorCDR_20' ) start [2025-02-07 12:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422276', 'tblTempVendorCDR_20' ) end [2025-02-07 12:08:24] Production.INFO: ProcessCDR(1,14422276,1,1,2) [2025-02-07 12:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422276', 'tblTempUsageDetail_20' ) start [2025-02-07 12:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422276', 'tblTempUsageDetail_20' ) end [2025-02-07 12:08:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:08:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:08:29] Production.INFO: ==3088== Releasing lock... [2025-02-07 12:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:08:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:09:06 [end_date_ymd] => 2025-02-07 12:09:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:09:06' and `end` < '2025-02-07 12: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-07 12:09:20] Production.INFO: count ==4811 [2025-02-07 12:09:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:09:06 - End Time 2025-02-07 12:09:06 [2025-02-07 12:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422281', 'tblTempUsageDetail_20' ) start [2025-02-07 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422281', 'tblTempUsageDetail_20' ) end [2025-02-07 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422281', 'tblTempVendorCDR_20' ) start [2025-02-07 12:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422281', 'tblTempVendorCDR_20' ) end [2025-02-07 12:09:23] Production.INFO: ProcessCDR(1,14422281,1,1,2) [2025-02-07 12:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422281', 'tblTempUsageDetail_20' ) start [2025-02-07 12:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422281', 'tblTempUsageDetail_20' ) end [2025-02-07 12:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:09:28] Production.INFO: ==3173== Releasing lock... [2025-02-07 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:09:28] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:10:06 [end_date_ymd] => 2025-02-07 12:10:06 [RateCDR] => 1 ) [2025-02-07 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-07 09:10:06' and `end` < '2025-02-07 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-07 12:10:20] Production.INFO: count ==4809 [2025-02-07 12:10:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:10:06 - End Time 2025-02-07 12:10:06 [2025-02-07 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422287', 'tblTempUsageDetail_20' ) start [2025-02-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422287', 'tblTempUsageDetail_20' ) end [2025-02-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422287', 'tblTempVendorCDR_20' ) start [2025-02-07 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422287', 'tblTempVendorCDR_20' ) end [2025-02-07 12:10:22] Production.INFO: ProcessCDR(1,14422287,1,1,2) [2025-02-07 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422287', 'tblTempUsageDetail_20' ) start [2025-02-07 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422287', 'tblTempUsageDetail_20' ) end [2025-02-07 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:10:28] Production.INFO: ==3254== Releasing lock... [2025-02-07 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:10:28] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:11:05 [end_date_ymd] => 2025-02-07 12:11:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:11:05' and `end` < '2025-02-07 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-07 12:11:22] Production.INFO: count ==4823 [2025-02-07 12:11:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:11:05 - End Time 2025-02-07 12:11:05 [2025-02-07 12:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422292', 'tblTempUsageDetail_20' ) start [2025-02-07 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422292', 'tblTempUsageDetail_20' ) end [2025-02-07 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422292', 'tblTempVendorCDR_20' ) start [2025-02-07 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422292', 'tblTempVendorCDR_20' ) end [2025-02-07 12:11:24] Production.INFO: ProcessCDR(1,14422292,1,1,2) [2025-02-07 12:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422292', 'tblTempUsageDetail_20' ) start [2025-02-07 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422292', 'tblTempUsageDetail_20' ) end [2025-02-07 12:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:11:29] Production.INFO: ==3341== Releasing lock... [2025-02-07 12:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:11:29] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:12:06 [end_date_ymd] => 2025-02-07 12:12:06 [RateCDR] => 1 ) [2025-02-07 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-07 09:12:06' and `end` < '2025-02-07 12: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-07 12:12:20] Production.INFO: count ==4794 [2025-02-07 12:12:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:12:06 - End Time 2025-02-07 12:12:06 [2025-02-07 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422297', 'tblTempUsageDetail_20' ) start [2025-02-07 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422297', 'tblTempUsageDetail_20' ) end [2025-02-07 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422297', 'tblTempVendorCDR_20' ) start [2025-02-07 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422297', 'tblTempVendorCDR_20' ) end [2025-02-07 12:12:22] Production.INFO: ProcessCDR(1,14422297,1,1,2) [2025-02-07 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422297', 'tblTempUsageDetail_20' ) start [2025-02-07 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422297', 'tblTempUsageDetail_20' ) end [2025-02-07 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:12:27] Production.INFO: ==3423== Releasing lock... [2025-02-07 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:12:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:13:05 [end_date_ymd] => 2025-02-07 12:13:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:13:05' and `end` < '2025-02-07 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-07 12:13:23] Production.INFO: count ==4796 [2025-02-07 12:13:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:13:05 - End Time 2025-02-07 12:13:05 [2025-02-07 12:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422302', 'tblTempUsageDetail_20' ) start [2025-02-07 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422302', 'tblTempUsageDetail_20' ) end [2025-02-07 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422302', 'tblTempVendorCDR_20' ) start [2025-02-07 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422302', 'tblTempVendorCDR_20' ) end [2025-02-07 12:13:25] Production.INFO: ProcessCDR(1,14422302,1,1,2) [2025-02-07 12:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422302', 'tblTempUsageDetail_20' ) start [2025-02-07 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422302', 'tblTempUsageDetail_20' ) end [2025-02-07 12:13:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:13:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:13:30] Production.INFO: ==3504== Releasing lock... [2025-02-07 12:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:13:30] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:14:06 [end_date_ymd] => 2025-02-07 12:14:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:14:06' and `end` < '2025-02-07 12: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-07 12:14:21] Production.INFO: count ==4788 [2025-02-07 12:14:23] Production.ERROR: pbx CDR StartTime 2025-02-07 09:14:06 - End Time 2025-02-07 12:14:06 [2025-02-07 12:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422307', 'tblTempUsageDetail_20' ) start [2025-02-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422307', 'tblTempUsageDetail_20' ) end [2025-02-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422307', 'tblTempVendorCDR_20' ) start [2025-02-07 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422307', 'tblTempVendorCDR_20' ) end [2025-02-07 12:14:23] Production.INFO: ProcessCDR(1,14422307,1,1,2) [2025-02-07 12:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422307', 'tblTempUsageDetail_20' ) start [2025-02-07 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422307', 'tblTempUsageDetail_20' ) end [2025-02-07 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:14:28] Production.INFO: ==3587== Releasing lock... [2025-02-07 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:14:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:15:06 [end_date_ymd] => 2025-02-07 12:15:06 [RateCDR] => 1 ) [2025-02-07 12:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:15:06' and `end` < '2025-02-07 12:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:15:27] Production.INFO: count ==4794 [2025-02-07 12:15:29] Production.ERROR: pbx CDR StartTime 2025-02-07 09:15:06 - End Time 2025-02-07 12:15:06 [2025-02-07 12:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422312', 'tblTempUsageDetail_20' ) start [2025-02-07 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422312', 'tblTempUsageDetail_20' ) end [2025-02-07 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422312', 'tblTempVendorCDR_20' ) start [2025-02-07 12:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422312', 'tblTempVendorCDR_20' ) end [2025-02-07 12:15:29] Production.INFO: ProcessCDR(1,14422312,1,1,2) [2025-02-07 12:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422312', 'tblTempUsageDetail_20' ) start [2025-02-07 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422312', 'tblTempUsageDetail_20' ) end [2025-02-07 12:15:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:15:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:15:35] Production.INFO: ==3664== Releasing lock... [2025-02-07 12:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:15:35] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:16:06 [end_date_ymd] => 2025-02-07 12:16:06 [RateCDR] => 1 ) [2025-02-07 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:16:06' and `end` < '2025-02-07 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:16:23] Production.INFO: count ==4780 [2025-02-07 12:16:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:16:06 - End Time 2025-02-07 12:16:06 [2025-02-07 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422317', 'tblTempUsageDetail_20' ) start [2025-02-07 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422317', 'tblTempUsageDetail_20' ) end [2025-02-07 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422317', 'tblTempVendorCDR_20' ) start [2025-02-07 12:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422317', 'tblTempVendorCDR_20' ) end [2025-02-07 12:16:26] Production.INFO: ProcessCDR(1,14422317,1,1,2) [2025-02-07 12:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422317', 'tblTempUsageDetail_20' ) start [2025-02-07 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422317', 'tblTempUsageDetail_20' ) end [2025-02-07 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:16:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:16:30] Production.INFO: ==3746== Releasing lock... [2025-02-07 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:16:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:17:05 [end_date_ymd] => 2025-02-07 12:17:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:17:05' and `end` < '2025-02-07 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-07 12:17:23] Production.INFO: count ==4781 [2025-02-07 12:17:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:17:05 - End Time 2025-02-07 12:17:05 [2025-02-07 12:17:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422322', 'tblTempUsageDetail_20' ) start [2025-02-07 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422322', 'tblTempUsageDetail_20' ) end [2025-02-07 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422322', 'tblTempVendorCDR_20' ) start [2025-02-07 12:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422322', 'tblTempVendorCDR_20' ) end [2025-02-07 12:17:25] Production.INFO: ProcessCDR(1,14422322,1,1,2) [2025-02-07 12:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:17:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422322', 'tblTempUsageDetail_20' ) start [2025-02-07 12:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422322', 'tblTempUsageDetail_20' ) end [2025-02-07 12:17:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:17:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:17:30] Production.INFO: ==3819== Releasing lock... [2025-02-07 12:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:17:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:18:06 [end_date_ymd] => 2025-02-07 12:18:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:18:06' and `end` < '2025-02-07 12: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-07 12:18:21] Production.INFO: count ==4771 [2025-02-07 12:18:23] Production.ERROR: pbx CDR StartTime 2025-02-07 09:18:06 - End Time 2025-02-07 12:18:06 [2025-02-07 12:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422327', 'tblTempUsageDetail_20' ) start [2025-02-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422327', 'tblTempUsageDetail_20' ) end [2025-02-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422327', 'tblTempVendorCDR_20' ) start [2025-02-07 12:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422327', 'tblTempVendorCDR_20' ) end [2025-02-07 12:18:23] Production.INFO: ProcessCDR(1,14422327,1,1,2) [2025-02-07 12:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422327', 'tblTempUsageDetail_20' ) start [2025-02-07 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422327', 'tblTempUsageDetail_20' ) end [2025-02-07 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:18:28] Production.INFO: ==3946== Releasing lock... [2025-02-07 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:18:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:19:05 [end_date_ymd] => 2025-02-07 12:19:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:19:05' and `end` < '2025-02-07 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-07 12:19:24] Production.INFO: count ==4765 [2025-02-07 12:19:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:19:05 - End Time 2025-02-07 12:19:05 [2025-02-07 12:19:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422332', 'tblTempUsageDetail_20' ) start [2025-02-07 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422332', 'tblTempUsageDetail_20' ) end [2025-02-07 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422332', 'tblTempVendorCDR_20' ) start [2025-02-07 12:19:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422332', 'tblTempVendorCDR_20' ) end [2025-02-07 12:19:26] Production.INFO: ProcessCDR(1,14422332,1,1,2) [2025-02-07 12:19:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:19:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:19:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:19:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422332', 'tblTempUsageDetail_20' ) start [2025-02-07 12:19:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422332', 'tblTempUsageDetail_20' ) end [2025-02-07 12:19:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:19:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:19:31] Production.INFO: ==4030== Releasing lock... [2025-02-07 12:19:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:19:31] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:20:06 [end_date_ymd] => 2025-02-07 12:20:06 [RateCDR] => 1 ) [2025-02-07 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:20:06' and `end` < '2025-02-07 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:20:24] Production.INFO: count ==4773 [2025-02-07 12:20:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:20:06 - End Time 2025-02-07 12:20:06 [2025-02-07 12:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422338', 'tblTempUsageDetail_20' ) start [2025-02-07 12:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422338', 'tblTempUsageDetail_20' ) end [2025-02-07 12:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422338', 'tblTempVendorCDR_20' ) start [2025-02-07 12:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422338', 'tblTempVendorCDR_20' ) end [2025-02-07 12:20:26] Production.INFO: ProcessCDR(1,14422338,1,1,2) [2025-02-07 12:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422338', 'tblTempUsageDetail_20' ) start [2025-02-07 12:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422338', 'tblTempUsageDetail_20' ) end [2025-02-07 12:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:20:32] Production.INFO: ==4115== Releasing lock... [2025-02-07 12:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:20:32] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:21:05 [end_date_ymd] => 2025-02-07 12:21:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:21:05' and `end` < '2025-02-07 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-07 12:21:21] Production.INFO: count ==4816 [2025-02-07 12:21:23] Production.ERROR: pbx CDR StartTime 2025-02-07 09:21:05 - End Time 2025-02-07 12:21:05 [2025-02-07 12:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422343', 'tblTempUsageDetail_20' ) start [2025-02-07 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422343', 'tblTempUsageDetail_20' ) end [2025-02-07 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422343', 'tblTempVendorCDR_20' ) start [2025-02-07 12:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422343', 'tblTempVendorCDR_20' ) end [2025-02-07 12:21:23] Production.INFO: ProcessCDR(1,14422343,1,1,2) [2025-02-07 12:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:21:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:21:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422343', 'tblTempUsageDetail_20' ) start [2025-02-07 12:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422343', 'tblTempUsageDetail_20' ) end [2025-02-07 12:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:21:29] Production.INFO: ==4194== Releasing lock... [2025-02-07 12:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:21:29] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:22:06 [end_date_ymd] => 2025-02-07 12:22:06 [RateCDR] => 1 ) [2025-02-07 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:22:06' and `end` < '2025-02-07 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:22:20] Production.INFO: count ==4808 [2025-02-07 12:22:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:22:06 - End Time 2025-02-07 12:22:06 [2025-02-07 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422348', 'tblTempUsageDetail_20' ) start [2025-02-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422348', 'tblTempUsageDetail_20' ) end [2025-02-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422348', 'tblTempVendorCDR_20' ) start [2025-02-07 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422348', 'tblTempVendorCDR_20' ) end [2025-02-07 12:22:22] Production.INFO: ProcessCDR(1,14422348,1,1,2) [2025-02-07 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422348', 'tblTempUsageDetail_20' ) start [2025-02-07 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422348', 'tblTempUsageDetail_20' ) end [2025-02-07 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:22:26] Production.INFO: ==4275== Releasing lock... [2025-02-07 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:22:26] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:23:05 [end_date_ymd] => 2025-02-07 12:23:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:23:05' and `end` < '2025-02-07 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-07 12:23:27] Production.INFO: count ==4820 [2025-02-07 12:23:30] Production.ERROR: pbx CDR StartTime 2025-02-07 09:23:05 - End Time 2025-02-07 12:23:05 [2025-02-07 12:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422353', 'tblTempUsageDetail_20' ) start [2025-02-07 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422353', 'tblTempUsageDetail_20' ) end [2025-02-07 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422353', 'tblTempVendorCDR_20' ) start [2025-02-07 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422353', 'tblTempVendorCDR_20' ) end [2025-02-07 12:23:30] Production.INFO: ProcessCDR(1,14422353,1,1,2) [2025-02-07 12:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:23:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:23:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:23:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422353', 'tblTempUsageDetail_20' ) start [2025-02-07 12:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422353', 'tblTempUsageDetail_20' ) end [2025-02-07 12:23:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:23:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:23:35] Production.INFO: ==4357== Releasing lock... [2025-02-07 12:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:23:35] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:24:05 [end_date_ymd] => 2025-02-07 12:24:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:24:05' and `end` < '2025-02-07 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-07 12:24:30] Production.INFO: count ==4842 [2025-02-07 12:24:32] Production.ERROR: pbx CDR StartTime 2025-02-07 09:24:05 - End Time 2025-02-07 12:24:05 [2025-02-07 12:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422358', 'tblTempUsageDetail_20' ) start [2025-02-07 12:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422358', 'tblTempUsageDetail_20' ) end [2025-02-07 12:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422358', 'tblTempVendorCDR_20' ) start [2025-02-07 12:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422358', 'tblTempVendorCDR_20' ) end [2025-02-07 12:24:32] Production.INFO: ProcessCDR(1,14422358,1,1,2) [2025-02-07 12:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:24:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422358', 'tblTempUsageDetail_20' ) start [2025-02-07 12:24:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422358', 'tblTempUsageDetail_20' ) end [2025-02-07 12:24:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:24:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:24:38] Production.INFO: ==4461== Releasing lock... [2025-02-07 12:24:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:24:38] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:25:05 [end_date_ymd] => 2025-02-07 12:25:05 [RateCDR] => 1 ) [2025-02-07 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:25:05' and `end` < '2025-02-07 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:25:24] Production.INFO: count ==4820 [2025-02-07 12:25:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:25:05 - End Time 2025-02-07 12:25:05 [2025-02-07 12:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422363', 'tblTempUsageDetail_20' ) start [2025-02-07 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422363', 'tblTempUsageDetail_20' ) end [2025-02-07 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422363', 'tblTempVendorCDR_20' ) start [2025-02-07 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422363', 'tblTempVendorCDR_20' ) end [2025-02-07 12:25:26] Production.INFO: ProcessCDR(1,14422363,1,1,2) [2025-02-07 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422363', 'tblTempUsageDetail_20' ) start [2025-02-07 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422363', 'tblTempUsageDetail_20' ) end [2025-02-07 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:25:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:25:31] Production.INFO: ==4549== Releasing lock... [2025-02-07 12:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:25:31] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:26:06 [end_date_ymd] => 2025-02-07 12:26:06 [RateCDR] => 1 ) [2025-02-07 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:26:06' and `end` < '2025-02-07 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:26:19] Production.INFO: count ==4830 [2025-02-07 12:26:21] Production.ERROR: pbx CDR StartTime 2025-02-07 09:26:06 - End Time 2025-02-07 12:26:06 [2025-02-07 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422368', 'tblTempUsageDetail_20' ) start [2025-02-07 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422368', 'tblTempUsageDetail_20' ) end [2025-02-07 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422368', 'tblTempVendorCDR_20' ) start [2025-02-07 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422368', 'tblTempVendorCDR_20' ) end [2025-02-07 12:26:22] Production.INFO: ProcessCDR(1,14422368,1,1,2) [2025-02-07 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422368', 'tblTempUsageDetail_20' ) start [2025-02-07 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422368', 'tblTempUsageDetail_20' ) end [2025-02-07 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:26:27] Production.INFO: ==4648== Releasing lock... [2025-02-07 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:26:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:27:06 [end_date_ymd] => 2025-02-07 12:27:06 [RateCDR] => 1 ) [2025-02-07 12:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:27:06' and `end` < '2025-02-07 12:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:27:23] Production.INFO: count ==4837 [2025-02-07 12:27:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:27:06 - End Time 2025-02-07 12:27:06 [2025-02-07 12:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422373', 'tblTempUsageDetail_20' ) start [2025-02-07 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422373', 'tblTempUsageDetail_20' ) end [2025-02-07 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422373', 'tblTempVendorCDR_20' ) start [2025-02-07 12:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422373', 'tblTempVendorCDR_20' ) end [2025-02-07 12:27:25] Production.INFO: ProcessCDR(1,14422373,1,1,2) [2025-02-07 12:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422373', 'tblTempUsageDetail_20' ) start [2025-02-07 12:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422373', 'tblTempUsageDetail_20' ) end [2025-02-07 12:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:27:30] Production.INFO: ==4735== Releasing lock... [2025-02-07 12:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:27:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:28:05 [end_date_ymd] => 2025-02-07 12:28:05 [RateCDR] => 1 ) [2025-02-07 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-07 09:28:05' and `end` < '2025-02-07 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:28:22] Production.INFO: count ==4851 [2025-02-07 12:28:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:28:05 - End Time 2025-02-07 12:28:05 [2025-02-07 12:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422378', 'tblTempUsageDetail_20' ) start [2025-02-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422378', 'tblTempUsageDetail_20' ) end [2025-02-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422378', 'tblTempVendorCDR_20' ) start [2025-02-07 12:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422378', 'tblTempVendorCDR_20' ) end [2025-02-07 12:28:24] Production.INFO: ProcessCDR(1,14422378,1,1,2) [2025-02-07 12:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422378', 'tblTempUsageDetail_20' ) start [2025-02-07 12:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422378', 'tblTempUsageDetail_20' ) end [2025-02-07 12:28:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:28:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:28:29] Production.INFO: ==4820== Releasing lock... [2025-02-07 12:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:28:29] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:29:06 [end_date_ymd] => 2025-02-07 12:29:06 [RateCDR] => 1 ) [2025-02-07 12:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:29:06' and `end` < '2025-02-07 12:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:29:21] Production.INFO: count ==4846 [2025-02-07 12:29:23] Production.ERROR: pbx CDR StartTime 2025-02-07 09:29:06 - End Time 2025-02-07 12:29:06 [2025-02-07 12:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422383', 'tblTempUsageDetail_20' ) start [2025-02-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422383', 'tblTempUsageDetail_20' ) end [2025-02-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422383', 'tblTempVendorCDR_20' ) start [2025-02-07 12:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422383', 'tblTempVendorCDR_20' ) end [2025-02-07 12:29:23] Production.INFO: ProcessCDR(1,14422383,1,1,2) [2025-02-07 12:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422383', 'tblTempUsageDetail_20' ) start [2025-02-07 12:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422383', 'tblTempUsageDetail_20' ) end [2025-02-07 12:29:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:29:28] Production.INFO: ==4907== Releasing lock... [2025-02-07 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:29:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:30:06 [end_date_ymd] => 2025-02-07 12:30:06 [RateCDR] => 1 ) [2025-02-07 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:30:06' and `end` < '2025-02-07 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:30:25] Production.INFO: count ==4826 [2025-02-07 12:30:27] Production.ERROR: pbx CDR StartTime 2025-02-07 09:30:06 - End Time 2025-02-07 12:30:06 [2025-02-07 12:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422389', 'tblTempUsageDetail_20' ) start [2025-02-07 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422389', 'tblTempUsageDetail_20' ) end [2025-02-07 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422389', 'tblTempVendorCDR_20' ) start [2025-02-07 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422389', 'tblTempVendorCDR_20' ) end [2025-02-07 12:30:27] Production.INFO: ProcessCDR(1,14422389,1,1,2) [2025-02-07 12:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422389', 'tblTempUsageDetail_20' ) start [2025-02-07 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422389', 'tblTempUsageDetail_20' ) end [2025-02-07 12:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:30:32] Production.INFO: ==5004== Releasing lock... [2025-02-07 12:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:30:32] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:31:06 [end_date_ymd] => 2025-02-07 12:31:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:31:06' and `end` < '2025-02-07 12: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-07 12:31:20] Production.INFO: count ==4813 [2025-02-07 12:31:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:31:06 - End Time 2025-02-07 12:31:06 [2025-02-07 12:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422394', 'tblTempUsageDetail_20' ) start [2025-02-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422394', 'tblTempUsageDetail_20' ) end [2025-02-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422394', 'tblTempVendorCDR_20' ) start [2025-02-07 12:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422394', 'tblTempVendorCDR_20' ) end [2025-02-07 12:31:22] Production.INFO: ProcessCDR(1,14422394,1,1,2) [2025-02-07 12:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422394', 'tblTempUsageDetail_20' ) start [2025-02-07 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422394', 'tblTempUsageDetail_20' ) end [2025-02-07 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:31:27] Production.INFO: ==5094== Releasing lock... [2025-02-07 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:31:27] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:32:05 [end_date_ymd] => 2025-02-07 12:32:05 [RateCDR] => 1 ) [2025-02-07 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:32:05' and `end` < '2025-02-07 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:32:19] Production.INFO: count ==4798 [2025-02-07 12:32:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:32:05 - End Time 2025-02-07 12:32:05 [2025-02-07 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422399', 'tblTempUsageDetail_20' ) start [2025-02-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422399', 'tblTempUsageDetail_20' ) end [2025-02-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422399', 'tblTempVendorCDR_20' ) start [2025-02-07 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422399', 'tblTempVendorCDR_20' ) end [2025-02-07 12:32:22] Production.INFO: ProcessCDR(1,14422399,1,1,2) [2025-02-07 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422399', 'tblTempUsageDetail_20' ) start [2025-02-07 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422399', 'tblTempUsageDetail_20' ) end [2025-02-07 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:32:26] Production.INFO: ==5182== Releasing lock... [2025-02-07 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:32:26] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:33:06 [end_date_ymd] => 2025-02-07 12:33:06 [RateCDR] => 1 ) [2025-02-07 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:33:06' and `end` < '2025-02-07 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:33:22] Production.INFO: count ==4829 [2025-02-07 12:33:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:33:06 - End Time 2025-02-07 12:33:06 [2025-02-07 12:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422404', 'tblTempUsageDetail_20' ) start [2025-02-07 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422404', 'tblTempUsageDetail_20' ) end [2025-02-07 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422404', 'tblTempVendorCDR_20' ) start [2025-02-07 12:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422404', 'tblTempVendorCDR_20' ) end [2025-02-07 12:33:25] Production.INFO: ProcessCDR(1,14422404,1,1,2) [2025-02-07 12:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422404', 'tblTempUsageDetail_20' ) start [2025-02-07 12:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422404', 'tblTempUsageDetail_20' ) end [2025-02-07 12:33:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:33:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:33:30] Production.INFO: ==5309== Releasing lock... [2025-02-07 12:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:33:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:34:05 [end_date_ymd] => 2025-02-07 12:34:05 [RateCDR] => 1 ) [2025-02-07 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:34:05' and `end` < '2025-02-07 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:34:20] Production.INFO: count ==4814 [2025-02-07 12:34:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:34:05 - End Time 2025-02-07 12:34:05 [2025-02-07 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422409', 'tblTempUsageDetail_20' ) start [2025-02-07 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422409', 'tblTempUsageDetail_20' ) end [2025-02-07 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422409', 'tblTempVendorCDR_20' ) start [2025-02-07 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422409', 'tblTempVendorCDR_20' ) end [2025-02-07 12:34:22] Production.INFO: ProcessCDR(1,14422409,1,1,2) [2025-02-07 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422409', 'tblTempUsageDetail_20' ) start [2025-02-07 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422409', 'tblTempUsageDetail_20' ) end [2025-02-07 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:34:27] Production.INFO: ==5391== Releasing lock... [2025-02-07 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:34:27] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:35:06 [end_date_ymd] => 2025-02-07 12:35:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:35:06' and `end` < '2025-02-07 12: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-07 12:35:23] Production.INFO: count ==4818 [2025-02-07 12:35:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:35:06 - End Time 2025-02-07 12:35:06 [2025-02-07 12:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422414', 'tblTempUsageDetail_20' ) start [2025-02-07 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422414', 'tblTempUsageDetail_20' ) end [2025-02-07 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422414', 'tblTempVendorCDR_20' ) start [2025-02-07 12:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422414', 'tblTempVendorCDR_20' ) end [2025-02-07 12:35:25] Production.INFO: ProcessCDR(1,14422414,1,1,2) [2025-02-07 12:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422414', 'tblTempUsageDetail_20' ) start [2025-02-07 12:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422414', 'tblTempUsageDetail_20' ) end [2025-02-07 12:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:35:30] Production.INFO: ==5478== Releasing lock... [2025-02-07 12:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:35:30] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:36:06 [end_date_ymd] => 2025-02-07 12:36:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:36:06' and `end` < '2025-02-07 12: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-07 12:36:22] Production.INFO: count ==4806 [2025-02-07 12:36:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:36:06 - End Time 2025-02-07 12:36:06 [2025-02-07 12:36:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422419', 'tblTempUsageDetail_20' ) start [2025-02-07 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422419', 'tblTempUsageDetail_20' ) end [2025-02-07 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422419', 'tblTempVendorCDR_20' ) start [2025-02-07 12:36:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422419', 'tblTempVendorCDR_20' ) end [2025-02-07 12:36:25] Production.INFO: ProcessCDR(1,14422419,1,1,2) [2025-02-07 12:36:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422419', 'tblTempUsageDetail_20' ) start [2025-02-07 12:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422419', 'tblTempUsageDetail_20' ) end [2025-02-07 12:36:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:36:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:36:30] Production.INFO: ==5557== Releasing lock... [2025-02-07 12:36:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:36:30] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:37:06 [end_date_ymd] => 2025-02-07 12:37:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:37:06' and `end` < '2025-02-07 12: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-07 12:37:22] Production.INFO: count ==4813 [2025-02-07 12:37:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:37:06 - End Time 2025-02-07 12:37:06 [2025-02-07 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422424', 'tblTempUsageDetail_20' ) start [2025-02-07 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422424', 'tblTempUsageDetail_20' ) end [2025-02-07 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422424', 'tblTempVendorCDR_20' ) start [2025-02-07 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422424', 'tblTempVendorCDR_20' ) end [2025-02-07 12:37:24] Production.INFO: ProcessCDR(1,14422424,1,1,2) [2025-02-07 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422424', 'tblTempUsageDetail_20' ) start [2025-02-07 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422424', 'tblTempUsageDetail_20' ) end [2025-02-07 12:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:37:29] Production.INFO: ==5639== Releasing lock... [2025-02-07 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:37:29] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:38:05 [end_date_ymd] => 2025-02-07 12:38:05 [RateCDR] => 1 ) [2025-02-07 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:38:05' and `end` < '2025-02-07 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:38:19] Production.INFO: count ==4804 [2025-02-07 12:38:21] Production.ERROR: pbx CDR StartTime 2025-02-07 09:38:05 - End Time 2025-02-07 12:38:05 [2025-02-07 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422429', 'tblTempUsageDetail_20' ) start [2025-02-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422429', 'tblTempUsageDetail_20' ) end [2025-02-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422429', 'tblTempVendorCDR_20' ) start [2025-02-07 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422429', 'tblTempVendorCDR_20' ) end [2025-02-07 12:38:22] Production.INFO: ProcessCDR(1,14422429,1,1,2) [2025-02-07 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422429', 'tblTempUsageDetail_20' ) start [2025-02-07 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422429', 'tblTempUsageDetail_20' ) end [2025-02-07 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:38:27] Production.INFO: ==5718== Releasing lock... [2025-02-07 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:38:27] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:39:06 [end_date_ymd] => 2025-02-07 12:39:06 [RateCDR] => 1 ) [2025-02-07 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:39:06' and `end` < '2025-02-07 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:39:20] Production.INFO: count ==4806 [2025-02-07 12:39:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:39:06 - End Time 2025-02-07 12:39:06 [2025-02-07 12:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422434', 'tblTempUsageDetail_20' ) start [2025-02-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422434', 'tblTempUsageDetail_20' ) end [2025-02-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422434', 'tblTempVendorCDR_20' ) start [2025-02-07 12:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422434', 'tblTempVendorCDR_20' ) end [2025-02-07 12:39:22] Production.INFO: ProcessCDR(1,14422434,1,1,2) [2025-02-07 12:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422434', 'tblTempUsageDetail_20' ) start [2025-02-07 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422434', 'tblTempUsageDetail_20' ) end [2025-02-07 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:39:27] Production.INFO: ==5796== Releasing lock... [2025-02-07 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:39:27] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:40:06 [end_date_ymd] => 2025-02-07 12:40:06 [RateCDR] => 1 ) [2025-02-07 12:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:40:06' and `end` < '2025-02-07 12:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:40:19] Production.INFO: count ==4796 [2025-02-07 12:40:21] Production.ERROR: pbx CDR StartTime 2025-02-07 09:40:06 - End Time 2025-02-07 12:40:06 [2025-02-07 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422440', 'tblTempUsageDetail_20' ) start [2025-02-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422440', 'tblTempUsageDetail_20' ) end [2025-02-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422440', 'tblTempVendorCDR_20' ) start [2025-02-07 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422440', 'tblTempVendorCDR_20' ) end [2025-02-07 12:40:22] Production.INFO: ProcessCDR(1,14422440,1,1,2) [2025-02-07 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422440', 'tblTempUsageDetail_20' ) start [2025-02-07 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422440', 'tblTempUsageDetail_20' ) end [2025-02-07 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:40:26] Production.INFO: ==5876== Releasing lock... [2025-02-07 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:40:26] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:41:05 [end_date_ymd] => 2025-02-07 12:41:05 [RateCDR] => 1 ) [2025-02-07 12:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:41:05' and `end` < '2025-02-07 12:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:41:23] Production.INFO: count ==4784 [2025-02-07 12:41:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:41:05 - End Time 2025-02-07 12:41:05 [2025-02-07 12:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422445', 'tblTempUsageDetail_20' ) start [2025-02-07 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422445', 'tblTempUsageDetail_20' ) end [2025-02-07 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422445', 'tblTempVendorCDR_20' ) start [2025-02-07 12:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422445', 'tblTempVendorCDR_20' ) end [2025-02-07 12:41:25] Production.INFO: ProcessCDR(1,14422445,1,1,2) [2025-02-07 12:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422445', 'tblTempUsageDetail_20' ) start [2025-02-07 12:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422445', 'tblTempUsageDetail_20' ) end [2025-02-07 12:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:41:30] Production.INFO: ==5957== Releasing lock... [2025-02-07 12:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:41:30] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:42:05 [end_date_ymd] => 2025-02-07 12:42:05 [RateCDR] => 1 ) [2025-02-07 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:42:05' and `end` < '2025-02-07 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:42:20] Production.INFO: count ==4782 [2025-02-07 12:42:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:42:05 - End Time 2025-02-07 12:42:05 [2025-02-07 12:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422450', 'tblTempUsageDetail_20' ) start [2025-02-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422450', 'tblTempUsageDetail_20' ) end [2025-02-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422450', 'tblTempVendorCDR_20' ) start [2025-02-07 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422450', 'tblTempVendorCDR_20' ) end [2025-02-07 12:42:22] Production.INFO: ProcessCDR(1,14422450,1,1,2) [2025-02-07 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422450', 'tblTempUsageDetail_20' ) start [2025-02-07 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422450', 'tblTempUsageDetail_20' ) end [2025-02-07 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:42:26] Production.INFO: ==6038== Releasing lock... [2025-02-07 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:42:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:43:05 [end_date_ymd] => 2025-02-07 12:43:05 [RateCDR] => 1 ) [2025-02-07 12:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:43:05' and `end` < '2025-02-07 12:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:43:22] Production.INFO: count ==4807 [2025-02-07 12:43:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:43:05 - End Time 2025-02-07 12:43:05 [2025-02-07 12:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422455', 'tblTempUsageDetail_20' ) start [2025-02-07 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422455', 'tblTempUsageDetail_20' ) end [2025-02-07 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422455', 'tblTempVendorCDR_20' ) start [2025-02-07 12:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422455', 'tblTempVendorCDR_20' ) end [2025-02-07 12:43:24] Production.INFO: ProcessCDR(1,14422455,1,1,2) [2025-02-07 12:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422455', 'tblTempUsageDetail_20' ) start [2025-02-07 12:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422455', 'tblTempUsageDetail_20' ) end [2025-02-07 12:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:43:29] Production.INFO: ==6120== Releasing lock... [2025-02-07 12:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:43:29] Production.INFO: 64 MB #Memory Used# [2025-02-07 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:44:05 [end_date_ymd] => 2025-02-07 12:44:05 [RateCDR] => 1 ) [2025-02-07 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:44:05' and `end` < '2025-02-07 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:44:23] Production.INFO: count ==4836 [2025-02-07 12:44:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:44:05 - End Time 2025-02-07 12:44:05 [2025-02-07 12:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422460', 'tblTempUsageDetail_20' ) start [2025-02-07 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422460', 'tblTempUsageDetail_20' ) end [2025-02-07 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422460', 'tblTempVendorCDR_20' ) start [2025-02-07 12:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422460', 'tblTempVendorCDR_20' ) end [2025-02-07 12:44:26] Production.INFO: ProcessCDR(1,14422460,1,1,2) [2025-02-07 12:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422460', 'tblTempUsageDetail_20' ) start [2025-02-07 12:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422460', 'tblTempUsageDetail_20' ) end [2025-02-07 12:44:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:44:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:44:30] Production.INFO: ==6197== Releasing lock... [2025-02-07 12:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:44:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:45:06 [end_date_ymd] => 2025-02-07 12:45:06 [RateCDR] => 1 ) [2025-02-07 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:45:06' and `end` < '2025-02-07 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:45:23] Production.INFO: count ==4885 [2025-02-07 12:45:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:45:06 - End Time 2025-02-07 12:45:06 [2025-02-07 12:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422465', 'tblTempUsageDetail_20' ) start [2025-02-07 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422465', 'tblTempUsageDetail_20' ) end [2025-02-07 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422465', 'tblTempVendorCDR_20' ) start [2025-02-07 12:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422465', 'tblTempVendorCDR_20' ) end [2025-02-07 12:45:25] Production.INFO: ProcessCDR(1,14422465,1,1,2) [2025-02-07 12:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422465', 'tblTempUsageDetail_20' ) start [2025-02-07 12:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422465', 'tblTempUsageDetail_20' ) end [2025-02-07 12:45:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:45:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:45:30] Production.INFO: ==6277== Releasing lock... [2025-02-07 12:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:45:30] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:46:05 [end_date_ymd] => 2025-02-07 12:46:05 [RateCDR] => 1 ) [2025-02-07 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:46:05' and `end` < '2025-02-07 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:46:23] Production.INFO: count ==4917 [2025-02-07 12:46:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:46:05 - End Time 2025-02-07 12:46:05 [2025-02-07 12:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422470', 'tblTempUsageDetail_20' ) start [2025-02-07 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422470', 'tblTempUsageDetail_20' ) end [2025-02-07 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422470', 'tblTempVendorCDR_20' ) start [2025-02-07 12:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422470', 'tblTempVendorCDR_20' ) end [2025-02-07 12:46:25] Production.INFO: ProcessCDR(1,14422470,1,1,2) [2025-02-07 12:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422470', 'tblTempUsageDetail_20' ) start [2025-02-07 12:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422470', 'tblTempUsageDetail_20' ) end [2025-02-07 12:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:46:30] Production.INFO: ==6361== Releasing lock... [2025-02-07 12:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:46:30] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:47:06 [end_date_ymd] => 2025-02-07 12:47:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:47:06' and `end` < '2025-02-07 12: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-07 12:47:20] Production.INFO: count ==4997 [2025-02-07 12:47:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:47:06 - End Time 2025-02-07 12:47:06 [2025-02-07 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422475', 'tblTempUsageDetail_20' ) start [2025-02-07 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422475', 'tblTempUsageDetail_20' ) end [2025-02-07 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422475', 'tblTempVendorCDR_20' ) start [2025-02-07 12:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422475', 'tblTempVendorCDR_20' ) end [2025-02-07 12:47:23] Production.INFO: ProcessCDR(1,14422475,1,1,2) [2025-02-07 12:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422475', 'tblTempUsageDetail_20' ) start [2025-02-07 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422475', 'tblTempUsageDetail_20' ) end [2025-02-07 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:47:27] Production.INFO: ==6443== Releasing lock... [2025-02-07 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:47:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:48:05 [end_date_ymd] => 2025-02-07 12:48:05 [RateCDR] => 1 ) [2025-02-07 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:48:05' and `end` < '2025-02-07 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:48:23] Production.INFO: count ==5149 [2025-02-07 12:48:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:48:05 - End Time 2025-02-07 12:48:05 [2025-02-07 12:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422480', 'tblTempUsageDetail_20' ) start [2025-02-07 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422480', 'tblTempUsageDetail_20' ) end [2025-02-07 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422480', 'tblTempVendorCDR_20' ) start [2025-02-07 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422480', 'tblTempVendorCDR_20' ) end [2025-02-07 12:48:26] Production.INFO: ProcessCDR(1,14422480,1,1,2) [2025-02-07 12:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422480', 'tblTempUsageDetail_20' ) start [2025-02-07 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422480', 'tblTempUsageDetail_20' ) end [2025-02-07 12:48:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:48:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:48:31] Production.INFO: ==6560== Releasing lock... [2025-02-07 12:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:48:31] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:49:05 [end_date_ymd] => 2025-02-07 12:49:05 [RateCDR] => 1 ) [2025-02-07 12:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:49:05' and `end` < '2025-02-07 12:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:49:22] Production.INFO: count ==5162 [2025-02-07 12:49:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:49:05 - End Time 2025-02-07 12:49:05 [2025-02-07 12:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422485', 'tblTempUsageDetail_20' ) start [2025-02-07 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422485', 'tblTempUsageDetail_20' ) end [2025-02-07 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422485', 'tblTempVendorCDR_20' ) start [2025-02-07 12:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422485', 'tblTempVendorCDR_20' ) end [2025-02-07 12:49:24] Production.INFO: ProcessCDR(1,14422485,1,1,2) [2025-02-07 12:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422485', 'tblTempUsageDetail_20' ) start [2025-02-07 12:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422485', 'tblTempUsageDetail_20' ) end [2025-02-07 12:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:49:29] Production.INFO: ==6642== Releasing lock... [2025-02-07 12:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:49:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:50:06 [end_date_ymd] => 2025-02-07 12:50:06 [RateCDR] => 1 ) [2025-02-07 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:50:06' and `end` < '2025-02-07 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:50:26] Production.INFO: count ==5171 [2025-02-07 12:50:28] Production.ERROR: pbx CDR StartTime 2025-02-07 09:50:06 - End Time 2025-02-07 12:50:06 [2025-02-07 12:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422491', 'tblTempUsageDetail_20' ) start [2025-02-07 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422491', 'tblTempUsageDetail_20' ) end [2025-02-07 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422491', 'tblTempVendorCDR_20' ) start [2025-02-07 12:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422491', 'tblTempVendorCDR_20' ) end [2025-02-07 12:50:28] Production.INFO: ProcessCDR(1,14422491,1,1,2) [2025-02-07 12:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422491', 'tblTempUsageDetail_20' ) start [2025-02-07 12:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422491', 'tblTempUsageDetail_20' ) end [2025-02-07 12:50:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:50:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:50:33] Production.INFO: ==6730== Releasing lock... [2025-02-07 12:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:50:33] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:51:05 [end_date_ymd] => 2025-02-07 12:51:05 [RateCDR] => 1 ) [2025-02-07 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:51:05' and `end` < '2025-02-07 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:51:22] Production.INFO: count ==5181 [2025-02-07 12:51:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:51:05 - End Time 2025-02-07 12:51:05 [2025-02-07 12:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422496', 'tblTempUsageDetail_20' ) start [2025-02-07 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422496', 'tblTempUsageDetail_20' ) end [2025-02-07 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422496', 'tblTempVendorCDR_20' ) start [2025-02-07 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422496', 'tblTempVendorCDR_20' ) end [2025-02-07 12:51:24] Production.INFO: ProcessCDR(1,14422496,1,1,2) [2025-02-07 12:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422496', 'tblTempUsageDetail_20' ) start [2025-02-07 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422496', 'tblTempUsageDetail_20' ) end [2025-02-07 12:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:51:29] Production.INFO: ==6814== Releasing lock... [2025-02-07 12:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:51:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:52:05 [end_date_ymd] => 2025-02-07 12:52:05 [RateCDR] => 1 ) [2025-02-07 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:52:05' and `end` < '2025-02-07 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:52:25] Production.INFO: count ==5179 [2025-02-07 12:52:27] Production.ERROR: pbx CDR StartTime 2025-02-07 09:52:05 - End Time 2025-02-07 12:52:05 [2025-02-07 12:52:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422501', 'tblTempUsageDetail_20' ) start [2025-02-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422501', 'tblTempUsageDetail_20' ) end [2025-02-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422501', 'tblTempVendorCDR_20' ) start [2025-02-07 12:52:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422501', 'tblTempVendorCDR_20' ) end [2025-02-07 12:52:27] Production.INFO: ProcessCDR(1,14422501,1,1,2) [2025-02-07 12:52:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422501', 'tblTempUsageDetail_20' ) start [2025-02-07 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422501', 'tblTempUsageDetail_20' ) end [2025-02-07 12:52:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:52:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:52:32] Production.INFO: ==6891== Releasing lock... [2025-02-07 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:52:32] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:53:05 [end_date_ymd] => 2025-02-07 12:53:05 [RateCDR] => 1 ) [2025-02-07 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:53:05' and `end` < '2025-02-07 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:53:22] Production.INFO: count ==5179 [2025-02-07 12:53:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:53:05 - End Time 2025-02-07 12:53:05 [2025-02-07 12:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422506', 'tblTempUsageDetail_20' ) start [2025-02-07 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422506', 'tblTempUsageDetail_20' ) end [2025-02-07 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422506', 'tblTempVendorCDR_20' ) start [2025-02-07 12:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422506', 'tblTempVendorCDR_20' ) end [2025-02-07 12:53:24] Production.INFO: ProcessCDR(1,14422506,1,1,2) [2025-02-07 12:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422506', 'tblTempUsageDetail_20' ) start [2025-02-07 12:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422506', 'tblTempUsageDetail_20' ) end [2025-02-07 12:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:53:29] Production.INFO: ==6972== Releasing lock... [2025-02-07 12:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:53:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:54:06 [end_date_ymd] => 2025-02-07 12:54:06 [RateCDR] => 1 ) [2025-02-07 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:54:06' and `end` < '2025-02-07 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:54:22] Production.INFO: count ==5191 [2025-02-07 12:54:24] Production.ERROR: pbx CDR StartTime 2025-02-07 09:54:06 - End Time 2025-02-07 12:54:06 [2025-02-07 12:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422511', 'tblTempUsageDetail_20' ) start [2025-02-07 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422511', 'tblTempUsageDetail_20' ) end [2025-02-07 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422511', 'tblTempVendorCDR_20' ) start [2025-02-07 12:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422511', 'tblTempVendorCDR_20' ) end [2025-02-07 12:54:24] Production.INFO: ProcessCDR(1,14422511,1,1,2) [2025-02-07 12:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422511', 'tblTempUsageDetail_20' ) start [2025-02-07 12:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422511', 'tblTempUsageDetail_20' ) end [2025-02-07 12:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:54:29] Production.INFO: ==7069== Releasing lock... [2025-02-07 12:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:54:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:55:06 [end_date_ymd] => 2025-02-07 12:55:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:55:06' and `end` < '2025-02-07 12: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-07 12:55:19] Production.INFO: count ==5197 [2025-02-07 12:55:22] Production.ERROR: pbx CDR StartTime 2025-02-07 09:55:06 - End Time 2025-02-07 12:55:06 [2025-02-07 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422516', 'tblTempUsageDetail_20' ) start [2025-02-07 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422516', 'tblTempUsageDetail_20' ) end [2025-02-07 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422516', 'tblTempVendorCDR_20' ) start [2025-02-07 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422516', 'tblTempVendorCDR_20' ) end [2025-02-07 12:55:22] Production.INFO: ProcessCDR(1,14422516,1,1,2) [2025-02-07 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422516', 'tblTempUsageDetail_20' ) start [2025-02-07 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422516', 'tblTempUsageDetail_20' ) end [2025-02-07 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:55:27] Production.INFO: ==7150== Releasing lock... [2025-02-07 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:55:27] Production.INFO: 67 MB #Memory Used# [2025-02-07 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:56:06 [end_date_ymd] => 2025-02-07 12:56:06 [RateCDR] => 1 ) [2025-02-07 12:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:56:06' and `end` < '2025-02-07 12:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:56:24] Production.INFO: count ==5189 [2025-02-07 12:56:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:56:06 - End Time 2025-02-07 12:56:06 [2025-02-07 12:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422521', 'tblTempUsageDetail_20' ) start [2025-02-07 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422521', 'tblTempUsageDetail_20' ) end [2025-02-07 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422521', 'tblTempVendorCDR_20' ) start [2025-02-07 12:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422521', 'tblTempVendorCDR_20' ) end [2025-02-07 12:56:27] Production.INFO: ProcessCDR(1,14422521,1,1,2) [2025-02-07 12:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422521', 'tblTempUsageDetail_20' ) start [2025-02-07 12:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422521', 'tblTempUsageDetail_20' ) end [2025-02-07 12:56:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:56:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:56:31] Production.INFO: ==7230== Releasing lock... [2025-02-07 12:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:56:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:57:06 [end_date_ymd] => 2025-02-07 12:57:06 [RateCDR] => 1 ) [2025-02-07 12:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:57:06' and `end` < '2025-02-07 12:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:57:23] Production.INFO: count ==5174 [2025-02-07 12:57:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:57:06 - End Time 2025-02-07 12:57:06 [2025-02-07 12:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422526', 'tblTempUsageDetail_20' ) start [2025-02-07 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422526', 'tblTempUsageDetail_20' ) end [2025-02-07 12:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422526', 'tblTempVendorCDR_20' ) start [2025-02-07 12:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422526', 'tblTempVendorCDR_20' ) end [2025-02-07 12:57:26] Production.INFO: ProcessCDR(1,14422526,1,1,2) [2025-02-07 12:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422526', 'tblTempUsageDetail_20' ) start [2025-02-07 12:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422526', 'tblTempUsageDetail_20' ) end [2025-02-07 12:57:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:57:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:57:31] Production.INFO: ==7314== Releasing lock... [2025-02-07 12:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:57:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:58:05 [end_date_ymd] => 2025-02-07 12:58:05 [RateCDR] => 1 ) [2025-02-07 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 09:58:05' and `end` < '2025-02-07 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 12:58:22] Production.INFO: count ==5171 [2025-02-07 12:58:25] Production.ERROR: pbx CDR StartTime 2025-02-07 09:58:05 - End Time 2025-02-07 12:58:05 [2025-02-07 12:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422531', 'tblTempUsageDetail_20' ) start [2025-02-07 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422531', 'tblTempUsageDetail_20' ) end [2025-02-07 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422531', 'tblTempVendorCDR_20' ) start [2025-02-07 12:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422531', 'tblTempVendorCDR_20' ) end [2025-02-07 12:58:25] Production.INFO: ProcessCDR(1,14422531,1,1,2) [2025-02-07 12:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:58:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:58:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:58:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422531', 'tblTempUsageDetail_20' ) start [2025-02-07 12:58:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422531', 'tblTempUsageDetail_20' ) end [2025-02-07 12:58:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:58:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:58:30] Production.INFO: ==7396== Releasing lock... [2025-02-07 12:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:58:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 09:59:06 [end_date_ymd] => 2025-02-07 12:59:06 [RateCDR] => 1 ) [2025-02-07 12: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-07 09:59:06' and `end` < '2025-02-07 12: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-07 12:59:24] Production.INFO: count ==5173 [2025-02-07 12:59:26] Production.ERROR: pbx CDR StartTime 2025-02-07 09:59:06 - End Time 2025-02-07 12:59:06 [2025-02-07 12:59:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422536', 'tblTempUsageDetail_20' ) start [2025-02-07 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422536', 'tblTempUsageDetail_20' ) end [2025-02-07 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422536', 'tblTempVendorCDR_20' ) start [2025-02-07 12:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422536', 'tblTempVendorCDR_20' ) end [2025-02-07 12:59:26] Production.INFO: ProcessCDR(1,14422536,1,1,2) [2025-02-07 12:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:59:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 12:59:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:59:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422536', 'tblTempUsageDetail_20' ) start [2025-02-07 12:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422536', 'tblTempUsageDetail_20' ) end [2025-02-07 12:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 12:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 12:59:31] Production.INFO: ==7477== Releasing lock... [2025-02-07 12:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 12:59:31] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:00:06 [end_date_ymd] => 2025-02-07 13:00:06 [RateCDR] => 1 ) [2025-02-07 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:00:06' and `end` < '2025-02-07 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:00:22] Production.INFO: count ==5167 [2025-02-07 13:00:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:00:06 - End Time 2025-02-07 13:00:06 [2025-02-07 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422542', 'tblTempUsageDetail_20' ) start [2025-02-07 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422542', 'tblTempUsageDetail_20' ) end [2025-02-07 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422542', 'tblTempVendorCDR_20' ) start [2025-02-07 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422542', 'tblTempVendorCDR_20' ) end [2025-02-07 13:00:25] Production.INFO: ProcessCDR(1,14422542,1,1,2) [2025-02-07 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422542', 'tblTempUsageDetail_20' ) start [2025-02-07 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422542', 'tblTempUsageDetail_20' ) end [2025-02-07 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:00:29] Production.INFO: ==7562== Releasing lock... [2025-02-07 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:00:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:01:05 [end_date_ymd] => 2025-02-07 13:01:05 [RateCDR] => 1 ) [2025-02-07 13:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:01:05' and `end` < '2025-02-07 13:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:01:24] Production.INFO: count ==5221 [2025-02-07 13:01:26] Production.ERROR: pbx CDR StartTime 2025-02-07 10:01:05 - End Time 2025-02-07 13:01:05 [2025-02-07 13:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422547', 'tblTempUsageDetail_20' ) start [2025-02-07 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422547', 'tblTempUsageDetail_20' ) end [2025-02-07 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422547', 'tblTempVendorCDR_20' ) start [2025-02-07 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422547', 'tblTempVendorCDR_20' ) end [2025-02-07 13:01:26] Production.INFO: ProcessCDR(1,14422547,1,1,2) [2025-02-07 13:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422547', 'tblTempUsageDetail_20' ) start [2025-02-07 13:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422547', 'tblTempUsageDetail_20' ) end [2025-02-07 13:01:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:01:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:01:31] Production.INFO: ==7655== Releasing lock... [2025-02-07 13:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:01:31] Production.INFO: 67 MB #Memory Used# [2025-02-07 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:02:05 [end_date_ymd] => 2025-02-07 13:02:05 [RateCDR] => 1 ) [2025-02-07 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:02:05' and `end` < '2025-02-07 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:02:34] Production.INFO: count ==5242 [2025-02-07 13:02:36] Production.ERROR: pbx CDR StartTime 2025-02-07 10:02:05 - End Time 2025-02-07 13:02:05 [2025-02-07 13:02:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422552', 'tblTempUsageDetail_20' ) start [2025-02-07 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422552', 'tblTempUsageDetail_20' ) end [2025-02-07 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422552', 'tblTempVendorCDR_20' ) start [2025-02-07 13:02:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422552', 'tblTempVendorCDR_20' ) end [2025-02-07 13:02:36] Production.INFO: ProcessCDR(1,14422552,1,1,2) [2025-02-07 13:02:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:02:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:02:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:02:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422552', 'tblTempUsageDetail_20' ) start [2025-02-07 13:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422552', 'tblTempUsageDetail_20' ) end [2025-02-07 13:02:41] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:02:41] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:02:41] Production.INFO: ==7732== Releasing lock... [2025-02-07 13:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:02:41] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:03:05 [end_date_ymd] => 2025-02-07 13:03:05 [RateCDR] => 1 ) [2025-02-07 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:03:05' and `end` < '2025-02-07 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:03:26] Production.INFO: count ==5248 [2025-02-07 13:03:28] Production.ERROR: pbx CDR StartTime 2025-02-07 10:03:05 - End Time 2025-02-07 13:03:05 [2025-02-07 13:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422557', 'tblTempUsageDetail_20' ) start [2025-02-07 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422557', 'tblTempUsageDetail_20' ) end [2025-02-07 13:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422557', 'tblTempVendorCDR_20' ) start [2025-02-07 13:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422557', 'tblTempVendorCDR_20' ) end [2025-02-07 13:03:29] Production.INFO: ProcessCDR(1,14422557,1,1,2) [2025-02-07 13:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:03:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422557', 'tblTempUsageDetail_20' ) start [2025-02-07 13:03:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422557', 'tblTempUsageDetail_20' ) end [2025-02-07 13:03:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:03:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:03:34] Production.INFO: ==7810== Releasing lock... [2025-02-07 13:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:03:34] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:04:06 [end_date_ymd] => 2025-02-07 13:04:06 [RateCDR] => 1 ) [2025-02-07 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:04:06' and `end` < '2025-02-07 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:04:27] Production.INFO: count ==5237 [2025-02-07 13:04:29] Production.ERROR: pbx CDR StartTime 2025-02-07 10:04:06 - End Time 2025-02-07 13:04:06 [2025-02-07 13:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422562', 'tblTempUsageDetail_20' ) start [2025-02-07 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422562', 'tblTempUsageDetail_20' ) end [2025-02-07 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422562', 'tblTempVendorCDR_20' ) start [2025-02-07 13:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422562', 'tblTempVendorCDR_20' ) end [2025-02-07 13:04:29] Production.INFO: ProcessCDR(1,14422562,1,1,2) [2025-02-07 13:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422562', 'tblTempUsageDetail_20' ) start [2025-02-07 13:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422562', 'tblTempUsageDetail_20' ) end [2025-02-07 13:04:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:04:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:04:35] Production.INFO: ==7931== Releasing lock... [2025-02-07 13:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:04:35] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:05:06 [end_date_ymd] => 2025-02-07 13:05:06 [RateCDR] => 1 ) [2025-02-07 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:05:06' and `end` < '2025-02-07 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:05:22] Production.INFO: count ==5257 [2025-02-07 13:05:25] Production.ERROR: pbx CDR StartTime 2025-02-07 10:05:06 - End Time 2025-02-07 13:05:06 [2025-02-07 13:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422567', 'tblTempUsageDetail_20' ) start [2025-02-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422567', 'tblTempUsageDetail_20' ) end [2025-02-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422567', 'tblTempVendorCDR_20' ) start [2025-02-07 13:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422567', 'tblTempVendorCDR_20' ) end [2025-02-07 13:05:25] Production.INFO: ProcessCDR(1,14422567,1,1,2) [2025-02-07 13:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422567', 'tblTempUsageDetail_20' ) start [2025-02-07 13:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422567', 'tblTempUsageDetail_20' ) end [2025-02-07 13:05:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:05:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:05:30] Production.INFO: ==8008== Releasing lock... [2025-02-07 13:05:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:05:30] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:06:05 [end_date_ymd] => 2025-02-07 13:06:05 [RateCDR] => 1 ) [2025-02-07 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:06:05' and `end` < '2025-02-07 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:06:30] Production.INFO: count ==5264 [2025-02-07 13:06:33] Production.ERROR: pbx CDR StartTime 2025-02-07 10:06:05 - End Time 2025-02-07 13:06:05 [2025-02-07 13:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422572', 'tblTempUsageDetail_20' ) start [2025-02-07 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422572', 'tblTempUsageDetail_20' ) end [2025-02-07 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422572', 'tblTempVendorCDR_20' ) start [2025-02-07 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422572', 'tblTempVendorCDR_20' ) end [2025-02-07 13:06:33] Production.INFO: ProcessCDR(1,14422572,1,1,2) [2025-02-07 13:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422572', 'tblTempUsageDetail_20' ) start [2025-02-07 13:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422572', 'tblTempUsageDetail_20' ) end [2025-02-07 13:06:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:06:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:06:39] Production.INFO: ==8086== Releasing lock... [2025-02-07 13:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:06:39] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:07:06 [end_date_ymd] => 2025-02-07 13:07:06 [RateCDR] => 1 ) [2025-02-07 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:07:06' and `end` < '2025-02-07 13:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:07:30] Production.INFO: count ==5289 [2025-02-07 13:07:32] Production.ERROR: pbx CDR StartTime 2025-02-07 10:07:06 - End Time 2025-02-07 13:07:06 [2025-02-07 13:07:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422577', 'tblTempUsageDetail_20' ) start [2025-02-07 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422577', 'tblTempUsageDetail_20' ) end [2025-02-07 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422577', 'tblTempVendorCDR_20' ) start [2025-02-07 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422577', 'tblTempVendorCDR_20' ) end [2025-02-07 13:07:32] Production.INFO: ProcessCDR(1,14422577,1,1,2) [2025-02-07 13:07:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:07:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:07:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422577', 'tblTempUsageDetail_20' ) start [2025-02-07 13:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422577', 'tblTempUsageDetail_20' ) end [2025-02-07 13:07:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:07:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:07:37] Production.INFO: ==8168== Releasing lock... [2025-02-07 13:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:07:37] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:08:05 [end_date_ymd] => 2025-02-07 13:08:05 [RateCDR] => 1 ) [2025-02-07 13:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:08:05' and `end` < '2025-02-07 13:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:08:22] Production.INFO: count ==5285 [2025-02-07 13:08:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:08:05 - End Time 2025-02-07 13:08:05 [2025-02-07 13:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422582', 'tblTempUsageDetail_20' ) start [2025-02-07 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422582', 'tblTempUsageDetail_20' ) end [2025-02-07 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422582', 'tblTempVendorCDR_20' ) start [2025-02-07 13:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422582', 'tblTempVendorCDR_20' ) end [2025-02-07 13:08:24] Production.INFO: ProcessCDR(1,14422582,1,1,2) [2025-02-07 13:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422582', 'tblTempUsageDetail_20' ) start [2025-02-07 13:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422582', 'tblTempUsageDetail_20' ) end [2025-02-07 13:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:08:30] Production.INFO: ==8246== Releasing lock... [2025-02-07 13:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:08:30] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:09:06 [end_date_ymd] => 2025-02-07 13:09:06 [RateCDR] => 1 ) [2025-02-07 13:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:09:06' and `end` < '2025-02-07 13:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:09:28] Production.INFO: count ==5297 [2025-02-07 13:09:30] Production.ERROR: pbx CDR StartTime 2025-02-07 10:09:06 - End Time 2025-02-07 13:09:06 [2025-02-07 13:09:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422587', 'tblTempUsageDetail_20' ) start [2025-02-07 13:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422587', 'tblTempUsageDetail_20' ) end [2025-02-07 13:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422587', 'tblTempVendorCDR_20' ) start [2025-02-07 13:09:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422587', 'tblTempVendorCDR_20' ) end [2025-02-07 13:09:30] Production.INFO: ProcessCDR(1,14422587,1,1,2) [2025-02-07 13:09:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422587', 'tblTempUsageDetail_20' ) start [2025-02-07 13:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422587', 'tblTempUsageDetail_20' ) end [2025-02-07 13:09:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:09:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:09:36] Production.INFO: ==8336== Releasing lock... [2025-02-07 13:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:09:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:10:06 [end_date_ymd] => 2025-02-07 13:10:06 [RateCDR] => 1 ) [2025-02-07 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:10:06' and `end` < '2025-02-07 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:10:26] Production.INFO: count ==5285 [2025-02-07 13:10:28] Production.ERROR: pbx CDR StartTime 2025-02-07 10:10:06 - End Time 2025-02-07 13:10:06 [2025-02-07 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422593', 'tblTempUsageDetail_20' ) start [2025-02-07 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422593', 'tblTempUsageDetail_20' ) end [2025-02-07 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422593', 'tblTempVendorCDR_20' ) start [2025-02-07 13:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422593', 'tblTempVendorCDR_20' ) end [2025-02-07 13:10:29] Production.INFO: ProcessCDR(1,14422593,1,1,2) [2025-02-07 13:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422593', 'tblTempUsageDetail_20' ) start [2025-02-07 13:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422593', 'tblTempUsageDetail_20' ) end [2025-02-07 13:10:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:10:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:10:34] Production.INFO: ==8417== Releasing lock... [2025-02-07 13:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:10:34] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:11:06 [end_date_ymd] => 2025-02-07 13:11:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:11:06' and `end` < '2025-02-07 13: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-07 13:11:28] Production.INFO: count ==5289 [2025-02-07 13:11:30] Production.ERROR: pbx CDR StartTime 2025-02-07 10:11:06 - End Time 2025-02-07 13:11:06 [2025-02-07 13:11:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422598', 'tblTempUsageDetail_20' ) start [2025-02-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422598', 'tblTempUsageDetail_20' ) end [2025-02-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422598', 'tblTempVendorCDR_20' ) start [2025-02-07 13:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422598', 'tblTempVendorCDR_20' ) end [2025-02-07 13:11:30] Production.INFO: ProcessCDR(1,14422598,1,1,2) [2025-02-07 13:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:11:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422598', 'tblTempUsageDetail_20' ) start [2025-02-07 13:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422598', 'tblTempUsageDetail_20' ) end [2025-02-07 13:11:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:11:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:11:36] Production.INFO: ==8504== Releasing lock... [2025-02-07 13:11:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:11:36] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:12:05 [end_date_ymd] => 2025-02-07 13:12:05 [RateCDR] => 1 ) [2025-02-07 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:12:05' and `end` < '2025-02-07 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:12:23] Production.INFO: count ==5296 [2025-02-07 13:12:25] Production.ERROR: pbx CDR StartTime 2025-02-07 10:12:05 - End Time 2025-02-07 13:12:05 [2025-02-07 13:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422603', 'tblTempUsageDetail_20' ) start [2025-02-07 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422603', 'tblTempUsageDetail_20' ) end [2025-02-07 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422603', 'tblTempVendorCDR_20' ) start [2025-02-07 13:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422603', 'tblTempVendorCDR_20' ) end [2025-02-07 13:12:25] Production.INFO: ProcessCDR(1,14422603,1,1,2) [2025-02-07 13:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422603', 'tblTempUsageDetail_20' ) start [2025-02-07 13:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422603', 'tblTempUsageDetail_20' ) end [2025-02-07 13:12:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:12:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:12:31] Production.INFO: ==8582== Releasing lock... [2025-02-07 13:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:12:31] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:13:06 [end_date_ymd] => 2025-02-07 13:13:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:13:06' and `end` < '2025-02-07 13: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-07 13:13:21] Production.INFO: count ==5284 [2025-02-07 13:13:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:13:06 - End Time 2025-02-07 13:13:06 [2025-02-07 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422608', 'tblTempUsageDetail_20' ) start [2025-02-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422608', 'tblTempUsageDetail_20' ) end [2025-02-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422608', 'tblTempVendorCDR_20' ) start [2025-02-07 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422608', 'tblTempVendorCDR_20' ) end [2025-02-07 13:13:23] Production.INFO: ProcessCDR(1,14422608,1,1,2) [2025-02-07 13:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422608', 'tblTempUsageDetail_20' ) start [2025-02-07 13:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422608', 'tblTempUsageDetail_20' ) end [2025-02-07 13:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:13:29] Production.INFO: ==8660== Releasing lock... [2025-02-07 13:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:13:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:14:06 [end_date_ymd] => 2025-02-07 13:14:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:14:06' and `end` < '2025-02-07 13: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-07 13:14:21] Production.INFO: count ==5291 [2025-02-07 13:14:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:14:06 - End Time 2025-02-07 13:14:06 [2025-02-07 13:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422613', 'tblTempUsageDetail_20' ) start [2025-02-07 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422613', 'tblTempUsageDetail_20' ) end [2025-02-07 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422613', 'tblTempVendorCDR_20' ) start [2025-02-07 13:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422613', 'tblTempVendorCDR_20' ) end [2025-02-07 13:14:24] Production.INFO: ProcessCDR(1,14422613,1,1,2) [2025-02-07 13:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422613', 'tblTempUsageDetail_20' ) start [2025-02-07 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422613', 'tblTempUsageDetail_20' ) end [2025-02-07 13:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:14:29] Production.INFO: ==8738== Releasing lock... [2025-02-07 13:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:14:29] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:15:06 [end_date_ymd] => 2025-02-07 13:15:06 [RateCDR] => 1 ) [2025-02-07 13:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:15:06' and `end` < '2025-02-07 13:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:15:28] Production.INFO: count ==5316 [2025-02-07 13:15:30] Production.ERROR: pbx CDR StartTime 2025-02-07 10:15:06 - End Time 2025-02-07 13:15:06 [2025-02-07 13:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422618', 'tblTempUsageDetail_20' ) start [2025-02-07 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422618', 'tblTempUsageDetail_20' ) end [2025-02-07 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422618', 'tblTempVendorCDR_20' ) start [2025-02-07 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422618', 'tblTempVendorCDR_20' ) end [2025-02-07 13:15:30] Production.INFO: ProcessCDR(1,14422618,1,1,2) [2025-02-07 13:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422618', 'tblTempUsageDetail_20' ) start [2025-02-07 13:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422618', 'tblTempUsageDetail_20' ) end [2025-02-07 13:15:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:15:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:15:36] Production.INFO: ==8814== Releasing lock... [2025-02-07 13:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:15:36] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:16:05 [end_date_ymd] => 2025-02-07 13:16:05 [RateCDR] => 1 ) [2025-02-07 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:16:05' and `end` < '2025-02-07 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:16:25] Production.INFO: count ==5328 [2025-02-07 13:16:28] Production.ERROR: pbx CDR StartTime 2025-02-07 10:16:05 - End Time 2025-02-07 13:16:05 [2025-02-07 13:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422623', 'tblTempUsageDetail_20' ) start [2025-02-07 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422623', 'tblTempUsageDetail_20' ) end [2025-02-07 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422623', 'tblTempVendorCDR_20' ) start [2025-02-07 13:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422623', 'tblTempVendorCDR_20' ) end [2025-02-07 13:16:28] Production.INFO: ProcessCDR(1,14422623,1,1,2) [2025-02-07 13:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422623', 'tblTempUsageDetail_20' ) start [2025-02-07 13:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422623', 'tblTempUsageDetail_20' ) end [2025-02-07 13:16:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:16:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:16:33] Production.INFO: ==8892== Releasing lock... [2025-02-07 13:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:16:33] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:17:06 [end_date_ymd] => 2025-02-07 13:17:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:17:06' and `end` < '2025-02-07 13: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-07 13:17:25] Production.INFO: count ==5360 [2025-02-07 13:17:27] Production.ERROR: pbx CDR StartTime 2025-02-07 10:17:06 - End Time 2025-02-07 13:17:06 [2025-02-07 13:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422628', 'tblTempUsageDetail_20' ) start [2025-02-07 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422628', 'tblTempUsageDetail_20' ) end [2025-02-07 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422628', 'tblTempVendorCDR_20' ) start [2025-02-07 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422628', 'tblTempVendorCDR_20' ) end [2025-02-07 13:17:27] Production.INFO: ProcessCDR(1,14422628,1,1,2) [2025-02-07 13:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422628', 'tblTempUsageDetail_20' ) start [2025-02-07 13:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422628', 'tblTempUsageDetail_20' ) end [2025-02-07 13:17:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:17:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:17:33] Production.INFO: ==8975== Releasing lock... [2025-02-07 13:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:17:33] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:18:06 [end_date_ymd] => 2025-02-07 13:18:06 [RateCDR] => 1 ) [2025-02-07 13:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:18:06' and `end` < '2025-02-07 13:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:18:24] Production.INFO: count ==5369 [2025-02-07 13:18:26] Production.ERROR: pbx CDR StartTime 2025-02-07 10:18:06 - End Time 2025-02-07 13:18:06 [2025-02-07 13:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422633', 'tblTempUsageDetail_20' ) start [2025-02-07 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422633', 'tblTempUsageDetail_20' ) end [2025-02-07 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422633', 'tblTempVendorCDR_20' ) start [2025-02-07 13:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422633', 'tblTempVendorCDR_20' ) end [2025-02-07 13:18:27] Production.INFO: ProcessCDR(1,14422633,1,1,2) [2025-02-07 13:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422633', 'tblTempUsageDetail_20' ) start [2025-02-07 13:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422633', 'tblTempUsageDetail_20' ) end [2025-02-07 13:18:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:18:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:18:32] Production.INFO: ==9059== Releasing lock... [2025-02-07 13:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:18:32] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:19:06 [end_date_ymd] => 2025-02-07 13:19:06 [RateCDR] => 1 ) [2025-02-07 13:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:19:06' and `end` < '2025-02-07 13:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:19:21] Production.INFO: count ==5365 [2025-02-07 13:19:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:19:06 - End Time 2025-02-07 13:19:06 [2025-02-07 13:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422638', 'tblTempUsageDetail_20' ) start [2025-02-07 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422638', 'tblTempUsageDetail_20' ) end [2025-02-07 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422638', 'tblTempVendorCDR_20' ) start [2025-02-07 13:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422638', 'tblTempVendorCDR_20' ) end [2025-02-07 13:19:23] Production.INFO: ProcessCDR(1,14422638,1,1,2) [2025-02-07 13:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422638', 'tblTempUsageDetail_20' ) start [2025-02-07 13:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422638', 'tblTempUsageDetail_20' ) end [2025-02-07 13:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:19:29] Production.INFO: ==9177== Releasing lock... [2025-02-07 13:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:19:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:20:06 [end_date_ymd] => 2025-02-07 13:20:06 [RateCDR] => 1 ) [2025-02-07 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:20:06' and `end` < '2025-02-07 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:20:23] Production.INFO: count ==5363 [2025-02-07 13:20:26] Production.ERROR: pbx CDR StartTime 2025-02-07 10:20:06 - End Time 2025-02-07 13:20:06 [2025-02-07 13:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422644', 'tblTempUsageDetail_20' ) start [2025-02-07 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422644', 'tblTempUsageDetail_20' ) end [2025-02-07 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422644', 'tblTempVendorCDR_20' ) start [2025-02-07 13:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422644', 'tblTempVendorCDR_20' ) end [2025-02-07 13:20:26] Production.INFO: ProcessCDR(1,14422644,1,1,2) [2025-02-07 13:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422644', 'tblTempUsageDetail_20' ) start [2025-02-07 13:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422644', 'tblTempUsageDetail_20' ) end [2025-02-07 13:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:20:31] Production.INFO: ==9256== Releasing lock... [2025-02-07 13:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:20:31] Production.INFO: 68.5 MB #Memory Used# [2025-02-07 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:21:05 [end_date_ymd] => 2025-02-07 13:21:05 [RateCDR] => 1 ) [2025-02-07 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:21:05' and `end` < '2025-02-07 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:21:22] Production.INFO: count ==5337 [2025-02-07 13:21:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:21:05 - End Time 2025-02-07 13:21:05 [2025-02-07 13:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422649', 'tblTempUsageDetail_20' ) start [2025-02-07 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422649', 'tblTempUsageDetail_20' ) end [2025-02-07 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422649', 'tblTempVendorCDR_20' ) start [2025-02-07 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422649', 'tblTempVendorCDR_20' ) end [2025-02-07 13:21:25] Production.INFO: ProcessCDR(1,14422649,1,1,2) [2025-02-07 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422649', 'tblTempUsageDetail_20' ) start [2025-02-07 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422649', 'tblTempUsageDetail_20' ) end [2025-02-07 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:21:30] Production.INFO: ==9339== Releasing lock... [2025-02-07 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:21:30] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:22:05 [end_date_ymd] => 2025-02-07 13:22:05 [RateCDR] => 1 ) [2025-02-07 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:22:05' and `end` < '2025-02-07 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:22:20] Production.INFO: count ==5348 [2025-02-07 13:22:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:22:05 - End Time 2025-02-07 13:22:05 [2025-02-07 13:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422654', 'tblTempUsageDetail_20' ) start [2025-02-07 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422654', 'tblTempUsageDetail_20' ) end [2025-02-07 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422654', 'tblTempVendorCDR_20' ) start [2025-02-07 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422654', 'tblTempVendorCDR_20' ) end [2025-02-07 13:22:23] Production.INFO: ProcessCDR(1,14422654,1,1,2) [2025-02-07 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422654', 'tblTempUsageDetail_20' ) start [2025-02-07 13:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422654', 'tblTempUsageDetail_20' ) end [2025-02-07 13:22:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:22:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:22:28] Production.INFO: ==9418== Releasing lock... [2025-02-07 13:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:22:28] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:23:06 [end_date_ymd] => 2025-02-07 13:23:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:23:06' and `end` < '2025-02-07 13: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-07 13:23:20] Production.INFO: count ==5358 [2025-02-07 13:23:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:23:06 - End Time 2025-02-07 13:23:06 [2025-02-07 13:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422659', 'tblTempUsageDetail_20' ) start [2025-02-07 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422659', 'tblTempUsageDetail_20' ) end [2025-02-07 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422659', 'tblTempVendorCDR_20' ) start [2025-02-07 13:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422659', 'tblTempVendorCDR_20' ) end [2025-02-07 13:23:23] Production.INFO: ProcessCDR(1,14422659,1,1,2) [2025-02-07 13:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422659', 'tblTempUsageDetail_20' ) start [2025-02-07 13:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422659', 'tblTempUsageDetail_20' ) end [2025-02-07 13:23:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:23:29] Production.INFO: ==9500== Releasing lock... [2025-02-07 13:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:23:29] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:24:06 [end_date_ymd] => 2025-02-07 13:24:06 [RateCDR] => 1 ) [2025-02-07 13:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:24:06' and `end` < '2025-02-07 13:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:24:22] Production.INFO: count ==5356 [2025-02-07 13:24:25] Production.ERROR: pbx CDR StartTime 2025-02-07 10:24:06 - End Time 2025-02-07 13:24:06 [2025-02-07 13:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422664', 'tblTempUsageDetail_20' ) start [2025-02-07 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422664', 'tblTempUsageDetail_20' ) end [2025-02-07 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422664', 'tblTempVendorCDR_20' ) start [2025-02-07 13:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422664', 'tblTempVendorCDR_20' ) end [2025-02-07 13:24:25] Production.INFO: ProcessCDR(1,14422664,1,1,2) [2025-02-07 13:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422664', 'tblTempUsageDetail_20' ) start [2025-02-07 13:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422664', 'tblTempUsageDetail_20' ) end [2025-02-07 13:24:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:24:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:24:31] Production.INFO: ==9578== Releasing lock... [2025-02-07 13:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:24:31] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:25:06 [end_date_ymd] => 2025-02-07 13:25:06 [RateCDR] => 1 ) [2025-02-07 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:25:06' and `end` < '2025-02-07 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:25:20] Production.INFO: count ==5355 [2025-02-07 13:25:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:25:06 - End Time 2025-02-07 13:25:06 [2025-02-07 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422669', 'tblTempUsageDetail_20' ) start [2025-02-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422669', 'tblTempUsageDetail_20' ) end [2025-02-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422669', 'tblTempVendorCDR_20' ) start [2025-02-07 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422669', 'tblTempVendorCDR_20' ) end [2025-02-07 13:25:22] Production.INFO: ProcessCDR(1,14422669,1,1,2) [2025-02-07 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422669', 'tblTempUsageDetail_20' ) start [2025-02-07 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422669', 'tblTempUsageDetail_20' ) end [2025-02-07 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:25:27] Production.INFO: ==9661== Releasing lock... [2025-02-07 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:25:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:26:05 [end_date_ymd] => 2025-02-07 13:26:05 [RateCDR] => 1 ) [2025-02-07 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:26:05' and `end` < '2025-02-07 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:26:19] Production.INFO: count ==5348 [2025-02-07 13:26:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:26:05 - End Time 2025-02-07 13:26:05 [2025-02-07 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422674', 'tblTempUsageDetail_20' ) start [2025-02-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422674', 'tblTempUsageDetail_20' ) end [2025-02-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422674', 'tblTempVendorCDR_20' ) start [2025-02-07 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422674', 'tblTempVendorCDR_20' ) end [2025-02-07 13:26:22] Production.INFO: ProcessCDR(1,14422674,1,1,2) [2025-02-07 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422674', 'tblTempUsageDetail_20' ) start [2025-02-07 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422674', 'tblTempUsageDetail_20' ) end [2025-02-07 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:26:28] Production.INFO: ==9741== Releasing lock... [2025-02-07 13:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:26:28] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:27:05 [end_date_ymd] => 2025-02-07 13:27:05 [RateCDR] => 1 ) [2025-02-07 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:27:05' and `end` < '2025-02-07 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:27:20] Production.INFO: count ==5348 [2025-02-07 13:27:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:27:05 - End Time 2025-02-07 13:27:05 [2025-02-07 13:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422679', 'tblTempUsageDetail_20' ) start [2025-02-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422679', 'tblTempUsageDetail_20' ) end [2025-02-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422679', 'tblTempVendorCDR_20' ) start [2025-02-07 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422679', 'tblTempVendorCDR_20' ) end [2025-02-07 13:27:22] Production.INFO: ProcessCDR(1,14422679,1,1,2) [2025-02-07 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422679', 'tblTempUsageDetail_20' ) start [2025-02-07 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422679', 'tblTempUsageDetail_20' ) end [2025-02-07 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:27:27] Production.INFO: ==9819== Releasing lock... [2025-02-07 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:27:27] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:28:06 [end_date_ymd] => 2025-02-07 13:28:06 [RateCDR] => 1 ) [2025-02-07 13:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:28:06' and `end` < '2025-02-07 13:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:28:23] Production.INFO: count ==5344 [2025-02-07 13:28:25] Production.ERROR: pbx CDR StartTime 2025-02-07 10:28:06 - End Time 2025-02-07 13:28:06 [2025-02-07 13:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422684', 'tblTempUsageDetail_20' ) start [2025-02-07 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422684', 'tblTempUsageDetail_20' ) end [2025-02-07 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422684', 'tblTempVendorCDR_20' ) start [2025-02-07 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422684', 'tblTempVendorCDR_20' ) end [2025-02-07 13:28:26] Production.INFO: ProcessCDR(1,14422684,1,1,2) [2025-02-07 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422684', 'tblTempUsageDetail_20' ) start [2025-02-07 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422684', 'tblTempUsageDetail_20' ) end [2025-02-07 13:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:28:31] Production.INFO: ==9897== Releasing lock... [2025-02-07 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:28:31] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:29:06 [end_date_ymd] => 2025-02-07 13:29:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:29:06' and `end` < '2025-02-07 13: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-07 13:29:21] Production.INFO: count ==5352 [2025-02-07 13:29:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:29:06 - End Time 2025-02-07 13:29:06 [2025-02-07 13:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422689', 'tblTempUsageDetail_20' ) start [2025-02-07 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422689', 'tblTempUsageDetail_20' ) end [2025-02-07 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422689', 'tblTempVendorCDR_20' ) start [2025-02-07 13:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422689', 'tblTempVendorCDR_20' ) end [2025-02-07 13:29:24] Production.INFO: ProcessCDR(1,14422689,1,1,2) [2025-02-07 13:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422689', 'tblTempUsageDetail_20' ) start [2025-02-07 13:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422689', 'tblTempUsageDetail_20' ) end [2025-02-07 13:29:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:29:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:29:29] Production.INFO: ==9980== Releasing lock... [2025-02-07 13:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:29:29] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:30:06 [end_date_ymd] => 2025-02-07 13:30:06 [RateCDR] => 1 ) [2025-02-07 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:30:06' and `end` < '2025-02-07 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:30:28] Production.INFO: count ==5348 [2025-02-07 13:30:30] Production.ERROR: pbx CDR StartTime 2025-02-07 10:30:06 - End Time 2025-02-07 13:30:06 [2025-02-07 13:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422695', 'tblTempUsageDetail_20' ) start [2025-02-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422695', 'tblTempUsageDetail_20' ) end [2025-02-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422695', 'tblTempVendorCDR_20' ) start [2025-02-07 13:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422695', 'tblTempVendorCDR_20' ) end [2025-02-07 13:30:30] Production.INFO: ProcessCDR(1,14422695,1,1,2) [2025-02-07 13:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:30:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422695', 'tblTempUsageDetail_20' ) start [2025-02-07 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422695', 'tblTempUsageDetail_20' ) end [2025-02-07 13:30:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:30:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:30:35] Production.INFO: ==10060== Releasing lock... [2025-02-07 13:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:30:35] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:31:06 [end_date_ymd] => 2025-02-07 13:31:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:31:06' and `end` < '2025-02-07 13: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-07 13:31:31] Production.INFO: count ==5354 [2025-02-07 13:31:33] Production.ERROR: pbx CDR StartTime 2025-02-07 10:31:06 - End Time 2025-02-07 13:31:06 [2025-02-07 13:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422700', 'tblTempUsageDetail_20' ) start [2025-02-07 13:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422700', 'tblTempUsageDetail_20' ) end [2025-02-07 13:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422700', 'tblTempVendorCDR_20' ) start [2025-02-07 13:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422700', 'tblTempVendorCDR_20' ) end [2025-02-07 13:31:33] Production.INFO: ProcessCDR(1,14422700,1,1,2) [2025-02-07 13:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422700', 'tblTempUsageDetail_20' ) start [2025-02-07 13:31:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422700', 'tblTempUsageDetail_20' ) end [2025-02-07 13:31:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:31:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:31:39] Production.INFO: ==10142== Releasing lock... [2025-02-07 13:31:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:31:39] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:32:05 [end_date_ymd] => 2025-02-07 13:32:05 [RateCDR] => 1 ) [2025-02-07 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:32:05' and `end` < '2025-02-07 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:32:23] Production.INFO: count ==5341 [2025-02-07 13:32:25] Production.ERROR: pbx CDR StartTime 2025-02-07 10:32:05 - End Time 2025-02-07 13:32:05 [2025-02-07 13:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422705', 'tblTempUsageDetail_20' ) start [2025-02-07 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422705', 'tblTempUsageDetail_20' ) end [2025-02-07 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422705', 'tblTempVendorCDR_20' ) start [2025-02-07 13:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422705', 'tblTempVendorCDR_20' ) end [2025-02-07 13:32:25] Production.INFO: ProcessCDR(1,14422705,1,1,2) [2025-02-07 13:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422705', 'tblTempUsageDetail_20' ) start [2025-02-07 13:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422705', 'tblTempUsageDetail_20' ) end [2025-02-07 13:32:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:32:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:32:31] Production.INFO: ==10225== Releasing lock... [2025-02-07 13:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:32:31] Production.INFO: 68 MB #Memory Used# [2025-02-07 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:33:05 [end_date_ymd] => 2025-02-07 13:33:05 [RateCDR] => 1 ) [2025-02-07 13:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:33:05' and `end` < '2025-02-07 13:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:33:19] Production.INFO: count ==5326 [2025-02-07 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-07 10:33:05 - End Time 2025-02-07 13:33:05 [2025-02-07 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422710', 'tblTempUsageDetail_20' ) start [2025-02-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422710', 'tblTempUsageDetail_20' ) end [2025-02-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422710', 'tblTempVendorCDR_20' ) start [2025-02-07 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422710', 'tblTempVendorCDR_20' ) end [2025-02-07 13:33:21] Production.INFO: ProcessCDR(1,14422710,1,1,2) [2025-02-07 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422710', 'tblTempUsageDetail_20' ) start [2025-02-07 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422710', 'tblTempUsageDetail_20' ) end [2025-02-07 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:33:25] Production.INFO: ==10303== Releasing lock... [2025-02-07 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:33:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:34:05 [end_date_ymd] => 2025-02-07 13:34:05 [RateCDR] => 1 ) [2025-02-07 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:34:05' and `end` < '2025-02-07 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:34:20] Production.INFO: count ==5320 [2025-02-07 13:34:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:34:05 - End Time 2025-02-07 13:34:05 [2025-02-07 13:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422715', 'tblTempUsageDetail_20' ) start [2025-02-07 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422715', 'tblTempUsageDetail_20' ) end [2025-02-07 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422715', 'tblTempVendorCDR_20' ) start [2025-02-07 13:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422715', 'tblTempVendorCDR_20' ) end [2025-02-07 13:34:23] Production.INFO: ProcessCDR(1,14422715,1,1,2) [2025-02-07 13:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422715', 'tblTempUsageDetail_20' ) start [2025-02-07 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422715', 'tblTempUsageDetail_20' ) end [2025-02-07 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:34:28] Production.INFO: ==10383== Releasing lock... [2025-02-07 13:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:34:28] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:35:05 [end_date_ymd] => 2025-02-07 13:35:05 [RateCDR] => 1 ) [2025-02-07 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:35:05' and `end` < '2025-02-07 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:35:28] Production.INFO: count ==5329 [2025-02-07 13:35:30] Production.ERROR: pbx CDR StartTime 2025-02-07 10:35:05 - End Time 2025-02-07 13:35:05 [2025-02-07 13:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422720', 'tblTempUsageDetail_20' ) start [2025-02-07 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422720', 'tblTempUsageDetail_20' ) end [2025-02-07 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422720', 'tblTempVendorCDR_20' ) start [2025-02-07 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422720', 'tblTempVendorCDR_20' ) end [2025-02-07 13:35:30] Production.INFO: ProcessCDR(1,14422720,1,1,2) [2025-02-07 13:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422720', 'tblTempUsageDetail_20' ) start [2025-02-07 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422720', 'tblTempUsageDetail_20' ) end [2025-02-07 13:35:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:35:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:35:36] Production.INFO: ==10501== Releasing lock... [2025-02-07 13:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:35:36] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:36:05 [end_date_ymd] => 2025-02-07 13:36:05 [RateCDR] => 1 ) [2025-02-07 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:36:05' and `end` < '2025-02-07 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:36:22] Production.INFO: count ==5316 [2025-02-07 13:36:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:36:05 - End Time 2025-02-07 13:36:05 [2025-02-07 13:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422725', 'tblTempUsageDetail_20' ) start [2025-02-07 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422725', 'tblTempUsageDetail_20' ) end [2025-02-07 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422725', 'tblTempVendorCDR_20' ) start [2025-02-07 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422725', 'tblTempVendorCDR_20' ) end [2025-02-07 13:36:24] Production.INFO: ProcessCDR(1,14422725,1,1,2) [2025-02-07 13:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422725', 'tblTempUsageDetail_20' ) start [2025-02-07 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422725', 'tblTempUsageDetail_20' ) end [2025-02-07 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:36:27] Production.INFO: ==10576== Releasing lock... [2025-02-07 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:36:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:37:06 [end_date_ymd] => 2025-02-07 13:37:06 [RateCDR] => 1 ) [2025-02-07 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:37:06' and `end` < '2025-02-07 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:37:19] Production.INFO: count ==5280 [2025-02-07 13:37:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:37:06 - End Time 2025-02-07 13:37:06 [2025-02-07 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422730', 'tblTempUsageDetail_20' ) start [2025-02-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422730', 'tblTempUsageDetail_20' ) end [2025-02-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422730', 'tblTempVendorCDR_20' ) start [2025-02-07 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422730', 'tblTempVendorCDR_20' ) end [2025-02-07 13:37:22] Production.INFO: ProcessCDR(1,14422730,1,1,2) [2025-02-07 13:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422730', 'tblTempUsageDetail_20' ) start [2025-02-07 13:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422730', 'tblTempUsageDetail_20' ) end [2025-02-07 13:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:37:27] Production.INFO: ==10656== Releasing lock... [2025-02-07 13:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:37:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:38:05 [end_date_ymd] => 2025-02-07 13:38:05 [RateCDR] => 1 ) [2025-02-07 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:38:05' and `end` < '2025-02-07 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:38:20] Production.INFO: count ==5227 [2025-02-07 13:38:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:38:05 - End Time 2025-02-07 13:38:05 [2025-02-07 13:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422735', 'tblTempUsageDetail_20' ) start [2025-02-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422735', 'tblTempUsageDetail_20' ) end [2025-02-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422735', 'tblTempVendorCDR_20' ) start [2025-02-07 13:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422735', 'tblTempVendorCDR_20' ) end [2025-02-07 13:38:22] Production.INFO: ProcessCDR(1,14422735,1,1,2) [2025-02-07 13:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422735', 'tblTempUsageDetail_20' ) start [2025-02-07 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422735', 'tblTempUsageDetail_20' ) end [2025-02-07 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:38:27] Production.INFO: ==10737== Releasing lock... [2025-02-07 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:39:05 [end_date_ymd] => 2025-02-07 13:39:05 [RateCDR] => 1 ) [2025-02-07 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:39:05' and `end` < '2025-02-07 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:39:21] Production.INFO: count ==5201 [2025-02-07 13:39:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:39:05 - End Time 2025-02-07 13:39:05 [2025-02-07 13:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422740', 'tblTempUsageDetail_20' ) start [2025-02-07 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422740', 'tblTempUsageDetail_20' ) end [2025-02-07 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422740', 'tblTempVendorCDR_20' ) start [2025-02-07 13:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422740', 'tblTempVendorCDR_20' ) end [2025-02-07 13:39:23] Production.INFO: ProcessCDR(1,14422740,1,1,2) [2025-02-07 13:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422740', 'tblTempUsageDetail_20' ) start [2025-02-07 13:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422740', 'tblTempUsageDetail_20' ) end [2025-02-07 13:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:39:28] Production.INFO: ==10817== Releasing lock... [2025-02-07 13:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:39:28] Production.INFO: 67 MB #Memory Used# [2025-02-07 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:40:05 [end_date_ymd] => 2025-02-07 13:40:05 [RateCDR] => 1 ) [2025-02-07 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:40:05' and `end` < '2025-02-07 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:40:20] Production.INFO: count ==5176 [2025-02-07 13:40:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:40:05 - End Time 2025-02-07 13:40:05 [2025-02-07 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422746', 'tblTempUsageDetail_20' ) start [2025-02-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422746', 'tblTempUsageDetail_20' ) end [2025-02-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422746', 'tblTempVendorCDR_20' ) start [2025-02-07 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422746', 'tblTempVendorCDR_20' ) end [2025-02-07 13:40:22] Production.INFO: ProcessCDR(1,14422746,1,1,2) [2025-02-07 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422746', 'tblTempUsageDetail_20' ) start [2025-02-07 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422746', 'tblTempUsageDetail_20' ) end [2025-02-07 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:40:28] Production.INFO: ==10898== Releasing lock... [2025-02-07 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:40:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:41:05 [end_date_ymd] => 2025-02-07 13:41:05 [RateCDR] => 1 ) [2025-02-07 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:41:05' and `end` < '2025-02-07 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:41:25] Production.INFO: count ==5160 [2025-02-07 13:41:27] Production.ERROR: pbx CDR StartTime 2025-02-07 10:41:05 - End Time 2025-02-07 13:41:05 [2025-02-07 13:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422751', 'tblTempUsageDetail_20' ) start [2025-02-07 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422751', 'tblTempUsageDetail_20' ) end [2025-02-07 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422751', 'tblTempVendorCDR_20' ) start [2025-02-07 13:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422751', 'tblTempVendorCDR_20' ) end [2025-02-07 13:41:28] Production.INFO: ProcessCDR(1,14422751,1,1,2) [2025-02-07 13:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:41:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422751', 'tblTempUsageDetail_20' ) start [2025-02-07 13:41:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422751', 'tblTempUsageDetail_20' ) end [2025-02-07 13:41:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:41:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:41:32] Production.INFO: ==10978== Releasing lock... [2025-02-07 13:41:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:41:32] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:42:06 [end_date_ymd] => 2025-02-07 13:42:06 [RateCDR] => 1 ) [2025-02-07 13:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:42:06' and `end` < '2025-02-07 13:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:42:21] Production.INFO: count ==5148 [2025-02-07 13:42:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:42:06 - End Time 2025-02-07 13:42:06 [2025-02-07 13:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422756', 'tblTempUsageDetail_20' ) start [2025-02-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422756', 'tblTempUsageDetail_20' ) end [2025-02-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422756', 'tblTempVendorCDR_20' ) start [2025-02-07 13:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422756', 'tblTempVendorCDR_20' ) end [2025-02-07 13:42:23] Production.INFO: ProcessCDR(1,14422756,1,1,2) [2025-02-07 13:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422756', 'tblTempUsageDetail_20' ) start [2025-02-07 13:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422756', 'tblTempUsageDetail_20' ) end [2025-02-07 13:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:42:28] Production.INFO: ==11063== Releasing lock... [2025-02-07 13:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:42:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:43:05 [end_date_ymd] => 2025-02-07 13:43:05 [RateCDR] => 1 ) [2025-02-07 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:43:05' and `end` < '2025-02-07 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:43:20] Production.INFO: count ==5124 [2025-02-07 13:43:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:43:05 - End Time 2025-02-07 13:43:05 [2025-02-07 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422761', 'tblTempUsageDetail_20' ) start [2025-02-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422761', 'tblTempUsageDetail_20' ) end [2025-02-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422761', 'tblTempVendorCDR_20' ) start [2025-02-07 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422761', 'tblTempVendorCDR_20' ) end [2025-02-07 13:43:22] Production.INFO: ProcessCDR(1,14422761,1,1,2) [2025-02-07 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422761', 'tblTempUsageDetail_20' ) start [2025-02-07 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422761', 'tblTempUsageDetail_20' ) end [2025-02-07 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:43:27] Production.INFO: ==11141== Releasing lock... [2025-02-07 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:43:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-07 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:44:05 [end_date_ymd] => 2025-02-07 13:44:05 [RateCDR] => 1 ) [2025-02-07 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:44:05' and `end` < '2025-02-07 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:44:19] Production.INFO: count ==5116 [2025-02-07 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-07 10:44:05 - End Time 2025-02-07 13:44:05 [2025-02-07 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422766', 'tblTempUsageDetail_20' ) start [2025-02-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422766', 'tblTempUsageDetail_20' ) end [2025-02-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422766', 'tblTempVendorCDR_20' ) start [2025-02-07 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422766', 'tblTempVendorCDR_20' ) end [2025-02-07 13:44:21] Production.INFO: ProcessCDR(1,14422766,1,1,2) [2025-02-07 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422766', 'tblTempUsageDetail_20' ) start [2025-02-07 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422766', 'tblTempUsageDetail_20' ) end [2025-02-07 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:44:26] Production.INFO: ==11223== Releasing lock... [2025-02-07 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:44:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-07 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:45:05 [end_date_ymd] => 2025-02-07 13:45:05 [RateCDR] => 1 ) [2025-02-07 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:45:05' and `end` < '2025-02-07 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:45:19] Production.INFO: count ==5096 [2025-02-07 13:45:21] Production.ERROR: pbx CDR StartTime 2025-02-07 10:45:05 - End Time 2025-02-07 13:45:05 [2025-02-07 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422771', 'tblTempUsageDetail_20' ) start [2025-02-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422771', 'tblTempUsageDetail_20' ) end [2025-02-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422771', 'tblTempVendorCDR_20' ) start [2025-02-07 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422771', 'tblTempVendorCDR_20' ) end [2025-02-07 13:45:22] Production.INFO: ProcessCDR(1,14422771,1,1,2) [2025-02-07 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422771', 'tblTempUsageDetail_20' ) start [2025-02-07 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422771', 'tblTempUsageDetail_20' ) end [2025-02-07 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:45:27] Production.INFO: ==11301== Releasing lock... [2025-02-07 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:45:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-07 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:46:06 [end_date_ymd] => 2025-02-07 13:46:06 [RateCDR] => 1 ) [2025-02-07 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:46:06' and `end` < '2025-02-07 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:46:20] Production.INFO: count ==5079 [2025-02-07 13:46:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:46:06 - End Time 2025-02-07 13:46:06 [2025-02-07 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422776', 'tblTempUsageDetail_20' ) start [2025-02-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422776', 'tblTempUsageDetail_20' ) end [2025-02-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422776', 'tblTempVendorCDR_20' ) start [2025-02-07 13:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422776', 'tblTempVendorCDR_20' ) end [2025-02-07 13:46:23] Production.INFO: ProcessCDR(1,14422776,1,1,2) [2025-02-07 13:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422776', 'tblTempUsageDetail_20' ) start [2025-02-07 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422776', 'tblTempUsageDetail_20' ) end [2025-02-07 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:46:26] Production.INFO: ==11385== Releasing lock... [2025-02-07 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:46:26] Production.INFO: 66 MB #Memory Used# [2025-02-07 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:47:05 [end_date_ymd] => 2025-02-07 13:47:05 [RateCDR] => 1 ) [2025-02-07 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:47:05' and `end` < '2025-02-07 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:47:19] Production.INFO: count ==5079 [2025-02-07 13:47:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:47:05 - End Time 2025-02-07 13:47:05 [2025-02-07 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422781', 'tblTempUsageDetail_20' ) start [2025-02-07 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422781', 'tblTempUsageDetail_20' ) end [2025-02-07 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422781', 'tblTempVendorCDR_20' ) start [2025-02-07 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422781', 'tblTempVendorCDR_20' ) end [2025-02-07 13:47:22] Production.INFO: ProcessCDR(1,14422781,1,1,2) [2025-02-07 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422781', 'tblTempUsageDetail_20' ) start [2025-02-07 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422781', 'tblTempUsageDetail_20' ) end [2025-02-07 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:47:27] Production.INFO: ==11461== Releasing lock... [2025-02-07 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:47:27] Production.INFO: 66 MB #Memory Used# [2025-02-07 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:48:06 [end_date_ymd] => 2025-02-07 13:48:06 [RateCDR] => 1 ) [2025-02-07 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:48:06' and `end` < '2025-02-07 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:48:20] Production.INFO: count ==5089 [2025-02-07 13:48:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:48:06 - End Time 2025-02-07 13:48:06 [2025-02-07 13:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422786', 'tblTempUsageDetail_20' ) start [2025-02-07 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422786', 'tblTempUsageDetail_20' ) end [2025-02-07 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422786', 'tblTempVendorCDR_20' ) start [2025-02-07 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422786', 'tblTempVendorCDR_20' ) end [2025-02-07 13:48:23] Production.INFO: ProcessCDR(1,14422786,1,1,2) [2025-02-07 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422786', 'tblTempUsageDetail_20' ) start [2025-02-07 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422786', 'tblTempUsageDetail_20' ) end [2025-02-07 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:48:27] Production.INFO: ==11546== Releasing lock... [2025-02-07 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:48:27] Production.INFO: 66 MB #Memory Used# [2025-02-07 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:49:05 [end_date_ymd] => 2025-02-07 13:49:05 [RateCDR] => 1 ) [2025-02-07 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:49:05' and `end` < '2025-02-07 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:49:18] Production.INFO: count ==5066 [2025-02-07 13:49:21] Production.ERROR: pbx CDR StartTime 2025-02-07 10:49:05 - End Time 2025-02-07 13:49:05 [2025-02-07 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422791', 'tblTempUsageDetail_20' ) start [2025-02-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422791', 'tblTempUsageDetail_20' ) end [2025-02-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422791', 'tblTempVendorCDR_20' ) start [2025-02-07 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422791', 'tblTempVendorCDR_20' ) end [2025-02-07 13:49:21] Production.INFO: ProcessCDR(1,14422791,1,1,2) [2025-02-07 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422791', 'tblTempUsageDetail_20' ) start [2025-02-07 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422791', 'tblTempUsageDetail_20' ) end [2025-02-07 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:49:25] Production.INFO: ==11622== Releasing lock... [2025-02-07 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:49:25] Production.INFO: 66 MB #Memory Used# [2025-02-07 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:50:06 [end_date_ymd] => 2025-02-07 13:50:06 [RateCDR] => 1 ) [2025-02-07 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:50:06' and `end` < '2025-02-07 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:50:20] Production.INFO: count ==5057 [2025-02-07 13:50:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:50:06 - End Time 2025-02-07 13:50:06 [2025-02-07 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422797', 'tblTempUsageDetail_20' ) start [2025-02-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422797', 'tblTempUsageDetail_20' ) end [2025-02-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422797', 'tblTempVendorCDR_20' ) start [2025-02-07 13:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422797', 'tblTempVendorCDR_20' ) end [2025-02-07 13:50:23] Production.INFO: ProcessCDR(1,14422797,1,1,2) [2025-02-07 13:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422797', 'tblTempUsageDetail_20' ) start [2025-02-07 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422797', 'tblTempUsageDetail_20' ) end [2025-02-07 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:50:27] Production.INFO: ==11739== Releasing lock... [2025-02-07 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:50:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:51:05 [end_date_ymd] => 2025-02-07 13:51:05 [RateCDR] => 1 ) [2025-02-07 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:51:05' and `end` < '2025-02-07 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:51:22] Production.INFO: count ==5016 [2025-02-07 13:51:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:51:05 - End Time 2025-02-07 13:51:05 [2025-02-07 13:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422802', 'tblTempUsageDetail_20' ) start [2025-02-07 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422802', 'tblTempUsageDetail_20' ) end [2025-02-07 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422802', 'tblTempVendorCDR_20' ) start [2025-02-07 13:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422802', 'tblTempVendorCDR_20' ) end [2025-02-07 13:51:24] Production.INFO: ProcessCDR(1,14422802,1,1,2) [2025-02-07 13:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422802', 'tblTempUsageDetail_20' ) start [2025-02-07 13:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422802', 'tblTempUsageDetail_20' ) end [2025-02-07 13:51:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:51:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:51:29] Production.INFO: ==11822== Releasing lock... [2025-02-07 13:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:51:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:52:06 [end_date_ymd] => 2025-02-07 13:52:06 [RateCDR] => 1 ) [2025-02-07 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:52:06' and `end` < '2025-02-07 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:52:23] Production.INFO: count ==5010 [2025-02-07 13:52:25] Production.ERROR: pbx CDR StartTime 2025-02-07 10:52:06 - End Time 2025-02-07 13:52:06 [2025-02-07 13:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422807', 'tblTempUsageDetail_20' ) start [2025-02-07 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422807', 'tblTempUsageDetail_20' ) end [2025-02-07 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422807', 'tblTempVendorCDR_20' ) start [2025-02-07 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422807', 'tblTempVendorCDR_20' ) end [2025-02-07 13:52:25] Production.INFO: ProcessCDR(1,14422807,1,1,2) [2025-02-07 13:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422807', 'tblTempUsageDetail_20' ) start [2025-02-07 13:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422807', 'tblTempUsageDetail_20' ) end [2025-02-07 13:52:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:52:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:52:30] Production.INFO: ==11908== Releasing lock... [2025-02-07 13:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:52:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:53:05 [end_date_ymd] => 2025-02-07 13:53:05 [RateCDR] => 1 ) [2025-02-07 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:53:05' and `end` < '2025-02-07 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:53:20] Production.INFO: count ==4994 [2025-02-07 13:53:22] Production.ERROR: pbx CDR StartTime 2025-02-07 10:53:05 - End Time 2025-02-07 13:53:05 [2025-02-07 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422812', 'tblTempUsageDetail_20' ) start [2025-02-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422812', 'tblTempUsageDetail_20' ) end [2025-02-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422812', 'tblTempVendorCDR_20' ) start [2025-02-07 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422812', 'tblTempVendorCDR_20' ) end [2025-02-07 13:53:22] Production.INFO: ProcessCDR(1,14422812,1,1,2) [2025-02-07 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422812', 'tblTempUsageDetail_20' ) start [2025-02-07 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422812', 'tblTempUsageDetail_20' ) end [2025-02-07 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:53:27] Production.INFO: ==11985== Releasing lock... [2025-02-07 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:53:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:54:05 [end_date_ymd] => 2025-02-07 13:54:05 [RateCDR] => 1 ) [2025-02-07 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:54:05' and `end` < '2025-02-07 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:54:22] Production.INFO: count ==4989 [2025-02-07 13:54:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:54:05 - End Time 2025-02-07 13:54:05 [2025-02-07 13:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422817', 'tblTempUsageDetail_20' ) start [2025-02-07 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422817', 'tblTempUsageDetail_20' ) end [2025-02-07 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422817', 'tblTempVendorCDR_20' ) start [2025-02-07 13:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422817', 'tblTempVendorCDR_20' ) end [2025-02-07 13:54:24] Production.INFO: ProcessCDR(1,14422817,1,1,2) [2025-02-07 13:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422817', 'tblTempUsageDetail_20' ) start [2025-02-07 13:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422817', 'tblTempUsageDetail_20' ) end [2025-02-07 13:54:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:54:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:54:29] Production.INFO: ==12064== Releasing lock... [2025-02-07 13:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:54:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:55:05 [end_date_ymd] => 2025-02-07 13:55:05 [RateCDR] => 1 ) [2025-02-07 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:55:05' and `end` < '2025-02-07 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:55:21] Production.INFO: count ==4994 [2025-02-07 13:55:23] Production.ERROR: pbx CDR StartTime 2025-02-07 10:55:05 - End Time 2025-02-07 13:55:05 [2025-02-07 13:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422822', 'tblTempUsageDetail_20' ) start [2025-02-07 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422822', 'tblTempUsageDetail_20' ) end [2025-02-07 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422822', 'tblTempVendorCDR_20' ) start [2025-02-07 13:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422822', 'tblTempVendorCDR_20' ) end [2025-02-07 13:55:23] Production.INFO: ProcessCDR(1,14422822,1,1,2) [2025-02-07 13:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:55:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:55:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422822', 'tblTempUsageDetail_20' ) start [2025-02-07 13:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422822', 'tblTempUsageDetail_20' ) end [2025-02-07 13:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:55:28] Production.INFO: ==12142== Releasing lock... [2025-02-07 13:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:55:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:56:06 [end_date_ymd] => 2025-02-07 13:56:06 [RateCDR] => 1 ) [2025-02-07 13: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-07 10:56:06' and `end` < '2025-02-07 13: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-07 13:56:19] Production.INFO: count ==4975 [2025-02-07 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-07 10:56:06 - End Time 2025-02-07 13:56:06 [2025-02-07 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422827', 'tblTempUsageDetail_20' ) start [2025-02-07 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422827', 'tblTempUsageDetail_20' ) end [2025-02-07 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422827', 'tblTempVendorCDR_20' ) start [2025-02-07 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422827', 'tblTempVendorCDR_20' ) end [2025-02-07 13:56:22] Production.INFO: ProcessCDR(1,14422827,1,1,2) [2025-02-07 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422827', 'tblTempUsageDetail_20' ) start [2025-02-07 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422827', 'tblTempUsageDetail_20' ) end [2025-02-07 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:56:26] Production.INFO: ==12223== Releasing lock... [2025-02-07 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:56:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:57:05 [end_date_ymd] => 2025-02-07 13:57:05 [RateCDR] => 1 ) [2025-02-07 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:57:05' and `end` < '2025-02-07 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:57:22] Production.INFO: count ==4984 [2025-02-07 13:57:24] Production.ERROR: pbx CDR StartTime 2025-02-07 10:57:05 - End Time 2025-02-07 13:57:05 [2025-02-07 13:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422832', 'tblTempUsageDetail_20' ) start [2025-02-07 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422832', 'tblTempUsageDetail_20' ) end [2025-02-07 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422832', 'tblTempVendorCDR_20' ) start [2025-02-07 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422832', 'tblTempVendorCDR_20' ) end [2025-02-07 13:57:24] Production.INFO: ProcessCDR(1,14422832,1,1,2) [2025-02-07 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422832', 'tblTempUsageDetail_20' ) start [2025-02-07 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422832', 'tblTempUsageDetail_20' ) end [2025-02-07 13:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:57:29] Production.INFO: ==12302== Releasing lock... [2025-02-07 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:57:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:58:05 [end_date_ymd] => 2025-02-07 13:58:05 [RateCDR] => 1 ) [2025-02-07 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:58:05' and `end` < '2025-02-07 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:58:24] Production.INFO: count ==4976 [2025-02-07 13:58:26] Production.ERROR: pbx CDR StartTime 2025-02-07 10:58:05 - End Time 2025-02-07 13:58:05 [2025-02-07 13:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422837', 'tblTempUsageDetail_20' ) start [2025-02-07 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422837', 'tblTempUsageDetail_20' ) end [2025-02-07 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422837', 'tblTempVendorCDR_20' ) start [2025-02-07 13:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422837', 'tblTempVendorCDR_20' ) end [2025-02-07 13:58:26] Production.INFO: ProcessCDR(1,14422837,1,1,2) [2025-02-07 13:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422837', 'tblTempUsageDetail_20' ) start [2025-02-07 13:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422837', 'tblTempUsageDetail_20' ) end [2025-02-07 13:58:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:58:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:58:31] Production.INFO: ==12380== Releasing lock... [2025-02-07 13:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:58:31] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 10:59:05 [end_date_ymd] => 2025-02-07 13:59:05 [RateCDR] => 1 ) [2025-02-07 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 10:59:05' and `end` < '2025-02-07 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 13:59:19] Production.INFO: count ==4997 [2025-02-07 13:59:21] Production.ERROR: pbx CDR StartTime 2025-02-07 10:59:05 - End Time 2025-02-07 13:59:05 [2025-02-07 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422842', 'tblTempUsageDetail_20' ) start [2025-02-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422842', 'tblTempUsageDetail_20' ) end [2025-02-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422842', 'tblTempVendorCDR_20' ) start [2025-02-07 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422842', 'tblTempVendorCDR_20' ) end [2025-02-07 13:59:21] Production.INFO: ProcessCDR(1,14422842,1,1,2) [2025-02-07 13:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422842', 'tblTempUsageDetail_20' ) start [2025-02-07 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422842', 'tblTempUsageDetail_20' ) end [2025-02-07 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 13:59:26] Production.INFO: ==12459== Releasing lock... [2025-02-07 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 13:59:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:00:06 [end_date_ymd] => 2025-02-07 14:00:06 [RateCDR] => 1 ) [2025-02-07 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:00:06' and `end` < '2025-02-07 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:00:20] Production.INFO: count ==4987 [2025-02-07 14:00:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:00:06 - End Time 2025-02-07 14:00:06 [2025-02-07 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422848', 'tblTempUsageDetail_20' ) start [2025-02-07 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422848', 'tblTempUsageDetail_20' ) end [2025-02-07 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422848', 'tblTempVendorCDR_20' ) start [2025-02-07 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422848', 'tblTempVendorCDR_20' ) end [2025-02-07 14:00:22] Production.INFO: ProcessCDR(1,14422848,1,1,2) [2025-02-07 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422848', 'tblTempUsageDetail_20' ) start [2025-02-07 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422848', 'tblTempUsageDetail_20' ) end [2025-02-07 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:00:28] Production.INFO: ==12546== Releasing lock... [2025-02-07 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:00:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:01:06 [end_date_ymd] => 2025-02-07 14:01:06 [RateCDR] => 1 ) [2025-02-07 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:01:06' and `end` < '2025-02-07 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:01:20] Production.INFO: count ==4971 [2025-02-07 14:01:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:01:06 - End Time 2025-02-07 14:01:06 [2025-02-07 14:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422853', 'tblTempUsageDetail_20' ) start [2025-02-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422853', 'tblTempUsageDetail_20' ) end [2025-02-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422853', 'tblTempVendorCDR_20' ) start [2025-02-07 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422853', 'tblTempVendorCDR_20' ) end [2025-02-07 14:01:22] Production.INFO: ProcessCDR(1,14422853,1,1,2) [2025-02-07 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422853', 'tblTempUsageDetail_20' ) start [2025-02-07 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422853', 'tblTempUsageDetail_20' ) end [2025-02-07 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:01:27] Production.INFO: ==12639== Releasing lock... [2025-02-07 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:01:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:02:05 [end_date_ymd] => 2025-02-07 14:02:05 [RateCDR] => 1 ) [2025-02-07 14:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:02:05' and `end` < '2025-02-07 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:02:28] Production.INFO: count ==4964 [2025-02-07 14:02:30] Production.ERROR: pbx CDR StartTime 2025-02-07 11:02:05 - End Time 2025-02-07 14:02:05 [2025-02-07 14:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422858', 'tblTempUsageDetail_20' ) start [2025-02-07 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422858', 'tblTempUsageDetail_20' ) end [2025-02-07 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422858', 'tblTempVendorCDR_20' ) start [2025-02-07 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422858', 'tblTempVendorCDR_20' ) end [2025-02-07 14:02:30] Production.INFO: ProcessCDR(1,14422858,1,1,2) [2025-02-07 14:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422858', 'tblTempUsageDetail_20' ) start [2025-02-07 14:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422858', 'tblTempUsageDetail_20' ) end [2025-02-07 14:02:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:02:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:02:35] Production.INFO: ==12715== Releasing lock... [2025-02-07 14:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:02:35] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:03:05 [end_date_ymd] => 2025-02-07 14:03:05 [RateCDR] => 1 ) [2025-02-07 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:03:05' and `end` < '2025-02-07 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:03:21] Production.INFO: count ==4971 [2025-02-07 14:03:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:03:05 - End Time 2025-02-07 14:03:05 [2025-02-07 14:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422863', 'tblTempUsageDetail_20' ) start [2025-02-07 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422863', 'tblTempUsageDetail_20' ) end [2025-02-07 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422863', 'tblTempVendorCDR_20' ) start [2025-02-07 14:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422863', 'tblTempVendorCDR_20' ) end [2025-02-07 14:03:24] Production.INFO: ProcessCDR(1,14422863,1,1,2) [2025-02-07 14:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422863', 'tblTempUsageDetail_20' ) start [2025-02-07 14:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422863', 'tblTempUsageDetail_20' ) end [2025-02-07 14:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:03:29] Production.INFO: ==12786== Releasing lock... [2025-02-07 14:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:03:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:04:06 [end_date_ymd] => 2025-02-07 14:04:06 [RateCDR] => 1 ) [2025-02-07 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:04:06' and `end` < '2025-02-07 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:04:21] Production.INFO: count ==4982 [2025-02-07 14:04:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:04:06 - End Time 2025-02-07 14:04:06 [2025-02-07 14:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422868', 'tblTempUsageDetail_20' ) start [2025-02-07 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422868', 'tblTempUsageDetail_20' ) end [2025-02-07 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422868', 'tblTempVendorCDR_20' ) start [2025-02-07 14:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422868', 'tblTempVendorCDR_20' ) end [2025-02-07 14:04:24] Production.INFO: ProcessCDR(1,14422868,1,1,2) [2025-02-07 14:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422868', 'tblTempUsageDetail_20' ) start [2025-02-07 14:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422868', 'tblTempUsageDetail_20' ) end [2025-02-07 14:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:04:29] Production.INFO: ==12858== Releasing lock... [2025-02-07 14:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:04:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:05:05 [end_date_ymd] => 2025-02-07 14:05:05 [RateCDR] => 1 ) [2025-02-07 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:05:05' and `end` < '2025-02-07 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:05:19] Production.INFO: count ==4982 [2025-02-07 14:05:21] Production.ERROR: pbx CDR StartTime 2025-02-07 11:05:05 - End Time 2025-02-07 14:05:05 [2025-02-07 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422873', 'tblTempUsageDetail_20' ) start [2025-02-07 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422873', 'tblTempUsageDetail_20' ) end [2025-02-07 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422873', 'tblTempVendorCDR_20' ) start [2025-02-07 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422873', 'tblTempVendorCDR_20' ) end [2025-02-07 14:05:21] Production.INFO: ProcessCDR(1,14422873,1,1,2) [2025-02-07 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422873', 'tblTempUsageDetail_20' ) start [2025-02-07 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422873', 'tblTempUsageDetail_20' ) end [2025-02-07 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:05:26] Production.INFO: ==12935== Releasing lock... [2025-02-07 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:05:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:06:06 [end_date_ymd] => 2025-02-07 14:06:06 [RateCDR] => 1 ) [2025-02-07 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:06:06' and `end` < '2025-02-07 14:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:06:26] Production.INFO: count ==5001 [2025-02-07 14:06:29] Production.ERROR: pbx CDR StartTime 2025-02-07 11:06:06 - End Time 2025-02-07 14:06:06 [2025-02-07 14:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422878', 'tblTempUsageDetail_20' ) start [2025-02-07 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422878', 'tblTempUsageDetail_20' ) end [2025-02-07 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422878', 'tblTempVendorCDR_20' ) start [2025-02-07 14:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422878', 'tblTempVendorCDR_20' ) end [2025-02-07 14:06:29] Production.INFO: ProcessCDR(1,14422878,1,1,2) [2025-02-07 14:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422878', 'tblTempUsageDetail_20' ) start [2025-02-07 14:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422878', 'tblTempUsageDetail_20' ) end [2025-02-07 14:06:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:06:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:06:34] Production.INFO: ==13052== Releasing lock... [2025-02-07 14:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:06:34] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:07:05 [end_date_ymd] => 2025-02-07 14:07:05 [RateCDR] => 1 ) [2025-02-07 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:07:05' and `end` < '2025-02-07 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:07:23] Production.INFO: count ==4998 [2025-02-07 14:07:25] Production.ERROR: pbx CDR StartTime 2025-02-07 11:07:05 - End Time 2025-02-07 14:07:05 [2025-02-07 14:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422883', 'tblTempUsageDetail_20' ) start [2025-02-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422883', 'tblTempUsageDetail_20' ) end [2025-02-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422883', 'tblTempVendorCDR_20' ) start [2025-02-07 14:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422883', 'tblTempVendorCDR_20' ) end [2025-02-07 14:07:25] Production.INFO: ProcessCDR(1,14422883,1,1,2) [2025-02-07 14:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422883', 'tblTempUsageDetail_20' ) start [2025-02-07 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422883', 'tblTempUsageDetail_20' ) end [2025-02-07 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:07:31] Production.INFO: ==13129== Releasing lock... [2025-02-07 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:07:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:08:05 [end_date_ymd] => 2025-02-07 14:08:05 [RateCDR] => 1 ) [2025-02-07 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:08:05' and `end` < '2025-02-07 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:08:21] Production.INFO: count ==5024 [2025-02-07 14:08:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:08:05 - End Time 2025-02-07 14:08:05 [2025-02-07 14:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422888', 'tblTempUsageDetail_20' ) start [2025-02-07 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422888', 'tblTempUsageDetail_20' ) end [2025-02-07 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422888', 'tblTempVendorCDR_20' ) start [2025-02-07 14:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422888', 'tblTempVendorCDR_20' ) end [2025-02-07 14:08:24] Production.INFO: ProcessCDR(1,14422888,1,1,2) [2025-02-07 14:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422888', 'tblTempUsageDetail_20' ) start [2025-02-07 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422888', 'tblTempUsageDetail_20' ) end [2025-02-07 14:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:08:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:08:30] Production.INFO: ==13204== Releasing lock... [2025-02-07 14:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:08:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:09:05 [end_date_ymd] => 2025-02-07 14:09:05 [RateCDR] => 1 ) [2025-02-07 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:09:05' and `end` < '2025-02-07 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:09:20] Production.INFO: count ==5048 [2025-02-07 14:09:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:09:05 - End Time 2025-02-07 14:09:05 [2025-02-07 14:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422893', 'tblTempUsageDetail_20' ) start [2025-02-07 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422893', 'tblTempUsageDetail_20' ) end [2025-02-07 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422893', 'tblTempVendorCDR_20' ) start [2025-02-07 14:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422893', 'tblTempVendorCDR_20' ) end [2025-02-07 14:09:23] Production.INFO: ProcessCDR(1,14422893,1,1,2) [2025-02-07 14:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422893', 'tblTempUsageDetail_20' ) start [2025-02-07 14:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422893', 'tblTempUsageDetail_20' ) end [2025-02-07 14:09:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:09:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:09:28] Production.INFO: ==13279== Releasing lock... [2025-02-07 14:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:09:28] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:10:06 [end_date_ymd] => 2025-02-07 14:10:06 [RateCDR] => 1 ) [2025-02-07 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:10:06' and `end` < '2025-02-07 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:10:25] Production.INFO: count ==5055 [2025-02-07 14:10:27] Production.ERROR: pbx CDR StartTime 2025-02-07 11:10:06 - End Time 2025-02-07 14:10:06 [2025-02-07 14:10:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422899', 'tblTempUsageDetail_20' ) start [2025-02-07 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422899', 'tblTempUsageDetail_20' ) end [2025-02-07 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422899', 'tblTempVendorCDR_20' ) start [2025-02-07 14:10:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422899', 'tblTempVendorCDR_20' ) end [2025-02-07 14:10:27] Production.INFO: ProcessCDR(1,14422899,1,1,2) [2025-02-07 14:10:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:10:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:10:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422899', 'tblTempUsageDetail_20' ) start [2025-02-07 14:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422899', 'tblTempUsageDetail_20' ) end [2025-02-07 14:10:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:10:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:10:33] Production.INFO: ==13366== Releasing lock... [2025-02-07 14:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:10:33] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:11:05 [end_date_ymd] => 2025-02-07 14:11:05 [RateCDR] => 1 ) [2025-02-07 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:11:05' and `end` < '2025-02-07 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:11:22] Production.INFO: count ==5046 [2025-02-07 14:11:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:11:05 - End Time 2025-02-07 14:11:05 [2025-02-07 14:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422902', 'tblTempUsageDetail_20' ) start [2025-02-07 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422902', 'tblTempUsageDetail_20' ) end [2025-02-07 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422902', 'tblTempVendorCDR_20' ) start [2025-02-07 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422902', 'tblTempVendorCDR_20' ) end [2025-02-07 14:11:24] Production.INFO: ProcessCDR(1,14422902,1,1,2) [2025-02-07 14:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422902', 'tblTempUsageDetail_20' ) start [2025-02-07 14:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422902', 'tblTempUsageDetail_20' ) end [2025-02-07 14:11:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:11:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:11:29] Production.INFO: ==13447== Releasing lock... [2025-02-07 14:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:11:29] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:12:06 [end_date_ymd] => 2025-02-07 14:12:06 [RateCDR] => 1 ) [2025-02-07 14:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:12:06' and `end` < '2025-02-07 14:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:12:20] Production.INFO: count ==5054 [2025-02-07 14:12:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:12:06 - End Time 2025-02-07 14:12:06 [2025-02-07 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422909', 'tblTempUsageDetail_20' ) start [2025-02-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422909', 'tblTempUsageDetail_20' ) end [2025-02-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422909', 'tblTempVendorCDR_20' ) start [2025-02-07 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422909', 'tblTempVendorCDR_20' ) end [2025-02-07 14:12:22] Production.INFO: ProcessCDR(1,14422909,1,1,2) [2025-02-07 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422909', 'tblTempUsageDetail_20' ) start [2025-02-07 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422909', 'tblTempUsageDetail_20' ) end [2025-02-07 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:12:27] Production.INFO: ==13525== Releasing lock... [2025-02-07 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:12:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:13:05 [end_date_ymd] => 2025-02-07 14:13:05 [RateCDR] => 1 ) [2025-02-07 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:13:05' and `end` < '2025-02-07 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:13:25] Production.INFO: count ==5058 [2025-02-07 14:13:27] Production.ERROR: pbx CDR StartTime 2025-02-07 11:13:05 - End Time 2025-02-07 14:13:05 [2025-02-07 14:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422914', 'tblTempUsageDetail_20' ) start [2025-02-07 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422914', 'tblTempUsageDetail_20' ) end [2025-02-07 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422914', 'tblTempVendorCDR_20' ) start [2025-02-07 14:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422914', 'tblTempVendorCDR_20' ) end [2025-02-07 14:13:27] Production.INFO: ProcessCDR(1,14422914,1,1,2) [2025-02-07 14:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422914', 'tblTempUsageDetail_20' ) start [2025-02-07 14:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422914', 'tblTempUsageDetail_20' ) end [2025-02-07 14:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:13:32] Production.INFO: ==13597== Releasing lock... [2025-02-07 14:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:13:32] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:14:06 [end_date_ymd] => 2025-02-07 14:14:06 [RateCDR] => 1 ) [2025-02-07 14:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:14:06' and `end` < '2025-02-07 14:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:14:20] Production.INFO: count ==5042 [2025-02-07 14:14:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:14:06 - End Time 2025-02-07 14:14:06 [2025-02-07 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422919', 'tblTempUsageDetail_20' ) start [2025-02-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422919', 'tblTempUsageDetail_20' ) end [2025-02-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422919', 'tblTempVendorCDR_20' ) start [2025-02-07 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422919', 'tblTempVendorCDR_20' ) end [2025-02-07 14:14:22] Production.INFO: ProcessCDR(1,14422919,1,1,2) [2025-02-07 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422919', 'tblTempUsageDetail_20' ) start [2025-02-07 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422919', 'tblTempUsageDetail_20' ) end [2025-02-07 14:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:14:25] Production.INFO: ==13673== Releasing lock... [2025-02-07 14:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:14:25] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:15:04 [end_date_ymd] => 2025-02-07 14:15:04 [RateCDR] => 1 ) [2025-02-07 14: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-07 11:15:04' and `end` < '2025-02-07 14: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-07 14:15:22] Production.INFO: count ==5024 [2025-02-07 14:15:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:15:04 - End Time 2025-02-07 14:15:04 [2025-02-07 14:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422924', 'tblTempUsageDetail_20' ) start [2025-02-07 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422924', 'tblTempUsageDetail_20' ) end [2025-02-07 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422924', 'tblTempVendorCDR_20' ) start [2025-02-07 14:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422924', 'tblTempVendorCDR_20' ) end [2025-02-07 14:15:24] Production.INFO: ProcessCDR(1,14422924,1,1,2) [2025-02-07 14:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422924', 'tblTempUsageDetail_20' ) start [2025-02-07 14:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422924', 'tblTempUsageDetail_20' ) end [2025-02-07 14:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:15:29] Production.INFO: ==13757== Releasing lock... [2025-02-07 14:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:15:29] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:16:05 [end_date_ymd] => 2025-02-07 14:16:05 [RateCDR] => 1 ) [2025-02-07 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:16:05' and `end` < '2025-02-07 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:16:19] Production.INFO: count ==5032 [2025-02-07 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-07 11:16:05 - End Time 2025-02-07 14:16:05 [2025-02-07 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422929', 'tblTempUsageDetail_20' ) start [2025-02-07 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422929', 'tblTempUsageDetail_20' ) end [2025-02-07 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422929', 'tblTempVendorCDR_20' ) start [2025-02-07 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422929', 'tblTempVendorCDR_20' ) end [2025-02-07 14:16:21] Production.INFO: ProcessCDR(1,14422929,1,1,2) [2025-02-07 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422929', 'tblTempUsageDetail_20' ) start [2025-02-07 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422929', 'tblTempUsageDetail_20' ) end [2025-02-07 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:16:26] Production.INFO: ==13836== Releasing lock... [2025-02-07 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:16:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-07 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:17:06 [end_date_ymd] => 2025-02-07 14:17:06 [RateCDR] => 1 ) [2025-02-07 14:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:17:06' and `end` < '2025-02-07 14:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:17:22] Production.INFO: count ==5002 [2025-02-07 14:17:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:17:06 - End Time 2025-02-07 14:17:06 [2025-02-07 14:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422934', 'tblTempUsageDetail_20' ) start [2025-02-07 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422934', 'tblTempUsageDetail_20' ) end [2025-02-07 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422934', 'tblTempVendorCDR_20' ) start [2025-02-07 14:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422934', 'tblTempVendorCDR_20' ) end [2025-02-07 14:17:24] Production.INFO: ProcessCDR(1,14422934,1,1,2) [2025-02-07 14:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422934', 'tblTempUsageDetail_20' ) start [2025-02-07 14:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422934', 'tblTempUsageDetail_20' ) end [2025-02-07 14:17:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:17:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:17:28] Production.INFO: ==13917== Releasing lock... [2025-02-07 14:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:17:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:18:05 [end_date_ymd] => 2025-02-07 14:18:05 [RateCDR] => 1 ) [2025-02-07 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:18:05' and `end` < '2025-02-07 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:18:21] Production.INFO: count ==5010 [2025-02-07 14:18:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:18:05 - End Time 2025-02-07 14:18:05 [2025-02-07 14:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422939', 'tblTempUsageDetail_20' ) start [2025-02-07 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422939', 'tblTempUsageDetail_20' ) end [2025-02-07 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422939', 'tblTempVendorCDR_20' ) start [2025-02-07 14:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422939', 'tblTempVendorCDR_20' ) end [2025-02-07 14:18:24] Production.INFO: ProcessCDR(1,14422939,1,1,2) [2025-02-07 14:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422939', 'tblTempUsageDetail_20' ) start [2025-02-07 14:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422939', 'tblTempUsageDetail_20' ) end [2025-02-07 14:18:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:18:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:18:30] Production.INFO: ==13996== Releasing lock... [2025-02-07 14:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:18:30] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:19:06 [end_date_ymd] => 2025-02-07 14:19:06 [RateCDR] => 1 ) [2025-02-07 14: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-07 11:19:06' and `end` < '2025-02-07 14: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-07 14:19:21] Production.INFO: count ==5002 [2025-02-07 14:19:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:19:06 - End Time 2025-02-07 14:19:06 [2025-02-07 14:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422944', 'tblTempUsageDetail_20' ) start [2025-02-07 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422944', 'tblTempUsageDetail_20' ) end [2025-02-07 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422944', 'tblTempVendorCDR_20' ) start [2025-02-07 14:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422944', 'tblTempVendorCDR_20' ) end [2025-02-07 14:19:23] Production.INFO: ProcessCDR(1,14422944,1,1,2) [2025-02-07 14:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422944', 'tblTempUsageDetail_20' ) start [2025-02-07 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422944', 'tblTempUsageDetail_20' ) end [2025-02-07 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:19:28] Production.INFO: ==14083== Releasing lock... [2025-02-07 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:19:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:20:06 [end_date_ymd] => 2025-02-07 14:20:06 [RateCDR] => 1 ) [2025-02-07 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:20:06' and `end` < '2025-02-07 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:20:25] Production.INFO: count ==5008 [2025-02-07 14:20:27] Production.ERROR: pbx CDR StartTime 2025-02-07 11:20:06 - End Time 2025-02-07 14:20:06 [2025-02-07 14:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422950', 'tblTempUsageDetail_20' ) start [2025-02-07 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422950', 'tblTempUsageDetail_20' ) end [2025-02-07 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422950', 'tblTempVendorCDR_20' ) start [2025-02-07 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422950', 'tblTempVendorCDR_20' ) end [2025-02-07 14:20:27] Production.INFO: ProcessCDR(1,14422950,1,1,2) [2025-02-07 14:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:20:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:20:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422950', 'tblTempUsageDetail_20' ) start [2025-02-07 14:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422950', 'tblTempUsageDetail_20' ) end [2025-02-07 14:20:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:20:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:20:31] Production.INFO: ==14165== Releasing lock... [2025-02-07 14:20:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:20:31] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:21:06 [end_date_ymd] => 2025-02-07 14:21:06 [RateCDR] => 1 ) [2025-02-07 14:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:21:06' and `end` < '2025-02-07 14:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:21:19] Production.INFO: count ==4968 [2025-02-07 14:21:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:21:06 - End Time 2025-02-07 14:21:06 [2025-02-07 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422955', 'tblTempUsageDetail_20' ) start [2025-02-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422955', 'tblTempUsageDetail_20' ) end [2025-02-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422955', 'tblTempVendorCDR_20' ) start [2025-02-07 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422955', 'tblTempVendorCDR_20' ) end [2025-02-07 14:21:22] Production.INFO: ProcessCDR(1,14422955,1,1,2) [2025-02-07 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422955', 'tblTempUsageDetail_20' ) start [2025-02-07 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422955', 'tblTempUsageDetail_20' ) end [2025-02-07 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:21:27] Production.INFO: ==14290== Releasing lock... [2025-02-07 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:21:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:22:06 [end_date_ymd] => 2025-02-07 14:22:06 [RateCDR] => 1 ) [2025-02-07 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:22:06' and `end` < '2025-02-07 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:22:22] Production.INFO: count ==4967 [2025-02-07 14:22:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:22:06 - End Time 2025-02-07 14:22:06 [2025-02-07 14:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422960', 'tblTempUsageDetail_20' ) start [2025-02-07 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422960', 'tblTempUsageDetail_20' ) end [2025-02-07 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422960', 'tblTempVendorCDR_20' ) start [2025-02-07 14:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422960', 'tblTempVendorCDR_20' ) end [2025-02-07 14:22:24] Production.INFO: ProcessCDR(1,14422960,1,1,2) [2025-02-07 14:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422960', 'tblTempUsageDetail_20' ) start [2025-02-07 14:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422960', 'tblTempUsageDetail_20' ) end [2025-02-07 14:22:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:22:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:22:29] Production.INFO: ==14361== Releasing lock... [2025-02-07 14:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:22:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:23:05 [end_date_ymd] => 2025-02-07 14:23:05 [RateCDR] => 1 ) [2025-02-07 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:23:05' and `end` < '2025-02-07 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:23:19] Production.INFO: count ==4961 [2025-02-07 14:23:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:23:05 - End Time 2025-02-07 14:23:05 [2025-02-07 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422965', 'tblTempUsageDetail_20' ) start [2025-02-07 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422965', 'tblTempUsageDetail_20' ) end [2025-02-07 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422965', 'tblTempVendorCDR_20' ) start [2025-02-07 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422965', 'tblTempVendorCDR_20' ) end [2025-02-07 14:23:22] Production.INFO: ProcessCDR(1,14422965,1,1,2) [2025-02-07 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422965', 'tblTempUsageDetail_20' ) start [2025-02-07 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422965', 'tblTempUsageDetail_20' ) end [2025-02-07 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:23:27] Production.INFO: ==14437== Releasing lock... [2025-02-07 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:23:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:24:05 [end_date_ymd] => 2025-02-07 14:24:05 [RateCDR] => 1 ) [2025-02-07 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:24:05' and `end` < '2025-02-07 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:24:20] Production.INFO: count ==4945 [2025-02-07 14:24:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:24:05 - End Time 2025-02-07 14:24:05 [2025-02-07 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422970', 'tblTempUsageDetail_20' ) start [2025-02-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422970', 'tblTempUsageDetail_20' ) end [2025-02-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422970', 'tblTempVendorCDR_20' ) start [2025-02-07 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422970', 'tblTempVendorCDR_20' ) end [2025-02-07 14:24:22] Production.INFO: ProcessCDR(1,14422970,1,1,2) [2025-02-07 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422970', 'tblTempUsageDetail_20' ) start [2025-02-07 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422970', 'tblTempUsageDetail_20' ) end [2025-02-07 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:24:27] Production.INFO: ==14509== Releasing lock... [2025-02-07 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:24:27] Production.INFO: 65 MB #Memory Used# [2025-02-07 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:25:05 [end_date_ymd] => 2025-02-07 14:25:05 [RateCDR] => 1 ) [2025-02-07 14: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-07 11:25:05' and `end` < '2025-02-07 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:25:20] Production.INFO: count ==4943 [2025-02-07 14:25:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:25:05 - End Time 2025-02-07 14:25:05 [2025-02-07 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422975', 'tblTempUsageDetail_20' ) start [2025-02-07 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422975', 'tblTempUsageDetail_20' ) end [2025-02-07 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422975', 'tblTempVendorCDR_20' ) start [2025-02-07 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422975', 'tblTempVendorCDR_20' ) end [2025-02-07 14:25:23] Production.INFO: ProcessCDR(1,14422975,1,1,2) [2025-02-07 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422975', 'tblTempUsageDetail_20' ) start [2025-02-07 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422975', 'tblTempUsageDetail_20' ) end [2025-02-07 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:25:28] Production.INFO: ==14586== Releasing lock... [2025-02-07 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:25:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:26:05 [end_date_ymd] => 2025-02-07 14:26:05 [RateCDR] => 1 ) [2025-02-07 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:26:05' and `end` < '2025-02-07 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:26:19] Production.INFO: count ==4933 [2025-02-07 14:26:21] Production.ERROR: pbx CDR StartTime 2025-02-07 11:26:05 - End Time 2025-02-07 14:26:05 [2025-02-07 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422980', 'tblTempUsageDetail_20' ) start [2025-02-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422980', 'tblTempUsageDetail_20' ) end [2025-02-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422980', 'tblTempVendorCDR_20' ) start [2025-02-07 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422980', 'tblTempVendorCDR_20' ) end [2025-02-07 14:26:21] Production.INFO: ProcessCDR(1,14422980,1,1,2) [2025-02-07 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422980', 'tblTempUsageDetail_20' ) start [2025-02-07 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422980', 'tblTempUsageDetail_20' ) end [2025-02-07 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:26:26] Production.INFO: ==14665== Releasing lock... [2025-02-07 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:26:26] Production.INFO: 65 MB #Memory Used# [2025-02-07 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:27:05 [end_date_ymd] => 2025-02-07 14:27:05 [RateCDR] => 1 ) [2025-02-07 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:27:05' and `end` < '2025-02-07 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:27:31] Production.INFO: count ==4922 [2025-02-07 14:27:33] Production.ERROR: pbx CDR StartTime 2025-02-07 11:27:05 - End Time 2025-02-07 14:27:05 [2025-02-07 14:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422985', 'tblTempUsageDetail_20' ) start [2025-02-07 14:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422985', 'tblTempUsageDetail_20' ) end [2025-02-07 14:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422985', 'tblTempVendorCDR_20' ) start [2025-02-07 14:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422985', 'tblTempVendorCDR_20' ) end [2025-02-07 14:27:33] Production.INFO: ProcessCDR(1,14422985,1,1,2) [2025-02-07 14:27:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:27:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422985', 'tblTempUsageDetail_20' ) start [2025-02-07 14:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422985', 'tblTempUsageDetail_20' ) end [2025-02-07 14:27:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:27:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:27:38] Production.INFO: ==14741== Releasing lock... [2025-02-07 14:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:27:38] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:28:05 [end_date_ymd] => 2025-02-07 14:28:05 [RateCDR] => 1 ) [2025-02-07 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:28:05' and `end` < '2025-02-07 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:28:21] Production.INFO: count ==4907 [2025-02-07 14:28:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:28:05 - End Time 2025-02-07 14:28:05 [2025-02-07 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422990', 'tblTempUsageDetail_20' ) start [2025-02-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422990', 'tblTempUsageDetail_20' ) end [2025-02-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422990', 'tblTempVendorCDR_20' ) start [2025-02-07 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422990', 'tblTempVendorCDR_20' ) end [2025-02-07 14:28:23] Production.INFO: ProcessCDR(1,14422990,1,1,2) [2025-02-07 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422990', 'tblTempUsageDetail_20' ) start [2025-02-07 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422990', 'tblTempUsageDetail_20' ) end [2025-02-07 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:28:28] Production.INFO: ==14814== Releasing lock... [2025-02-07 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:28:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:29:05 [end_date_ymd] => 2025-02-07 14:29:05 [RateCDR] => 1 ) [2025-02-07 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:29:05' and `end` < '2025-02-07 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:29:30] Production.INFO: count ==4906 [2025-02-07 14:29:32] Production.ERROR: pbx CDR StartTime 2025-02-07 11:29:05 - End Time 2025-02-07 14:29:05 [2025-02-07 14:29:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422995', 'tblTempUsageDetail_20' ) start [2025-02-07 14:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14422995', 'tblTempUsageDetail_20' ) end [2025-02-07 14:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422995', 'tblTempVendorCDR_20' ) start [2025-02-07 14:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14422995', 'tblTempVendorCDR_20' ) end [2025-02-07 14:29:32] Production.INFO: ProcessCDR(1,14422995,1,1,2) [2025-02-07 14:29:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14422995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:29:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14422995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:29:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14422995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:29:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14422995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422995', 'tblTempUsageDetail_20' ) start [2025-02-07 14:29:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14422995', 'tblTempUsageDetail_20' ) end [2025-02-07 14:29:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:29:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:29:37] Production.INFO: ==14889== Releasing lock... [2025-02-07 14:29:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:29:37] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:30:07 [end_date_ymd] => 2025-02-07 14:30:07 [RateCDR] => 1 ) [2025-02-07 14: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-07 11:30:07' and `end` < '2025-02-07 14: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-07 14:30:27] Production.INFO: count ==4907 [2025-02-07 14:30:30] Production.ERROR: pbx CDR StartTime 2025-02-07 11:30:07 - End Time 2025-02-07 14:30:07 [2025-02-07 14:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423001', 'tblTempUsageDetail_20' ) start [2025-02-07 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423001', 'tblTempUsageDetail_20' ) end [2025-02-07 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423001', 'tblTempVendorCDR_20' ) start [2025-02-07 14:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423001', 'tblTempVendorCDR_20' ) end [2025-02-07 14:30:30] Production.INFO: ProcessCDR(1,14423001,1,1,2) [2025-02-07 14:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423001', 'tblTempUsageDetail_20' ) start [2025-02-07 14:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423001', 'tblTempUsageDetail_20' ) end [2025-02-07 14:30:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:30:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:30:35] Production.INFO: ==14971== Releasing lock... [2025-02-07 14:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:30:35] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:31:05 [end_date_ymd] => 2025-02-07 14:31:05 [RateCDR] => 1 ) [2025-02-07 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:31:05' and `end` < '2025-02-07 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:31:24] Production.INFO: count ==4913 [2025-02-07 14:31:26] Production.ERROR: pbx CDR StartTime 2025-02-07 11:31:05 - End Time 2025-02-07 14:31:05 [2025-02-07 14:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423006', 'tblTempUsageDetail_20' ) start [2025-02-07 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423006', 'tblTempUsageDetail_20' ) end [2025-02-07 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423006', 'tblTempVendorCDR_20' ) start [2025-02-07 14:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423006', 'tblTempVendorCDR_20' ) end [2025-02-07 14:31:26] Production.INFO: ProcessCDR(1,14423006,1,1,2) [2025-02-07 14:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423006', 'tblTempUsageDetail_20' ) start [2025-02-07 14:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423006', 'tblTempUsageDetail_20' ) end [2025-02-07 14:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:31:31] Production.INFO: ==15047== Releasing lock... [2025-02-07 14:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:31:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:32:05 [end_date_ymd] => 2025-02-07 14:32:05 [RateCDR] => 1 ) [2025-02-07 14:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:32:05' and `end` < '2025-02-07 14:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:32:20] Production.INFO: count ==4916 [2025-02-07 14:32:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:32:05 - End Time 2025-02-07 14:32:05 [2025-02-07 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423011', 'tblTempUsageDetail_20' ) start [2025-02-07 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423011', 'tblTempUsageDetail_20' ) end [2025-02-07 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423011', 'tblTempVendorCDR_20' ) start [2025-02-07 14:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423011', 'tblTempVendorCDR_20' ) end [2025-02-07 14:32:23] Production.INFO: ProcessCDR(1,14423011,1,1,2) [2025-02-07 14:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423011', 'tblTempUsageDetail_20' ) start [2025-02-07 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423011', 'tblTempUsageDetail_20' ) end [2025-02-07 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:32:28] Production.INFO: ==15117== Releasing lock... [2025-02-07 14:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:32:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:33:05 [end_date_ymd] => 2025-02-07 14:33:05 [RateCDR] => 1 ) [2025-02-07 14:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:33:05' and `end` < '2025-02-07 14:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:33:22] Production.INFO: count ==4905 [2025-02-07 14:33:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:33:05 - End Time 2025-02-07 14:33:05 [2025-02-07 14:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423016', 'tblTempUsageDetail_20' ) start [2025-02-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423016', 'tblTempUsageDetail_20' ) end [2025-02-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423016', 'tblTempVendorCDR_20' ) start [2025-02-07 14:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423016', 'tblTempVendorCDR_20' ) end [2025-02-07 14:33:24] Production.INFO: ProcessCDR(1,14423016,1,1,2) [2025-02-07 14:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423016', 'tblTempUsageDetail_20' ) start [2025-02-07 14:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423016', 'tblTempUsageDetail_20' ) end [2025-02-07 14:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:33:29] Production.INFO: ==15199== Releasing lock... [2025-02-07 14:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:33:29] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:34:05 [end_date_ymd] => 2025-02-07 14:34:05 [RateCDR] => 1 ) [2025-02-07 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:34:05' and `end` < '2025-02-07 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:34:26] Production.INFO: count ==4917 [2025-02-07 14:34:28] Production.ERROR: pbx CDR StartTime 2025-02-07 11:34:05 - End Time 2025-02-07 14:34:05 [2025-02-07 14:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423021', 'tblTempUsageDetail_20' ) start [2025-02-07 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423021', 'tblTempUsageDetail_20' ) end [2025-02-07 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423021', 'tblTempVendorCDR_20' ) start [2025-02-07 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423021', 'tblTempVendorCDR_20' ) end [2025-02-07 14:34:28] Production.INFO: ProcessCDR(1,14423021,1,1,2) [2025-02-07 14:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423021', 'tblTempUsageDetail_20' ) start [2025-02-07 14:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423021', 'tblTempUsageDetail_20' ) end [2025-02-07 14:34:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:34:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:34:33] Production.INFO: ==15279== Releasing lock... [2025-02-07 14:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:34:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:35:05 [end_date_ymd] => 2025-02-07 14:35:05 [RateCDR] => 1 ) [2025-02-07 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:35:05' and `end` < '2025-02-07 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:35:27] Production.INFO: count ==4904 [2025-02-07 14:35:29] Production.ERROR: pbx CDR StartTime 2025-02-07 11:35:05 - End Time 2025-02-07 14:35:05 [2025-02-07 14:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423026', 'tblTempUsageDetail_20' ) start [2025-02-07 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423026', 'tblTempUsageDetail_20' ) end [2025-02-07 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423026', 'tblTempVendorCDR_20' ) start [2025-02-07 14:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423026', 'tblTempVendorCDR_20' ) end [2025-02-07 14:35:29] Production.INFO: ProcessCDR(1,14423026,1,1,2) [2025-02-07 14:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423026', 'tblTempUsageDetail_20' ) start [2025-02-07 14:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423026', 'tblTempUsageDetail_20' ) end [2025-02-07 14:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:35:34] Production.INFO: ==15360== Releasing lock... [2025-02-07 14:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:35:34] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:36:05 [end_date_ymd] => 2025-02-07 14:36:05 [RateCDR] => 1 ) [2025-02-07 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:36:05' and `end` < '2025-02-07 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:36:25] Production.INFO: count ==4898 [2025-02-07 14:36:27] Production.ERROR: pbx CDR StartTime 2025-02-07 11:36:05 - End Time 2025-02-07 14:36:05 [2025-02-07 14:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423031', 'tblTempUsageDetail_20' ) start [2025-02-07 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423031', 'tblTempUsageDetail_20' ) end [2025-02-07 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423031', 'tblTempVendorCDR_20' ) start [2025-02-07 14:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423031', 'tblTempVendorCDR_20' ) end [2025-02-07 14:36:27] Production.INFO: ProcessCDR(1,14423031,1,1,2) [2025-02-07 14:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423031', 'tblTempUsageDetail_20' ) start [2025-02-07 14:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423031', 'tblTempUsageDetail_20' ) end [2025-02-07 14:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:36:31] Production.INFO: ==15460== Releasing lock... [2025-02-07 14:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:36:31] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:37:04 [end_date_ymd] => 2025-02-07 14:37:04 [RateCDR] => 1 ) [2025-02-07 14:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:37:04' and `end` < '2025-02-07 14:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:37:19] Production.INFO: count ==4877 [2025-02-07 14:37:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:37:04 - End Time 2025-02-07 14:37:04 [2025-02-07 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423036', 'tblTempUsageDetail_20' ) start [2025-02-07 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423036', 'tblTempUsageDetail_20' ) end [2025-02-07 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423036', 'tblTempVendorCDR_20' ) start [2025-02-07 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423036', 'tblTempVendorCDR_20' ) end [2025-02-07 14:37:22] Production.INFO: ProcessCDR(1,14423036,1,1,2) [2025-02-07 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423036', 'tblTempUsageDetail_20' ) start [2025-02-07 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423036', 'tblTempUsageDetail_20' ) end [2025-02-07 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:37:26] Production.INFO: ==15548== Releasing lock... [2025-02-07 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:37:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:38:06 [end_date_ymd] => 2025-02-07 14:38:06 [RateCDR] => 1 ) [2025-02-07 14:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:38:06' and `end` < '2025-02-07 14:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:38:23] Production.INFO: count ==4868 [2025-02-07 14:38:26] Production.ERROR: pbx CDR StartTime 2025-02-07 11:38:06 - End Time 2025-02-07 14:38:06 [2025-02-07 14:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423041', 'tblTempUsageDetail_20' ) start [2025-02-07 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423041', 'tblTempUsageDetail_20' ) end [2025-02-07 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423041', 'tblTempVendorCDR_20' ) start [2025-02-07 14:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423041', 'tblTempVendorCDR_20' ) end [2025-02-07 14:38:26] Production.INFO: ProcessCDR(1,14423041,1,1,2) [2025-02-07 14:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423041', 'tblTempUsageDetail_20' ) start [2025-02-07 14:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423041', 'tblTempUsageDetail_20' ) end [2025-02-07 14:38:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:38:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:38:31] Production.INFO: ==15635== Releasing lock... [2025-02-07 14:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:38:31] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:39:05 [end_date_ymd] => 2025-02-07 14:39:05 [RateCDR] => 1 ) [2025-02-07 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:39:05' and `end` < '2025-02-07 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:39:21] Production.INFO: count ==4851 [2025-02-07 14:39:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:39:05 - End Time 2025-02-07 14:39:05 [2025-02-07 14:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423046', 'tblTempUsageDetail_20' ) start [2025-02-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423046', 'tblTempUsageDetail_20' ) end [2025-02-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423046', 'tblTempVendorCDR_20' ) start [2025-02-07 14:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423046', 'tblTempVendorCDR_20' ) end [2025-02-07 14:39:24] Production.INFO: ProcessCDR(1,14423046,1,1,2) [2025-02-07 14:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423046', 'tblTempUsageDetail_20' ) start [2025-02-07 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423046', 'tblTempUsageDetail_20' ) end [2025-02-07 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:39:28] Production.INFO: ==15706== Releasing lock... [2025-02-07 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:39:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:40:06 [end_date_ymd] => 2025-02-07 14:40:06 [RateCDR] => 1 ) [2025-02-07 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:40:06' and `end` < '2025-02-07 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:40:22] Production.INFO: count ==4837 [2025-02-07 14:40:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:40:06 - End Time 2025-02-07 14:40:06 [2025-02-07 14:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423052', 'tblTempUsageDetail_20' ) start [2025-02-07 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423052', 'tblTempUsageDetail_20' ) end [2025-02-07 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423052', 'tblTempVendorCDR_20' ) start [2025-02-07 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423052', 'tblTempVendorCDR_20' ) end [2025-02-07 14:40:24] Production.INFO: ProcessCDR(1,14423052,1,1,2) [2025-02-07 14:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423052', 'tblTempUsageDetail_20' ) start [2025-02-07 14:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423052', 'tblTempUsageDetail_20' ) end [2025-02-07 14:40:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:40:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:40:30] Production.INFO: ==15784== Releasing lock... [2025-02-07 14:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:40:30] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:41:06 [end_date_ymd] => 2025-02-07 14:41:06 [RateCDR] => 1 ) [2025-02-07 14: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-07 11:41:06' and `end` < '2025-02-07 14: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-07 14:41:20] Production.INFO: count ==4797 [2025-02-07 14:41:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:41:06 - End Time 2025-02-07 14:41:06 [2025-02-07 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423057', 'tblTempUsageDetail_20' ) start [2025-02-07 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423057', 'tblTempUsageDetail_20' ) end [2025-02-07 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423057', 'tblTempVendorCDR_20' ) start [2025-02-07 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423057', 'tblTempVendorCDR_20' ) end [2025-02-07 14:41:22] Production.INFO: ProcessCDR(1,14423057,1,1,2) [2025-02-07 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423057', 'tblTempUsageDetail_20' ) start [2025-02-07 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423057', 'tblTempUsageDetail_20' ) end [2025-02-07 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:41:27] Production.INFO: ==15866== Releasing lock... [2025-02-07 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:41:27] Production.INFO: 64 MB #Memory Used# [2025-02-07 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:42:05 [end_date_ymd] => 2025-02-07 14:42:05 [RateCDR] => 1 ) [2025-02-07 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:42:05' and `end` < '2025-02-07 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:42:21] Production.INFO: count ==4776 [2025-02-07 14:42:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:42:05 - End Time 2025-02-07 14:42:05 [2025-02-07 14:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423062', 'tblTempUsageDetail_20' ) start [2025-02-07 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423062', 'tblTempUsageDetail_20' ) end [2025-02-07 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423062', 'tblTempVendorCDR_20' ) start [2025-02-07 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423062', 'tblTempVendorCDR_20' ) end [2025-02-07 14:42:23] Production.INFO: ProcessCDR(1,14423062,1,1,2) [2025-02-07 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423062', 'tblTempUsageDetail_20' ) start [2025-02-07 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423062', 'tblTempUsageDetail_20' ) end [2025-02-07 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:42:28] Production.INFO: ==15945== Releasing lock... [2025-02-07 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:42:28] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:43:05 [end_date_ymd] => 2025-02-07 14:43:05 [RateCDR] => 1 ) [2025-02-07 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:43:05' and `end` < '2025-02-07 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:43:22] Production.INFO: count ==4739 [2025-02-07 14:43:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:43:05 - End Time 2025-02-07 14:43:05 [2025-02-07 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423067', 'tblTempUsageDetail_20' ) start [2025-02-07 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423067', 'tblTempUsageDetail_20' ) end [2025-02-07 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423067', 'tblTempVendorCDR_20' ) start [2025-02-07 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423067', 'tblTempVendorCDR_20' ) end [2025-02-07 14:43:24] Production.INFO: ProcessCDR(1,14423067,1,1,2) [2025-02-07 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423067', 'tblTempUsageDetail_20' ) start [2025-02-07 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423067', 'tblTempUsageDetail_20' ) end [2025-02-07 14:43:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:43:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:43:29] Production.INFO: ==16022== Releasing lock... [2025-02-07 14:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:43:29] Production.INFO: 63.5 MB #Memory Used# [2025-02-07 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:44:05 [end_date_ymd] => 2025-02-07 14:44:05 [RateCDR] => 1 ) [2025-02-07 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:44:05' and `end` < '2025-02-07 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:44:24] Production.INFO: count ==4736 [2025-02-07 14:44:26] Production.ERROR: pbx CDR StartTime 2025-02-07 11:44:05 - End Time 2025-02-07 14:44:05 [2025-02-07 14:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423072', 'tblTempUsageDetail_20' ) start [2025-02-07 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423072', 'tblTempUsageDetail_20' ) end [2025-02-07 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423072', 'tblTempVendorCDR_20' ) start [2025-02-07 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423072', 'tblTempVendorCDR_20' ) end [2025-02-07 14:44:26] Production.INFO: ProcessCDR(1,14423072,1,1,2) [2025-02-07 14:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423072', 'tblTempUsageDetail_20' ) start [2025-02-07 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423072', 'tblTempUsageDetail_20' ) end [2025-02-07 14:44:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:44:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:44:31] Production.INFO: ==16099== Releasing lock... [2025-02-07 14:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:44:31] Production.INFO: 63.5 MB #Memory Used# [2025-02-07 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:45:06 [end_date_ymd] => 2025-02-07 14:45:06 [RateCDR] => 1 ) [2025-02-07 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:45:06' and `end` < '2025-02-07 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:45:20] Production.INFO: count ==4722 [2025-02-07 14:45:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:45:06 - End Time 2025-02-07 14:45:06 [2025-02-07 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423077', 'tblTempUsageDetail_20' ) start [2025-02-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423077', 'tblTempUsageDetail_20' ) end [2025-02-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423077', 'tblTempVendorCDR_20' ) start [2025-02-07 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423077', 'tblTempVendorCDR_20' ) end [2025-02-07 14:45:22] Production.INFO: ProcessCDR(1,14423077,1,1,2) [2025-02-07 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423077', 'tblTempUsageDetail_20' ) start [2025-02-07 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423077', 'tblTempUsageDetail_20' ) end [2025-02-07 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:45:27] Production.INFO: ==16172== Releasing lock... [2025-02-07 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:45:27] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:46:06 [end_date_ymd] => 2025-02-07 14:46:06 [RateCDR] => 1 ) [2025-02-07 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:46:06' and `end` < '2025-02-07 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:46:19] Production.INFO: count ==4699 [2025-02-07 14:46:22] Production.ERROR: pbx CDR StartTime 2025-02-07 11:46:06 - End Time 2025-02-07 14:46:06 [2025-02-07 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423082', 'tblTempUsageDetail_20' ) start [2025-02-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423082', 'tblTempUsageDetail_20' ) end [2025-02-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423082', 'tblTempVendorCDR_20' ) start [2025-02-07 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423082', 'tblTempVendorCDR_20' ) end [2025-02-07 14:46:22] Production.INFO: ProcessCDR(1,14423082,1,1,2) [2025-02-07 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423082', 'tblTempUsageDetail_20' ) start [2025-02-07 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423082', 'tblTempUsageDetail_20' ) end [2025-02-07 14:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:46:26] Production.INFO: ==16250== Releasing lock... [2025-02-07 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:46:26] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:47:06 [end_date_ymd] => 2025-02-07 14:47:06 [RateCDR] => 1 ) [2025-02-07 14:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:47:06' and `end` < '2025-02-07 14:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:47:22] Production.INFO: count ==4692 [2025-02-07 14:47:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:47:06 - End Time 2025-02-07 14:47:06 [2025-02-07 14:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423087', 'tblTempUsageDetail_20' ) start [2025-02-07 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423087', 'tblTempUsageDetail_20' ) end [2025-02-07 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423087', 'tblTempVendorCDR_20' ) start [2025-02-07 14:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423087', 'tblTempVendorCDR_20' ) end [2025-02-07 14:47:24] Production.INFO: ProcessCDR(1,14423087,1,1,2) [2025-02-07 14:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423087', 'tblTempUsageDetail_20' ) start [2025-02-07 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423087', 'tblTempUsageDetail_20' ) end [2025-02-07 14:47:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:47:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:47:29] Production.INFO: ==16330== Releasing lock... [2025-02-07 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:47:29] Production.INFO: 63 MB #Memory Used# [2025-02-07 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:48:06 [end_date_ymd] => 2025-02-07 14:48:06 [RateCDR] => 1 ) [2025-02-07 14:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:48:06' and `end` < '2025-02-07 14:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:48:24] Production.INFO: count ==4682 [2025-02-07 14:48:26] Production.ERROR: pbx CDR StartTime 2025-02-07 11:48:06 - End Time 2025-02-07 14:48:06 [2025-02-07 14:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423092', 'tblTempUsageDetail_20' ) start [2025-02-07 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423092', 'tblTempUsageDetail_20' ) end [2025-02-07 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423092', 'tblTempVendorCDR_20' ) start [2025-02-07 14:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423092', 'tblTempVendorCDR_20' ) end [2025-02-07 14:48:26] Production.INFO: ProcessCDR(1,14423092,1,1,2) [2025-02-07 14:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423092', 'tblTempUsageDetail_20' ) start [2025-02-07 14:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423092', 'tblTempUsageDetail_20' ) end [2025-02-07 14:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:48:32] Production.INFO: ==16406== Releasing lock... [2025-02-07 14:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:48:32] Production.INFO: 63 MB #Memory Used# [2025-02-07 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:49:05 [end_date_ymd] => 2025-02-07 14:49:05 [RateCDR] => 1 ) [2025-02-07 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:49:05' and `end` < '2025-02-07 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:49:21] Production.INFO: count ==4688 [2025-02-07 14:49:23] Production.ERROR: pbx CDR StartTime 2025-02-07 11:49:05 - End Time 2025-02-07 14:49:05 [2025-02-07 14:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423097', 'tblTempUsageDetail_20' ) start [2025-02-07 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423097', 'tblTempUsageDetail_20' ) end [2025-02-07 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423097', 'tblTempVendorCDR_20' ) start [2025-02-07 14:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423097', 'tblTempVendorCDR_20' ) end [2025-02-07 14:49:23] Production.INFO: ProcessCDR(1,14423097,1,1,2) [2025-02-07 14:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423097', 'tblTempUsageDetail_20' ) start [2025-02-07 14:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423097', 'tblTempUsageDetail_20' ) end [2025-02-07 14:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:49:29] Production.INFO: ==16482== Releasing lock... [2025-02-07 14:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:49:29] Production.INFO: 63 MB #Memory Used# [2025-02-07 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:50:06 [end_date_ymd] => 2025-02-07 14:50:06 [RateCDR] => 1 ) [2025-02-07 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:50:06' and `end` < '2025-02-07 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:50:23] Production.INFO: count ==4674 [2025-02-07 14:50:25] Production.ERROR: pbx CDR StartTime 2025-02-07 11:50:06 - End Time 2025-02-07 14:50:06 [2025-02-07 14:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423103', 'tblTempUsageDetail_20' ) start [2025-02-07 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423103', 'tblTempUsageDetail_20' ) end [2025-02-07 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423103', 'tblTempVendorCDR_20' ) start [2025-02-07 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423103', 'tblTempVendorCDR_20' ) end [2025-02-07 14:50:25] Production.INFO: ProcessCDR(1,14423103,1,1,2) [2025-02-07 14:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423103', 'tblTempUsageDetail_20' ) start [2025-02-07 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423103', 'tblTempUsageDetail_20' ) end [2025-02-07 14:50:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:50:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:50:30] Production.INFO: ==16555== Releasing lock... [2025-02-07 14:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:50:30] Production.INFO: 63 MB #Memory Used# [2025-02-07 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:51:05 [end_date_ymd] => 2025-02-07 14:51:05 [RateCDR] => 1 ) [2025-02-07 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:51:05' and `end` < '2025-02-07 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:51:22] Production.INFO: count ==4640 [2025-02-07 14:51:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:51:05 - End Time 2025-02-07 14:51:05 [2025-02-07 14:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423108', 'tblTempUsageDetail_20' ) start [2025-02-07 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423108', 'tblTempUsageDetail_20' ) end [2025-02-07 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423108', 'tblTempVendorCDR_20' ) start [2025-02-07 14:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423108', 'tblTempVendorCDR_20' ) end [2025-02-07 14:51:25] Production.INFO: ProcessCDR(1,14423108,1,1,2) [2025-02-07 14:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423108', 'tblTempUsageDetail_20' ) start [2025-02-07 14:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423108', 'tblTempUsageDetail_20' ) end [2025-02-07 14:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:51:30] Production.INFO: ==16629== Releasing lock... [2025-02-07 14:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:51:30] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:52:05 [end_date_ymd] => 2025-02-07 14:52:05 [RateCDR] => 1 ) [2025-02-07 14:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:52:05' and `end` < '2025-02-07 14:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:52:22] Production.INFO: count ==4625 [2025-02-07 14:52:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:52:05 - End Time 2025-02-07 14:52:05 [2025-02-07 14:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423113', 'tblTempUsageDetail_20' ) start [2025-02-07 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423113', 'tblTempUsageDetail_20' ) end [2025-02-07 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423113', 'tblTempVendorCDR_20' ) start [2025-02-07 14:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423113', 'tblTempVendorCDR_20' ) end [2025-02-07 14:52:24] Production.INFO: ProcessCDR(1,14423113,1,1,2) [2025-02-07 14:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:52:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:52:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423113', 'tblTempUsageDetail_20' ) start [2025-02-07 14:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423113', 'tblTempUsageDetail_20' ) end [2025-02-07 14:52:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:52:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:52:29] Production.INFO: ==16738== Releasing lock... [2025-02-07 14:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:52:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:53:05 [end_date_ymd] => 2025-02-07 14:53:05 [RateCDR] => 1 ) [2025-02-07 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:53:05' and `end` < '2025-02-07 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:53:24] Production.INFO: count ==4615 [2025-02-07 14:53:26] Production.ERROR: pbx CDR StartTime 2025-02-07 11:53:05 - End Time 2025-02-07 14:53:05 [2025-02-07 14:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423118', 'tblTempUsageDetail_20' ) start [2025-02-07 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423118', 'tblTempUsageDetail_20' ) end [2025-02-07 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423118', 'tblTempVendorCDR_20' ) start [2025-02-07 14:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423118', 'tblTempVendorCDR_20' ) end [2025-02-07 14:53:26] Production.INFO: ProcessCDR(1,14423118,1,1,2) [2025-02-07 14:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423118', 'tblTempUsageDetail_20' ) start [2025-02-07 14:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423118', 'tblTempUsageDetail_20' ) end [2025-02-07 14:53:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:53:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:53:31] Production.INFO: ==16851== Releasing lock... [2025-02-07 14:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:53:31] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:54:05 [end_date_ymd] => 2025-02-07 14:54:05 [RateCDR] => 1 ) [2025-02-07 14:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:54:05' and `end` < '2025-02-07 14:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:54:23] Production.INFO: count ==4622 [2025-02-07 14:54:25] Production.ERROR: pbx CDR StartTime 2025-02-07 11:54:05 - End Time 2025-02-07 14:54:05 [2025-02-07 14:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423123', 'tblTempUsageDetail_20' ) start [2025-02-07 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423123', 'tblTempUsageDetail_20' ) end [2025-02-07 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423123', 'tblTempVendorCDR_20' ) start [2025-02-07 14:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423123', 'tblTempVendorCDR_20' ) end [2025-02-07 14:54:25] Production.INFO: ProcessCDR(1,14423123,1,1,2) [2025-02-07 14:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423123', 'tblTempUsageDetail_20' ) start [2025-02-07 14:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423123', 'tblTempUsageDetail_20' ) end [2025-02-07 14:54:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:54:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:54:30] Production.INFO: ==17017== Releasing lock... [2025-02-07 14:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:54:30] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:55:05 [end_date_ymd] => 2025-02-07 14:55:05 [RateCDR] => 1 ) [2025-02-07 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:55:05' and `end` < '2025-02-07 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:55:24] Production.INFO: count ==4632 [2025-02-07 14:55:26] Production.ERROR: pbx CDR StartTime 2025-02-07 11:55:05 - End Time 2025-02-07 14:55:05 [2025-02-07 14:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423128', 'tblTempUsageDetail_20' ) start [2025-02-07 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423128', 'tblTempUsageDetail_20' ) end [2025-02-07 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423128', 'tblTempVendorCDR_20' ) start [2025-02-07 14:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423128', 'tblTempVendorCDR_20' ) end [2025-02-07 14:55:27] Production.INFO: ProcessCDR(1,14423128,1,1,2) [2025-02-07 14:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423128', 'tblTempUsageDetail_20' ) start [2025-02-07 14:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423128', 'tblTempUsageDetail_20' ) end [2025-02-07 14:55:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:55:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:55:32] Production.INFO: ==17090== Releasing lock... [2025-02-07 14:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:55:32] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:56:05 [end_date_ymd] => 2025-02-07 14:56:05 [RateCDR] => 1 ) [2025-02-07 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:56:05' and `end` < '2025-02-07 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:56:25] Production.INFO: count ==4635 [2025-02-07 14:56:27] Production.ERROR: pbx CDR StartTime 2025-02-07 11:56:05 - End Time 2025-02-07 14:56:05 [2025-02-07 14:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423133', 'tblTempUsageDetail_20' ) start [2025-02-07 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423133', 'tblTempUsageDetail_20' ) end [2025-02-07 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423133', 'tblTempVendorCDR_20' ) start [2025-02-07 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423133', 'tblTempVendorCDR_20' ) end [2025-02-07 14:56:28] Production.INFO: ProcessCDR(1,14423133,1,1,2) [2025-02-07 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:56:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:56:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423133', 'tblTempUsageDetail_20' ) start [2025-02-07 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423133', 'tblTempUsageDetail_20' ) end [2025-02-07 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:56:33] Production.INFO: ==17164== Releasing lock... [2025-02-07 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:56:33] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:57:06 [end_date_ymd] => 2025-02-07 14:57:06 [RateCDR] => 1 ) [2025-02-07 14: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-07 11:57:06' and `end` < '2025-02-07 14: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-07 14:57:26] Production.INFO: count ==4636 [2025-02-07 14:57:28] Production.ERROR: pbx CDR StartTime 2025-02-07 11:57:06 - End Time 2025-02-07 14:57:06 [2025-02-07 14:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423138', 'tblTempUsageDetail_20' ) start [2025-02-07 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423138', 'tblTempUsageDetail_20' ) end [2025-02-07 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423138', 'tblTempVendorCDR_20' ) start [2025-02-07 14:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423138', 'tblTempVendorCDR_20' ) end [2025-02-07 14:57:28] Production.INFO: ProcessCDR(1,14423138,1,1,2) [2025-02-07 14:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:57:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:57:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:57:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:57:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423138', 'tblTempUsageDetail_20' ) start [2025-02-07 14:57:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423138', 'tblTempUsageDetail_20' ) end [2025-02-07 14:57:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:57:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:57:34] Production.INFO: ==17234== Releasing lock... [2025-02-07 14:57:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:57:34] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:58:05 [end_date_ymd] => 2025-02-07 14:58:05 [RateCDR] => 1 ) [2025-02-07 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:58:05' and `end` < '2025-02-07 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:58:22] Production.INFO: count ==4616 [2025-02-07 14:58:24] Production.ERROR: pbx CDR StartTime 2025-02-07 11:58:05 - End Time 2025-02-07 14:58:05 [2025-02-07 14:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423143', 'tblTempUsageDetail_20' ) start [2025-02-07 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423143', 'tblTempUsageDetail_20' ) end [2025-02-07 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423143', 'tblTempVendorCDR_20' ) start [2025-02-07 14:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423143', 'tblTempVendorCDR_20' ) end [2025-02-07 14:58:24] Production.INFO: ProcessCDR(1,14423143,1,1,2) [2025-02-07 14:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423143', 'tblTempUsageDetail_20' ) start [2025-02-07 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423143', 'tblTempUsageDetail_20' ) end [2025-02-07 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:58:27] Production.INFO: ==17309== Releasing lock... [2025-02-07 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:58:27] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 11:59:05 [end_date_ymd] => 2025-02-07 14:59:05 [RateCDR] => 1 ) [2025-02-07 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 11:59:05' and `end` < '2025-02-07 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 14:59:19] Production.INFO: count ==4606 [2025-02-07 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-07 11:59:05 - End Time 2025-02-07 14:59:05 [2025-02-07 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423148', 'tblTempUsageDetail_20' ) start [2025-02-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423148', 'tblTempUsageDetail_20' ) end [2025-02-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423148', 'tblTempVendorCDR_20' ) start [2025-02-07 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423148', 'tblTempVendorCDR_20' ) end [2025-02-07 14:59:21] Production.INFO: ProcessCDR(1,14423148,1,1,2) [2025-02-07 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423148', 'tblTempUsageDetail_20' ) start [2025-02-07 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423148', 'tblTempUsageDetail_20' ) end [2025-02-07 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 14:59:26] Production.INFO: ==17379== Releasing lock... [2025-02-07 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 14:59:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:00:06 [end_date_ymd] => 2025-02-07 15:00:06 [RateCDR] => 1 ) [2025-02-07 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:00:06' and `end` < '2025-02-07 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:00:22] Production.INFO: count ==4572 [2025-02-07 15:00:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:00:06 - End Time 2025-02-07 15:00:06 [2025-02-07 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423154', 'tblTempUsageDetail_20' ) start [2025-02-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423154', 'tblTempUsageDetail_20' ) end [2025-02-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423154', 'tblTempVendorCDR_20' ) start [2025-02-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423154', 'tblTempVendorCDR_20' ) end [2025-02-07 15:00:24] Production.INFO: ProcessCDR(1,14423154,1,1,2) [2025-02-07 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423154', 'tblTempUsageDetail_20' ) start [2025-02-07 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423154', 'tblTempUsageDetail_20' ) end [2025-02-07 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:00:29] Production.INFO: ==17452== Releasing lock... [2025-02-07 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:00:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:01:06 [end_date_ymd] => 2025-02-07 15:01:06 [RateCDR] => 1 ) [2025-02-07 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:01:06' and `end` < '2025-02-07 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:01:21] Production.INFO: count ==4562 [2025-02-07 15:01:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:01:06 - End Time 2025-02-07 15:01:06 [2025-02-07 15:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423159', 'tblTempUsageDetail_20' ) start [2025-02-07 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423159', 'tblTempUsageDetail_20' ) end [2025-02-07 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423159', 'tblTempVendorCDR_20' ) start [2025-02-07 15:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423159', 'tblTempVendorCDR_20' ) end [2025-02-07 15:01:23] Production.INFO: ProcessCDR(1,14423159,1,1,2) [2025-02-07 15:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423159', 'tblTempUsageDetail_20' ) start [2025-02-07 15:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423159', 'tblTempUsageDetail_20' ) end [2025-02-07 15:01:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:01:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:01:29] Production.INFO: ==17584== Releasing lock... [2025-02-07 15:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:01:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:02:05 [end_date_ymd] => 2025-02-07 15:02:05 [RateCDR] => 1 ) [2025-02-07 15:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:02:05' and `end` < '2025-02-07 15:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:02:21] Production.INFO: count ==4542 [2025-02-07 15:02:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:02:05 - End Time 2025-02-07 15:02:05 [2025-02-07 15:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423164', 'tblTempUsageDetail_20' ) start [2025-02-07 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423164', 'tblTempUsageDetail_20' ) end [2025-02-07 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423164', 'tblTempVendorCDR_20' ) start [2025-02-07 15:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423164', 'tblTempVendorCDR_20' ) end [2025-02-07 15:02:23] Production.INFO: ProcessCDR(1,14423164,1,1,2) [2025-02-07 15:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423164', 'tblTempUsageDetail_20' ) start [2025-02-07 15:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423164', 'tblTempUsageDetail_20' ) end [2025-02-07 15:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:02:29] Production.INFO: ==17694== Releasing lock... [2025-02-07 15:02:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:02:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:03:06 [end_date_ymd] => 2025-02-07 15:03:06 [RateCDR] => 1 ) [2025-02-07 15:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:03:06' and `end` < '2025-02-07 15:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:03:19] Production.INFO: count ==4525 [2025-02-07 15:03:21] Production.ERROR: pbx CDR StartTime 2025-02-07 12:03:06 - End Time 2025-02-07 15:03:06 [2025-02-07 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423169', 'tblTempUsageDetail_20' ) start [2025-02-07 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423169', 'tblTempUsageDetail_20' ) end [2025-02-07 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423169', 'tblTempVendorCDR_20' ) start [2025-02-07 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423169', 'tblTempVendorCDR_20' ) end [2025-02-07 15:03:22] Production.INFO: ProcessCDR(1,14423169,1,1,2) [2025-02-07 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423169', 'tblTempUsageDetail_20' ) start [2025-02-07 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423169', 'tblTempUsageDetail_20' ) end [2025-02-07 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:03:27] Production.INFO: ==17770== Releasing lock... [2025-02-07 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:03:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-07 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:04:05 [end_date_ymd] => 2025-02-07 15:04:05 [RateCDR] => 1 ) [2025-02-07 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:04:05' and `end` < '2025-02-07 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:04:21] Production.INFO: count ==4525 [2025-02-07 15:04:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:04:05 - End Time 2025-02-07 15:04:05 [2025-02-07 15:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423174', 'tblTempUsageDetail_20' ) start [2025-02-07 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423174', 'tblTempUsageDetail_20' ) end [2025-02-07 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423174', 'tblTempVendorCDR_20' ) start [2025-02-07 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423174', 'tblTempVendorCDR_20' ) end [2025-02-07 15:04:23] Production.INFO: ProcessCDR(1,14423174,1,1,2) [2025-02-07 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423174', 'tblTempUsageDetail_20' ) start [2025-02-07 15:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423174', 'tblTempUsageDetail_20' ) end [2025-02-07 15:04:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:04:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:04:29] Production.INFO: ==17841== Releasing lock... [2025-02-07 15:04:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:04:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-07 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:05:06 [end_date_ymd] => 2025-02-07 15:05:06 [RateCDR] => 1 ) [2025-02-07 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:05:06' and `end` < '2025-02-07 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:05:25] Production.INFO: count ==4538 [2025-02-07 15:05:27] Production.ERROR: pbx CDR StartTime 2025-02-07 12:05:06 - End Time 2025-02-07 15:05:06 [2025-02-07 15:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423179', 'tblTempUsageDetail_20' ) start [2025-02-07 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423179', 'tblTempUsageDetail_20' ) end [2025-02-07 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423179', 'tblTempVendorCDR_20' ) start [2025-02-07 15:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423179', 'tblTempVendorCDR_20' ) end [2025-02-07 15:05:28] Production.INFO: ProcessCDR(1,14423179,1,1,2) [2025-02-07 15:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423179', 'tblTempUsageDetail_20' ) start [2025-02-07 15:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423179', 'tblTempUsageDetail_20' ) end [2025-02-07 15:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:05:33] Production.INFO: ==18000== Releasing lock... [2025-02-07 15:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:05:33] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:06:06 [end_date_ymd] => 2025-02-07 15:06:06 [RateCDR] => 1 ) [2025-02-07 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:06:06' and `end` < '2025-02-07 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:06:21] Production.INFO: count ==4526 [2025-02-07 15:06:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:06:06 - End Time 2025-02-07 15:06:06 [2025-02-07 15:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423184', 'tblTempUsageDetail_20' ) start [2025-02-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423184', 'tblTempUsageDetail_20' ) end [2025-02-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423184', 'tblTempVendorCDR_20' ) start [2025-02-07 15:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423184', 'tblTempVendorCDR_20' ) end [2025-02-07 15:06:23] Production.INFO: ProcessCDR(1,14423184,1,1,2) [2025-02-07 15:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423184', 'tblTempUsageDetail_20' ) start [2025-02-07 15:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423184', 'tblTempUsageDetail_20' ) end [2025-02-07 15:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:06:28] Production.INFO: ==18075== Releasing lock... [2025-02-07 15:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:06:28] Production.INFO: 61.75 MB #Memory Used# [2025-02-07 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:07:06 [end_date_ymd] => 2025-02-07 15:07:06 [RateCDR] => 1 ) [2025-02-07 15:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:07:06' and `end` < '2025-02-07 15:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:07:25] Production.INFO: count ==4512 [2025-02-07 15:07:27] Production.ERROR: pbx CDR StartTime 2025-02-07 12:07:06 - End Time 2025-02-07 15:07:06 [2025-02-07 15:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423189', 'tblTempUsageDetail_20' ) start [2025-02-07 15:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423189', 'tblTempUsageDetail_20' ) end [2025-02-07 15:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423189', 'tblTempVendorCDR_20' ) start [2025-02-07 15:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423189', 'tblTempVendorCDR_20' ) end [2025-02-07 15:07:27] Production.INFO: ProcessCDR(1,14423189,1,1,2) [2025-02-07 15:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423189', 'tblTempUsageDetail_20' ) start [2025-02-07 15:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423189', 'tblTempUsageDetail_20' ) end [2025-02-07 15:07:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:07:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:07:32] Production.INFO: ==18186== Releasing lock... [2025-02-07 15:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:07:32] Production.INFO: 61.75 MB #Memory Used# [2025-02-07 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:08:05 [end_date_ymd] => 2025-02-07 15:08:05 [RateCDR] => 1 ) [2025-02-07 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:08:05' and `end` < '2025-02-07 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:08:20] Production.INFO: count ==4539 [2025-02-07 15:08:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:08:05 - End Time 2025-02-07 15:08:05 [2025-02-07 15:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423194', 'tblTempUsageDetail_20' ) start [2025-02-07 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423194', 'tblTempUsageDetail_20' ) end [2025-02-07 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423194', 'tblTempVendorCDR_20' ) start [2025-02-07 15:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423194', 'tblTempVendorCDR_20' ) end [2025-02-07 15:08:23] Production.INFO: ProcessCDR(1,14423194,1,1,2) [2025-02-07 15:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423194', 'tblTempUsageDetail_20' ) start [2025-02-07 15:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423194', 'tblTempUsageDetail_20' ) end [2025-02-07 15:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:08:28] Production.INFO: ==18339== Releasing lock... [2025-02-07 15:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:08:28] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:09:06 [end_date_ymd] => 2025-02-07 15:09:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:09:06' and `end` < '2025-02-07 15: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-07 15:09:21] Production.INFO: count ==4554 [2025-02-07 15:09:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:09:06 - End Time 2025-02-07 15:09:06 [2025-02-07 15:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423199', 'tblTempUsageDetail_20' ) start [2025-02-07 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423199', 'tblTempUsageDetail_20' ) end [2025-02-07 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423199', 'tblTempVendorCDR_20' ) start [2025-02-07 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423199', 'tblTempVendorCDR_20' ) end [2025-02-07 15:09:23] Production.INFO: ProcessCDR(1,14423199,1,1,2) [2025-02-07 15:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423199', 'tblTempUsageDetail_20' ) start [2025-02-07 15:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423199', 'tblTempUsageDetail_20' ) end [2025-02-07 15:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:09:29] Production.INFO: ==18410== Releasing lock... [2025-02-07 15:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:09:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:10:06 [end_date_ymd] => 2025-02-07 15:10:06 [RateCDR] => 1 ) [2025-02-07 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:10:06' and `end` < '2025-02-07 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:10:27] Production.INFO: count ==4535 [2025-02-07 15:10:29] Production.ERROR: pbx CDR StartTime 2025-02-07 12:10:06 - End Time 2025-02-07 15:10:06 [2025-02-07 15:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423205', 'tblTempUsageDetail_20' ) start [2025-02-07 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423205', 'tblTempUsageDetail_20' ) end [2025-02-07 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423205', 'tblTempVendorCDR_20' ) start [2025-02-07 15:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423205', 'tblTempVendorCDR_20' ) end [2025-02-07 15:10:29] Production.INFO: ProcessCDR(1,14423205,1,1,2) [2025-02-07 15:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423205', 'tblTempUsageDetail_20' ) start [2025-02-07 15:10:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423205', 'tblTempUsageDetail_20' ) end [2025-02-07 15:10:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:10:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:10:35] Production.INFO: ==18486== Releasing lock... [2025-02-07 15:10:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:10:35] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:11:06 [end_date_ymd] => 2025-02-07 15:11:06 [RateCDR] => 1 ) [2025-02-07 15:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:11:06' and `end` < '2025-02-07 15:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:11:24] Production.INFO: count ==4575 [2025-02-07 15:11:26] Production.ERROR: pbx CDR StartTime 2025-02-07 12:11:06 - End Time 2025-02-07 15:11:06 [2025-02-07 15:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423210', 'tblTempUsageDetail_20' ) start [2025-02-07 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423210', 'tblTempUsageDetail_20' ) end [2025-02-07 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423210', 'tblTempVendorCDR_20' ) start [2025-02-07 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423210', 'tblTempVendorCDR_20' ) end [2025-02-07 15:11:26] Production.INFO: ProcessCDR(1,14423210,1,1,2) [2025-02-07 15:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:11:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:11:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423210', 'tblTempUsageDetail_20' ) start [2025-02-07 15:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423210', 'tblTempUsageDetail_20' ) end [2025-02-07 15:11:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:11:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:11:31] Production.INFO: ==18561== Releasing lock... [2025-02-07 15:11:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:11:31] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:12:06 [end_date_ymd] => 2025-02-07 15:12:06 [RateCDR] => 1 ) [2025-02-07 15:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:12:06' and `end` < '2025-02-07 15:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:12:23] Production.INFO: count ==4575 [2025-02-07 15:12:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:12:06 - End Time 2025-02-07 15:12:06 [2025-02-07 15:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423215', 'tblTempUsageDetail_20' ) start [2025-02-07 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423215', 'tblTempUsageDetail_20' ) end [2025-02-07 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423215', 'tblTempVendorCDR_20' ) start [2025-02-07 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423215', 'tblTempVendorCDR_20' ) end [2025-02-07 15:12:25] Production.INFO: ProcessCDR(1,14423215,1,1,2) [2025-02-07 15:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423215', 'tblTempUsageDetail_20' ) start [2025-02-07 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423215', 'tblTempUsageDetail_20' ) end [2025-02-07 15:12:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:12:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:12:30] Production.INFO: ==18710== Releasing lock... [2025-02-07 15:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:12:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:13:06 [end_date_ymd] => 2025-02-07 15:13:06 [RateCDR] => 1 ) [2025-02-07 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:13:06' and `end` < '2025-02-07 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:13:23] Production.INFO: count ==4574 [2025-02-07 15:13:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:13:06 - End Time 2025-02-07 15:13:06 [2025-02-07 15:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423220', 'tblTempUsageDetail_20' ) start [2025-02-07 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423220', 'tblTempUsageDetail_20' ) end [2025-02-07 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423220', 'tblTempVendorCDR_20' ) start [2025-02-07 15:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423220', 'tblTempVendorCDR_20' ) end [2025-02-07 15:13:25] Production.INFO: ProcessCDR(1,14423220,1,1,2) [2025-02-07 15:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423220', 'tblTempUsageDetail_20' ) start [2025-02-07 15:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423220', 'tblTempUsageDetail_20' ) end [2025-02-07 15:13:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:13:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:13:29] Production.INFO: ==18787== Releasing lock... [2025-02-07 15:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:13:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:14:06 [end_date_ymd] => 2025-02-07 15:14:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:14:06' and `end` < '2025-02-07 15: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-07 15:14:22] Production.INFO: count ==4554 [2025-02-07 15:14:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:14:06 - End Time 2025-02-07 15:14:06 [2025-02-07 15:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423225', 'tblTempUsageDetail_20' ) start [2025-02-07 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423225', 'tblTempUsageDetail_20' ) end [2025-02-07 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423225', 'tblTempVendorCDR_20' ) start [2025-02-07 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423225', 'tblTempVendorCDR_20' ) end [2025-02-07 15:14:25] Production.INFO: ProcessCDR(1,14423225,1,1,2) [2025-02-07 15:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423225', 'tblTempUsageDetail_20' ) start [2025-02-07 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423225', 'tblTempUsageDetail_20' ) end [2025-02-07 15:14:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:14:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:14:30] Production.INFO: ==18862== Releasing lock... [2025-02-07 15:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:14:30] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:15:06 [end_date_ymd] => 2025-02-07 15:15:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:15:06' and `end` < '2025-02-07 15: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-07 15:15:25] Production.INFO: count ==4544 [2025-02-07 15:15:27] Production.ERROR: pbx CDR StartTime 2025-02-07 12:15:06 - End Time 2025-02-07 15:15:06 [2025-02-07 15:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423230', 'tblTempUsageDetail_20' ) start [2025-02-07 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423230', 'tblTempUsageDetail_20' ) end [2025-02-07 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423230', 'tblTempVendorCDR_20' ) start [2025-02-07 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423230', 'tblTempVendorCDR_20' ) end [2025-02-07 15:15:27] Production.INFO: ProcessCDR(1,14423230,1,1,2) [2025-02-07 15:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423230', 'tblTempUsageDetail_20' ) start [2025-02-07 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423230', 'tblTempUsageDetail_20' ) end [2025-02-07 15:15:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:15:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:15:32] Production.INFO: ==19016== Releasing lock... [2025-02-07 15:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:15:32] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:16:06 [end_date_ymd] => 2025-02-07 15:16:06 [RateCDR] => 1 ) [2025-02-07 15:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:16:06' and `end` < '2025-02-07 15:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:16:21] Production.INFO: count ==4537 [2025-02-07 15:16:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:16:06 - End Time 2025-02-07 15:16:06 [2025-02-07 15:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423235', 'tblTempUsageDetail_20' ) start [2025-02-07 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423235', 'tblTempUsageDetail_20' ) end [2025-02-07 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423235', 'tblTempVendorCDR_20' ) start [2025-02-07 15:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423235', 'tblTempVendorCDR_20' ) end [2025-02-07 15:16:24] Production.INFO: ProcessCDR(1,14423235,1,1,2) [2025-02-07 15:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423235', 'tblTempUsageDetail_20' ) start [2025-02-07 15:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423235', 'tblTempUsageDetail_20' ) end [2025-02-07 15:16:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:16:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:16:29] Production.INFO: ==19094== Releasing lock... [2025-02-07 15:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:16:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:17:05 [end_date_ymd] => 2025-02-07 15:17:05 [RateCDR] => 1 ) [2025-02-07 15:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:17:05' and `end` < '2025-02-07 15:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:17:23] Production.INFO: count ==4520 [2025-02-07 15:17:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:17:05 - End Time 2025-02-07 15:17:05 [2025-02-07 15:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423240', 'tblTempUsageDetail_20' ) start [2025-02-07 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423240', 'tblTempUsageDetail_20' ) end [2025-02-07 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423240', 'tblTempVendorCDR_20' ) start [2025-02-07 15:17:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423240', 'tblTempVendorCDR_20' ) end [2025-02-07 15:17:25] Production.INFO: ProcessCDR(1,14423240,1,1,2) [2025-02-07 15:17:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423240', 'tblTempUsageDetail_20' ) start [2025-02-07 15:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423240', 'tblTempUsageDetail_20' ) end [2025-02-07 15:17:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:17:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:17:29] Production.INFO: ==19169== Releasing lock... [2025-02-07 15:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:17:29] Production.INFO: 61.75 MB #Memory Used# [2025-02-07 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:18:05 [end_date_ymd] => 2025-02-07 15:18:05 [RateCDR] => 1 ) [2025-02-07 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:18:05' and `end` < '2025-02-07 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:18:27] Production.INFO: count ==4530 [2025-02-07 15:18:29] Production.ERROR: pbx CDR StartTime 2025-02-07 12:18:05 - End Time 2025-02-07 15:18:05 [2025-02-07 15:18:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423245', 'tblTempUsageDetail_20' ) start [2025-02-07 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423245', 'tblTempUsageDetail_20' ) end [2025-02-07 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423245', 'tblTempVendorCDR_20' ) start [2025-02-07 15:18:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423245', 'tblTempVendorCDR_20' ) end [2025-02-07 15:18:29] Production.INFO: ProcessCDR(1,14423245,1,1,2) [2025-02-07 15:18:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423245', 'tblTempUsageDetail_20' ) start [2025-02-07 15:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423245', 'tblTempUsageDetail_20' ) end [2025-02-07 15:18:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:18:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:18:34] Production.INFO: ==19244== Releasing lock... [2025-02-07 15:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:18:34] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:19:06 [end_date_ymd] => 2025-02-07 15:19:06 [RateCDR] => 1 ) [2025-02-07 15:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:19:06' and `end` < '2025-02-07 15:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:19:27] Production.INFO: count ==4537 [2025-02-07 15:19:29] Production.ERROR: pbx CDR StartTime 2025-02-07 12:19:06 - End Time 2025-02-07 15:19:06 [2025-02-07 15:19:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423250', 'tblTempUsageDetail_20' ) start [2025-02-07 15:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423250', 'tblTempUsageDetail_20' ) end [2025-02-07 15:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423250', 'tblTempVendorCDR_20' ) start [2025-02-07 15:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423250', 'tblTempVendorCDR_20' ) end [2025-02-07 15:19:30] Production.INFO: ProcessCDR(1,14423250,1,1,2) [2025-02-07 15:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423250', 'tblTempUsageDetail_20' ) start [2025-02-07 15:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423250', 'tblTempUsageDetail_20' ) end [2025-02-07 15:19:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:19:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:19:35] Production.INFO: ==19318== Releasing lock... [2025-02-07 15:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:19:35] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:20:06 [end_date_ymd] => 2025-02-07 15:20:06 [RateCDR] => 1 ) [2025-02-07 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:20:06' and `end` < '2025-02-07 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:20:27] Production.INFO: count ==4535 [2025-02-07 15:20:29] Production.ERROR: pbx CDR StartTime 2025-02-07 12:20:06 - End Time 2025-02-07 15:20:06 [2025-02-07 15:20:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:20:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423256', 'tblTempUsageDetail_20' ) start [2025-02-07 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423256', 'tblTempUsageDetail_20' ) end [2025-02-07 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423256', 'tblTempVendorCDR_20' ) start [2025-02-07 15:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423256', 'tblTempVendorCDR_20' ) end [2025-02-07 15:20:30] Production.INFO: ProcessCDR(1,14423256,1,1,2) [2025-02-07 15:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423256', 'tblTempUsageDetail_20' ) start [2025-02-07 15:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423256', 'tblTempUsageDetail_20' ) end [2025-02-07 15:20:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:20:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:20:35] Production.INFO: ==19392== Releasing lock... [2025-02-07 15:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:20:35] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:21:05 [end_date_ymd] => 2025-02-07 15:21:05 [RateCDR] => 1 ) [2025-02-07 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:21:05' and `end` < '2025-02-07 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:21:22] Production.INFO: count ==4550 [2025-02-07 15:21:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:21:05 - End Time 2025-02-07 15:21:05 [2025-02-07 15:21:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423261', 'tblTempUsageDetail_20' ) start [2025-02-07 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423261', 'tblTempUsageDetail_20' ) end [2025-02-07 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423261', 'tblTempVendorCDR_20' ) start [2025-02-07 15:21:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423261', 'tblTempVendorCDR_20' ) end [2025-02-07 15:21:24] Production.INFO: ProcessCDR(1,14423261,1,1,2) [2025-02-07 15:21:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423261', 'tblTempUsageDetail_20' ) start [2025-02-07 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423261', 'tblTempUsageDetail_20' ) end [2025-02-07 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:21:29] Production.INFO: ==19466== Releasing lock... [2025-02-07 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:21:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:22:05 [end_date_ymd] => 2025-02-07 15:22:05 [RateCDR] => 1 ) [2025-02-07 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:22:05' and `end` < '2025-02-07 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:22:20] Production.INFO: count ==4523 [2025-02-07 15:22:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:22:05 - End Time 2025-02-07 15:22:05 [2025-02-07 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423266', 'tblTempUsageDetail_20' ) start [2025-02-07 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423266', 'tblTempUsageDetail_20' ) end [2025-02-07 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423266', 'tblTempVendorCDR_20' ) start [2025-02-07 15:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423266', 'tblTempVendorCDR_20' ) end [2025-02-07 15:22:23] Production.INFO: ProcessCDR(1,14423266,1,1,2) [2025-02-07 15:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423266', 'tblTempUsageDetail_20' ) start [2025-02-07 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423266', 'tblTempUsageDetail_20' ) end [2025-02-07 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:22:27] Production.INFO: ==19538== Releasing lock... [2025-02-07 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:22:27] Production.INFO: 61.75 MB #Memory Used# [2025-02-07 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:23:05 [end_date_ymd] => 2025-02-07 15:23:05 [RateCDR] => 1 ) [2025-02-07 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:23:05' and `end` < '2025-02-07 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:23:22] Production.INFO: count ==4537 [2025-02-07 15:23:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:23:05 - End Time 2025-02-07 15:23:05 [2025-02-07 15:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423271', 'tblTempUsageDetail_20' ) start [2025-02-07 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423271', 'tblTempUsageDetail_20' ) end [2025-02-07 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423271', 'tblTempVendorCDR_20' ) start [2025-02-07 15:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423271', 'tblTempVendorCDR_20' ) end [2025-02-07 15:23:24] Production.INFO: ProcessCDR(1,14423271,1,1,2) [2025-02-07 15:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423271', 'tblTempUsageDetail_20' ) start [2025-02-07 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423271', 'tblTempUsageDetail_20' ) end [2025-02-07 15:23:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:23:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:23:29] Production.INFO: ==19653== Releasing lock... [2025-02-07 15:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:23:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:24:05 [end_date_ymd] => 2025-02-07 15:24:05 [RateCDR] => 1 ) [2025-02-07 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:24:05' and `end` < '2025-02-07 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:24:21] Production.INFO: count ==4533 [2025-02-07 15:24:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:24:05 - End Time 2025-02-07 15:24:05 [2025-02-07 15:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423276', 'tblTempUsageDetail_20' ) start [2025-02-07 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423276', 'tblTempUsageDetail_20' ) end [2025-02-07 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423276', 'tblTempVendorCDR_20' ) start [2025-02-07 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423276', 'tblTempVendorCDR_20' ) end [2025-02-07 15:24:24] Production.INFO: ProcessCDR(1,14423276,1,1,2) [2025-02-07 15:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423276', 'tblTempUsageDetail_20' ) start [2025-02-07 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423276', 'tblTempUsageDetail_20' ) end [2025-02-07 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:24:29] Production.INFO: ==19724== Releasing lock... [2025-02-07 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:24:29] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:25:06 [end_date_ymd] => 2025-02-07 15:25:06 [RateCDR] => 1 ) [2025-02-07 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:25:06' and `end` < '2025-02-07 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:25:20] Production.INFO: count ==4533 [2025-02-07 15:25:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:25:06 - End Time 2025-02-07 15:25:06 [2025-02-07 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423281', 'tblTempUsageDetail_20' ) start [2025-02-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423281', 'tblTempUsageDetail_20' ) end [2025-02-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423281', 'tblTempVendorCDR_20' ) start [2025-02-07 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423281', 'tblTempVendorCDR_20' ) end [2025-02-07 15:25:22] Production.INFO: ProcessCDR(1,14423281,1,1,2) [2025-02-07 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423281', 'tblTempUsageDetail_20' ) start [2025-02-07 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423281', 'tblTempUsageDetail_20' ) end [2025-02-07 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:25:27] Production.INFO: ==19800== Releasing lock... [2025-02-07 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:25:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:26:05 [end_date_ymd] => 2025-02-07 15:26:05 [RateCDR] => 1 ) [2025-02-07 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:26:05' and `end` < '2025-02-07 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:26:19] Production.INFO: count ==4553 [2025-02-07 15:26:20] Production.ERROR: pbx CDR StartTime 2025-02-07 12:26:05 - End Time 2025-02-07 15:26:05 [2025-02-07 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423286', 'tblTempUsageDetail_20' ) start [2025-02-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423286', 'tblTempUsageDetail_20' ) end [2025-02-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423286', 'tblTempVendorCDR_20' ) start [2025-02-07 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423286', 'tblTempVendorCDR_20' ) end [2025-02-07 15:26:21] Production.INFO: ProcessCDR(1,14423286,1,1,2) [2025-02-07 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423286', 'tblTempUsageDetail_20' ) start [2025-02-07 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423286', 'tblTempUsageDetail_20' ) end [2025-02-07 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:26:26] Production.INFO: ==19874== Releasing lock... [2025-02-07 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:26:26] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:27:06 [end_date_ymd] => 2025-02-07 15:27:06 [RateCDR] => 1 ) [2025-02-07 15:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:27:06' and `end` < '2025-02-07 15:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:27:24] Production.INFO: count ==4540 [2025-02-07 15:27:26] Production.ERROR: pbx CDR StartTime 2025-02-07 12:27:06 - End Time 2025-02-07 15:27:06 [2025-02-07 15:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423291', 'tblTempUsageDetail_20' ) start [2025-02-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423291', 'tblTempUsageDetail_20' ) end [2025-02-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423291', 'tblTempVendorCDR_20' ) start [2025-02-07 15:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423291', 'tblTempVendorCDR_20' ) end [2025-02-07 15:27:26] Production.INFO: ProcessCDR(1,14423291,1,1,2) [2025-02-07 15:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:27:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423291', 'tblTempUsageDetail_20' ) start [2025-02-07 15:27:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423291', 'tblTempUsageDetail_20' ) end [2025-02-07 15:27:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:27:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:27:31] Production.INFO: ==19953== Releasing lock... [2025-02-07 15:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:27:31] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:28:05 [end_date_ymd] => 2025-02-07 15:28:05 [RateCDR] => 1 ) [2025-02-07 15:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:28:05' and `end` < '2025-02-07 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:28:20] Production.INFO: count ==4547 [2025-02-07 15:28:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:28:05 - End Time 2025-02-07 15:28:05 [2025-02-07 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423296', 'tblTempUsageDetail_20' ) start [2025-02-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423296', 'tblTempUsageDetail_20' ) end [2025-02-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423296', 'tblTempVendorCDR_20' ) start [2025-02-07 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423296', 'tblTempVendorCDR_20' ) end [2025-02-07 15:28:22] Production.INFO: ProcessCDR(1,14423296,1,1,2) [2025-02-07 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423296', 'tblTempUsageDetail_20' ) start [2025-02-07 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423296', 'tblTempUsageDetail_20' ) end [2025-02-07 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:28:27] Production.INFO: ==20029== Releasing lock... [2025-02-07 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:28:27] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:29:06 [end_date_ymd] => 2025-02-07 15:29:06 [RateCDR] => 1 ) [2025-02-07 15:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:29:06' and `end` < '2025-02-07 15:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:29:29] Production.INFO: count ==4543 [2025-02-07 15:29:30] Production.ERROR: pbx CDR StartTime 2025-02-07 12:29:06 - End Time 2025-02-07 15:29:06 [2025-02-07 15:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423301', 'tblTempUsageDetail_20' ) start [2025-02-07 15:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423301', 'tblTempUsageDetail_20' ) end [2025-02-07 15:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423301', 'tblTempVendorCDR_20' ) start [2025-02-07 15:29:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423301', 'tblTempVendorCDR_20' ) end [2025-02-07 15:29:31] Production.INFO: ProcessCDR(1,14423301,1,1,2) [2025-02-07 15:29:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423301', 'tblTempUsageDetail_20' ) start [2025-02-07 15:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423301', 'tblTempUsageDetail_20' ) end [2025-02-07 15:29:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:29:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:29:36] Production.INFO: ==20109== Releasing lock... [2025-02-07 15:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:29:36] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:30:05 [end_date_ymd] => 2025-02-07 15:30:05 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:30:05' and `end` < '2025-02-07 15: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-07 15:30:25] Production.INFO: count ==4539 [2025-02-07 15:30:27] Production.ERROR: pbx CDR StartTime 2025-02-07 12:30:05 - End Time 2025-02-07 15:30:05 [2025-02-07 15:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423307', 'tblTempUsageDetail_20' ) start [2025-02-07 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423307', 'tblTempUsageDetail_20' ) end [2025-02-07 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423307', 'tblTempVendorCDR_20' ) start [2025-02-07 15:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423307', 'tblTempVendorCDR_20' ) end [2025-02-07 15:30:27] Production.INFO: ProcessCDR(1,14423307,1,1,2) [2025-02-07 15:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423307', 'tblTempUsageDetail_20' ) start [2025-02-07 15:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423307', 'tblTempUsageDetail_20' ) end [2025-02-07 15:30:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:30:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:30:32] Production.INFO: ==20181== Releasing lock... [2025-02-07 15:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:30:32] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:31:06 [end_date_ymd] => 2025-02-07 15:31:06 [RateCDR] => 1 ) [2025-02-07 15:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:31:06' and `end` < '2025-02-07 15:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:31:20] Production.INFO: count ==4585 [2025-02-07 15:31:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:31:06 - End Time 2025-02-07 15:31:06 [2025-02-07 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423312', 'tblTempUsageDetail_20' ) start [2025-02-07 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423312', 'tblTempUsageDetail_20' ) end [2025-02-07 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423312', 'tblTempVendorCDR_20' ) start [2025-02-07 15:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423312', 'tblTempVendorCDR_20' ) end [2025-02-07 15:31:23] Production.INFO: ProcessCDR(1,14423312,1,1,2) [2025-02-07 15:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423312', 'tblTempUsageDetail_20' ) start [2025-02-07 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423312', 'tblTempUsageDetail_20' ) end [2025-02-07 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:31:27] Production.INFO: ==20264== Releasing lock... [2025-02-07 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:31:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:32:05 [end_date_ymd] => 2025-02-07 15:32:05 [RateCDR] => 1 ) [2025-02-07 15:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:32:05' and `end` < '2025-02-07 15:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:32:21] Production.INFO: count ==4578 [2025-02-07 15:32:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:32:05 - End Time 2025-02-07 15:32:05 [2025-02-07 15:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423317', 'tblTempUsageDetail_20' ) start [2025-02-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423317', 'tblTempUsageDetail_20' ) end [2025-02-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423317', 'tblTempVendorCDR_20' ) start [2025-02-07 15:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423317', 'tblTempVendorCDR_20' ) end [2025-02-07 15:32:23] Production.INFO: ProcessCDR(1,14423317,1,1,2) [2025-02-07 15:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423317', 'tblTempUsageDetail_20' ) start [2025-02-07 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423317', 'tblTempUsageDetail_20' ) end [2025-02-07 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:32:28] Production.INFO: ==20341== Releasing lock... [2025-02-07 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:32:28] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:33:05 [end_date_ymd] => 2025-02-07 15:33:05 [RateCDR] => 1 ) [2025-02-07 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:33:05' and `end` < '2025-02-07 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:33:22] Production.INFO: count ==4578 [2025-02-07 15:33:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:33:05 - End Time 2025-02-07 15:33:05 [2025-02-07 15:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423322', 'tblTempUsageDetail_20' ) start [2025-02-07 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423322', 'tblTempUsageDetail_20' ) end [2025-02-07 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423322', 'tblTempVendorCDR_20' ) start [2025-02-07 15:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423322', 'tblTempVendorCDR_20' ) end [2025-02-07 15:33:24] Production.INFO: ProcessCDR(1,14423322,1,1,2) [2025-02-07 15:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423322', 'tblTempUsageDetail_20' ) start [2025-02-07 15:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423322', 'tblTempUsageDetail_20' ) end [2025-02-07 15:33:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:33:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:33:29] Production.INFO: ==20421== Releasing lock... [2025-02-07 15:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:33:29] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:34:06 [end_date_ymd] => 2025-02-07 15:34:06 [RateCDR] => 1 ) [2025-02-07 15:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:34:06' and `end` < '2025-02-07 15:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:34:23] Production.INFO: count ==4584 [2025-02-07 15:34:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:34:06 - End Time 2025-02-07 15:34:06 [2025-02-07 15:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423327', 'tblTempUsageDetail_20' ) start [2025-02-07 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423327', 'tblTempUsageDetail_20' ) end [2025-02-07 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423327', 'tblTempVendorCDR_20' ) start [2025-02-07 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423327', 'tblTempVendorCDR_20' ) end [2025-02-07 15:34:25] Production.INFO: ProcessCDR(1,14423327,1,1,2) [2025-02-07 15:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423327', 'tblTempUsageDetail_20' ) start [2025-02-07 15:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423327', 'tblTempUsageDetail_20' ) end [2025-02-07 15:34:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:34:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:34:30] Production.INFO: ==20500== Releasing lock... [2025-02-07 15:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:34:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:35:05 [end_date_ymd] => 2025-02-07 15:35:05 [RateCDR] => 1 ) [2025-02-07 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:35:05' and `end` < '2025-02-07 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:35:23] Production.INFO: count ==4591 [2025-02-07 15:35:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:35:05 - End Time 2025-02-07 15:35:05 [2025-02-07 15:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423332', 'tblTempUsageDetail_20' ) start [2025-02-07 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423332', 'tblTempUsageDetail_20' ) end [2025-02-07 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423332', 'tblTempVendorCDR_20' ) start [2025-02-07 15:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423332', 'tblTempVendorCDR_20' ) end [2025-02-07 15:35:25] Production.INFO: ProcessCDR(1,14423332,1,1,2) [2025-02-07 15:35:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:35:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:35:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:35:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423332', 'tblTempUsageDetail_20' ) start [2025-02-07 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423332', 'tblTempUsageDetail_20' ) end [2025-02-07 15:35:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:35:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:35:30] Production.INFO: ==20576== Releasing lock... [2025-02-07 15:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:35:30] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:36:06 [end_date_ymd] => 2025-02-07 15:36:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:36:06' and `end` < '2025-02-07 15: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-07 15:36:21] Production.INFO: count ==4618 [2025-02-07 15:36:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:36:06 - End Time 2025-02-07 15:36:06 [2025-02-07 15:36:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423337', 'tblTempUsageDetail_20' ) start [2025-02-07 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423337', 'tblTempUsageDetail_20' ) end [2025-02-07 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423337', 'tblTempVendorCDR_20' ) start [2025-02-07 15:36:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423337', 'tblTempVendorCDR_20' ) end [2025-02-07 15:36:23] Production.INFO: ProcessCDR(1,14423337,1,1,2) [2025-02-07 15:36:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423337', 'tblTempUsageDetail_20' ) start [2025-02-07 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423337', 'tblTempUsageDetail_20' ) end [2025-02-07 15:36:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:36:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:36:29] Production.INFO: ==20656== Releasing lock... [2025-02-07 15:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:36:29] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:37:05 [end_date_ymd] => 2025-02-07 15:37:05 [RateCDR] => 1 ) [2025-02-07 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:37:05' and `end` < '2025-02-07 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:37:21] Production.INFO: count ==4681 [2025-02-07 15:37:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:37:05 - End Time 2025-02-07 15:37:05 [2025-02-07 15:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423342', 'tblTempUsageDetail_20' ) start [2025-02-07 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423342', 'tblTempUsageDetail_20' ) end [2025-02-07 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423342', 'tblTempVendorCDR_20' ) start [2025-02-07 15:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423342', 'tblTempVendorCDR_20' ) end [2025-02-07 15:37:23] Production.INFO: ProcessCDR(1,14423342,1,1,2) [2025-02-07 15:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423342', 'tblTempUsageDetail_20' ) start [2025-02-07 15:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423342', 'tblTempUsageDetail_20' ) end [2025-02-07 15:37:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:37:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:37:29] Production.INFO: ==20737== Releasing lock... [2025-02-07 15:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:37:29] Production.INFO: 63 MB #Memory Used# [2025-02-07 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:38:06 [end_date_ymd] => 2025-02-07 15:38:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:38:06' and `end` < '2025-02-07 15: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-07 15:38:23] Production.INFO: count ==4695 [2025-02-07 15:38:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:38:06 - End Time 2025-02-07 15:38:06 [2025-02-07 15:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423347', 'tblTempUsageDetail_20' ) start [2025-02-07 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423347', 'tblTempUsageDetail_20' ) end [2025-02-07 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423347', 'tblTempVendorCDR_20' ) start [2025-02-07 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423347', 'tblTempVendorCDR_20' ) end [2025-02-07 15:38:25] Production.INFO: ProcessCDR(1,14423347,1,1,2) [2025-02-07 15:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423347', 'tblTempUsageDetail_20' ) start [2025-02-07 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423347', 'tblTempUsageDetail_20' ) end [2025-02-07 15:38:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:38:30] Production.INFO: ==20858== Releasing lock... [2025-02-07 15:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:38:30] Production.INFO: 63 MB #Memory Used# [2025-02-07 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:39:05 [end_date_ymd] => 2025-02-07 15:39:05 [RateCDR] => 1 ) [2025-02-07 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:39:05' and `end` < '2025-02-07 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:39:23] Production.INFO: count ==4679 [2025-02-07 15:39:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:39:05 - End Time 2025-02-07 15:39:05 [2025-02-07 15:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423352', 'tblTempUsageDetail_20' ) start [2025-02-07 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423352', 'tblTempUsageDetail_20' ) end [2025-02-07 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423352', 'tblTempVendorCDR_20' ) start [2025-02-07 15:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423352', 'tblTempVendorCDR_20' ) end [2025-02-07 15:39:25] Production.INFO: ProcessCDR(1,14423352,1,1,2) [2025-02-07 15:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423352', 'tblTempUsageDetail_20' ) start [2025-02-07 15:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423352', 'tblTempUsageDetail_20' ) end [2025-02-07 15:39:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:39:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:39:30] Production.INFO: ==20939== Releasing lock... [2025-02-07 15:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:39:30] Production.INFO: 63 MB #Memory Used# [2025-02-07 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:40:06 [end_date_ymd] => 2025-02-07 15:40:06 [RateCDR] => 1 ) [2025-02-07 15:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:40:06' and `end` < '2025-02-07 15:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:40:20] Production.INFO: count ==4685 [2025-02-07 15:40:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:40:06 - End Time 2025-02-07 15:40:06 [2025-02-07 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423358', 'tblTempUsageDetail_20' ) start [2025-02-07 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423358', 'tblTempUsageDetail_20' ) end [2025-02-07 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423358', 'tblTempVendorCDR_20' ) start [2025-02-07 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423358', 'tblTempVendorCDR_20' ) end [2025-02-07 15:40:22] Production.INFO: ProcessCDR(1,14423358,1,1,2) [2025-02-07 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423358', 'tblTempUsageDetail_20' ) start [2025-02-07 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423358', 'tblTempUsageDetail_20' ) end [2025-02-07 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:40:27] Production.INFO: ==21028== Releasing lock... [2025-02-07 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:40:27] Production.INFO: 63 MB #Memory Used# [2025-02-07 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:41:05 [end_date_ymd] => 2025-02-07 15:41:05 [RateCDR] => 1 ) [2025-02-07 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:41:05' and `end` < '2025-02-07 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:41:22] Production.INFO: count ==4698 [2025-02-07 15:41:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:41:05 - End Time 2025-02-07 15:41:05 [2025-02-07 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423363', 'tblTempUsageDetail_20' ) start [2025-02-07 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423363', 'tblTempUsageDetail_20' ) end [2025-02-07 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423363', 'tblTempVendorCDR_20' ) start [2025-02-07 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423363', 'tblTempVendorCDR_20' ) end [2025-02-07 15:41:24] Production.INFO: ProcessCDR(1,14423363,1,1,2) [2025-02-07 15:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423363', 'tblTempUsageDetail_20' ) start [2025-02-07 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423363', 'tblTempUsageDetail_20' ) end [2025-02-07 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:41:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:41:29] Production.INFO: ==21115== Releasing lock... [2025-02-07 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:41:29] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:42:05 [end_date_ymd] => 2025-02-07 15:42:05 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:42:05' and `end` < '2025-02-07 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:42:23] Production.INFO: count ==4718 [2025-02-07 15:42:25] Production.ERROR: pbx CDR StartTime 2025-02-07 12:42:05 - End Time 2025-02-07 15:42:05 [2025-02-07 15:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423368', 'tblTempUsageDetail_20' ) start [2025-02-07 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423368', 'tblTempUsageDetail_20' ) end [2025-02-07 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423368', 'tblTempVendorCDR_20' ) start [2025-02-07 15:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423368', 'tblTempVendorCDR_20' ) end [2025-02-07 15:42:25] Production.INFO: ProcessCDR(1,14423368,1,1,2) [2025-02-07 15:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423368', 'tblTempUsageDetail_20' ) start [2025-02-07 15:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423368', 'tblTempUsageDetail_20' ) end [2025-02-07 15:42:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:42:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:42:30] Production.INFO: ==21196== Releasing lock... [2025-02-07 15:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:42:30] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:43:05 [end_date_ymd] => 2025-02-07 15:43:05 [RateCDR] => 1 ) [2025-02-07 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:43:05' and `end` < '2025-02-07 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:43:29] Production.INFO: count ==4723 [2025-02-07 15:43:31] Production.ERROR: pbx CDR StartTime 2025-02-07 12:43:05 - End Time 2025-02-07 15:43:05 [2025-02-07 15:43:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423373', 'tblTempUsageDetail_20' ) start [2025-02-07 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423373', 'tblTempUsageDetail_20' ) end [2025-02-07 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423373', 'tblTempVendorCDR_20' ) start [2025-02-07 15:43:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423373', 'tblTempVendorCDR_20' ) end [2025-02-07 15:43:31] Production.INFO: ProcessCDR(1,14423373,1,1,2) [2025-02-07 15:43:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:43:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423373', 'tblTempUsageDetail_20' ) start [2025-02-07 15:43:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423373', 'tblTempUsageDetail_20' ) end [2025-02-07 15:43:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:43:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:43:36] Production.INFO: ==21277== Releasing lock... [2025-02-07 15:43:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:43:36] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:44:05 [end_date_ymd] => 2025-02-07 15:44:05 [RateCDR] => 1 ) [2025-02-07 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:44:05' and `end` < '2025-02-07 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:44:25] Production.INFO: count ==4687 [2025-02-07 15:44:27] Production.ERROR: pbx CDR StartTime 2025-02-07 12:44:05 - End Time 2025-02-07 15:44:05 [2025-02-07 15:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423378', 'tblTempUsageDetail_20' ) start [2025-02-07 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423378', 'tblTempUsageDetail_20' ) end [2025-02-07 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423378', 'tblTempVendorCDR_20' ) start [2025-02-07 15:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423378', 'tblTempVendorCDR_20' ) end [2025-02-07 15:44:27] Production.INFO: ProcessCDR(1,14423378,1,1,2) [2025-02-07 15:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423378', 'tblTempUsageDetail_20' ) start [2025-02-07 15:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423378', 'tblTempUsageDetail_20' ) end [2025-02-07 15:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:44:32] Production.INFO: ==21363== Releasing lock... [2025-02-07 15:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:44:32] Production.INFO: 63 MB #Memory Used# [2025-02-07 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:45:05 [end_date_ymd] => 2025-02-07 15:45:05 [RateCDR] => 1 ) [2025-02-07 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:45:05' and `end` < '2025-02-07 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:45:30] Production.INFO: count ==4649 [2025-02-07 15:45:32] Production.ERROR: pbx CDR StartTime 2025-02-07 12:45:05 - End Time 2025-02-07 15:45:05 [2025-02-07 15:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423383', 'tblTempUsageDetail_20' ) start [2025-02-07 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423383', 'tblTempUsageDetail_20' ) end [2025-02-07 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423383', 'tblTempVendorCDR_20' ) start [2025-02-07 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423383', 'tblTempVendorCDR_20' ) end [2025-02-07 15:45:32] Production.INFO: ProcessCDR(1,14423383,1,1,2) [2025-02-07 15:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:45:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423383', 'tblTempUsageDetail_20' ) start [2025-02-07 15:45:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423383', 'tblTempUsageDetail_20' ) end [2025-02-07 15:45:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:45:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:45:36] Production.INFO: ==21446== Releasing lock... [2025-02-07 15:45:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:45:36] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:46:05 [end_date_ymd] => 2025-02-07 15:46:05 [RateCDR] => 1 ) [2025-02-07 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:46:05' and `end` < '2025-02-07 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:46:28] Production.INFO: count ==4613 [2025-02-07 15:46:30] Production.ERROR: pbx CDR StartTime 2025-02-07 12:46:05 - End Time 2025-02-07 15:46:05 [2025-02-07 15:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423388', 'tblTempUsageDetail_20' ) start [2025-02-07 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423388', 'tblTempUsageDetail_20' ) end [2025-02-07 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423388', 'tblTempVendorCDR_20' ) start [2025-02-07 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423388', 'tblTempVendorCDR_20' ) end [2025-02-07 15:46:30] Production.INFO: ProcessCDR(1,14423388,1,1,2) [2025-02-07 15:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423388', 'tblTempUsageDetail_20' ) start [2025-02-07 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423388', 'tblTempUsageDetail_20' ) end [2025-02-07 15:46:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:46:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:46:35] Production.INFO: ==21525== Releasing lock... [2025-02-07 15:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:46:35] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:47:05 [end_date_ymd] => 2025-02-07 15:47:05 [RateCDR] => 1 ) [2025-02-07 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:47:05' and `end` < '2025-02-07 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:47:24] Production.INFO: count ==4560 [2025-02-07 15:47:26] Production.ERROR: pbx CDR StartTime 2025-02-07 12:47:05 - End Time 2025-02-07 15:47:05 [2025-02-07 15:47:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423393', 'tblTempUsageDetail_20' ) start [2025-02-07 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423393', 'tblTempUsageDetail_20' ) end [2025-02-07 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423393', 'tblTempVendorCDR_20' ) start [2025-02-07 15:47:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423393', 'tblTempVendorCDR_20' ) end [2025-02-07 15:47:26] Production.INFO: ProcessCDR(1,14423393,1,1,2) [2025-02-07 15:47:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:47:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423393', 'tblTempUsageDetail_20' ) start [2025-02-07 15:47:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423393', 'tblTempUsageDetail_20' ) end [2025-02-07 15:47:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:47:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:47:32] Production.INFO: ==21605== Releasing lock... [2025-02-07 15:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:47:32] Production.INFO: 62 MB #Memory Used# [2025-02-07 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:48:05 [end_date_ymd] => 2025-02-07 15:48:05 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:48:05' and `end` < '2025-02-07 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:48:20] Production.INFO: count ==4587 [2025-02-07 15:48:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:48:05 - End Time 2025-02-07 15:48:05 [2025-02-07 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423398', 'tblTempUsageDetail_20' ) start [2025-02-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423398', 'tblTempUsageDetail_20' ) end [2025-02-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423398', 'tblTempVendorCDR_20' ) start [2025-02-07 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423398', 'tblTempVendorCDR_20' ) end [2025-02-07 15:48:22] Production.INFO: ProcessCDR(1,14423398,1,1,2) [2025-02-07 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423398', 'tblTempUsageDetail_20' ) start [2025-02-07 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423398', 'tblTempUsageDetail_20' ) end [2025-02-07 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:48:27] Production.INFO: ==21688== Releasing lock... [2025-02-07 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:48:27] Production.INFO: 62.25 MB #Memory Used# [2025-02-07 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:49:06 [end_date_ymd] => 2025-02-07 15:49:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:49:06' and `end` < '2025-02-07 15: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-07 15:49:21] Production.INFO: count ==4636 [2025-02-07 15:49:23] Production.ERROR: pbx CDR StartTime 2025-02-07 12:49:06 - End Time 2025-02-07 15:49:06 [2025-02-07 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423403', 'tblTempUsageDetail_20' ) start [2025-02-07 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423403', 'tblTempUsageDetail_20' ) end [2025-02-07 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423403', 'tblTempVendorCDR_20' ) start [2025-02-07 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423403', 'tblTempVendorCDR_20' ) end [2025-02-07 15:49:23] Production.INFO: ProcessCDR(1,14423403,1,1,2) [2025-02-07 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423403', 'tblTempUsageDetail_20' ) start [2025-02-07 15:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423403', 'tblTempUsageDetail_20' ) end [2025-02-07 15:49:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:49:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:49:29] Production.INFO: ==21769== Releasing lock... [2025-02-07 15:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:49:29] Production.INFO: 62.75 MB #Memory Used# [2025-02-07 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:50:07 [end_date_ymd] => 2025-02-07 15:50:07 [RateCDR] => 1 ) [2025-02-07 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:50:07' and `end` < '2025-02-07 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:50:30] Production.INFO: count ==4680 [2025-02-07 15:50:32] Production.ERROR: pbx CDR StartTime 2025-02-07 12:50:07 - End Time 2025-02-07 15:50:07 [2025-02-07 15:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423409', 'tblTempUsageDetail_20' ) start [2025-02-07 15:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423409', 'tblTempUsageDetail_20' ) end [2025-02-07 15:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423409', 'tblTempVendorCDR_20' ) start [2025-02-07 15:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423409', 'tblTempVendorCDR_20' ) end [2025-02-07 15:50:33] Production.INFO: ProcessCDR(1,14423409,1,1,2) [2025-02-07 15:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:50:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423409', 'tblTempUsageDetail_20' ) start [2025-02-07 15:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423409', 'tblTempUsageDetail_20' ) end [2025-02-07 15:50:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:50:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:50:38] Production.INFO: ==21852== Releasing lock... [2025-02-07 15:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:50:38] Production.INFO: 63 MB #Memory Used# [2025-02-07 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:51:06 [end_date_ymd] => 2025-02-07 15:51:06 [RateCDR] => 1 ) [2025-02-07 15:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:51:06' and `end` < '2025-02-07 15:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:51:31] Production.INFO: count ==4737 [2025-02-07 15:51:33] Production.ERROR: pbx CDR StartTime 2025-02-07 12:51:06 - End Time 2025-02-07 15:51:06 [2025-02-07 15:51:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423414', 'tblTempUsageDetail_20' ) start [2025-02-07 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423414', 'tblTempUsageDetail_20' ) end [2025-02-07 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423414', 'tblTempVendorCDR_20' ) start [2025-02-07 15:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423414', 'tblTempVendorCDR_20' ) end [2025-02-07 15:51:33] Production.INFO: ProcessCDR(1,14423414,1,1,2) [2025-02-07 15:51:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:51:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:51:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:51:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:51:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423414', 'tblTempUsageDetail_20' ) start [2025-02-07 15:51:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423414', 'tblTempUsageDetail_20' ) end [2025-02-07 15:51:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:51:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:51:39] Production.INFO: ==21936== Releasing lock... [2025-02-07 15:51:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:51:39] Production.INFO: 63.5 MB #Memory Used# [2025-02-07 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:52:06 [end_date_ymd] => 2025-02-07 15:52:06 [RateCDR] => 1 ) [2025-02-07 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:52:06' and `end` < '2025-02-07 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:52:27] Production.INFO: count ==4790 [2025-02-07 15:52:29] Production.ERROR: pbx CDR StartTime 2025-02-07 12:52:06 - End Time 2025-02-07 15:52:06 [2025-02-07 15:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423419', 'tblTempUsageDetail_20' ) start [2025-02-07 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423419', 'tblTempUsageDetail_20' ) end [2025-02-07 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423419', 'tblTempVendorCDR_20' ) start [2025-02-07 15:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423419', 'tblTempVendorCDR_20' ) end [2025-02-07 15:52:29] Production.INFO: ProcessCDR(1,14423419,1,1,2) [2025-02-07 15:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423419', 'tblTempUsageDetail_20' ) start [2025-02-07 15:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423419', 'tblTempUsageDetail_20' ) end [2025-02-07 15:52:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:52:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:52:34] Production.INFO: ==22019== Releasing lock... [2025-02-07 15:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:52:34] Production.INFO: 63.75 MB #Memory Used# [2025-02-07 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:53:05 [end_date_ymd] => 2025-02-07 15:53:05 [RateCDR] => 1 ) [2025-02-07 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:53:05' and `end` < '2025-02-07 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:53:22] Production.INFO: count ==4812 [2025-02-07 15:53:24] Production.ERROR: pbx CDR StartTime 2025-02-07 12:53:05 - End Time 2025-02-07 15:53:05 [2025-02-07 15:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423424', 'tblTempUsageDetail_20' ) start [2025-02-07 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423424', 'tblTempUsageDetail_20' ) end [2025-02-07 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423424', 'tblTempVendorCDR_20' ) start [2025-02-07 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423424', 'tblTempVendorCDR_20' ) end [2025-02-07 15:53:25] Production.INFO: ProcessCDR(1,14423424,1,1,2) [2025-02-07 15:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423424', 'tblTempUsageDetail_20' ) start [2025-02-07 15:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423424', 'tblTempUsageDetail_20' ) end [2025-02-07 15:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:53:29] Production.INFO: ==22105== Releasing lock... [2025-02-07 15:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:53:29] Production.INFO: 64 MB #Memory Used# [2025-02-07 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:54:05 [end_date_ymd] => 2025-02-07 15:54:05 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:54:05' and `end` < '2025-02-07 15:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:54:25] Production.INFO: count ==4840 [2025-02-07 15:54:27] Production.ERROR: pbx CDR StartTime 2025-02-07 12:54:05 - End Time 2025-02-07 15:54:05 [2025-02-07 15:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423429', 'tblTempUsageDetail_20' ) start [2025-02-07 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423429', 'tblTempUsageDetail_20' ) end [2025-02-07 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423429', 'tblTempVendorCDR_20' ) start [2025-02-07 15:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423429', 'tblTempVendorCDR_20' ) end [2025-02-07 15:54:27] Production.INFO: ProcessCDR(1,14423429,1,1,2) [2025-02-07 15:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423429', 'tblTempUsageDetail_20' ) start [2025-02-07 15:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423429', 'tblTempUsageDetail_20' ) end [2025-02-07 15:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:54:32] Production.INFO: ==22230== Releasing lock... [2025-02-07 15:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:54:32] Production.INFO: 64.25 MB #Memory Used# [2025-02-07 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:55:05 [end_date_ymd] => 2025-02-07 15:55:05 [RateCDR] => 1 ) [2025-02-07 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:55:05' and `end` < '2025-02-07 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:55:25] Production.INFO: count ==4892 [2025-02-07 15:55:28] Production.ERROR: pbx CDR StartTime 2025-02-07 12:55:05 - End Time 2025-02-07 15:55:05 [2025-02-07 15:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423434', 'tblTempUsageDetail_20' ) start [2025-02-07 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423434', 'tblTempUsageDetail_20' ) end [2025-02-07 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423434', 'tblTempVendorCDR_20' ) start [2025-02-07 15:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423434', 'tblTempVendorCDR_20' ) end [2025-02-07 15:55:28] Production.INFO: ProcessCDR(1,14423434,1,1,2) [2025-02-07 15:55:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:55:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423434', 'tblTempUsageDetail_20' ) start [2025-02-07 15:55:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423434', 'tblTempUsageDetail_20' ) end [2025-02-07 15:55:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:55:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:55:33] Production.INFO: ==22312== Releasing lock... [2025-02-07 15:55:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:55:33] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:56:05 [end_date_ymd] => 2025-02-07 15:56:05 [RateCDR] => 1 ) [2025-02-07 15:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:56:05' and `end` < '2025-02-07 15:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:56:20] Production.INFO: count ==4934 [2025-02-07 15:56:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:56:05 - End Time 2025-02-07 15:56:05 [2025-02-07 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423439', 'tblTempUsageDetail_20' ) start [2025-02-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423439', 'tblTempUsageDetail_20' ) end [2025-02-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423439', 'tblTempVendorCDR_20' ) start [2025-02-07 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423439', 'tblTempVendorCDR_20' ) end [2025-02-07 15:56:22] Production.INFO: ProcessCDR(1,14423439,1,1,2) [2025-02-07 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423439', 'tblTempUsageDetail_20' ) start [2025-02-07 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423439', 'tblTempUsageDetail_20' ) end [2025-02-07 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:56:27] Production.INFO: ==22396== Releasing lock... [2025-02-07 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:56:27] Production.INFO: 65 MB #Memory Used# [2025-02-07 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:57:05 [end_date_ymd] => 2025-02-07 15:57:05 [RateCDR] => 1 ) [2025-02-07 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:57:05' and `end` < '2025-02-07 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:57:20] Production.INFO: count ==5500 [2025-02-07 15:57:22] Production.ERROR: pbx CDR StartTime 2025-02-07 12:57:05 - End Time 2025-02-07 15:57:05 [2025-02-07 15:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423444', 'tblTempUsageDetail_20' ) start [2025-02-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423444', 'tblTempUsageDetail_20' ) end [2025-02-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423444', 'tblTempVendorCDR_20' ) start [2025-02-07 15:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423444', 'tblTempVendorCDR_20' ) end [2025-02-07 15:57:22] Production.INFO: ProcessCDR(1,14423444,1,1,2) [2025-02-07 15:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423444', 'tblTempUsageDetail_20' ) start [2025-02-07 15:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423444', 'tblTempUsageDetail_20' ) end [2025-02-07 15:57:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:57:29] Production.INFO: ==22476== Releasing lock... [2025-02-07 15:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:57:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:58:06 [end_date_ymd] => 2025-02-07 15:58:06 [RateCDR] => 1 ) [2025-02-07 15:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 12:58:06' and `end` < '2025-02-07 15:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 15:58:36] Production.INFO: count ==5498 [2025-02-07 15:58:38] Production.ERROR: pbx CDR StartTime 2025-02-07 12:58:06 - End Time 2025-02-07 15:58:06 [2025-02-07 15:58:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:58:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423449', 'tblTempUsageDetail_20' ) start [2025-02-07 15:58:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423449', 'tblTempUsageDetail_20' ) end [2025-02-07 15:58:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423449', 'tblTempVendorCDR_20' ) start [2025-02-07 15:58:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423449', 'tblTempVendorCDR_20' ) end [2025-02-07 15:58:39] Production.INFO: ProcessCDR(1,14423449,1,1,2) [2025-02-07 15:58:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:58:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:58:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:58:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423449', 'tblTempUsageDetail_20' ) start [2025-02-07 15:58:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423449', 'tblTempUsageDetail_20' ) end [2025-02-07 15:58:43] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:58:43] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:58:43] Production.INFO: ==22558== Releasing lock... [2025-02-07 15:58:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:58:43] Production.INFO: 69 MB #Memory Used# [2025-02-07 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 12:59:06 [end_date_ymd] => 2025-02-07 15:59:06 [RateCDR] => 1 ) [2025-02-07 15: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-07 12:59:06' and `end` < '2025-02-07 15: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-07 15:59:28] Production.INFO: count ==5520 [2025-02-07 15:59:31] Production.ERROR: pbx CDR StartTime 2025-02-07 12:59:06 - End Time 2025-02-07 15:59:06 [2025-02-07 15:59:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 15:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423454', 'tblTempUsageDetail_20' ) start [2025-02-07 15:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423454', 'tblTempUsageDetail_20' ) end [2025-02-07 15:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423454', 'tblTempVendorCDR_20' ) start [2025-02-07 15:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423454', 'tblTempVendorCDR_20' ) end [2025-02-07 15:59:31] Production.INFO: ProcessCDR(1,14423454,1,1,2) [2025-02-07 15:59:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:59:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 15:59:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 15:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423454', 'tblTempUsageDetail_20' ) start [2025-02-07 15:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423454', 'tblTempUsageDetail_20' ) end [2025-02-07 15:59:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 15:59:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 15:59:36] Production.INFO: ==22642== Releasing lock... [2025-02-07 15:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 15:59:36] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:00:06 [end_date_ymd] => 2025-02-07 16:00:06 [RateCDR] => 1 ) [2025-02-07 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:00:06' and `end` < '2025-02-07 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:00:28] Production.INFO: count ==5528 [2025-02-07 16:00:31] Production.ERROR: pbx CDR StartTime 2025-02-07 13:00:06 - End Time 2025-02-07 16:00:06 [2025-02-07 16:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423459', 'tblTempUsageDetail_20' ) start [2025-02-07 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423459', 'tblTempUsageDetail_20' ) end [2025-02-07 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423459', 'tblTempVendorCDR_20' ) start [2025-02-07 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423459', 'tblTempVendorCDR_20' ) end [2025-02-07 16:00:31] Production.INFO: ProcessCDR(1,14423459,1,1,2) [2025-02-07 16:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423459', 'tblTempUsageDetail_20' ) start [2025-02-07 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423459', 'tblTempUsageDetail_20' ) end [2025-02-07 16:00:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:00:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:00:37] Production.INFO: ==22726== Releasing lock... [2025-02-07 16:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:00:37] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:01:06 [end_date_ymd] => 2025-02-07 16:01:06 [RateCDR] => 1 ) [2025-02-07 16:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:01:06' and `end` < '2025-02-07 16:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:01:26] Production.INFO: count ==5572 [2025-02-07 16:01:28] Production.ERROR: pbx CDR StartTime 2025-02-07 13:01:06 - End Time 2025-02-07 16:01:06 [2025-02-07 16:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423465', 'tblTempUsageDetail_20' ) start [2025-02-07 16:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423465', 'tblTempUsageDetail_20' ) end [2025-02-07 16:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423465', 'tblTempVendorCDR_20' ) start [2025-02-07 16:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423465', 'tblTempVendorCDR_20' ) end [2025-02-07 16:01:29] Production.INFO: ProcessCDR(1,14423465,1,1,2) [2025-02-07 16:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423465', 'tblTempUsageDetail_20' ) start [2025-02-07 16:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423465', 'tblTempUsageDetail_20' ) end [2025-02-07 16:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:01:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:01:34] Production.INFO: ==22823== Releasing lock... [2025-02-07 16:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:01:34] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:02:05 [end_date_ymd] => 2025-02-07 16:02:05 [RateCDR] => 1 ) [2025-02-07 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:02:05' and `end` < '2025-02-07 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:02:30] Production.INFO: count ==5565 [2025-02-07 16:02:33] Production.ERROR: pbx CDR StartTime 2025-02-07 13:02:05 - End Time 2025-02-07 16:02:05 [2025-02-07 16:02:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423470', 'tblTempUsageDetail_20' ) start [2025-02-07 16:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423470', 'tblTempUsageDetail_20' ) end [2025-02-07 16:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423470', 'tblTempVendorCDR_20' ) start [2025-02-07 16:02:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423470', 'tblTempVendorCDR_20' ) end [2025-02-07 16:02:33] Production.INFO: ProcessCDR(1,14423470,1,1,2) [2025-02-07 16:02:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:02:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:02:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:02:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423470', 'tblTempUsageDetail_20' ) start [2025-02-07 16:02:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423470', 'tblTempUsageDetail_20' ) end [2025-02-07 16:02:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:02:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:02:38] Production.INFO: ==22907== Releasing lock... [2025-02-07 16:02:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:02:38] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:03:06 [end_date_ymd] => 2025-02-07 16:03:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:03:06' and `end` < '2025-02-07 16: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-07 16:03:23] Production.INFO: count ==5568 [2025-02-07 16:03:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:03:06 - End Time 2025-02-07 16:03:06 [2025-02-07 16:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423475', 'tblTempUsageDetail_20' ) start [2025-02-07 16:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423475', 'tblTempUsageDetail_20' ) end [2025-02-07 16:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423475', 'tblTempVendorCDR_20' ) start [2025-02-07 16:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423475', 'tblTempVendorCDR_20' ) end [2025-02-07 16:03:26] Production.INFO: ProcessCDR(1,14423475,1,1,2) [2025-02-07 16:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423475', 'tblTempUsageDetail_20' ) start [2025-02-07 16:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423475', 'tblTempUsageDetail_20' ) end [2025-02-07 16:03:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:03:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:03:31] Production.INFO: ==22995== Releasing lock... [2025-02-07 16:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:03:31] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:04:05 [end_date_ymd] => 2025-02-07 16:04:05 [RateCDR] => 1 ) [2025-02-07 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:04:05' and `end` < '2025-02-07 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:04:20] Production.INFO: count ==5540 [2025-02-07 16:04:22] Production.ERROR: pbx CDR StartTime 2025-02-07 13:04:05 - End Time 2025-02-07 16:04:05 [2025-02-07 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423480', 'tblTempUsageDetail_20' ) start [2025-02-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423480', 'tblTempUsageDetail_20' ) end [2025-02-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423480', 'tblTempVendorCDR_20' ) start [2025-02-07 16:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423480', 'tblTempVendorCDR_20' ) end [2025-02-07 16:04:23] Production.INFO: ProcessCDR(1,14423480,1,1,2) [2025-02-07 16:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423480', 'tblTempUsageDetail_20' ) start [2025-02-07 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423480', 'tblTempUsageDetail_20' ) end [2025-02-07 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:04:26] Production.INFO: ==23081== Releasing lock... [2025-02-07 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:04:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:05:05 [end_date_ymd] => 2025-02-07 16:05:05 [RateCDR] => 1 ) [2025-02-07 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:05:05' and `end` < '2025-02-07 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:05:19] Production.INFO: count ==5513 [2025-02-07 16:05:22] Production.ERROR: pbx CDR StartTime 2025-02-07 13:05:05 - End Time 2025-02-07 16:05:05 [2025-02-07 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423485', 'tblTempUsageDetail_20' ) start [2025-02-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423485', 'tblTempUsageDetail_20' ) end [2025-02-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423485', 'tblTempVendorCDR_20' ) start [2025-02-07 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423485', 'tblTempVendorCDR_20' ) end [2025-02-07 16:05:22] Production.INFO: ProcessCDR(1,14423485,1,1,2) [2025-02-07 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423485', 'tblTempUsageDetail_20' ) start [2025-02-07 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423485', 'tblTempUsageDetail_20' ) end [2025-02-07 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:05:27] Production.INFO: ==23160== Releasing lock... [2025-02-07 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:05:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:06:05 [end_date_ymd] => 2025-02-07 16:06:05 [RateCDR] => 1 ) [2025-02-07 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:06:05' and `end` < '2025-02-07 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:06:21] Production.INFO: count ==5498 [2025-02-07 16:06:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:06:05 - End Time 2025-02-07 16:06:05 [2025-02-07 16:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423490', 'tblTempUsageDetail_20' ) start [2025-02-07 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423490', 'tblTempUsageDetail_20' ) end [2025-02-07 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423490', 'tblTempVendorCDR_20' ) start [2025-02-07 16:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423490', 'tblTempVendorCDR_20' ) end [2025-02-07 16:06:24] Production.INFO: ProcessCDR(1,14423490,1,1,2) [2025-02-07 16:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423490', 'tblTempUsageDetail_20' ) start [2025-02-07 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423490', 'tblTempUsageDetail_20' ) end [2025-02-07 16:06:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:06:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:06:29] Production.INFO: ==23237== Releasing lock... [2025-02-07 16:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:06:29] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:07:06 [end_date_ymd] => 2025-02-07 16:07:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:07:06' and `end` < '2025-02-07 16: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-07 16:07:21] Production.INFO: count ==5482 [2025-02-07 16:07:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:07:06 - End Time 2025-02-07 16:07:06 [2025-02-07 16:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423495', 'tblTempUsageDetail_20' ) start [2025-02-07 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423495', 'tblTempUsageDetail_20' ) end [2025-02-07 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423495', 'tblTempVendorCDR_20' ) start [2025-02-07 16:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423495', 'tblTempVendorCDR_20' ) end [2025-02-07 16:07:24] Production.INFO: ProcessCDR(1,14423495,1,1,2) [2025-02-07 16:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423495', 'tblTempUsageDetail_20' ) start [2025-02-07 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423495', 'tblTempUsageDetail_20' ) end [2025-02-07 16:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:07:29] Production.INFO: ==23322== Releasing lock... [2025-02-07 16:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:07:29] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:08:05 [end_date_ymd] => 2025-02-07 16:08:05 [RateCDR] => 1 ) [2025-02-07 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:08:05' and `end` < '2025-02-07 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:08:22] Production.INFO: count ==5473 [2025-02-07 16:08:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:08:05 - End Time 2025-02-07 16:08:05 [2025-02-07 16:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423500', 'tblTempUsageDetail_20' ) start [2025-02-07 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423500', 'tblTempUsageDetail_20' ) end [2025-02-07 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423500', 'tblTempVendorCDR_20' ) start [2025-02-07 16:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423500', 'tblTempVendorCDR_20' ) end [2025-02-07 16:08:25] Production.INFO: ProcessCDR(1,14423500,1,1,2) [2025-02-07 16:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423500', 'tblTempUsageDetail_20' ) start [2025-02-07 16:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423500', 'tblTempUsageDetail_20' ) end [2025-02-07 16:08:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:08:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:08:31] Production.INFO: ==23401== Releasing lock... [2025-02-07 16:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:08:31] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:09:05 [end_date_ymd] => 2025-02-07 16:09:05 [RateCDR] => 1 ) [2025-02-07 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:09:05' and `end` < '2025-02-07 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:09:22] Production.INFO: count ==5457 [2025-02-07 16:09:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:09:05 - End Time 2025-02-07 16:09:05 [2025-02-07 16:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423505', 'tblTempUsageDetail_20' ) start [2025-02-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423505', 'tblTempUsageDetail_20' ) end [2025-02-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423505', 'tblTempVendorCDR_20' ) start [2025-02-07 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423505', 'tblTempVendorCDR_20' ) end [2025-02-07 16:09:25] Production.INFO: ProcessCDR(1,14423505,1,1,2) [2025-02-07 16:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423505', 'tblTempUsageDetail_20' ) start [2025-02-07 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423505', 'tblTempUsageDetail_20' ) end [2025-02-07 16:09:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:09:29] Production.INFO: ==23516== Releasing lock... [2025-02-07 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:09:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:10:06 [end_date_ymd] => 2025-02-07 16:10:06 [RateCDR] => 1 ) [2025-02-07 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:10:06' and `end` < '2025-02-07 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:10:20] Production.INFO: count ==5448 [2025-02-07 16:10:22] Production.ERROR: pbx CDR StartTime 2025-02-07 13:10:06 - End Time 2025-02-07 16:10:06 [2025-02-07 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423511', 'tblTempUsageDetail_20' ) start [2025-02-07 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423511', 'tblTempUsageDetail_20' ) end [2025-02-07 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423511', 'tblTempVendorCDR_20' ) start [2025-02-07 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423511', 'tblTempVendorCDR_20' ) end [2025-02-07 16:10:22] Production.INFO: ProcessCDR(1,14423511,1,1,2) [2025-02-07 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423511', 'tblTempUsageDetail_20' ) start [2025-02-07 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423511', 'tblTempUsageDetail_20' ) end [2025-02-07 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:10:27] Production.INFO: ==23595== Releasing lock... [2025-02-07 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:10:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:11:05 [end_date_ymd] => 2025-02-07 16:11:05 [RateCDR] => 1 ) [2025-02-07 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:11:05' and `end` < '2025-02-07 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:11:20] Production.INFO: count ==5467 [2025-02-07 16:11:23] Production.ERROR: pbx CDR StartTime 2025-02-07 13:11:05 - End Time 2025-02-07 16:11:05 [2025-02-07 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423516', 'tblTempUsageDetail_20' ) start [2025-02-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423516', 'tblTempUsageDetail_20' ) end [2025-02-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423516', 'tblTempVendorCDR_20' ) start [2025-02-07 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423516', 'tblTempVendorCDR_20' ) end [2025-02-07 16:11:23] Production.INFO: ProcessCDR(1,14423516,1,1,2) [2025-02-07 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423516', 'tblTempUsageDetail_20' ) start [2025-02-07 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423516', 'tblTempUsageDetail_20' ) end [2025-02-07 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:11:28] Production.INFO: ==23669== Releasing lock... [2025-02-07 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:11:28] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:12:05 [end_date_ymd] => 2025-02-07 16:12:05 [RateCDR] => 1 ) [2025-02-07 16:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:12:05' and `end` < '2025-02-07 16:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:12:30] Production.INFO: count ==5439 [2025-02-07 16:12:32] Production.ERROR: pbx CDR StartTime 2025-02-07 13:12:05 - End Time 2025-02-07 16:12:05 [2025-02-07 16:12:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423521', 'tblTempUsageDetail_20' ) start [2025-02-07 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423521', 'tblTempUsageDetail_20' ) end [2025-02-07 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423521', 'tblTempVendorCDR_20' ) start [2025-02-07 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423521', 'tblTempVendorCDR_20' ) end [2025-02-07 16:12:32] Production.INFO: ProcessCDR(1,14423521,1,1,2) [2025-02-07 16:12:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423521', 'tblTempUsageDetail_20' ) start [2025-02-07 16:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423521', 'tblTempUsageDetail_20' ) end [2025-02-07 16:12:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:12:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:12:37] Production.INFO: ==23744== Releasing lock... [2025-02-07 16:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:12:37] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:13:05 [end_date_ymd] => 2025-02-07 16:13:05 [RateCDR] => 1 ) [2025-02-07 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:13:05' and `end` < '2025-02-07 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:13:24] Production.INFO: count ==5442 [2025-02-07 16:13:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:13:05 - End Time 2025-02-07 16:13:05 [2025-02-07 16:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423526', 'tblTempUsageDetail_20' ) start [2025-02-07 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423526', 'tblTempUsageDetail_20' ) end [2025-02-07 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423526', 'tblTempVendorCDR_20' ) start [2025-02-07 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423526', 'tblTempVendorCDR_20' ) end [2025-02-07 16:13:27] Production.INFO: ProcessCDR(1,14423526,1,1,2) [2025-02-07 16:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423526', 'tblTempUsageDetail_20' ) start [2025-02-07 16:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423526', 'tblTempUsageDetail_20' ) end [2025-02-07 16:13:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:13:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:13:32] Production.INFO: ==23818== Releasing lock... [2025-02-07 16:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:13:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:14:05 [end_date_ymd] => 2025-02-07 16:14:05 [RateCDR] => 1 ) [2025-02-07 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:14:05' and `end` < '2025-02-07 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:14:22] Production.INFO: count ==5414 [2025-02-07 16:14:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:14:05 - End Time 2025-02-07 16:14:05 [2025-02-07 16:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423531', 'tblTempUsageDetail_20' ) start [2025-02-07 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423531', 'tblTempUsageDetail_20' ) end [2025-02-07 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423531', 'tblTempVendorCDR_20' ) start [2025-02-07 16:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423531', 'tblTempVendorCDR_20' ) end [2025-02-07 16:14:24] Production.INFO: ProcessCDR(1,14423531,1,1,2) [2025-02-07 16:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423531', 'tblTempUsageDetail_20' ) start [2025-02-07 16:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423531', 'tblTempUsageDetail_20' ) end [2025-02-07 16:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:14:29] Production.INFO: ==23892== Releasing lock... [2025-02-07 16:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:14:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-07 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:15:06 [end_date_ymd] => 2025-02-07 16:15:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:15:06' and `end` < '2025-02-07 16: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-07 16:15:22] Production.INFO: count ==5403 [2025-02-07 16:15:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:15:06 - End Time 2025-02-07 16:15:06 [2025-02-07 16:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423536', 'tblTempUsageDetail_20' ) start [2025-02-07 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423536', 'tblTempUsageDetail_20' ) end [2025-02-07 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423536', 'tblTempVendorCDR_20' ) start [2025-02-07 16:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423536', 'tblTempVendorCDR_20' ) end [2025-02-07 16:15:24] Production.INFO: ProcessCDR(1,14423536,1,1,2) [2025-02-07 16:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:15:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:15:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423536', 'tblTempUsageDetail_20' ) start [2025-02-07 16:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423536', 'tblTempUsageDetail_20' ) end [2025-02-07 16:15:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:15:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:15:29] Production.INFO: ==23969== Releasing lock... [2025-02-07 16:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:15:29] Production.INFO: 68.5 MB #Memory Used# [2025-02-07 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:16:06 [end_date_ymd] => 2025-02-07 16:16:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:16:06' and `end` < '2025-02-07 16: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-07 16:16:21] Production.INFO: count ==5383 [2025-02-07 16:16:23] Production.ERROR: pbx CDR StartTime 2025-02-07 13:16:06 - End Time 2025-02-07 16:16:06 [2025-02-07 16:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423541', 'tblTempUsageDetail_20' ) start [2025-02-07 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423541', 'tblTempUsageDetail_20' ) end [2025-02-07 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423541', 'tblTempVendorCDR_20' ) start [2025-02-07 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423541', 'tblTempVendorCDR_20' ) end [2025-02-07 16:16:23] Production.INFO: ProcessCDR(1,14423541,1,1,2) [2025-02-07 16:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423541', 'tblTempUsageDetail_20' ) start [2025-02-07 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423541', 'tblTempUsageDetail_20' ) end [2025-02-07 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:16:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:16:28] Production.INFO: ==24047== Releasing lock... [2025-02-07 16:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:16:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:17:05 [end_date_ymd] => 2025-02-07 16:17:05 [RateCDR] => 1 ) [2025-02-07 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:17:05' and `end` < '2025-02-07 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:17:22] Production.INFO: count ==5374 [2025-02-07 16:17:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:17:05 - End Time 2025-02-07 16:17:05 [2025-02-07 16:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423546', 'tblTempUsageDetail_20' ) start [2025-02-07 16:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423546', 'tblTempUsageDetail_20' ) end [2025-02-07 16:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423546', 'tblTempVendorCDR_20' ) start [2025-02-07 16:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423546', 'tblTempVendorCDR_20' ) end [2025-02-07 16:17:24] Production.INFO: ProcessCDR(1,14423546,1,1,2) [2025-02-07 16:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423546', 'tblTempUsageDetail_20' ) start [2025-02-07 16:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423546', 'tblTempUsageDetail_20' ) end [2025-02-07 16:17:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:17:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:17:29] Production.INFO: ==24119== Releasing lock... [2025-02-07 16:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:17:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:18:06 [end_date_ymd] => 2025-02-07 16:18:06 [RateCDR] => 1 ) [2025-02-07 16:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:18:06' and `end` < '2025-02-07 16:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:18:21] Production.INFO: count ==5359 [2025-02-07 16:18:23] Production.ERROR: pbx CDR StartTime 2025-02-07 13:18:06 - End Time 2025-02-07 16:18:06 [2025-02-07 16:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423551', 'tblTempUsageDetail_20' ) start [2025-02-07 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423551', 'tblTempUsageDetail_20' ) end [2025-02-07 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423551', 'tblTempVendorCDR_20' ) start [2025-02-07 16:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423551', 'tblTempVendorCDR_20' ) end [2025-02-07 16:18:24] Production.INFO: ProcessCDR(1,14423551,1,1,2) [2025-02-07 16:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423551', 'tblTempUsageDetail_20' ) start [2025-02-07 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423551', 'tblTempUsageDetail_20' ) end [2025-02-07 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:18:29] Production.INFO: ==24204== Releasing lock... [2025-02-07 16:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:18:29] Production.INFO: 68 MB #Memory Used# [2025-02-07 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:19:05 [end_date_ymd] => 2025-02-07 16:19:05 [RateCDR] => 1 ) [2025-02-07 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:19:05' and `end` < '2025-02-07 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:19:22] Production.INFO: count ==5350 [2025-02-07 16:19:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:19:05 - End Time 2025-02-07 16:19:05 [2025-02-07 16:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423556', 'tblTempUsageDetail_20' ) start [2025-02-07 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423556', 'tblTempUsageDetail_20' ) end [2025-02-07 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423556', 'tblTempVendorCDR_20' ) start [2025-02-07 16:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423556', 'tblTempVendorCDR_20' ) end [2025-02-07 16:19:25] Production.INFO: ProcessCDR(1,14423556,1,1,2) [2025-02-07 16:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423556', 'tblTempUsageDetail_20' ) start [2025-02-07 16:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423556', 'tblTempUsageDetail_20' ) end [2025-02-07 16:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:19:29] Production.INFO: ==24277== Releasing lock... [2025-02-07 16:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:19:29] Production.INFO: 68 MB #Memory Used# [2025-02-07 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:20:06 [end_date_ymd] => 2025-02-07 16:20:06 [RateCDR] => 1 ) [2025-02-07 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:20:06' and `end` < '2025-02-07 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:20:21] Production.INFO: count ==5353 [2025-02-07 16:20:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:20:06 - End Time 2025-02-07 16:20:06 [2025-02-07 16:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423561', 'tblTempUsageDetail_20' ) start [2025-02-07 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423561', 'tblTempUsageDetail_20' ) end [2025-02-07 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423561', 'tblTempVendorCDR_20' ) start [2025-02-07 16:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423561', 'tblTempVendorCDR_20' ) end [2025-02-07 16:20:24] Production.INFO: ProcessCDR(1,14423561,1,1,2) [2025-02-07 16:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423561', 'tblTempUsageDetail_20' ) start [2025-02-07 16:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423561', 'tblTempUsageDetail_20' ) end [2025-02-07 16:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:20:29] Production.INFO: ==24355== Releasing lock... [2025-02-07 16:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:20:29] Production.INFO: 68 MB #Memory Used# [2025-02-07 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:21:05 [end_date_ymd] => 2025-02-07 16:21:05 [RateCDR] => 1 ) [2025-02-07 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:21:05' and `end` < '2025-02-07 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:21:32] Production.INFO: count ==5375 [2025-02-07 16:21:34] Production.ERROR: pbx CDR StartTime 2025-02-07 13:21:05 - End Time 2025-02-07 16:21:05 [2025-02-07 16:21:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423567', 'tblTempUsageDetail_20' ) start [2025-02-07 16:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423567', 'tblTempUsageDetail_20' ) end [2025-02-07 16:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423567', 'tblTempVendorCDR_20' ) start [2025-02-07 16:21:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423567', 'tblTempVendorCDR_20' ) end [2025-02-07 16:21:34] Production.INFO: ProcessCDR(1,14423567,1,1,2) [2025-02-07 16:21:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:21:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:21:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:21:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423567', 'tblTempUsageDetail_20' ) start [2025-02-07 16:21:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423567', 'tblTempUsageDetail_20' ) end [2025-02-07 16:21:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:21:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:21:39] Production.INFO: ==24433== Releasing lock... [2025-02-07 16:21:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:21:39] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:22:06 [end_date_ymd] => 2025-02-07 16:22:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:22:06' and `end` < '2025-02-07 16: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-07 16:22:26] Production.INFO: count ==5392 [2025-02-07 16:22:28] Production.ERROR: pbx CDR StartTime 2025-02-07 13:22:06 - End Time 2025-02-07 16:22:06 [2025-02-07 16:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423572', 'tblTempUsageDetail_20' ) start [2025-02-07 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423572', 'tblTempUsageDetail_20' ) end [2025-02-07 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423572', 'tblTempVendorCDR_20' ) start [2025-02-07 16:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423572', 'tblTempVendorCDR_20' ) end [2025-02-07 16:22:29] Production.INFO: ProcessCDR(1,14423572,1,1,2) [2025-02-07 16:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423572', 'tblTempUsageDetail_20' ) start [2025-02-07 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423572', 'tblTempUsageDetail_20' ) end [2025-02-07 16:22:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:22:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:22:34] Production.INFO: ==24507== Releasing lock... [2025-02-07 16:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:22:34] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:23:05 [end_date_ymd] => 2025-02-07 16:23:05 [RateCDR] => 1 ) [2025-02-07 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:23:05' and `end` < '2025-02-07 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:23:19] Production.INFO: count ==5396 [2025-02-07 16:23:22] Production.ERROR: pbx CDR StartTime 2025-02-07 13:23:05 - End Time 2025-02-07 16:23:05 [2025-02-07 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423577', 'tblTempUsageDetail_20' ) start [2025-02-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423577', 'tblTempUsageDetail_20' ) end [2025-02-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423577', 'tblTempVendorCDR_20' ) start [2025-02-07 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423577', 'tblTempVendorCDR_20' ) end [2025-02-07 16:23:22] Production.INFO: ProcessCDR(1,14423577,1,1,2) [2025-02-07 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423577', 'tblTempUsageDetail_20' ) start [2025-02-07 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423577', 'tblTempUsageDetail_20' ) end [2025-02-07 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:23:27] Production.INFO: ==24585== Releasing lock... [2025-02-07 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:23:27] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:24:06 [end_date_ymd] => 2025-02-07 16:24:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:24:06' and `end` < '2025-02-07 16: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-07 16:24:25] Production.INFO: count ==5400 [2025-02-07 16:24:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:24:06 - End Time 2025-02-07 16:24:06 [2025-02-07 16:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423582', 'tblTempUsageDetail_20' ) start [2025-02-07 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423582', 'tblTempUsageDetail_20' ) end [2025-02-07 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423582', 'tblTempVendorCDR_20' ) start [2025-02-07 16:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423582', 'tblTempVendorCDR_20' ) end [2025-02-07 16:24:28] Production.INFO: ProcessCDR(1,14423582,1,1,2) [2025-02-07 16:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423582', 'tblTempUsageDetail_20' ) start [2025-02-07 16:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423582', 'tblTempUsageDetail_20' ) end [2025-02-07 16:24:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:24:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:24:32] Production.INFO: ==24657== Releasing lock... [2025-02-07 16:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:24:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-07 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:25:05 [end_date_ymd] => 2025-02-07 16:25:05 [RateCDR] => 1 ) [2025-02-07 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:25:05' and `end` < '2025-02-07 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:25:21] Production.INFO: count ==5407 [2025-02-07 16:25:23] Production.ERROR: pbx CDR StartTime 2025-02-07 13:25:05 - End Time 2025-02-07 16:25:05 [2025-02-07 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423587', 'tblTempUsageDetail_20' ) start [2025-02-07 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423587', 'tblTempUsageDetail_20' ) end [2025-02-07 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423587', 'tblTempVendorCDR_20' ) start [2025-02-07 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423587', 'tblTempVendorCDR_20' ) end [2025-02-07 16:25:23] Production.INFO: ProcessCDR(1,14423587,1,1,2) [2025-02-07 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423587', 'tblTempUsageDetail_20' ) start [2025-02-07 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423587', 'tblTempUsageDetail_20' ) end [2025-02-07 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:25:26] Production.INFO: ==24772== Releasing lock... [2025-02-07 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:25:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-07 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:26:05 [end_date_ymd] => 2025-02-07 16:26:05 [RateCDR] => 1 ) [2025-02-07 16:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:26:05' and `end` < '2025-02-07 16:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:26:25] Production.INFO: count ==5421 [2025-02-07 16:26:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:26:05 - End Time 2025-02-07 16:26:05 [2025-02-07 16:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423592', 'tblTempUsageDetail_20' ) start [2025-02-07 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423592', 'tblTempUsageDetail_20' ) end [2025-02-07 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423592', 'tblTempVendorCDR_20' ) start [2025-02-07 16:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423592', 'tblTempVendorCDR_20' ) end [2025-02-07 16:26:27] Production.INFO: ProcessCDR(1,14423592,1,1,2) [2025-02-07 16:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:26:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:26:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:26:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423592', 'tblTempUsageDetail_20' ) start [2025-02-07 16:26:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423592', 'tblTempUsageDetail_20' ) end [2025-02-07 16:26:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:26:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:26:32] Production.INFO: ==24846== Releasing lock... [2025-02-07 16:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:26:32] Production.INFO: 68.5 MB #Memory Used# [2025-02-07 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:27:05 [end_date_ymd] => 2025-02-07 16:27:05 [RateCDR] => 1 ) [2025-02-07 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:27:05' and `end` < '2025-02-07 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:27:23] Production.INFO: count ==5449 [2025-02-07 16:27:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:27:05 - End Time 2025-02-07 16:27:05 [2025-02-07 16:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423597', 'tblTempUsageDetail_20' ) start [2025-02-07 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423597', 'tblTempUsageDetail_20' ) end [2025-02-07 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423597', 'tblTempVendorCDR_20' ) start [2025-02-07 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423597', 'tblTempVendorCDR_20' ) end [2025-02-07 16:27:25] Production.INFO: ProcessCDR(1,14423597,1,1,2) [2025-02-07 16:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423597', 'tblTempUsageDetail_20' ) start [2025-02-07 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423597', 'tblTempUsageDetail_20' ) end [2025-02-07 16:27:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:27:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:27:30] Production.INFO: ==24925== Releasing lock... [2025-02-07 16:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:27:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:28:05 [end_date_ymd] => 2025-02-07 16:28:05 [RateCDR] => 1 ) [2025-02-07 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:28:05' and `end` < '2025-02-07 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:28:23] Production.INFO: count ==5437 [2025-02-07 16:28:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:28:05 - End Time 2025-02-07 16:28:05 [2025-02-07 16:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423602', 'tblTempUsageDetail_20' ) start [2025-02-07 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423602', 'tblTempUsageDetail_20' ) end [2025-02-07 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423602', 'tblTempVendorCDR_20' ) start [2025-02-07 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423602', 'tblTempVendorCDR_20' ) end [2025-02-07 16:28:25] Production.INFO: ProcessCDR(1,14423602,1,1,2) [2025-02-07 16:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423602', 'tblTempUsageDetail_20' ) start [2025-02-07 16:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423602', 'tblTempUsageDetail_20' ) end [2025-02-07 16:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:28:30] Production.INFO: ==25000== Releasing lock... [2025-02-07 16:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:28:30] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:29:05 [end_date_ymd] => 2025-02-07 16:29:05 [RateCDR] => 1 ) [2025-02-07 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:29:05' and `end` < '2025-02-07 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:29:23] Production.INFO: count ==5439 [2025-02-07 16:29:26] Production.ERROR: pbx CDR StartTime 2025-02-07 13:29:05 - End Time 2025-02-07 16:29:05 [2025-02-07 16:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423607', 'tblTempUsageDetail_20' ) start [2025-02-07 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423607', 'tblTempUsageDetail_20' ) end [2025-02-07 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423607', 'tblTempVendorCDR_20' ) start [2025-02-07 16:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423607', 'tblTempVendorCDR_20' ) end [2025-02-07 16:29:26] Production.INFO: ProcessCDR(1,14423607,1,1,2) [2025-02-07 16:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423607', 'tblTempUsageDetail_20' ) start [2025-02-07 16:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423607', 'tblTempUsageDetail_20' ) end [2025-02-07 16:29:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:29:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:29:31] Production.INFO: ==25071== Releasing lock... [2025-02-07 16:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:29:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:30:06 [end_date_ymd] => 2025-02-07 16:30:06 [RateCDR] => 1 ) [2025-02-07 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:30:06' and `end` < '2025-02-07 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:30:26] Production.INFO: count ==5440 [2025-02-07 16:30:29] Production.ERROR: pbx CDR StartTime 2025-02-07 13:30:06 - End Time 2025-02-07 16:30:06 [2025-02-07 16:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423613', 'tblTempUsageDetail_20' ) start [2025-02-07 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423613', 'tblTempUsageDetail_20' ) end [2025-02-07 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423613', 'tblTempVendorCDR_20' ) start [2025-02-07 16:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423613', 'tblTempVendorCDR_20' ) end [2025-02-07 16:30:29] Production.INFO: ProcessCDR(1,14423613,1,1,2) [2025-02-07 16:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423613', 'tblTempUsageDetail_20' ) start [2025-02-07 16:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423613', 'tblTempUsageDetail_20' ) end [2025-02-07 16:30:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:30:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:30:34] Production.INFO: ==25148== Releasing lock... [2025-02-07 16:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:30:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:31:05 [end_date_ymd] => 2025-02-07 16:31:05 [RateCDR] => 1 ) [2025-02-07 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:31:05' and `end` < '2025-02-07 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:31:24] Production.INFO: count ==5446 [2025-02-07 16:31:26] Production.ERROR: pbx CDR StartTime 2025-02-07 13:31:05 - End Time 2025-02-07 16:31:05 [2025-02-07 16:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423618', 'tblTempUsageDetail_20' ) start [2025-02-07 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423618', 'tblTempUsageDetail_20' ) end [2025-02-07 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423618', 'tblTempVendorCDR_20' ) start [2025-02-07 16:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423618', 'tblTempVendorCDR_20' ) end [2025-02-07 16:31:26] Production.INFO: ProcessCDR(1,14423618,1,1,2) [2025-02-07 16:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423618', 'tblTempUsageDetail_20' ) start [2025-02-07 16:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423618', 'tblTempUsageDetail_20' ) end [2025-02-07 16:31:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:31:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:31:31] Production.INFO: ==25220== Releasing lock... [2025-02-07 16:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:31:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:32:05 [end_date_ymd] => 2025-02-07 16:32:05 [RateCDR] => 1 ) [2025-02-07 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:32:05' and `end` < '2025-02-07 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:32:22] Production.INFO: count ==5443 [2025-02-07 16:32:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:32:05 - End Time 2025-02-07 16:32:05 [2025-02-07 16:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423623', 'tblTempUsageDetail_20' ) start [2025-02-07 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423623', 'tblTempUsageDetail_20' ) end [2025-02-07 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423623', 'tblTempVendorCDR_20' ) start [2025-02-07 16:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423623', 'tblTempVendorCDR_20' ) end [2025-02-07 16:32:24] Production.INFO: ProcessCDR(1,14423623,1,1,2) [2025-02-07 16:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423623', 'tblTempUsageDetail_20' ) start [2025-02-07 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423623', 'tblTempUsageDetail_20' ) end [2025-02-07 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:32:28] Production.INFO: ==25294== Releasing lock... [2025-02-07 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:32:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:33:06 [end_date_ymd] => 2025-02-07 16:33:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:33:06' and `end` < '2025-02-07 16: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-07 16:33:24] Production.INFO: count ==5447 [2025-02-07 16:33:26] Production.ERROR: pbx CDR StartTime 2025-02-07 13:33:06 - End Time 2025-02-07 16:33:06 [2025-02-07 16:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423628', 'tblTempUsageDetail_20' ) start [2025-02-07 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423628', 'tblTempUsageDetail_20' ) end [2025-02-07 16:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423628', 'tblTempVendorCDR_20' ) start [2025-02-07 16:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423628', 'tblTempVendorCDR_20' ) end [2025-02-07 16:33:27] Production.INFO: ProcessCDR(1,14423628,1,1,2) [2025-02-07 16:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:33:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:33:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:33:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423628', 'tblTempUsageDetail_20' ) start [2025-02-07 16:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423628', 'tblTempUsageDetail_20' ) end [2025-02-07 16:33:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:33:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:33:31] Production.INFO: ==25369== Releasing lock... [2025-02-07 16:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:33:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:34:05 [end_date_ymd] => 2025-02-07 16:34:05 [RateCDR] => 1 ) [2025-02-07 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:34:05' and `end` < '2025-02-07 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:34:27] Production.INFO: count ==5445 [2025-02-07 16:34:29] Production.ERROR: pbx CDR StartTime 2025-02-07 13:34:05 - End Time 2025-02-07 16:34:05 [2025-02-07 16:34:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423633', 'tblTempUsageDetail_20' ) start [2025-02-07 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423633', 'tblTempUsageDetail_20' ) end [2025-02-07 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423633', 'tblTempVendorCDR_20' ) start [2025-02-07 16:34:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423633', 'tblTempVendorCDR_20' ) end [2025-02-07 16:34:29] Production.INFO: ProcessCDR(1,14423633,1,1,2) [2025-02-07 16:34:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423633', 'tblTempUsageDetail_20' ) start [2025-02-07 16:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423633', 'tblTempUsageDetail_20' ) end [2025-02-07 16:34:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:34:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:34:34] Production.INFO: ==25442== Releasing lock... [2025-02-07 16:34:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:34:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:35:05 [end_date_ymd] => 2025-02-07 16:35:05 [RateCDR] => 1 ) [2025-02-07 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:35:05' and `end` < '2025-02-07 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:35:27] Production.INFO: count ==5436 [2025-02-07 16:35:30] Production.ERROR: pbx CDR StartTime 2025-02-07 13:35:05 - End Time 2025-02-07 16:35:05 [2025-02-07 16:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423638', 'tblTempUsageDetail_20' ) start [2025-02-07 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423638', 'tblTempUsageDetail_20' ) end [2025-02-07 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423638', 'tblTempVendorCDR_20' ) start [2025-02-07 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423638', 'tblTempVendorCDR_20' ) end [2025-02-07 16:35:30] Production.INFO: ProcessCDR(1,14423638,1,1,2) [2025-02-07 16:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423638', 'tblTempUsageDetail_20' ) start [2025-02-07 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423638', 'tblTempUsageDetail_20' ) end [2025-02-07 16:35:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:35:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:35:34] Production.INFO: ==25515== Releasing lock... [2025-02-07 16:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:35:34] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:36:05 [end_date_ymd] => 2025-02-07 16:36:05 [RateCDR] => 1 ) [2025-02-07 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:36:05' and `end` < '2025-02-07 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:36:24] Production.INFO: count ==5463 [2025-02-07 16:36:26] Production.ERROR: pbx CDR StartTime 2025-02-07 13:36:05 - End Time 2025-02-07 16:36:05 [2025-02-07 16:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423643', 'tblTempUsageDetail_20' ) start [2025-02-07 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423643', 'tblTempUsageDetail_20' ) end [2025-02-07 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423643', 'tblTempVendorCDR_20' ) start [2025-02-07 16:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423643', 'tblTempVendorCDR_20' ) end [2025-02-07 16:36:26] Production.INFO: ProcessCDR(1,14423643,1,1,2) [2025-02-07 16:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:36:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423643', 'tblTempUsageDetail_20' ) start [2025-02-07 16:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423643', 'tblTempUsageDetail_20' ) end [2025-02-07 16:36:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:36:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:36:31] Production.INFO: ==25586== Releasing lock... [2025-02-07 16:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:36:31] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:37:05 [end_date_ymd] => 2025-02-07 16:37:05 [RateCDR] => 1 ) [2025-02-07 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:37:05' and `end` < '2025-02-07 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:37:31] Production.INFO: count ==5469 [2025-02-07 16:37:34] Production.ERROR: pbx CDR StartTime 2025-02-07 13:37:05 - End Time 2025-02-07 16:37:05 [2025-02-07 16:37:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423648', 'tblTempUsageDetail_20' ) start [2025-02-07 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423648', 'tblTempUsageDetail_20' ) end [2025-02-07 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423648', 'tblTempVendorCDR_20' ) start [2025-02-07 16:37:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423648', 'tblTempVendorCDR_20' ) end [2025-02-07 16:37:34] Production.INFO: ProcessCDR(1,14423648,1,1,2) [2025-02-07 16:37:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:37:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:37:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:37:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423648', 'tblTempUsageDetail_20' ) start [2025-02-07 16:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423648', 'tblTempUsageDetail_20' ) end [2025-02-07 16:37:39] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:37:39] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:37:39] Production.INFO: ==25663== Releasing lock... [2025-02-07 16:37:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:37:39] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:38:05 [end_date_ymd] => 2025-02-07 16:38:05 [RateCDR] => 1 ) [2025-02-07 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:38:05' and `end` < '2025-02-07 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:38:22] Production.INFO: count ==5488 [2025-02-07 16:38:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:38:05 - End Time 2025-02-07 16:38:05 [2025-02-07 16:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423653', 'tblTempUsageDetail_20' ) start [2025-02-07 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423653', 'tblTempUsageDetail_20' ) end [2025-02-07 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423653', 'tblTempVendorCDR_20' ) start [2025-02-07 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423653', 'tblTempVendorCDR_20' ) end [2025-02-07 16:38:25] Production.INFO: ProcessCDR(1,14423653,1,1,2) [2025-02-07 16:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423653', 'tblTempUsageDetail_20' ) start [2025-02-07 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423653', 'tblTempUsageDetail_20' ) end [2025-02-07 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:38:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:38:30] Production.INFO: ==25742== Releasing lock... [2025-02-07 16:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:38:30] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:39:05 [end_date_ymd] => 2025-02-07 16:39:05 [RateCDR] => 1 ) [2025-02-07 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:39:05' and `end` < '2025-02-07 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:39:20] Production.INFO: count ==5491 [2025-02-07 16:39:22] Production.ERROR: pbx CDR StartTime 2025-02-07 13:39:05 - End Time 2025-02-07 16:39:05 [2025-02-07 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423658', 'tblTempUsageDetail_20' ) start [2025-02-07 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423658', 'tblTempUsageDetail_20' ) end [2025-02-07 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423658', 'tblTempVendorCDR_20' ) start [2025-02-07 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423658', 'tblTempVendorCDR_20' ) end [2025-02-07 16:39:22] Production.INFO: ProcessCDR(1,14423658,1,1,2) [2025-02-07 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423658', 'tblTempUsageDetail_20' ) start [2025-02-07 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423658', 'tblTempUsageDetail_20' ) end [2025-02-07 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:39:27] Production.INFO: ==25815== Releasing lock... [2025-02-07 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:39:27] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:40:06 [end_date_ymd] => 2025-02-07 16:40:06 [RateCDR] => 1 ) [2025-02-07 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:40:06' and `end` < '2025-02-07 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:40:19] Production.INFO: count ==5491 [2025-02-07 16:40:22] Production.ERROR: pbx CDR StartTime 2025-02-07 13:40:06 - End Time 2025-02-07 16:40:06 [2025-02-07 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423664', 'tblTempUsageDetail_20' ) start [2025-02-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423664', 'tblTempUsageDetail_20' ) end [2025-02-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423664', 'tblTempVendorCDR_20' ) start [2025-02-07 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423664', 'tblTempVendorCDR_20' ) end [2025-02-07 16:40:22] Production.INFO: ProcessCDR(1,14423664,1,1,2) [2025-02-07 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423664', 'tblTempUsageDetail_20' ) start [2025-02-07 16:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423664', 'tblTempUsageDetail_20' ) end [2025-02-07 16:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:40:25] Production.INFO: ==25931== Releasing lock... [2025-02-07 16:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:40:25] Production.INFO: 69 MB #Memory Used# [2025-02-07 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:41:05 [end_date_ymd] => 2025-02-07 16:41:05 [RateCDR] => 1 ) [2025-02-07 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:41:05' and `end` < '2025-02-07 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:41:26] Production.INFO: count ==5537 [2025-02-07 16:41:28] Production.ERROR: pbx CDR StartTime 2025-02-07 13:41:05 - End Time 2025-02-07 16:41:05 [2025-02-07 16:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423669', 'tblTempUsageDetail_20' ) start [2025-02-07 16:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423669', 'tblTempUsageDetail_20' ) end [2025-02-07 16:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423669', 'tblTempVendorCDR_20' ) start [2025-02-07 16:41:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423669', 'tblTempVendorCDR_20' ) end [2025-02-07 16:41:29] Production.INFO: ProcessCDR(1,14423669,1,1,2) [2025-02-07 16:41:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:41:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:41:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423669', 'tblTempUsageDetail_20' ) start [2025-02-07 16:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423669', 'tblTempUsageDetail_20' ) end [2025-02-07 16:41:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:41:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:41:33] Production.INFO: ==26006== Releasing lock... [2025-02-07 16:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:41:33] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:42:06 [end_date_ymd] => 2025-02-07 16:42:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:42:06' and `end` < '2025-02-07 16: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-07 16:42:28] Production.INFO: count ==5520 [2025-02-07 16:42:30] Production.ERROR: pbx CDR StartTime 2025-02-07 13:42:06 - End Time 2025-02-07 16:42:06 [2025-02-07 16:42:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423674', 'tblTempUsageDetail_20' ) start [2025-02-07 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423674', 'tblTempUsageDetail_20' ) end [2025-02-07 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423674', 'tblTempVendorCDR_20' ) start [2025-02-07 16:42:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423674', 'tblTempVendorCDR_20' ) end [2025-02-07 16:42:30] Production.INFO: ProcessCDR(1,14423674,1,1,2) [2025-02-07 16:42:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:42:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:42:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:42:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423674', 'tblTempUsageDetail_20' ) start [2025-02-07 16:42:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423674', 'tblTempUsageDetail_20' ) end [2025-02-07 16:42:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:42:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:42:35] Production.INFO: ==26091== Releasing lock... [2025-02-07 16:42:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:42:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:43:05 [end_date_ymd] => 2025-02-07 16:43:05 [RateCDR] => 1 ) [2025-02-07 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:43:05' and `end` < '2025-02-07 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:43:24] Production.INFO: count ==5523 [2025-02-07 16:43:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:43:05 - End Time 2025-02-07 16:43:05 [2025-02-07 16:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423679', 'tblTempUsageDetail_20' ) start [2025-02-07 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423679', 'tblTempUsageDetail_20' ) end [2025-02-07 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423679', 'tblTempVendorCDR_20' ) start [2025-02-07 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423679', 'tblTempVendorCDR_20' ) end [2025-02-07 16:43:27] Production.INFO: ProcessCDR(1,14423679,1,1,2) [2025-02-07 16:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423679', 'tblTempUsageDetail_20' ) start [2025-02-07 16:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423679', 'tblTempUsageDetail_20' ) end [2025-02-07 16:43:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:43:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:43:31] Production.INFO: ==26189== Releasing lock... [2025-02-07 16:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:43:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:44:05 [end_date_ymd] => 2025-02-07 16:44:05 [RateCDR] => 1 ) [2025-02-07 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:44:05' and `end` < '2025-02-07 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:44:25] Production.INFO: count ==5537 [2025-02-07 16:44:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:44:05 - End Time 2025-02-07 16:44:05 [2025-02-07 16:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423684', 'tblTempUsageDetail_20' ) start [2025-02-07 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423684', 'tblTempUsageDetail_20' ) end [2025-02-07 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423684', 'tblTempVendorCDR_20' ) start [2025-02-07 16:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423684', 'tblTempVendorCDR_20' ) end [2025-02-07 16:44:27] Production.INFO: ProcessCDR(1,14423684,1,1,2) [2025-02-07 16:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423684', 'tblTempUsageDetail_20' ) start [2025-02-07 16:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423684', 'tblTempUsageDetail_20' ) end [2025-02-07 16:44:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:44:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:44:32] Production.INFO: ==26270== Releasing lock... [2025-02-07 16:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:44:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:45:05 [end_date_ymd] => 2025-02-07 16:45:05 [RateCDR] => 1 ) [2025-02-07 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:45:05' and `end` < '2025-02-07 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:45:26] Production.INFO: count ==5545 [2025-02-07 16:45:29] Production.ERROR: pbx CDR StartTime 2025-02-07 13:45:05 - End Time 2025-02-07 16:45:05 [2025-02-07 16:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423689', 'tblTempUsageDetail_20' ) start [2025-02-07 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423689', 'tblTempUsageDetail_20' ) end [2025-02-07 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423689', 'tblTempVendorCDR_20' ) start [2025-02-07 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423689', 'tblTempVendorCDR_20' ) end [2025-02-07 16:45:29] Production.INFO: ProcessCDR(1,14423689,1,1,2) [2025-02-07 16:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423689', 'tblTempUsageDetail_20' ) start [2025-02-07 16:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423689', 'tblTempUsageDetail_20' ) end [2025-02-07 16:45:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:45:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:45:35] Production.INFO: ==26381== Releasing lock... [2025-02-07 16:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:45:35] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:46:06 [end_date_ymd] => 2025-02-07 16:46:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:46:06' and `end` < '2025-02-07 16: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-07 16:46:26] Production.INFO: count ==5535 [2025-02-07 16:46:28] Production.ERROR: pbx CDR StartTime 2025-02-07 13:46:06 - End Time 2025-02-07 16:46:06 [2025-02-07 16:46:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:46:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423694', 'tblTempUsageDetail_20' ) start [2025-02-07 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423694', 'tblTempUsageDetail_20' ) end [2025-02-07 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423694', 'tblTempVendorCDR_20' ) start [2025-02-07 16:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423694', 'tblTempVendorCDR_20' ) end [2025-02-07 16:46:29] Production.INFO: ProcessCDR(1,14423694,1,1,2) [2025-02-07 16:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423694', 'tblTempUsageDetail_20' ) start [2025-02-07 16:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423694', 'tblTempUsageDetail_20' ) end [2025-02-07 16:46:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:46:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:46:34] Production.INFO: ==26459== Releasing lock... [2025-02-07 16:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:46:34] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:47:06 [end_date_ymd] => 2025-02-07 16:47:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:47:06' and `end` < '2025-02-07 16: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-07 16:47:26] Production.INFO: count ==5532 [2025-02-07 16:47:29] Production.ERROR: pbx CDR StartTime 2025-02-07 13:47:06 - End Time 2025-02-07 16:47:06 [2025-02-07 16:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423699', 'tblTempUsageDetail_20' ) start [2025-02-07 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423699', 'tblTempUsageDetail_20' ) end [2025-02-07 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423699', 'tblTempVendorCDR_20' ) start [2025-02-07 16:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423699', 'tblTempVendorCDR_20' ) end [2025-02-07 16:47:29] Production.INFO: ProcessCDR(1,14423699,1,1,2) [2025-02-07 16:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423699', 'tblTempUsageDetail_20' ) start [2025-02-07 16:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423699', 'tblTempUsageDetail_20' ) end [2025-02-07 16:47:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:47:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:47:34] Production.INFO: ==26563== Releasing lock... [2025-02-07 16:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:47:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:48:06 [end_date_ymd] => 2025-02-07 16:48:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:48:06' and `end` < '2025-02-07 16: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-07 16:48:27] Production.INFO: count ==5544 [2025-02-07 16:48:30] Production.ERROR: pbx CDR StartTime 2025-02-07 13:48:06 - End Time 2025-02-07 16:48:06 [2025-02-07 16:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423704', 'tblTempUsageDetail_20' ) start [2025-02-07 16:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423704', 'tblTempUsageDetail_20' ) end [2025-02-07 16:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423704', 'tblTempVendorCDR_20' ) start [2025-02-07 16:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423704', 'tblTempVendorCDR_20' ) end [2025-02-07 16:48:31] Production.INFO: ProcessCDR(1,14423704,1,1,2) [2025-02-07 16:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423704', 'tblTempUsageDetail_20' ) start [2025-02-07 16:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423704', 'tblTempUsageDetail_20' ) end [2025-02-07 16:48:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:48:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:48:36] Production.INFO: ==26648== Releasing lock... [2025-02-07 16:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:48:36] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:49:05 [end_date_ymd] => 2025-02-07 16:49:05 [RateCDR] => 1 ) [2025-02-07 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:49:05' and `end` < '2025-02-07 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:49:31] Production.INFO: count ==5555 [2025-02-07 16:49:33] Production.ERROR: pbx CDR StartTime 2025-02-07 13:49:05 - End Time 2025-02-07 16:49:05 [2025-02-07 16:49:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423709', 'tblTempUsageDetail_20' ) start [2025-02-07 16:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423709', 'tblTempUsageDetail_20' ) end [2025-02-07 16:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423709', 'tblTempVendorCDR_20' ) start [2025-02-07 16:49:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423709', 'tblTempVendorCDR_20' ) end [2025-02-07 16:49:33] Production.INFO: ProcessCDR(1,14423709,1,1,2) [2025-02-07 16:49:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:49:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:49:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:49:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423709', 'tblTempUsageDetail_20' ) start [2025-02-07 16:49:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423709', 'tblTempUsageDetail_20' ) end [2025-02-07 16:49:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:49:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:49:38] Production.INFO: ==26751== Releasing lock... [2025-02-07 16:49:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:49:38] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:50:07 [end_date_ymd] => 2025-02-07 16:50:07 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:50:07' and `end` < '2025-02-07 16: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-07 16:50:29] Production.INFO: count ==5569 [2025-02-07 16:50:32] Production.ERROR: pbx CDR StartTime 2025-02-07 13:50:07 - End Time 2025-02-07 16:50:07 [2025-02-07 16:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423715', 'tblTempUsageDetail_20' ) start [2025-02-07 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423715', 'tblTempUsageDetail_20' ) end [2025-02-07 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423715', 'tblTempVendorCDR_20' ) start [2025-02-07 16:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423715', 'tblTempVendorCDR_20' ) end [2025-02-07 16:50:32] Production.INFO: ProcessCDR(1,14423715,1,1,2) [2025-02-07 16:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423715', 'tblTempUsageDetail_20' ) start [2025-02-07 16:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423715', 'tblTempUsageDetail_20' ) end [2025-02-07 16:50:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:50:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:50:38] Production.INFO: ==26844== Releasing lock... [2025-02-07 16:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:50:38] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:51:05 [end_date_ymd] => 2025-02-07 16:51:05 [RateCDR] => 1 ) [2025-02-07 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:51:05' and `end` < '2025-02-07 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:51:23] Production.INFO: count ==5595 [2025-02-07 16:51:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:51:05 - End Time 2025-02-07 16:51:05 [2025-02-07 16:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423720', 'tblTempUsageDetail_20' ) start [2025-02-07 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423720', 'tblTempUsageDetail_20' ) end [2025-02-07 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423720', 'tblTempVendorCDR_20' ) start [2025-02-07 16:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423720', 'tblTempVendorCDR_20' ) end [2025-02-07 16:51:26] Production.INFO: ProcessCDR(1,14423720,1,1,2) [2025-02-07 16:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423720', 'tblTempUsageDetail_20' ) start [2025-02-07 16:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423720', 'tblTempUsageDetail_20' ) end [2025-02-07 16:51:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:51:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:51:30] Production.INFO: ==26949== Releasing lock... [2025-02-07 16:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:51:30] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:52:06 [end_date_ymd] => 2025-02-07 16:52:06 [RateCDR] => 1 ) [2025-02-07 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:52:06' and `end` < '2025-02-07 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:52:21] Production.INFO: count ==5592 [2025-02-07 16:52:23] Production.ERROR: pbx CDR StartTime 2025-02-07 13:52:06 - End Time 2025-02-07 16:52:06 [2025-02-07 16:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423725', 'tblTempUsageDetail_20' ) start [2025-02-07 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423725', 'tblTempUsageDetail_20' ) end [2025-02-07 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423725', 'tblTempVendorCDR_20' ) start [2025-02-07 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423725', 'tblTempVendorCDR_20' ) end [2025-02-07 16:52:24] Production.INFO: ProcessCDR(1,14423725,1,1,2) [2025-02-07 16:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423725', 'tblTempUsageDetail_20' ) start [2025-02-07 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423725', 'tblTempUsageDetail_20' ) end [2025-02-07 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:52:27] Production.INFO: ==27048== Releasing lock... [2025-02-07 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:52:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:53:05 [end_date_ymd] => 2025-02-07 16:53:05 [RateCDR] => 1 ) [2025-02-07 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:53:05' and `end` < '2025-02-07 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:53:29] Production.INFO: count ==5582 [2025-02-07 16:53:31] Production.ERROR: pbx CDR StartTime 2025-02-07 13:53:05 - End Time 2025-02-07 16:53:05 [2025-02-07 16:53:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:53:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423730', 'tblTempUsageDetail_20' ) start [2025-02-07 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423730', 'tblTempUsageDetail_20' ) end [2025-02-07 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423730', 'tblTempVendorCDR_20' ) start [2025-02-07 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423730', 'tblTempVendorCDR_20' ) end [2025-02-07 16:53:32] Production.INFO: ProcessCDR(1,14423730,1,1,2) [2025-02-07 16:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:53:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423730', 'tblTempUsageDetail_20' ) start [2025-02-07 16:53:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423730', 'tblTempUsageDetail_20' ) end [2025-02-07 16:53:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:53:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:53:36] Production.INFO: ==27139== Releasing lock... [2025-02-07 16:53:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:53:36] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:54:05 [end_date_ymd] => 2025-02-07 16:54:05 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:54:05' and `end` < '2025-02-07 16: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-07 16:54:24] Production.INFO: count ==5577 [2025-02-07 16:54:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:54:05 - End Time 2025-02-07 16:54:05 [2025-02-07 16:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423735', 'tblTempUsageDetail_20' ) start [2025-02-07 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423735', 'tblTempUsageDetail_20' ) end [2025-02-07 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423735', 'tblTempVendorCDR_20' ) start [2025-02-07 16:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423735', 'tblTempVendorCDR_20' ) end [2025-02-07 16:54:27] Production.INFO: ProcessCDR(1,14423735,1,1,2) [2025-02-07 16:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423735', 'tblTempUsageDetail_20' ) start [2025-02-07 16:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423735', 'tblTempUsageDetail_20' ) end [2025-02-07 16:54:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:54:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:54:32] Production.INFO: ==27238== Releasing lock... [2025-02-07 16:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:54:32] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:55:06 [end_date_ymd] => 2025-02-07 16:55:06 [RateCDR] => 1 ) [2025-02-07 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:55:06' and `end` < '2025-02-07 16:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:55:24] Production.INFO: count ==5576 [2025-02-07 16:55:26] Production.ERROR: pbx CDR StartTime 2025-02-07 13:55:06 - End Time 2025-02-07 16:55:06 [2025-02-07 16:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423740', 'tblTempUsageDetail_20' ) start [2025-02-07 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423740', 'tblTempUsageDetail_20' ) end [2025-02-07 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423740', 'tblTempVendorCDR_20' ) start [2025-02-07 16:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423740', 'tblTempVendorCDR_20' ) end [2025-02-07 16:55:26] Production.INFO: ProcessCDR(1,14423740,1,1,2) [2025-02-07 16:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423740', 'tblTempUsageDetail_20' ) start [2025-02-07 16:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423740', 'tblTempUsageDetail_20' ) end [2025-02-07 16:55:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:55:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:55:31] Production.INFO: ==27369== Releasing lock... [2025-02-07 16:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:55:31] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:56:05 [end_date_ymd] => 2025-02-07 16:56:05 [RateCDR] => 1 ) [2025-02-07 16:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:56:05' and `end` < '2025-02-07 16:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:56:26] Production.INFO: count ==5568 [2025-02-07 16:56:29] Production.ERROR: pbx CDR StartTime 2025-02-07 13:56:05 - End Time 2025-02-07 16:56:05 [2025-02-07 16:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423745', 'tblTempUsageDetail_20' ) start [2025-02-07 16:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423745', 'tblTempUsageDetail_20' ) end [2025-02-07 16:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423745', 'tblTempVendorCDR_20' ) start [2025-02-07 16:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423745', 'tblTempVendorCDR_20' ) end [2025-02-07 16:56:29] Production.INFO: ProcessCDR(1,14423745,1,1,2) [2025-02-07 16:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423745', 'tblTempUsageDetail_20' ) start [2025-02-07 16:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423745', 'tblTempUsageDetail_20' ) end [2025-02-07 16:56:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:56:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:56:34] Production.INFO: ==27462== Releasing lock... [2025-02-07 16:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:56:34] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:57:05 [end_date_ymd] => 2025-02-07 16:57:05 [RateCDR] => 1 ) [2025-02-07 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:57:05' and `end` < '2025-02-07 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:57:21] Production.INFO: count ==5566 [2025-02-07 16:57:24] Production.ERROR: pbx CDR StartTime 2025-02-07 13:57:05 - End Time 2025-02-07 16:57:05 [2025-02-07 16:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423750', 'tblTempUsageDetail_20' ) start [2025-02-07 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423750', 'tblTempUsageDetail_20' ) end [2025-02-07 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423750', 'tblTempVendorCDR_20' ) start [2025-02-07 16:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423750', 'tblTempVendorCDR_20' ) end [2025-02-07 16:57:24] Production.INFO: ProcessCDR(1,14423750,1,1,2) [2025-02-07 16:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423750', 'tblTempUsageDetail_20' ) start [2025-02-07 16:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423750', 'tblTempUsageDetail_20' ) end [2025-02-07 16:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:57:29] Production.INFO: ==27557== Releasing lock... [2025-02-07 16:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:57:29] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:58:06 [end_date_ymd] => 2025-02-07 16:58:06 [RateCDR] => 1 ) [2025-02-07 16: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-07 13:58:06' and `end` < '2025-02-07 16: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-07 16:58:24] Production.INFO: count ==5582 [2025-02-07 16:58:27] Production.ERROR: pbx CDR StartTime 2025-02-07 13:58:06 - End Time 2025-02-07 16:58:06 [2025-02-07 16:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423755', 'tblTempUsageDetail_20' ) start [2025-02-07 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423755', 'tblTempUsageDetail_20' ) end [2025-02-07 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423755', 'tblTempVendorCDR_20' ) start [2025-02-07 16:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423755', 'tblTempVendorCDR_20' ) end [2025-02-07 16:58:27] Production.INFO: ProcessCDR(1,14423755,1,1,2) [2025-02-07 16:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423755', 'tblTempUsageDetail_20' ) start [2025-02-07 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423755', 'tblTempUsageDetail_20' ) end [2025-02-07 16:58:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:58:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:58:32] Production.INFO: ==27658== Releasing lock... [2025-02-07 16:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:58:32] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 13:59:05 [end_date_ymd] => 2025-02-07 16:59:05 [RateCDR] => 1 ) [2025-02-07 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 13:59:05' and `end` < '2025-02-07 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 16:59:23] Production.INFO: count ==5550 [2025-02-07 16:59:25] Production.ERROR: pbx CDR StartTime 2025-02-07 13:59:05 - End Time 2025-02-07 16:59:05 [2025-02-07 16:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 16:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423760', 'tblTempUsageDetail_20' ) start [2025-02-07 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423760', 'tblTempUsageDetail_20' ) end [2025-02-07 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423760', 'tblTempVendorCDR_20' ) start [2025-02-07 16:59:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423760', 'tblTempVendorCDR_20' ) end [2025-02-07 16:59:26] Production.INFO: ProcessCDR(1,14423760,1,1,2) [2025-02-07 16:59:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:59:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 16:59:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 16:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423760', 'tblTempUsageDetail_20' ) start [2025-02-07 16:59:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423760', 'tblTempUsageDetail_20' ) end [2025-02-07 16:59:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 16:59:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 16:59:31] Production.INFO: ==27750== Releasing lock... [2025-02-07 16:59:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 16:59:31] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:00:07 [end_date_ymd] => 2025-02-07 17:00:07 [RateCDR] => 1 ) [2025-02-07 17:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:00:07' and `end` < '2025-02-07 17:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:00:25] Production.INFO: count ==5547 [2025-02-07 17:00:27] Production.ERROR: pbx CDR StartTime 2025-02-07 14:00:07 - End Time 2025-02-07 17:00:07 [2025-02-07 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423766', 'tblTempUsageDetail_20' ) start [2025-02-07 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423766', 'tblTempUsageDetail_20' ) end [2025-02-07 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423766', 'tblTempVendorCDR_20' ) start [2025-02-07 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423766', 'tblTempVendorCDR_20' ) end [2025-02-07 17:00:27] Production.INFO: ProcessCDR(1,14423766,1,1,2) [2025-02-07 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423766', 'tblTempUsageDetail_20' ) start [2025-02-07 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423766', 'tblTempUsageDetail_20' ) end [2025-02-07 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:00:32] Production.INFO: ==27851== Releasing lock... [2025-02-07 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:00:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:01:06 [end_date_ymd] => 2025-02-07 17:01:06 [RateCDR] => 1 ) [2025-02-07 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:01:06' and `end` < '2025-02-07 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:01:25] Production.INFO: count ==5604 [2025-02-07 17:01:28] Production.ERROR: pbx CDR StartTime 2025-02-07 14:01:06 - End Time 2025-02-07 17:01:06 [2025-02-07 17:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423771', 'tblTempUsageDetail_20' ) start [2025-02-07 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423771', 'tblTempUsageDetail_20' ) end [2025-02-07 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423771', 'tblTempVendorCDR_20' ) start [2025-02-07 17:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423771', 'tblTempVendorCDR_20' ) end [2025-02-07 17:01:28] Production.INFO: ProcessCDR(1,14423771,1,1,2) [2025-02-07 17:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423771', 'tblTempUsageDetail_20' ) start [2025-02-07 17:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423771', 'tblTempUsageDetail_20' ) end [2025-02-07 17:01:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:01:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:01:33] Production.INFO: ==27967== Releasing lock... [2025-02-07 17:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:01:33] Production.INFO: 70 MB #Memory Used# [2025-02-07 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:02:06 [end_date_ymd] => 2025-02-07 17:02:06 [RateCDR] => 1 ) [2025-02-07 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:02:06' and `end` < '2025-02-07 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:02:23] Production.INFO: count ==5600 [2025-02-07 17:02:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:02:06 - End Time 2025-02-07 17:02:06 [2025-02-07 17:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423776', 'tblTempUsageDetail_20' ) start [2025-02-07 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423776', 'tblTempUsageDetail_20' ) end [2025-02-07 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423776', 'tblTempVendorCDR_20' ) start [2025-02-07 17:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423776', 'tblTempVendorCDR_20' ) end [2025-02-07 17:02:26] Production.INFO: ProcessCDR(1,14423776,1,1,2) [2025-02-07 17:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423776', 'tblTempUsageDetail_20' ) start [2025-02-07 17:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423776', 'tblTempUsageDetail_20' ) end [2025-02-07 17:02:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:02:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:02:31] Production.INFO: ==28065== Releasing lock... [2025-02-07 17:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:02:31] Production.INFO: 70 MB #Memory Used# [2025-02-07 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:03:05 [end_date_ymd] => 2025-02-07 17:03:05 [RateCDR] => 1 ) [2025-02-07 17:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:03:05' and `end` < '2025-02-07 17:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:03:19] Production.INFO: count ==5579 [2025-02-07 17:03:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:03:05 - End Time 2025-02-07 17:03:05 [2025-02-07 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423781', 'tblTempUsageDetail_20' ) start [2025-02-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423781', 'tblTempUsageDetail_20' ) end [2025-02-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423781', 'tblTempVendorCDR_20' ) start [2025-02-07 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423781', 'tblTempVendorCDR_20' ) end [2025-02-07 17:03:22] Production.INFO: ProcessCDR(1,14423781,1,1,2) [2025-02-07 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423781', 'tblTempUsageDetail_20' ) start [2025-02-07 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423781', 'tblTempUsageDetail_20' ) end [2025-02-07 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:03:27] Production.INFO: ==28166== Releasing lock... [2025-02-07 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:03:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-07 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:04:06 [end_date_ymd] => 2025-02-07 17:04:06 [RateCDR] => 1 ) [2025-02-07 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:04:06' and `end` < '2025-02-07 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:04:23] Production.INFO: count ==5556 [2025-02-07 17:04:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:04:06 - End Time 2025-02-07 17:04:06 [2025-02-07 17:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423786', 'tblTempUsageDetail_20' ) start [2025-02-07 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423786', 'tblTempUsageDetail_20' ) end [2025-02-07 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423786', 'tblTempVendorCDR_20' ) start [2025-02-07 17:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423786', 'tblTempVendorCDR_20' ) end [2025-02-07 17:04:26] Production.INFO: ProcessCDR(1,14423786,1,1,2) [2025-02-07 17:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423786', 'tblTempUsageDetail_20' ) start [2025-02-07 17:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423786', 'tblTempUsageDetail_20' ) end [2025-02-07 17:04:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:04:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:04:31] Production.INFO: ==28268== Releasing lock... [2025-02-07 17:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:04:31] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:05:05 [end_date_ymd] => 2025-02-07 17:05:05 [RateCDR] => 1 ) [2025-02-07 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:05:05' and `end` < '2025-02-07 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:05:25] Production.INFO: count ==5555 [2025-02-07 17:05:27] Production.ERROR: pbx CDR StartTime 2025-02-07 14:05:05 - End Time 2025-02-07 17:05:05 [2025-02-07 17:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423791', 'tblTempUsageDetail_20' ) start [2025-02-07 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423791', 'tblTempUsageDetail_20' ) end [2025-02-07 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423791', 'tblTempVendorCDR_20' ) start [2025-02-07 17:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423791', 'tblTempVendorCDR_20' ) end [2025-02-07 17:05:27] Production.INFO: ProcessCDR(1,14423791,1,1,2) [2025-02-07 17:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423791', 'tblTempUsageDetail_20' ) start [2025-02-07 17:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423791', 'tblTempUsageDetail_20' ) end [2025-02-07 17:05:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:05:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:05:33] Production.INFO: ==28359== Releasing lock... [2025-02-07 17:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:05:33] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:06:05 [end_date_ymd] => 2025-02-07 17:06:05 [RateCDR] => 1 ) [2025-02-07 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:06:05' and `end` < '2025-02-07 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:06:21] Production.INFO: count ==5562 [2025-02-07 17:06:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:06:05 - End Time 2025-02-07 17:06:05 [2025-02-07 17:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423796', 'tblTempUsageDetail_20' ) start [2025-02-07 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423796', 'tblTempUsageDetail_20' ) end [2025-02-07 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423796', 'tblTempVendorCDR_20' ) start [2025-02-07 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423796', 'tblTempVendorCDR_20' ) end [2025-02-07 17:06:25] Production.INFO: ProcessCDR(1,14423796,1,1,2) [2025-02-07 17:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423796', 'tblTempUsageDetail_20' ) start [2025-02-07 17:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423796', 'tblTempUsageDetail_20' ) end [2025-02-07 17:06:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:06:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:06:30] Production.INFO: ==28447== Releasing lock... [2025-02-07 17:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:06:30] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:07:05 [end_date_ymd] => 2025-02-07 17:07:05 [RateCDR] => 1 ) [2025-02-07 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:07:05' and `end` < '2025-02-07 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:07:22] Production.INFO: count ==5551 [2025-02-07 17:07:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:07:05 - End Time 2025-02-07 17:07:05 [2025-02-07 17:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423801', 'tblTempUsageDetail_20' ) start [2025-02-07 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423801', 'tblTempUsageDetail_20' ) end [2025-02-07 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423801', 'tblTempVendorCDR_20' ) start [2025-02-07 17:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423801', 'tblTempVendorCDR_20' ) end [2025-02-07 17:07:24] Production.INFO: ProcessCDR(1,14423801,1,1,2) [2025-02-07 17:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423801', 'tblTempUsageDetail_20' ) start [2025-02-07 17:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423801', 'tblTempUsageDetail_20' ) end [2025-02-07 17:07:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:07:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:07:29] Production.INFO: ==28545== Releasing lock... [2025-02-07 17:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:07:29] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:08:06 [end_date_ymd] => 2025-02-07 17:08:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:08:06' and `end` < '2025-02-07 17: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-07 17:08:20] Production.INFO: count ==5499 [2025-02-07 17:08:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:08:06 - End Time 2025-02-07 17:08:06 [2025-02-07 17:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423806', 'tblTempUsageDetail_20' ) start [2025-02-07 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423806', 'tblTempUsageDetail_20' ) end [2025-02-07 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423806', 'tblTempVendorCDR_20' ) start [2025-02-07 17:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423806', 'tblTempVendorCDR_20' ) end [2025-02-07 17:08:23] Production.INFO: ProcessCDR(1,14423806,1,1,2) [2025-02-07 17:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423806', 'tblTempUsageDetail_20' ) start [2025-02-07 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423806', 'tblTempUsageDetail_20' ) end [2025-02-07 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:08:28] Production.INFO: ==28643== Releasing lock... [2025-02-07 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:08:28] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:09:05 [end_date_ymd] => 2025-02-07 17:09:05 [RateCDR] => 1 ) [2025-02-07 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:09:05' and `end` < '2025-02-07 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:09:19] Production.INFO: count ==5502 [2025-02-07 17:09:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:09:05 - End Time 2025-02-07 17:09:05 [2025-02-07 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423811', 'tblTempUsageDetail_20' ) start [2025-02-07 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423811', 'tblTempUsageDetail_20' ) end [2025-02-07 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423811', 'tblTempVendorCDR_20' ) start [2025-02-07 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423811', 'tblTempVendorCDR_20' ) end [2025-02-07 17:09:22] Production.INFO: ProcessCDR(1,14423811,1,1,2) [2025-02-07 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423811', 'tblTempUsageDetail_20' ) start [2025-02-07 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423811', 'tblTempUsageDetail_20' ) end [2025-02-07 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:09:26] Production.INFO: ==28734== Releasing lock... [2025-02-07 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:09:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:10:06 [end_date_ymd] => 2025-02-07 17:10:06 [RateCDR] => 1 ) [2025-02-07 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:10:06' and `end` < '2025-02-07 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:10:23] Production.INFO: count ==5479 [2025-02-07 17:10:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:10:06 - End Time 2025-02-07 17:10:06 [2025-02-07 17:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423816', 'tblTempUsageDetail_20' ) start [2025-02-07 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423816', 'tblTempUsageDetail_20' ) end [2025-02-07 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423816', 'tblTempVendorCDR_20' ) start [2025-02-07 17:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423816', 'tblTempVendorCDR_20' ) end [2025-02-07 17:10:26] Production.INFO: ProcessCDR(1,14423816,1,1,2) [2025-02-07 17:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423816', 'tblTempUsageDetail_20' ) start [2025-02-07 17:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423816', 'tblTempUsageDetail_20' ) end [2025-02-07 17:10:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:10:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:10:31] Production.INFO: ==28818== Releasing lock... [2025-02-07 17:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:10:31] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:11:06 [end_date_ymd] => 2025-02-07 17:11:06 [RateCDR] => 1 ) [2025-02-07 17:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:11:06' and `end` < '2025-02-07 17:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:11:22] Production.INFO: count ==5478 [2025-02-07 17:11:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:11:06 - End Time 2025-02-07 17:11:06 [2025-02-07 17:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423822', 'tblTempUsageDetail_20' ) start [2025-02-07 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423822', 'tblTempUsageDetail_20' ) end [2025-02-07 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423822', 'tblTempVendorCDR_20' ) start [2025-02-07 17:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423822', 'tblTempVendorCDR_20' ) end [2025-02-07 17:11:24] Production.INFO: ProcessCDR(1,14423822,1,1,2) [2025-02-07 17:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423822', 'tblTempUsageDetail_20' ) start [2025-02-07 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423822', 'tblTempUsageDetail_20' ) end [2025-02-07 17:11:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:11:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:11:30] Production.INFO: ==28943== Releasing lock... [2025-02-07 17:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:11:30] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:12:05 [end_date_ymd] => 2025-02-07 17:12:05 [RateCDR] => 1 ) [2025-02-07 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:12:05' and `end` < '2025-02-07 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:12:28] Production.INFO: count ==5490 [2025-02-07 17:12:31] Production.ERROR: pbx CDR StartTime 2025-02-07 14:12:05 - End Time 2025-02-07 17:12:05 [2025-02-07 17:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423827', 'tblTempUsageDetail_20' ) start [2025-02-07 17:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423827', 'tblTempUsageDetail_20' ) end [2025-02-07 17:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423827', 'tblTempVendorCDR_20' ) start [2025-02-07 17:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423827', 'tblTempVendorCDR_20' ) end [2025-02-07 17:12:31] Production.INFO: ProcessCDR(1,14423827,1,1,2) [2025-02-07 17:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423827', 'tblTempUsageDetail_20' ) start [2025-02-07 17:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423827', 'tblTempUsageDetail_20' ) end [2025-02-07 17:12:36] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:12:36] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:12:36] Production.INFO: ==29025== Releasing lock... [2025-02-07 17:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:12:36] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:13:06 [end_date_ymd] => 2025-02-07 17:13:06 [RateCDR] => 1 ) [2025-02-07 17:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:13:06' and `end` < '2025-02-07 17:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:13:26] Production.INFO: count ==5490 [2025-02-07 17:13:29] Production.ERROR: pbx CDR StartTime 2025-02-07 14:13:06 - End Time 2025-02-07 17:13:06 [2025-02-07 17:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423832', 'tblTempUsageDetail_20' ) start [2025-02-07 17:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423832', 'tblTempUsageDetail_20' ) end [2025-02-07 17:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423832', 'tblTempVendorCDR_20' ) start [2025-02-07 17:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423832', 'tblTempVendorCDR_20' ) end [2025-02-07 17:13:29] Production.INFO: ProcessCDR(1,14423832,1,1,2) [2025-02-07 17:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423832', 'tblTempUsageDetail_20' ) start [2025-02-07 17:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423832', 'tblTempUsageDetail_20' ) end [2025-02-07 17:13:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:13:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:13:34] Production.INFO: ==29106== Releasing lock... [2025-02-07 17:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:13:34] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:14:05 [end_date_ymd] => 2025-02-07 17:14:05 [RateCDR] => 1 ) [2025-02-07 17:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:14:05' and `end` < '2025-02-07 17:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:14:22] Production.INFO: count ==5513 [2025-02-07 17:14:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:14:05 - End Time 2025-02-07 17:14:05 [2025-02-07 17:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423837', 'tblTempUsageDetail_20' ) start [2025-02-07 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423837', 'tblTempUsageDetail_20' ) end [2025-02-07 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423837', 'tblTempVendorCDR_20' ) start [2025-02-07 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423837', 'tblTempVendorCDR_20' ) end [2025-02-07 17:14:24] Production.INFO: ProcessCDR(1,14423837,1,1,2) [2025-02-07 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423837', 'tblTempUsageDetail_20' ) start [2025-02-07 17:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423837', 'tblTempUsageDetail_20' ) end [2025-02-07 17:14:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:14:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:14:29] Production.INFO: ==29189== Releasing lock... [2025-02-07 17:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:14:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:15:06 [end_date_ymd] => 2025-02-07 17:15:06 [RateCDR] => 1 ) [2025-02-07 17:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:15:06' and `end` < '2025-02-07 17:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:15:31] Production.INFO: count ==5515 [2025-02-07 17:15:33] Production.ERROR: pbx CDR StartTime 2025-02-07 14:15:06 - End Time 2025-02-07 17:15:06 [2025-02-07 17:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423842', 'tblTempUsageDetail_20' ) start [2025-02-07 17:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423842', 'tblTempUsageDetail_20' ) end [2025-02-07 17:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423842', 'tblTempVendorCDR_20' ) start [2025-02-07 17:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423842', 'tblTempVendorCDR_20' ) end [2025-02-07 17:15:34] Production.INFO: ProcessCDR(1,14423842,1,1,2) [2025-02-07 17:15:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:15:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423842', 'tblTempUsageDetail_20' ) start [2025-02-07 17:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423842', 'tblTempUsageDetail_20' ) end [2025-02-07 17:15:38] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:15:38] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:15:39] Production.INFO: ==29269== Releasing lock... [2025-02-07 17:15:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:15:39] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:16:06 [end_date_ymd] => 2025-02-07 17:16:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:16:06' and `end` < '2025-02-07 17: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-07 17:16:24] Production.INFO: count ==5510 [2025-02-07 17:16:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:16:06 - End Time 2025-02-07 17:16:06 [2025-02-07 17:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423847', 'tblTempUsageDetail_20' ) start [2025-02-07 17:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423847', 'tblTempUsageDetail_20' ) end [2025-02-07 17:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423847', 'tblTempVendorCDR_20' ) start [2025-02-07 17:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423847', 'tblTempVendorCDR_20' ) end [2025-02-07 17:16:26] Production.INFO: ProcessCDR(1,14423847,1,1,2) [2025-02-07 17:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423847', 'tblTempUsageDetail_20' ) start [2025-02-07 17:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423847', 'tblTempUsageDetail_20' ) end [2025-02-07 17:16:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:16:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:16:31] Production.INFO: ==29351== Releasing lock... [2025-02-07 17:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:16:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:17:06 [end_date_ymd] => 2025-02-07 17:17:06 [RateCDR] => 1 ) [2025-02-07 17:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:17:06' and `end` < '2025-02-07 17:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:17:20] Production.INFO: count ==5517 [2025-02-07 17:17:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:17:06 - End Time 2025-02-07 17:17:06 [2025-02-07 17:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423852', 'tblTempUsageDetail_20' ) start [2025-02-07 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423852', 'tblTempUsageDetail_20' ) end [2025-02-07 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423852', 'tblTempVendorCDR_20' ) start [2025-02-07 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423852', 'tblTempVendorCDR_20' ) end [2025-02-07 17:17:22] Production.INFO: ProcessCDR(1,14423852,1,1,2) [2025-02-07 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423852', 'tblTempUsageDetail_20' ) start [2025-02-07 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423852', 'tblTempUsageDetail_20' ) end [2025-02-07 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:17:27] Production.INFO: ==29430== Releasing lock... [2025-02-07 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:17:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:18:05 [end_date_ymd] => 2025-02-07 17:18:05 [RateCDR] => 1 ) [2025-02-07 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:18:05' and `end` < '2025-02-07 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:18:29] Production.INFO: count ==5514 [2025-02-07 17:18:32] Production.ERROR: pbx CDR StartTime 2025-02-07 14:18:05 - End Time 2025-02-07 17:18:05 [2025-02-07 17:18:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423857', 'tblTempUsageDetail_20' ) start [2025-02-07 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423857', 'tblTempUsageDetail_20' ) end [2025-02-07 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423857', 'tblTempVendorCDR_20' ) start [2025-02-07 17:18:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423857', 'tblTempVendorCDR_20' ) end [2025-02-07 17:18:32] Production.INFO: ProcessCDR(1,14423857,1,1,2) [2025-02-07 17:18:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:18:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:18:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:18:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423857', 'tblTempUsageDetail_20' ) start [2025-02-07 17:18:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423857', 'tblTempUsageDetail_20' ) end [2025-02-07 17:18:37] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:18:37] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:18:37] Production.INFO: ==29512== Releasing lock... [2025-02-07 17:18:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:18:37] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:19:06 [end_date_ymd] => 2025-02-07 17:19:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:19:06' and `end` < '2025-02-07 17: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-07 17:19:22] Production.INFO: count ==5513 [2025-02-07 17:19:25] Production.ERROR: pbx CDR StartTime 2025-02-07 14:19:06 - End Time 2025-02-07 17:19:06 [2025-02-07 17:19:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423862', 'tblTempUsageDetail_20' ) start [2025-02-07 17:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423862', 'tblTempUsageDetail_20' ) end [2025-02-07 17:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423862', 'tblTempVendorCDR_20' ) start [2025-02-07 17:19:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423862', 'tblTempVendorCDR_20' ) end [2025-02-07 17:19:25] Production.INFO: ProcessCDR(1,14423862,1,1,2) [2025-02-07 17:19:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423862', 'tblTempUsageDetail_20' ) start [2025-02-07 17:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423862', 'tblTempUsageDetail_20' ) end [2025-02-07 17:19:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:19:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:19:29] Production.INFO: ==29592== Releasing lock... [2025-02-07 17:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:19:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:20:06 [end_date_ymd] => 2025-02-07 17:20:06 [RateCDR] => 1 ) [2025-02-07 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:20:06' and `end` < '2025-02-07 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:20:20] Production.INFO: count ==5505 [2025-02-07 17:20:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:20:06 - End Time 2025-02-07 17:20:06 [2025-02-07 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423868', 'tblTempUsageDetail_20' ) start [2025-02-07 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423868', 'tblTempUsageDetail_20' ) end [2025-02-07 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423868', 'tblTempVendorCDR_20' ) start [2025-02-07 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423868', 'tblTempVendorCDR_20' ) end [2025-02-07 17:20:23] Production.INFO: ProcessCDR(1,14423868,1,1,2) [2025-02-07 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423868', 'tblTempUsageDetail_20' ) start [2025-02-07 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423868', 'tblTempUsageDetail_20' ) end [2025-02-07 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:20:28] Production.INFO: ==29674== Releasing lock... [2025-02-07 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:20:28] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:21:05 [end_date_ymd] => 2025-02-07 17:21:05 [RateCDR] => 1 ) [2025-02-07 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:21:05' and `end` < '2025-02-07 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:21:19] Production.INFO: count ==5524 [2025-02-07 17:21:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:21:05 - End Time 2025-02-07 17:21:05 [2025-02-07 17:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423873', 'tblTempUsageDetail_20' ) start [2025-02-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423873', 'tblTempUsageDetail_20' ) end [2025-02-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423873', 'tblTempVendorCDR_20' ) start [2025-02-07 17:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423873', 'tblTempVendorCDR_20' ) end [2025-02-07 17:21:22] Production.INFO: ProcessCDR(1,14423873,1,1,2) [2025-02-07 17:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423873', 'tblTempUsageDetail_20' ) start [2025-02-07 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423873', 'tblTempUsageDetail_20' ) end [2025-02-07 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:21:26] Production.INFO: ==29754== Releasing lock... [2025-02-07 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:21:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:22:05 [end_date_ymd] => 2025-02-07 17:22:05 [RateCDR] => 1 ) [2025-02-07 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:22:05' and `end` < '2025-02-07 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:22:20] Production.INFO: count ==5530 [2025-02-07 17:22:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:22:05 - End Time 2025-02-07 17:22:05 [2025-02-07 17:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423878', 'tblTempUsageDetail_20' ) start [2025-02-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423878', 'tblTempUsageDetail_20' ) end [2025-02-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423878', 'tblTempVendorCDR_20' ) start [2025-02-07 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423878', 'tblTempVendorCDR_20' ) end [2025-02-07 17:22:22] Production.INFO: ProcessCDR(1,14423878,1,1,2) [2025-02-07 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423878', 'tblTempUsageDetail_20' ) start [2025-02-07 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423878', 'tblTempUsageDetail_20' ) end [2025-02-07 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:22:26] Production.INFO: ==29836== Releasing lock... [2025-02-07 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:22:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:23:06 [end_date_ymd] => 2025-02-07 17:23:06 [RateCDR] => 1 ) [2025-02-07 17:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:23:06' and `end` < '2025-02-07 17:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:23:19] Production.INFO: count ==5542 [2025-02-07 17:23:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:23:06 - End Time 2025-02-07 17:23:06 [2025-02-07 17:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423883', 'tblTempUsageDetail_20' ) start [2025-02-07 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423883', 'tblTempUsageDetail_20' ) end [2025-02-07 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423883', 'tblTempVendorCDR_20' ) start [2025-02-07 17:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423883', 'tblTempVendorCDR_20' ) end [2025-02-07 17:23:22] Production.INFO: ProcessCDR(1,14423883,1,1,2) [2025-02-07 17:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423883', 'tblTempUsageDetail_20' ) start [2025-02-07 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423883', 'tblTempUsageDetail_20' ) end [2025-02-07 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:23:27] Production.INFO: ==29919== Releasing lock... [2025-02-07 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:23:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:24:05 [end_date_ymd] => 2025-02-07 17:24:05 [RateCDR] => 1 ) [2025-02-07 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:24:05' and `end` < '2025-02-07 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:24:20] Production.INFO: count ==5546 [2025-02-07 17:24:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:24:05 - End Time 2025-02-07 17:24:05 [2025-02-07 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423888', 'tblTempUsageDetail_20' ) start [2025-02-07 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423888', 'tblTempUsageDetail_20' ) end [2025-02-07 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423888', 'tblTempVendorCDR_20' ) start [2025-02-07 17:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423888', 'tblTempVendorCDR_20' ) end [2025-02-07 17:24:23] Production.INFO: ProcessCDR(1,14423888,1,1,2) [2025-02-07 17:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423888', 'tblTempUsageDetail_20' ) start [2025-02-07 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423888', 'tblTempUsageDetail_20' ) end [2025-02-07 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:24:28] Production.INFO: ==29998== Releasing lock... [2025-02-07 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:24:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:25:05 [end_date_ymd] => 2025-02-07 17:25:05 [RateCDR] => 1 ) [2025-02-07 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:25:05' and `end` < '2025-02-07 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:25:28] Production.INFO: count ==5515 [2025-02-07 17:25:30] Production.ERROR: pbx CDR StartTime 2025-02-07 14:25:05 - End Time 2025-02-07 17:25:05 [2025-02-07 17:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423893', 'tblTempUsageDetail_20' ) start [2025-02-07 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423893', 'tblTempUsageDetail_20' ) end [2025-02-07 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423893', 'tblTempVendorCDR_20' ) start [2025-02-07 17:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423893', 'tblTempVendorCDR_20' ) end [2025-02-07 17:25:30] Production.INFO: ProcessCDR(1,14423893,1,1,2) [2025-02-07 17:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423893', 'tblTempUsageDetail_20' ) start [2025-02-07 17:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423893', 'tblTempUsageDetail_20' ) end [2025-02-07 17:25:35] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:25:35] Production.INFO: ==30077== Releasing lock... [2025-02-07 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:25:35] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:26:05 [end_date_ymd] => 2025-02-07 17:26:05 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:26:05' and `end` < '2025-02-07 17: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-07 17:26:24] Production.INFO: count ==5519 [2025-02-07 17:27:29] Production.ERROR: pbx CDR StartTime 2025-02-07 14:26:05 - End Time 2025-02-07 17:26:05 [2025-02-07 17:27:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423898', 'tblTempUsageDetail_20' ) start [2025-02-07 17:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423898', 'tblTempUsageDetail_20' ) end [2025-02-07 17:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423898', 'tblTempVendorCDR_20' ) start [2025-02-07 17:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423898', 'tblTempVendorCDR_20' ) end [2025-02-07 17:27:34] Production.INFO: ProcessCDR(1,14423898,1,1,2) [2025-02-07 17:27:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:27:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:27:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:28:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:28:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423898', 'tblTempUsageDetail_20' ) start [2025-02-07 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423898', 'tblTempUsageDetail_20' ) end [2025-02-07 17:28:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:28:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:28:31] Production.INFO: ==30197== Releasing lock... [2025-02-07 17:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:28:31] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:29:16] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:29:16 [end_date_ymd] => 2025-02-07 17:29:16 [RateCDR] => 1 ) [2025-02-07 17:29:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:29:16' and `end` < '2025-02-07 17:29:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:29:30] Production.INFO: count ==5479 [2025-02-07 17:30:01] Production.ERROR: pbx CDR StartTime 2025-02-07 14:29:16 - End Time 2025-02-07 17:29:16 [2025-02-07 17:30:01] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:30:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423909', 'tblTempUsageDetail_20' ) start [2025-02-07 17:30:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423909', 'tblTempUsageDetail_20' ) end [2025-02-07 17:30:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423909', 'tblTempVendorCDR_20' ) start [2025-02-07 17:30:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423909', 'tblTempVendorCDR_20' ) end [2025-02-07 17:30:06] Production.INFO: ProcessCDR(1,14423909,1,1,2) [2025-02-07 17:30:06] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:30:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:30:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423909', 'tblTempUsageDetail_20' ) start [2025-02-07 17:31:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423909', 'tblTempUsageDetail_20' ) end [2025-02-07 17:31:07] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:31:07] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:31:12] Production.INFO: ==30419== Releasing lock... [2025-02-07 17:31:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:31:12] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:32:34] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:32:34 [end_date_ymd] => 2025-02-07 17:32:34 [RateCDR] => 1 ) [2025-02-07 17:32:34] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:32:34' and `end` < '2025-02-07 17:32:34' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:32:49] Production.INFO: count ==5453 [2025-02-07 17:32:51] Production.ERROR: pbx CDR StartTime 2025-02-07 14:32:34 - End Time 2025-02-07 17:32:34 [2025-02-07 17:32:51] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:32:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423922', 'tblTempUsageDetail_20' ) start [2025-02-07 17:32:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423922', 'tblTempUsageDetail_20' ) end [2025-02-07 17:32:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423922', 'tblTempVendorCDR_20' ) start [2025-02-07 17:32:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423922', 'tblTempVendorCDR_20' ) end [2025-02-07 17:32:52] Production.INFO: ProcessCDR(1,14423922,1,1,2) [2025-02-07 17:32:52] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:32:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:32:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:32:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:32:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423922', 'tblTempUsageDetail_20' ) start [2025-02-07 17:32:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423922', 'tblTempUsageDetail_20' ) end [2025-02-07 17:32:57] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:32:57] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:32:57] Production.INFO: ==30643== Releasing lock... [2025-02-07 17:32:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:32:57] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:33:06 [end_date_ymd] => 2025-02-07 17:33:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:33:06' and `end` < '2025-02-07 17: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-07 17:33:20] Production.INFO: count ==5455 [2025-02-07 17:33:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:33:06 - End Time 2025-02-07 17:33:06 [2025-02-07 17:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423927', 'tblTempUsageDetail_20' ) start [2025-02-07 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423927', 'tblTempUsageDetail_20' ) end [2025-02-07 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423927', 'tblTempVendorCDR_20' ) start [2025-02-07 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423927', 'tblTempVendorCDR_20' ) end [2025-02-07 17:33:22] Production.INFO: ProcessCDR(1,14423927,1,1,2) [2025-02-07 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423927', 'tblTempUsageDetail_20' ) start [2025-02-07 17:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423927', 'tblTempUsageDetail_20' ) end [2025-02-07 17:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:33:27] Production.INFO: ==30721== Releasing lock... [2025-02-07 17:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:33:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:34:05 [end_date_ymd] => 2025-02-07 17:34:05 [RateCDR] => 1 ) [2025-02-07 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:34:05' and `end` < '2025-02-07 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:34:21] Production.INFO: count ==5465 [2025-02-07 17:34:23] Production.ERROR: pbx CDR StartTime 2025-02-07 14:34:05 - End Time 2025-02-07 17:34:05 [2025-02-07 17:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423932', 'tblTempUsageDetail_20' ) start [2025-02-07 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423932', 'tblTempUsageDetail_20' ) end [2025-02-07 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423932', 'tblTempVendorCDR_20' ) start [2025-02-07 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423932', 'tblTempVendorCDR_20' ) end [2025-02-07 17:34:23] Production.INFO: ProcessCDR(1,14423932,1,1,2) [2025-02-07 17:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423932', 'tblTempUsageDetail_20' ) start [2025-02-07 17:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423932', 'tblTempUsageDetail_20' ) end [2025-02-07 17:34:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:34:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:34:28] Production.INFO: ==30798== Releasing lock... [2025-02-07 17:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:34:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:35:06 [end_date_ymd] => 2025-02-07 17:35:06 [RateCDR] => 1 ) [2025-02-07 17:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:35:06' and `end` < '2025-02-07 17:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:35:20] Production.INFO: count ==5477 [2025-02-07 17:35:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:35:06 - End Time 2025-02-07 17:35:06 [2025-02-07 17:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423937', 'tblTempUsageDetail_20' ) start [2025-02-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423937', 'tblTempUsageDetail_20' ) end [2025-02-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423937', 'tblTempVendorCDR_20' ) start [2025-02-07 17:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423937', 'tblTempVendorCDR_20' ) end [2025-02-07 17:35:22] Production.INFO: ProcessCDR(1,14423937,1,1,2) [2025-02-07 17:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423937', 'tblTempUsageDetail_20' ) start [2025-02-07 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423937', 'tblTempUsageDetail_20' ) end [2025-02-07 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:35:27] Production.INFO: ==30873== Releasing lock... [2025-02-07 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:35:27] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:36:05 [end_date_ymd] => 2025-02-07 17:36:05 [RateCDR] => 1 ) [2025-02-07 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:36:05' and `end` < '2025-02-07 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:36:19] Production.INFO: count ==5484 [2025-02-07 17:36:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:36:05 - End Time 2025-02-07 17:36:05 [2025-02-07 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423942', 'tblTempUsageDetail_20' ) start [2025-02-07 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423942', 'tblTempUsageDetail_20' ) end [2025-02-07 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423942', 'tblTempVendorCDR_20' ) start [2025-02-07 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423942', 'tblTempVendorCDR_20' ) end [2025-02-07 17:36:21] Production.INFO: ProcessCDR(1,14423942,1,1,2) [2025-02-07 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423942', 'tblTempUsageDetail_20' ) start [2025-02-07 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423942', 'tblTempUsageDetail_20' ) end [2025-02-07 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:36:26] Production.INFO: ==30946== Releasing lock... [2025-02-07 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:36:26] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:37:06 [end_date_ymd] => 2025-02-07 17:37:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:37:06' and `end` < '2025-02-07 17: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-07 17:37:19] Production.INFO: count ==5503 [2025-02-07 17:37:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:37:06 - End Time 2025-02-07 17:37:06 [2025-02-07 17:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423947', 'tblTempUsageDetail_20' ) start [2025-02-07 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423947', 'tblTempUsageDetail_20' ) end [2025-02-07 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423947', 'tblTempVendorCDR_20' ) start [2025-02-07 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423947', 'tblTempVendorCDR_20' ) end [2025-02-07 17:37:22] Production.INFO: ProcessCDR(1,14423947,1,1,2) [2025-02-07 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423947', 'tblTempUsageDetail_20' ) start [2025-02-07 17:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423947', 'tblTempUsageDetail_20' ) end [2025-02-07 17:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:37:27] Production.INFO: ==31021== Releasing lock... [2025-02-07 17:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:37:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:38:05 [end_date_ymd] => 2025-02-07 17:38:05 [RateCDR] => 1 ) [2025-02-07 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:38:05' and `end` < '2025-02-07 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:38:19] Production.INFO: count ==5523 [2025-02-07 17:38:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:38:05 - End Time 2025-02-07 17:38:05 [2025-02-07 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423952', 'tblTempUsageDetail_20' ) start [2025-02-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423952', 'tblTempUsageDetail_20' ) end [2025-02-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423952', 'tblTempVendorCDR_20' ) start [2025-02-07 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423952', 'tblTempVendorCDR_20' ) end [2025-02-07 17:38:21] Production.INFO: ProcessCDR(1,14423952,1,1,2) [2025-02-07 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423952', 'tblTempUsageDetail_20' ) start [2025-02-07 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423952', 'tblTempUsageDetail_20' ) end [2025-02-07 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:38:24] Production.INFO: ==31096== Releasing lock... [2025-02-07 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:38:24] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:39:05 [end_date_ymd] => 2025-02-07 17:39:05 [RateCDR] => 1 ) [2025-02-07 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:39:05' and `end` < '2025-02-07 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:39:22] Production.INFO: count ==5509 [2025-02-07 17:39:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:39:05 - End Time 2025-02-07 17:39:05 [2025-02-07 17:39:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423957', 'tblTempUsageDetail_20' ) start [2025-02-07 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423957', 'tblTempUsageDetail_20' ) end [2025-02-07 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423957', 'tblTempVendorCDR_20' ) start [2025-02-07 17:39:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423957', 'tblTempVendorCDR_20' ) end [2025-02-07 17:39:24] Production.INFO: ProcessCDR(1,14423957,1,1,2) [2025-02-07 17:39:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:39:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:39:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423957', 'tblTempUsageDetail_20' ) start [2025-02-07 17:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423957', 'tblTempUsageDetail_20' ) end [2025-02-07 17:39:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:39:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:39:29] Production.INFO: ==31172== Releasing lock... [2025-02-07 17:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:39:29] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:40:06 [end_date_ymd] => 2025-02-07 17:40:06 [RateCDR] => 1 ) [2025-02-07 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:40:06' and `end` < '2025-02-07 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:40:24] Production.INFO: count ==5529 [2025-02-07 17:40:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:40:06 - End Time 2025-02-07 17:40:06 [2025-02-07 17:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423962', 'tblTempUsageDetail_20' ) start [2025-02-07 17:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423962', 'tblTempUsageDetail_20' ) end [2025-02-07 17:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423962', 'tblTempVendorCDR_20' ) start [2025-02-07 17:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423962', 'tblTempVendorCDR_20' ) end [2025-02-07 17:40:27] Production.INFO: ProcessCDR(1,14423962,1,1,2) [2025-02-07 17:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423962', 'tblTempUsageDetail_20' ) start [2025-02-07 17:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423962', 'tblTempUsageDetail_20' ) end [2025-02-07 17:40:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:40:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:40:31] Production.INFO: ==31254== Releasing lock... [2025-02-07 17:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:40:31] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:41:05 [end_date_ymd] => 2025-02-07 17:41:05 [RateCDR] => 1 ) [2025-02-07 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:41:05' and `end` < '2025-02-07 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:41:22] Production.INFO: count ==5542 [2025-02-07 17:41:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:41:05 - End Time 2025-02-07 17:41:05 [2025-02-07 17:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423968', 'tblTempUsageDetail_20' ) start [2025-02-07 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423968', 'tblTempUsageDetail_20' ) end [2025-02-07 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423968', 'tblTempVendorCDR_20' ) start [2025-02-07 17:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423968', 'tblTempVendorCDR_20' ) end [2025-02-07 17:41:25] Production.INFO: ProcessCDR(1,14423968,1,1,2) [2025-02-07 17:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423968', 'tblTempUsageDetail_20' ) start [2025-02-07 17:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423968', 'tblTempUsageDetail_20' ) end [2025-02-07 17:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:41:28] Production.INFO: ==31331== Releasing lock... [2025-02-07 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:41:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:42:05 [end_date_ymd] => 2025-02-07 17:42:05 [RateCDR] => 1 ) [2025-02-07 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:42:05' and `end` < '2025-02-07 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:42:20] Production.INFO: count ==5554 [2025-02-07 17:42:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:42:05 - End Time 2025-02-07 17:42:05 [2025-02-07 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423973', 'tblTempUsageDetail_20' ) start [2025-02-07 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423973', 'tblTempUsageDetail_20' ) end [2025-02-07 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423973', 'tblTempVendorCDR_20' ) start [2025-02-07 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423973', 'tblTempVendorCDR_20' ) end [2025-02-07 17:42:23] Production.INFO: ProcessCDR(1,14423973,1,1,2) [2025-02-07 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423973', 'tblTempUsageDetail_20' ) start [2025-02-07 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423973', 'tblTempUsageDetail_20' ) end [2025-02-07 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:42:26] Production.INFO: ==31443== Releasing lock... [2025-02-07 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:42:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:43:05 [end_date_ymd] => 2025-02-07 17:43:05 [RateCDR] => 1 ) [2025-02-07 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:43:05' and `end` < '2025-02-07 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:43:20] Production.INFO: count ==5555 [2025-02-07 17:43:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:43:05 - End Time 2025-02-07 17:43:05 [2025-02-07 17:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423978', 'tblTempUsageDetail_20' ) start [2025-02-07 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423978', 'tblTempUsageDetail_20' ) end [2025-02-07 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423978', 'tblTempVendorCDR_20' ) start [2025-02-07 17:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423978', 'tblTempVendorCDR_20' ) end [2025-02-07 17:43:22] Production.INFO: ProcessCDR(1,14423978,1,1,2) [2025-02-07 17:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423978', 'tblTempUsageDetail_20' ) start [2025-02-07 17:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423978', 'tblTempUsageDetail_20' ) end [2025-02-07 17:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:43:27] Production.INFO: ==31514== Releasing lock... [2025-02-07 17:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:43:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:44:05 [end_date_ymd] => 2025-02-07 17:44:05 [RateCDR] => 1 ) [2025-02-07 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:44:05' and `end` < '2025-02-07 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:44:21] Production.INFO: count ==5557 [2025-02-07 17:44:23] Production.ERROR: pbx CDR StartTime 2025-02-07 14:44:05 - End Time 2025-02-07 17:44:05 [2025-02-07 17:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423983', 'tblTempUsageDetail_20' ) start [2025-02-07 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423983', 'tblTempUsageDetail_20' ) end [2025-02-07 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423983', 'tblTempVendorCDR_20' ) start [2025-02-07 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423983', 'tblTempVendorCDR_20' ) end [2025-02-07 17:44:23] Production.INFO: ProcessCDR(1,14423983,1,1,2) [2025-02-07 17:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423983', 'tblTempUsageDetail_20' ) start [2025-02-07 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423983', 'tblTempUsageDetail_20' ) end [2025-02-07 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:44:27] Production.INFO: ==31591== Releasing lock... [2025-02-07 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:44:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:45:05 [end_date_ymd] => 2025-02-07 17:45:05 [RateCDR] => 1 ) [2025-02-07 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:45:05' and `end` < '2025-02-07 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:45:21] Production.INFO: count ==5560 [2025-02-07 17:45:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:45:05 - End Time 2025-02-07 17:45:05 [2025-02-07 17:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423988', 'tblTempUsageDetail_20' ) start [2025-02-07 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423988', 'tblTempUsageDetail_20' ) end [2025-02-07 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423988', 'tblTempVendorCDR_20' ) start [2025-02-07 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423988', 'tblTempVendorCDR_20' ) end [2025-02-07 17:45:24] Production.INFO: ProcessCDR(1,14423988,1,1,2) [2025-02-07 17:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423988', 'tblTempUsageDetail_20' ) start [2025-02-07 17:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423988', 'tblTempUsageDetail_20' ) end [2025-02-07 17:45:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:45:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:45:29] Production.INFO: ==31699== Releasing lock... [2025-02-07 17:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:45:29] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:46:06 [end_date_ymd] => 2025-02-07 17:46:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:46:06' and `end` < '2025-02-07 17: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-07 17:46:24] Production.INFO: count ==5559 [2025-02-07 17:46:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:46:06 - End Time 2025-02-07 17:46:06 [2025-02-07 17:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423993', 'tblTempUsageDetail_20' ) start [2025-02-07 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423993', 'tblTempUsageDetail_20' ) end [2025-02-07 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423993', 'tblTempVendorCDR_20' ) start [2025-02-07 17:46:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423993', 'tblTempVendorCDR_20' ) end [2025-02-07 17:46:27] Production.INFO: ProcessCDR(1,14423993,1,1,2) [2025-02-07 17:46:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423993', 'tblTempUsageDetail_20' ) start [2025-02-07 17:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423993', 'tblTempUsageDetail_20' ) end [2025-02-07 17:46:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:46:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:46:30] Production.INFO: ==31809== Releasing lock... [2025-02-07 17:46:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:46:30] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:47:05 [end_date_ymd] => 2025-02-07 17:47:05 [RateCDR] => 1 ) [2025-02-07 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:47:05' and `end` < '2025-02-07 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:47:20] Production.INFO: count ==5553 [2025-02-07 17:47:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:47:05 - End Time 2025-02-07 17:47:05 [2025-02-07 17:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423998', 'tblTempUsageDetail_20' ) start [2025-02-07 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14423998', 'tblTempUsageDetail_20' ) end [2025-02-07 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423998', 'tblTempVendorCDR_20' ) start [2025-02-07 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14423998', 'tblTempVendorCDR_20' ) end [2025-02-07 17:47:23] Production.INFO: ProcessCDR(1,14423998,1,1,2) [2025-02-07 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14423998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14423998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14423998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14423998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423998', 'tblTempUsageDetail_20' ) start [2025-02-07 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14423998', 'tblTempUsageDetail_20' ) end [2025-02-07 17:47:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:47:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:47:28] Production.INFO: ==31890== Releasing lock... [2025-02-07 17:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:47:28] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:48:06 [end_date_ymd] => 2025-02-07 17:48:06 [RateCDR] => 1 ) [2025-02-07 17: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-07 14:48:06' and `end` < '2025-02-07 17: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-07 17:48:24] Production.INFO: count ==5547 [2025-02-07 17:48:26] Production.ERROR: pbx CDR StartTime 2025-02-07 14:48:06 - End Time 2025-02-07 17:48:06 [2025-02-07 17:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424003', 'tblTempUsageDetail_20' ) start [2025-02-07 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424003', 'tblTempUsageDetail_20' ) end [2025-02-07 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424003', 'tblTempVendorCDR_20' ) start [2025-02-07 17:48:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424003', 'tblTempVendorCDR_20' ) end [2025-02-07 17:48:27] Production.INFO: ProcessCDR(1,14424003,1,1,2) [2025-02-07 17:48:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424003', 'tblTempUsageDetail_20' ) start [2025-02-07 17:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424003', 'tblTempUsageDetail_20' ) end [2025-02-07 17:48:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:48:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:48:32] Production.INFO: ==31961== Releasing lock... [2025-02-07 17:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:48:32] Production.INFO: 69.5 MB #Memory Used# [2025-02-07 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:49:05 [end_date_ymd] => 2025-02-07 17:49:05 [RateCDR] => 1 ) [2025-02-07 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:49:05' and `end` < '2025-02-07 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:49:26] Production.INFO: count ==5528 [2025-02-07 17:49:29] Production.ERROR: pbx CDR StartTime 2025-02-07 14:49:05 - End Time 2025-02-07 17:49:05 [2025-02-07 17:49:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424008', 'tblTempUsageDetail_20' ) start [2025-02-07 17:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424008', 'tblTempUsageDetail_20' ) end [2025-02-07 17:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424008', 'tblTempVendorCDR_20' ) start [2025-02-07 17:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424008', 'tblTempVendorCDR_20' ) end [2025-02-07 17:49:29] Production.INFO: ProcessCDR(1,14424008,1,1,2) [2025-02-07 17:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:49:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:49:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424008', 'tblTempUsageDetail_20' ) start [2025-02-07 17:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424008', 'tblTempUsageDetail_20' ) end [2025-02-07 17:49:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:49:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:49:32] Production.INFO: ==32041== Releasing lock... [2025-02-07 17:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:49:32] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:50:06 [end_date_ymd] => 2025-02-07 17:50:06 [RateCDR] => 1 ) [2025-02-07 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:50:06' and `end` < '2025-02-07 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:50:26] Production.INFO: count ==5519 [2025-02-07 17:50:28] Production.ERROR: pbx CDR StartTime 2025-02-07 14:50:06 - End Time 2025-02-07 17:50:06 [2025-02-07 17:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424014', 'tblTempUsageDetail_20' ) start [2025-02-07 17:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424014', 'tblTempUsageDetail_20' ) end [2025-02-07 17:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424014', 'tblTempVendorCDR_20' ) start [2025-02-07 17:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424014', 'tblTempVendorCDR_20' ) end [2025-02-07 17:50:29] Production.INFO: ProcessCDR(1,14424014,1,1,2) [2025-02-07 17:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424014', 'tblTempUsageDetail_20' ) start [2025-02-07 17:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424014', 'tblTempUsageDetail_20' ) end [2025-02-07 17:50:34] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:50:34] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:50:34] Production.INFO: ==32114== Releasing lock... [2025-02-07 17:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:50:34] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:51:05 [end_date_ymd] => 2025-02-07 17:51:05 [RateCDR] => 1 ) [2025-02-07 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:51:05' and `end` < '2025-02-07 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:51:19] Production.INFO: count ==5513 [2025-02-07 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:51:05 - End Time 2025-02-07 17:51:05 [2025-02-07 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424019', 'tblTempUsageDetail_20' ) start [2025-02-07 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424019', 'tblTempUsageDetail_20' ) end [2025-02-07 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424019', 'tblTempVendorCDR_20' ) start [2025-02-07 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424019', 'tblTempVendorCDR_20' ) end [2025-02-07 17:51:22] Production.INFO: ProcessCDR(1,14424019,1,1,2) [2025-02-07 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424019', 'tblTempUsageDetail_20' ) start [2025-02-07 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424019', 'tblTempUsageDetail_20' ) end [2025-02-07 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:51:27] Production.INFO: ==32186== Releasing lock... [2025-02-07 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:51:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:52:05 [end_date_ymd] => 2025-02-07 17:52:05 [RateCDR] => 1 ) [2025-02-07 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:52:05' and `end` < '2025-02-07 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:52:20] Production.INFO: count ==5508 [2025-02-07 17:52:22] Production.ERROR: pbx CDR StartTime 2025-02-07 14:52:05 - End Time 2025-02-07 17:52:05 [2025-02-07 17:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424024', 'tblTempUsageDetail_20' ) start [2025-02-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424024', 'tblTempUsageDetail_20' ) end [2025-02-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424024', 'tblTempVendorCDR_20' ) start [2025-02-07 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424024', 'tblTempVendorCDR_20' ) end [2025-02-07 17:52:22] Production.INFO: ProcessCDR(1,14424024,1,1,2) [2025-02-07 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424024', 'tblTempUsageDetail_20' ) start [2025-02-07 17:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424024', 'tblTempUsageDetail_20' ) end [2025-02-07 17:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:52:27] Production.INFO: ==32255== Releasing lock... [2025-02-07 17:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:52:27] Production.INFO: 69.25 MB #Memory Used# [2025-02-07 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:53:05 [end_date_ymd] => 2025-02-07 17:53:05 [RateCDR] => 1 ) [2025-02-07 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:53:05' and `end` < '2025-02-07 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:53:22] Production.INFO: count ==5480 [2025-02-07 17:53:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:53:05 - End Time 2025-02-07 17:53:05 [2025-02-07 17:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424029', 'tblTempUsageDetail_20' ) start [2025-02-07 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424029', 'tblTempUsageDetail_20' ) end [2025-02-07 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424029', 'tblTempVendorCDR_20' ) start [2025-02-07 17:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424029', 'tblTempVendorCDR_20' ) end [2025-02-07 17:53:24] Production.INFO: ProcessCDR(1,14424029,1,1,2) [2025-02-07 17:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424029', 'tblTempUsageDetail_20' ) start [2025-02-07 17:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424029', 'tblTempUsageDetail_20' ) end [2025-02-07 17:53:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:53:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:53:29] Production.INFO: ==32327== Releasing lock... [2025-02-07 17:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:53:29] Production.INFO: 69 MB #Memory Used# [2025-02-07 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:54:05 [end_date_ymd] => 2025-02-07 17:54:05 [RateCDR] => 1 ) [2025-02-07 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:54:05' and `end` < '2025-02-07 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:54:19] Production.INFO: count ==5462 [2025-02-07 17:54:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:54:05 - End Time 2025-02-07 17:54:05 [2025-02-07 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424034', 'tblTempUsageDetail_20' ) start [2025-02-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424034', 'tblTempUsageDetail_20' ) end [2025-02-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424034', 'tblTempVendorCDR_20' ) start [2025-02-07 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424034', 'tblTempVendorCDR_20' ) end [2025-02-07 17:54:21] Production.INFO: ProcessCDR(1,14424034,1,1,2) [2025-02-07 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424034', 'tblTempUsageDetail_20' ) start [2025-02-07 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424034', 'tblTempUsageDetail_20' ) end [2025-02-07 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:54:26] Production.INFO: ==32401== Releasing lock... [2025-02-07 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:54:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:55:05 [end_date_ymd] => 2025-02-07 17:55:05 [RateCDR] => 1 ) [2025-02-07 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:55:05' and `end` < '2025-02-07 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:55:19] Production.INFO: count ==5455 [2025-02-07 17:55:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:55:05 - End Time 2025-02-07 17:55:05 [2025-02-07 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424039', 'tblTempUsageDetail_20' ) start [2025-02-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424039', 'tblTempUsageDetail_20' ) end [2025-02-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424039', 'tblTempVendorCDR_20' ) start [2025-02-07 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424039', 'tblTempVendorCDR_20' ) end [2025-02-07 17:55:22] Production.INFO: ProcessCDR(1,14424039,1,1,2) [2025-02-07 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424039', 'tblTempUsageDetail_20' ) start [2025-02-07 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424039', 'tblTempUsageDetail_20' ) end [2025-02-07 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:55:26] Production.INFO: ==32474== Releasing lock... [2025-02-07 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:55:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:56:05 [end_date_ymd] => 2025-02-07 17:56:05 [RateCDR] => 1 ) [2025-02-07 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:56:05' and `end` < '2025-02-07 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:56:25] Production.INFO: count ==5448 [2025-02-07 17:56:27] Production.ERROR: pbx CDR StartTime 2025-02-07 14:56:05 - End Time 2025-02-07 17:56:05 [2025-02-07 17:56:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424044', 'tblTempUsageDetail_20' ) start [2025-02-07 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424044', 'tblTempUsageDetail_20' ) end [2025-02-07 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424044', 'tblTempVendorCDR_20' ) start [2025-02-07 17:56:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424044', 'tblTempVendorCDR_20' ) end [2025-02-07 17:56:27] Production.INFO: ProcessCDR(1,14424044,1,1,2) [2025-02-07 17:56:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:56:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424044', 'tblTempUsageDetail_20' ) start [2025-02-07 17:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424044', 'tblTempUsageDetail_20' ) end [2025-02-07 17:56:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:56:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:56:32] Production.INFO: ==32545== Releasing lock... [2025-02-07 17:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:56:32] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:57:05 [end_date_ymd] => 2025-02-07 17:57:05 [RateCDR] => 1 ) [2025-02-07 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:57:05' and `end` < '2025-02-07 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:57:22] Production.INFO: count ==5448 [2025-02-07 17:57:24] Production.ERROR: pbx CDR StartTime 2025-02-07 14:57:05 - End Time 2025-02-07 17:57:05 [2025-02-07 17:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424049', 'tblTempUsageDetail_20' ) start [2025-02-07 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424049', 'tblTempUsageDetail_20' ) end [2025-02-07 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424049', 'tblTempVendorCDR_20' ) start [2025-02-07 17:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424049', 'tblTempVendorCDR_20' ) end [2025-02-07 17:57:24] Production.INFO: ProcessCDR(1,14424049,1,1,2) [2025-02-07 17:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424049', 'tblTempUsageDetail_20' ) start [2025-02-07 17:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424049', 'tblTempUsageDetail_20' ) end [2025-02-07 17:57:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:57:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:57:29] Production.INFO: ==32653== Releasing lock... [2025-02-07 17:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:57:29] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:58:05 [end_date_ymd] => 2025-02-07 17:58:05 [RateCDR] => 1 ) [2025-02-07 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:58:05' and `end` < '2025-02-07 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:58:19] Production.INFO: count ==5451 [2025-02-07 17:58:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:58:05 - End Time 2025-02-07 17:58:05 [2025-02-07 17:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424054', 'tblTempUsageDetail_20' ) start [2025-02-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424054', 'tblTempUsageDetail_20' ) end [2025-02-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424054', 'tblTempVendorCDR_20' ) start [2025-02-07 17:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424054', 'tblTempVendorCDR_20' ) end [2025-02-07 17:58:22] Production.INFO: ProcessCDR(1,14424054,1,1,2) [2025-02-07 17:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424054', 'tblTempUsageDetail_20' ) start [2025-02-07 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424054', 'tblTempUsageDetail_20' ) end [2025-02-07 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:58:26] Production.INFO: ==32731== Releasing lock... [2025-02-07 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:58:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 14:59:05 [end_date_ymd] => 2025-02-07 17:59:05 [RateCDR] => 1 ) [2025-02-07 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 14:59:05' and `end` < '2025-02-07 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 17:59:19] Production.INFO: count ==5442 [2025-02-07 17:59:21] Production.ERROR: pbx CDR StartTime 2025-02-07 14:59:05 - End Time 2025-02-07 17:59:05 [2025-02-07 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424059', 'tblTempUsageDetail_20' ) start [2025-02-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424059', 'tblTempUsageDetail_20' ) end [2025-02-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424059', 'tblTempVendorCDR_20' ) start [2025-02-07 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424059', 'tblTempVendorCDR_20' ) end [2025-02-07 17:59:21] Production.INFO: ProcessCDR(1,14424059,1,1,2) [2025-02-07 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424059', 'tblTempUsageDetail_20' ) start [2025-02-07 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424059', 'tblTempUsageDetail_20' ) end [2025-02-07 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 17:59:26] Production.INFO: ==354== Releasing lock... [2025-02-07 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 17:59:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:00:06 [end_date_ymd] => 2025-02-07 18:00:06 [RateCDR] => 1 ) [2025-02-07 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:00:06' and `end` < '2025-02-07 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:00:22] Production.INFO: count ==5435 [2025-02-07 18:00:24] Production.ERROR: pbx CDR StartTime 2025-02-07 15:00:06 - End Time 2025-02-07 18:00:06 [2025-02-07 18:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424065', 'tblTempUsageDetail_20' ) start [2025-02-07 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424065', 'tblTempUsageDetail_20' ) end [2025-02-07 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424065', 'tblTempVendorCDR_20' ) start [2025-02-07 18:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424065', 'tblTempVendorCDR_20' ) end [2025-02-07 18:00:24] Production.INFO: ProcessCDR(1,14424065,1,1,2) [2025-02-07 18:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424065', 'tblTempUsageDetail_20' ) start [2025-02-07 18:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424065', 'tblTempUsageDetail_20' ) end [2025-02-07 18:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:00:28] Production.INFO: ==435== Releasing lock... [2025-02-07 18:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:00:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-07 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:01:05 [end_date_ymd] => 2025-02-07 18:01:05 [RateCDR] => 1 ) [2025-02-07 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:01:05' and `end` < '2025-02-07 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:01:21] Production.INFO: count ==5397 [2025-02-07 18:01:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:01:05 - End Time 2025-02-07 18:01:05 [2025-02-07 18:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424070', 'tblTempUsageDetail_20' ) start [2025-02-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424070', 'tblTempUsageDetail_20' ) end [2025-02-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424070', 'tblTempVendorCDR_20' ) start [2025-02-07 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424070', 'tblTempVendorCDR_20' ) end [2025-02-07 18:01:23] Production.INFO: ProcessCDR(1,14424070,1,1,2) [2025-02-07 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:01:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:01:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424070', 'tblTempUsageDetail_20' ) start [2025-02-07 18:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424070', 'tblTempUsageDetail_20' ) end [2025-02-07 18:01:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:01:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:01:28] Production.INFO: ==525== Releasing lock... [2025-02-07 18:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:01:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:02:05 [end_date_ymd] => 2025-02-07 18:02:05 [RateCDR] => 1 ) [2025-02-07 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:02:05' and `end` < '2025-02-07 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:02:22] Production.INFO: count ==5392 [2025-02-07 18:02:24] Production.ERROR: pbx CDR StartTime 2025-02-07 15:02:05 - End Time 2025-02-07 18:02:05 [2025-02-07 18:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424075', 'tblTempUsageDetail_20' ) start [2025-02-07 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424075', 'tblTempUsageDetail_20' ) end [2025-02-07 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424075', 'tblTempVendorCDR_20' ) start [2025-02-07 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424075', 'tblTempVendorCDR_20' ) end [2025-02-07 18:02:24] Production.INFO: ProcessCDR(1,14424075,1,1,2) [2025-02-07 18:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424075', 'tblTempUsageDetail_20' ) start [2025-02-07 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424075', 'tblTempUsageDetail_20' ) end [2025-02-07 18:02:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:02:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:02:28] Production.INFO: ==599== Releasing lock... [2025-02-07 18:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:02:28] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:03:05 [end_date_ymd] => 2025-02-07 18:03:05 [RateCDR] => 1 ) [2025-02-07 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:03:05' and `end` < '2025-02-07 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:03:23] Production.INFO: count ==5380 [2025-02-07 18:03:26] Production.ERROR: pbx CDR StartTime 2025-02-07 15:03:05 - End Time 2025-02-07 18:03:05 [2025-02-07 18:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424080', 'tblTempUsageDetail_20' ) start [2025-02-07 18:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424080', 'tblTempUsageDetail_20' ) end [2025-02-07 18:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424080', 'tblTempVendorCDR_20' ) start [2025-02-07 18:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424080', 'tblTempVendorCDR_20' ) end [2025-02-07 18:03:26] Production.INFO: ProcessCDR(1,14424080,1,1,2) [2025-02-07 18:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424080', 'tblTempUsageDetail_20' ) start [2025-02-07 18:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424080', 'tblTempUsageDetail_20' ) end [2025-02-07 18:03:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:03:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:03:29] Production.INFO: ==694== Releasing lock... [2025-02-07 18:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:03:29] Production.INFO: 68.25 MB #Memory Used# [2025-02-07 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:04:06 [end_date_ymd] => 2025-02-07 18:04:06 [RateCDR] => 1 ) [2025-02-07 18:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:04:06' and `end` < '2025-02-07 18:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:04:21] Production.INFO: count ==5364 [2025-02-07 18:04:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:04:06 - End Time 2025-02-07 18:04:06 [2025-02-07 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424085', 'tblTempUsageDetail_20' ) start [2025-02-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424085', 'tblTempUsageDetail_20' ) end [2025-02-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424085', 'tblTempVendorCDR_20' ) start [2025-02-07 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424085', 'tblTempVendorCDR_20' ) end [2025-02-07 18:04:23] Production.INFO: ProcessCDR(1,14424085,1,1,2) [2025-02-07 18:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424085', 'tblTempUsageDetail_20' ) start [2025-02-07 18:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424085', 'tblTempUsageDetail_20' ) end [2025-02-07 18:04:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:04:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:04:26] Production.INFO: ==773== Releasing lock... [2025-02-07 18:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:04:26] Production.INFO: 68 MB #Memory Used# [2025-02-07 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:05:05 [end_date_ymd] => 2025-02-07 18:05:05 [RateCDR] => 1 ) [2025-02-07 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:05:05' and `end` < '2025-02-07 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:05:21] Production.INFO: count ==5350 [2025-02-07 18:05:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:05:05 - End Time 2025-02-07 18:05:05 [2025-02-07 18:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424090', 'tblTempUsageDetail_20' ) start [2025-02-07 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424090', 'tblTempUsageDetail_20' ) end [2025-02-07 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424090', 'tblTempVendorCDR_20' ) start [2025-02-07 18:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424090', 'tblTempVendorCDR_20' ) end [2025-02-07 18:05:23] Production.INFO: ProcessCDR(1,14424090,1,1,2) [2025-02-07 18:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424090', 'tblTempUsageDetail_20' ) start [2025-02-07 18:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424090', 'tblTempUsageDetail_20' ) end [2025-02-07 18:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:05:27] Production.INFO: ==848== Releasing lock... [2025-02-07 18:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:05:27] Production.INFO: 68 MB #Memory Used# [2025-02-07 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:06:06 [end_date_ymd] => 2025-02-07 18:06:06 [RateCDR] => 1 ) [2025-02-07 18:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:06:06' and `end` < '2025-02-07 18:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:06:23] Production.INFO: count ==5363 [2025-02-07 18:06:25] Production.ERROR: pbx CDR StartTime 2025-02-07 15:06:06 - End Time 2025-02-07 18:06:06 [2025-02-07 18:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424095', 'tblTempUsageDetail_20' ) start [2025-02-07 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424095', 'tblTempUsageDetail_20' ) end [2025-02-07 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424095', 'tblTempVendorCDR_20' ) start [2025-02-07 18:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424095', 'tblTempVendorCDR_20' ) end [2025-02-07 18:06:25] Production.INFO: ProcessCDR(1,14424095,1,1,2) [2025-02-07 18:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424095', 'tblTempUsageDetail_20' ) start [2025-02-07 18:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424095', 'tblTempUsageDetail_20' ) end [2025-02-07 18:06:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:06:28] Production.INFO: ==920== Releasing lock... [2025-02-07 18:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:06:28] Production.INFO: 68 MB #Memory Used# [2025-02-07 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:07:05 [end_date_ymd] => 2025-02-07 18:07:05 [RateCDR] => 1 ) [2025-02-07 18:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:07:05' and `end` < '2025-02-07 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:07:21] Production.INFO: count ==5348 [2025-02-07 18:07:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:07:05 - End Time 2025-02-07 18:07:05 [2025-02-07 18:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424100', 'tblTempUsageDetail_20' ) start [2025-02-07 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424100', 'tblTempUsageDetail_20' ) end [2025-02-07 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424100', 'tblTempVendorCDR_20' ) start [2025-02-07 18:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424100', 'tblTempVendorCDR_20' ) end [2025-02-07 18:07:24] Production.INFO: ProcessCDR(1,14424100,1,1,2) [2025-02-07 18:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424100', 'tblTempUsageDetail_20' ) start [2025-02-07 18:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424100', 'tblTempUsageDetail_20' ) end [2025-02-07 18:07:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:07:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:07:28] Production.INFO: ==993== Releasing lock... [2025-02-07 18:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:07:28] Production.INFO: 68 MB #Memory Used# [2025-02-07 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:08:05 [end_date_ymd] => 2025-02-07 18:08:05 [RateCDR] => 1 ) [2025-02-07 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:08:05' and `end` < '2025-02-07 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:08:21] Production.INFO: count ==5331 [2025-02-07 18:08:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:08:05 - End Time 2025-02-07 18:08:05 [2025-02-07 18:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424105', 'tblTempUsageDetail_20' ) start [2025-02-07 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424105', 'tblTempUsageDetail_20' ) end [2025-02-07 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424105', 'tblTempVendorCDR_20' ) start [2025-02-07 18:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424105', 'tblTempVendorCDR_20' ) end [2025-02-07 18:08:24] Production.INFO: ProcessCDR(1,14424105,1,1,2) [2025-02-07 18:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424105', 'tblTempUsageDetail_20' ) start [2025-02-07 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424105', 'tblTempUsageDetail_20' ) end [2025-02-07 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:08:27] Production.INFO: ==1071== Releasing lock... [2025-02-07 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:08:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:09:05 [end_date_ymd] => 2025-02-07 18:09:05 [RateCDR] => 1 ) [2025-02-07 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:09:05' and `end` < '2025-02-07 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:09:19] Production.INFO: count ==5326 [2025-02-07 18:09:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:09:05 - End Time 2025-02-07 18:09:05 [2025-02-07 18:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424110', 'tblTempUsageDetail_20' ) start [2025-02-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424110', 'tblTempUsageDetail_20' ) end [2025-02-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424110', 'tblTempVendorCDR_20' ) start [2025-02-07 18:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424110', 'tblTempVendorCDR_20' ) end [2025-02-07 18:09:21] Production.INFO: ProcessCDR(1,14424110,1,1,2) [2025-02-07 18:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424110', 'tblTempUsageDetail_20' ) start [2025-02-07 18:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424110', 'tblTempUsageDetail_20' ) end [2025-02-07 18:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:09:26] Production.INFO: ==1144== Releasing lock... [2025-02-07 18:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:09:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:10:06 [end_date_ymd] => 2025-02-07 18:10:06 [RateCDR] => 1 ) [2025-02-07 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:10:06' and `end` < '2025-02-07 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:10:23] Production.INFO: count ==5325 [2025-02-07 18:10:25] Production.ERROR: pbx CDR StartTime 2025-02-07 15:10:06 - End Time 2025-02-07 18:10:06 [2025-02-07 18:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424115', 'tblTempUsageDetail_20' ) start [2025-02-07 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424115', 'tblTempUsageDetail_20' ) end [2025-02-07 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424115', 'tblTempVendorCDR_20' ) start [2025-02-07 18:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424115', 'tblTempVendorCDR_20' ) end [2025-02-07 18:10:25] Production.INFO: ProcessCDR(1,14424115,1,1,2) [2025-02-07 18:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424115', 'tblTempUsageDetail_20' ) start [2025-02-07 18:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424115', 'tblTempUsageDetail_20' ) end [2025-02-07 18:10:30] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:10:30] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:10:30] Production.INFO: ==1225== Releasing lock... [2025-02-07 18:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:10:30] Production.INFO: 67.75 MB #Memory Used# [2025-02-07 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:11:05 [end_date_ymd] => 2025-02-07 18:11:05 [RateCDR] => 1 ) [2025-02-07 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:11:05' and `end` < '2025-02-07 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:11:19] Production.INFO: count ==5284 [2025-02-07 18:11:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:11:05 - End Time 2025-02-07 18:11:05 [2025-02-07 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424121', 'tblTempUsageDetail_20' ) start [2025-02-07 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424121', 'tblTempUsageDetail_20' ) end [2025-02-07 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424121', 'tblTempVendorCDR_20' ) start [2025-02-07 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424121', 'tblTempVendorCDR_20' ) end [2025-02-07 18:11:21] Production.INFO: ProcessCDR(1,14424121,1,1,2) [2025-02-07 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424121', 'tblTempUsageDetail_20' ) start [2025-02-07 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424121', 'tblTempUsageDetail_20' ) end [2025-02-07 18:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:11:26] Production.INFO: ==1311== Releasing lock... [2025-02-07 18:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:11:26] Production.INFO: 67.5 MB #Memory Used# [2025-02-07 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:12:06 [end_date_ymd] => 2025-02-07 18:12:06 [RateCDR] => 1 ) [2025-02-07 18:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:12:06' and `end` < '2025-02-07 18:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:12:20] Production.INFO: count ==5266 [2025-02-07 18:12:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:12:06 - End Time 2025-02-07 18:12:06 [2025-02-07 18:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424126', 'tblTempUsageDetail_20' ) start [2025-02-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424126', 'tblTempUsageDetail_20' ) end [2025-02-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424126', 'tblTempVendorCDR_20' ) start [2025-02-07 18:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424126', 'tblTempVendorCDR_20' ) end [2025-02-07 18:12:22] Production.INFO: ProcessCDR(1,14424126,1,1,2) [2025-02-07 18:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424126', 'tblTempUsageDetail_20' ) start [2025-02-07 18:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424126', 'tblTempUsageDetail_20' ) end [2025-02-07 18:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:12:27] Production.INFO: ==1382== Releasing lock... [2025-02-07 18:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:12:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:13:05 [end_date_ymd] => 2025-02-07 18:13:05 [RateCDR] => 1 ) [2025-02-07 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:13:05' and `end` < '2025-02-07 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:13:19] Production.INFO: count ==5264 [2025-02-07 18:13:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:13:05 - End Time 2025-02-07 18:13:05 [2025-02-07 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424131', 'tblTempUsageDetail_20' ) start [2025-02-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424131', 'tblTempUsageDetail_20' ) end [2025-02-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424131', 'tblTempVendorCDR_20' ) start [2025-02-07 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424131', 'tblTempVendorCDR_20' ) end [2025-02-07 18:13:21] Production.INFO: ProcessCDR(1,14424131,1,1,2) [2025-02-07 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424131', 'tblTempUsageDetail_20' ) start [2025-02-07 18:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424131', 'tblTempUsageDetail_20' ) end [2025-02-07 18:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:13:24] Production.INFO: ==1494== Releasing lock... [2025-02-07 18:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:13:24] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:14:05 [end_date_ymd] => 2025-02-07 18:14:05 [RateCDR] => 1 ) [2025-02-07 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:14:05' and `end` < '2025-02-07 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:14:20] Production.INFO: count ==5251 [2025-02-07 18:14:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:14:05 - End Time 2025-02-07 18:14:05 [2025-02-07 18:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424136', 'tblTempUsageDetail_20' ) start [2025-02-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424136', 'tblTempUsageDetail_20' ) end [2025-02-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424136', 'tblTempVendorCDR_20' ) start [2025-02-07 18:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424136', 'tblTempVendorCDR_20' ) end [2025-02-07 18:14:22] Production.INFO: ProcessCDR(1,14424136,1,1,2) [2025-02-07 18:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424136', 'tblTempUsageDetail_20' ) start [2025-02-07 18:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424136', 'tblTempUsageDetail_20' ) end [2025-02-07 18:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:14:27] Production.INFO: ==1601== Releasing lock... [2025-02-07 18:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:14:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:15:05 [end_date_ymd] => 2025-02-07 18:15:05 [RateCDR] => 1 ) [2025-02-07 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:15:05' and `end` < '2025-02-07 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:15:18] Production.INFO: count ==5251 [2025-02-07 18:15:20] Production.ERROR: pbx CDR StartTime 2025-02-07 15:15:05 - End Time 2025-02-07 18:15:05 [2025-02-07 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424141', 'tblTempUsageDetail_20' ) start [2025-02-07 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424141', 'tblTempUsageDetail_20' ) end [2025-02-07 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424141', 'tblTempVendorCDR_20' ) start [2025-02-07 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424141', 'tblTempVendorCDR_20' ) end [2025-02-07 18:15:21] Production.INFO: ProcessCDR(1,14424141,1,1,2) [2025-02-07 18:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424141', 'tblTempUsageDetail_20' ) start [2025-02-07 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424141', 'tblTempUsageDetail_20' ) end [2025-02-07 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:15:24] Production.INFO: ==1701== Releasing lock... [2025-02-07 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:15:24] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:16:05 [end_date_ymd] => 2025-02-07 18:16:05 [RateCDR] => 1 ) [2025-02-07 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:16:05' and `end` < '2025-02-07 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:16:20] Production.INFO: count ==5254 [2025-02-07 18:16:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:16:05 - End Time 2025-02-07 18:16:05 [2025-02-07 18:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424146', 'tblTempUsageDetail_20' ) start [2025-02-07 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424146', 'tblTempUsageDetail_20' ) end [2025-02-07 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424146', 'tblTempVendorCDR_20' ) start [2025-02-07 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424146', 'tblTempVendorCDR_20' ) end [2025-02-07 18:16:22] Production.INFO: ProcessCDR(1,14424146,1,1,2) [2025-02-07 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424146', 'tblTempUsageDetail_20' ) start [2025-02-07 18:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424146', 'tblTempUsageDetail_20' ) end [2025-02-07 18:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:16:27] Production.INFO: ==1801== Releasing lock... [2025-02-07 18:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:16:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:17:06 [end_date_ymd] => 2025-02-07 18:17:06 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:17:06' and `end` < '2025-02-07 18: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-07 18:17:20] Production.INFO: count ==5257 [2025-02-07 18:17:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:17:06 - End Time 2025-02-07 18:17:06 [2025-02-07 18:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424151', 'tblTempUsageDetail_20' ) start [2025-02-07 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424151', 'tblTempUsageDetail_20' ) end [2025-02-07 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424151', 'tblTempVendorCDR_20' ) start [2025-02-07 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424151', 'tblTempVendorCDR_20' ) end [2025-02-07 18:17:22] Production.INFO: ProcessCDR(1,14424151,1,1,2) [2025-02-07 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424151', 'tblTempUsageDetail_20' ) start [2025-02-07 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424151', 'tblTempUsageDetail_20' ) end [2025-02-07 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:17:27] Production.INFO: ==1903== Releasing lock... [2025-02-07 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:17:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:18:05 [end_date_ymd] => 2025-02-07 18:18:05 [RateCDR] => 1 ) [2025-02-07 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:18:05' and `end` < '2025-02-07 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:18:19] Production.INFO: count ==5239 [2025-02-07 18:18:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:18:05 - End Time 2025-02-07 18:18:05 [2025-02-07 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424156', 'tblTempUsageDetail_20' ) start [2025-02-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424156', 'tblTempUsageDetail_20' ) end [2025-02-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424156', 'tblTempVendorCDR_20' ) start [2025-02-07 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424156', 'tblTempVendorCDR_20' ) end [2025-02-07 18:18:21] Production.INFO: ProcessCDR(1,14424156,1,1,2) [2025-02-07 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424156', 'tblTempUsageDetail_20' ) start [2025-02-07 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424156', 'tblTempUsageDetail_20' ) end [2025-02-07 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:18:26] Production.INFO: ==1977== Releasing lock... [2025-02-07 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:18:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-07 18:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:19:06 [end_date_ymd] => 2025-02-07 18:19:06 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:19:06' and `end` < '2025-02-07 18: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-07 18:19:19] Production.INFO: count ==5227 [2025-02-07 18:19:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:19:06 - End Time 2025-02-07 18:19:06 [2025-02-07 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424161', 'tblTempUsageDetail_20' ) start [2025-02-07 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424161', 'tblTempUsageDetail_20' ) end [2025-02-07 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424161', 'tblTempVendorCDR_20' ) start [2025-02-07 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424161', 'tblTempVendorCDR_20' ) end [2025-02-07 18:19:21] Production.INFO: ProcessCDR(1,14424161,1,1,2) [2025-02-07 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424161', 'tblTempUsageDetail_20' ) start [2025-02-07 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424161', 'tblTempUsageDetail_20' ) end [2025-02-07 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:19:24] Production.INFO: ==2057== Releasing lock... [2025-02-07 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:19:24] Production.INFO: 67 MB #Memory Used# [2025-02-07 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:20:05 [end_date_ymd] => 2025-02-07 18:20:05 [RateCDR] => 1 ) [2025-02-07 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:20:05' and `end` < '2025-02-07 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:20:19] Production.INFO: count ==5215 [2025-02-07 18:20:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:20:05 - End Time 2025-02-07 18:20:05 [2025-02-07 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424166', 'tblTempUsageDetail_20' ) start [2025-02-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424166', 'tblTempUsageDetail_20' ) end [2025-02-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424166', 'tblTempVendorCDR_20' ) start [2025-02-07 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424166', 'tblTempVendorCDR_20' ) end [2025-02-07 18:20:21] Production.INFO: ProcessCDR(1,14424166,1,1,2) [2025-02-07 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424166', 'tblTempUsageDetail_20' ) start [2025-02-07 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424166', 'tblTempUsageDetail_20' ) end [2025-02-07 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:20:26] Production.INFO: ==2130== Releasing lock... [2025-02-07 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:20:26] Production.INFO: 67 MB #Memory Used# [2025-02-07 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:21:05 [end_date_ymd] => 2025-02-07 18:21:05 [RateCDR] => 1 ) [2025-02-07 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:21:05' and `end` < '2025-02-07 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:21:19] Production.INFO: count ==5180 [2025-02-07 18:21:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:21:05 - End Time 2025-02-07 18:21:05 [2025-02-07 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424172', 'tblTempUsageDetail_20' ) start [2025-02-07 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424172', 'tblTempUsageDetail_20' ) end [2025-02-07 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424172', 'tblTempVendorCDR_20' ) start [2025-02-07 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424172', 'tblTempVendorCDR_20' ) end [2025-02-07 18:21:21] Production.INFO: ProcessCDR(1,14424172,1,1,2) [2025-02-07 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424172', 'tblTempUsageDetail_20' ) start [2025-02-07 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424172', 'tblTempUsageDetail_20' ) end [2025-02-07 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:21:24] Production.INFO: ==2214== Releasing lock... [2025-02-07 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:21:24] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 18:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:22:04 [end_date_ymd] => 2025-02-07 18:22:04 [RateCDR] => 1 ) [2025-02-07 18:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:22:04' and `end` < '2025-02-07 18:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:22:20] Production.INFO: count ==5176 [2025-02-07 18:22:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:22:04 - End Time 2025-02-07 18:22:04 [2025-02-07 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424177', 'tblTempUsageDetail_20' ) start [2025-02-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424177', 'tblTempUsageDetail_20' ) end [2025-02-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424177', 'tblTempVendorCDR_20' ) start [2025-02-07 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424177', 'tblTempVendorCDR_20' ) end [2025-02-07 18:22:22] Production.INFO: ProcessCDR(1,14424177,1,1,2) [2025-02-07 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424177', 'tblTempUsageDetail_20' ) start [2025-02-07 18:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424177', 'tblTempUsageDetail_20' ) end [2025-02-07 18:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:22:26] Production.INFO: ==2290== Releasing lock... [2025-02-07 18:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:22:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-07 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:23:05 [end_date_ymd] => 2025-02-07 18:23:05 [RateCDR] => 1 ) [2025-02-07 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:23:05' and `end` < '2025-02-07 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:23:19] Production.INFO: count ==5160 [2025-02-07 18:23:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:23:05 - End Time 2025-02-07 18:23:05 [2025-02-07 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424182', 'tblTempUsageDetail_20' ) start [2025-02-07 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424182', 'tblTempUsageDetail_20' ) end [2025-02-07 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424182', 'tblTempVendorCDR_20' ) start [2025-02-07 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424182', 'tblTempVendorCDR_20' ) end [2025-02-07 18:23:21] Production.INFO: ProcessCDR(1,14424182,1,1,2) [2025-02-07 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424182', 'tblTempUsageDetail_20' ) start [2025-02-07 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424182', 'tblTempUsageDetail_20' ) end [2025-02-07 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:23:24] Production.INFO: ==2364== Releasing lock... [2025-02-07 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:23:24] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:24:06 [end_date_ymd] => 2025-02-07 18:24:06 [RateCDR] => 1 ) [2025-02-07 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:24:06' and `end` < '2025-02-07 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:24:20] Production.INFO: count ==5153 [2025-02-07 18:24:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:24:06 - End Time 2025-02-07 18:24:06 [2025-02-07 18:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424187', 'tblTempUsageDetail_20' ) start [2025-02-07 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424187', 'tblTempUsageDetail_20' ) end [2025-02-07 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424187', 'tblTempVendorCDR_20' ) start [2025-02-07 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424187', 'tblTempVendorCDR_20' ) end [2025-02-07 18:24:22] Production.INFO: ProcessCDR(1,14424187,1,1,2) [2025-02-07 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424187', 'tblTempUsageDetail_20' ) start [2025-02-07 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424187', 'tblTempUsageDetail_20' ) end [2025-02-07 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:24:25] Production.INFO: ==2436== Releasing lock... [2025-02-07 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:24:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:25:05 [end_date_ymd] => 2025-02-07 18:25:05 [RateCDR] => 1 ) [2025-02-07 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:25:05' and `end` < '2025-02-07 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:25:23] Production.INFO: count ==5146 [2025-02-07 18:25:25] Production.ERROR: pbx CDR StartTime 2025-02-07 15:25:05 - End Time 2025-02-07 18:25:05 [2025-02-07 18:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424192', 'tblTempUsageDetail_20' ) start [2025-02-07 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424192', 'tblTempUsageDetail_20' ) end [2025-02-07 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424192', 'tblTempVendorCDR_20' ) start [2025-02-07 18:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424192', 'tblTempVendorCDR_20' ) end [2025-02-07 18:25:26] Production.INFO: ProcessCDR(1,14424192,1,1,2) [2025-02-07 18:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424192', 'tblTempUsageDetail_20' ) start [2025-02-07 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424192', 'tblTempUsageDetail_20' ) end [2025-02-07 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:25:29] Production.INFO: ==2507== Releasing lock... [2025-02-07 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:25:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:26:05 [end_date_ymd] => 2025-02-07 18:26:05 [RateCDR] => 1 ) [2025-02-07 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:26:05' and `end` < '2025-02-07 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:26:22] Production.INFO: count ==5110 [2025-02-07 18:26:24] Production.ERROR: pbx CDR StartTime 2025-02-07 15:26:05 - End Time 2025-02-07 18:26:05 [2025-02-07 18:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424196', 'tblTempUsageDetail_20' ) start [2025-02-07 18:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424196', 'tblTempUsageDetail_20' ) end [2025-02-07 18:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424196', 'tblTempVendorCDR_20' ) start [2025-02-07 18:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424196', 'tblTempVendorCDR_20' ) end [2025-02-07 18:26:24] Production.INFO: ProcessCDR(1,14424196,1,1,2) [2025-02-07 18:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424196', 'tblTempUsageDetail_20' ) start [2025-02-07 18:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424196', 'tblTempUsageDetail_20' ) end [2025-02-07 18:26:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:26:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:26:29] Production.INFO: ==2589== Releasing lock... [2025-02-07 18:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:26:29] Production.INFO: 66.5 MB #Memory Used# [2025-02-07 18:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:27:04 [end_date_ymd] => 2025-02-07 18:27:04 [RateCDR] => 1 ) [2025-02-07 18:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:27:04' and `end` < '2025-02-07 18:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:27:19] Production.INFO: count ==5103 [2025-02-07 18:27:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:27:04 - End Time 2025-02-07 18:27:04 [2025-02-07 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424202', 'tblTempUsageDetail_20' ) start [2025-02-07 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424202', 'tblTempUsageDetail_20' ) end [2025-02-07 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424202', 'tblTempVendorCDR_20' ) start [2025-02-07 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424202', 'tblTempVendorCDR_20' ) end [2025-02-07 18:27:21] Production.INFO: ProcessCDR(1,14424202,1,1,2) [2025-02-07 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424202', 'tblTempUsageDetail_20' ) start [2025-02-07 18:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424202', 'tblTempUsageDetail_20' ) end [2025-02-07 18:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:27:25] Production.INFO: ==2664== Releasing lock... [2025-02-07 18:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:27:25] Production.INFO: 66.25 MB #Memory Used# [2025-02-07 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:28:05 [end_date_ymd] => 2025-02-07 18:28:05 [RateCDR] => 1 ) [2025-02-07 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:28:05' and `end` < '2025-02-07 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:28:19] Production.INFO: count ==5092 [2025-02-07 18:28:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:28:05 - End Time 2025-02-07 18:28:05 [2025-02-07 18:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424207', 'tblTempUsageDetail_20' ) start [2025-02-07 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424207', 'tblTempUsageDetail_20' ) end [2025-02-07 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424207', 'tblTempVendorCDR_20' ) start [2025-02-07 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424207', 'tblTempVendorCDR_20' ) end [2025-02-07 18:28:21] Production.INFO: ProcessCDR(1,14424207,1,1,2) [2025-02-07 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424207', 'tblTempUsageDetail_20' ) start [2025-02-07 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424207', 'tblTempUsageDetail_20' ) end [2025-02-07 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:28:25] Production.INFO: ==2778== Releasing lock... [2025-02-07 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:28:25] Production.INFO: 66 MB #Memory Used# [2025-02-07 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:29:05 [end_date_ymd] => 2025-02-07 18:29:05 [RateCDR] => 1 ) [2025-02-07 18:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:29:05' and `end` < '2025-02-07 18:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:29:19] Production.INFO: count ==5081 [2025-02-07 18:29:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:29:05 - End Time 2025-02-07 18:29:05 [2025-02-07 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424212', 'tblTempUsageDetail_20' ) start [2025-02-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424212', 'tblTempUsageDetail_20' ) end [2025-02-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424212', 'tblTempVendorCDR_20' ) start [2025-02-07 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424212', 'tblTempVendorCDR_20' ) end [2025-02-07 18:29:21] Production.INFO: ProcessCDR(1,14424212,1,1,2) [2025-02-07 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424212', 'tblTempUsageDetail_20' ) start [2025-02-07 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424212', 'tblTempUsageDetail_20' ) end [2025-02-07 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:29:26] Production.INFO: ==2850== Releasing lock... [2025-02-07 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:29:26] Production.INFO: 66 MB #Memory Used# [2025-02-07 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:30:06 [end_date_ymd] => 2025-02-07 18:30:06 [RateCDR] => 1 ) [2025-02-07 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:30:06' and `end` < '2025-02-07 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:30:24] Production.INFO: count ==5075 [2025-02-07 18:30:26] Production.ERROR: pbx CDR StartTime 2025-02-07 15:30:06 - End Time 2025-02-07 18:30:06 [2025-02-07 18:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424218', 'tblTempUsageDetail_20' ) start [2025-02-07 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424218', 'tblTempUsageDetail_20' ) end [2025-02-07 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424218', 'tblTempVendorCDR_20' ) start [2025-02-07 18:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424218', 'tblTempVendorCDR_20' ) end [2025-02-07 18:30:26] Production.INFO: ProcessCDR(1,14424218,1,1,2) [2025-02-07 18:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424218', 'tblTempUsageDetail_20' ) start [2025-02-07 18:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424218', 'tblTempUsageDetail_20' ) end [2025-02-07 18:30:31] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:30:31] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:30:31] Production.INFO: ==2925== Releasing lock... [2025-02-07 18:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:30:31] Production.INFO: 66 MB #Memory Used# [2025-02-07 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:31:06 [end_date_ymd] => 2025-02-07 18:31:06 [RateCDR] => 1 ) [2025-02-07 18:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:31:06' and `end` < '2025-02-07 18:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:31:26] Production.INFO: count ==5082 [2025-02-07 18:31:28] Production.ERROR: pbx CDR StartTime 2025-02-07 15:31:06 - End Time 2025-02-07 18:31:06 [2025-02-07 18:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424223', 'tblTempUsageDetail_20' ) start [2025-02-07 18:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424223', 'tblTempUsageDetail_20' ) end [2025-02-07 18:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424223', 'tblTempVendorCDR_20' ) start [2025-02-07 18:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424223', 'tblTempVendorCDR_20' ) end [2025-02-07 18:31:28] Production.INFO: ProcessCDR(1,14424223,1,1,2) [2025-02-07 18:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424223', 'tblTempUsageDetail_20' ) start [2025-02-07 18:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424223', 'tblTempUsageDetail_20' ) end [2025-02-07 18:31:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:31:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:31:33] Production.INFO: ==3000== Releasing lock... [2025-02-07 18:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:31:33] Production.INFO: 66 MB #Memory Used# [2025-02-07 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:32:05 [end_date_ymd] => 2025-02-07 18:32:05 [RateCDR] => 1 ) [2025-02-07 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:32:05' and `end` < '2025-02-07 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:32:25] Production.INFO: count ==5085 [2025-02-07 18:32:27] Production.ERROR: pbx CDR StartTime 2025-02-07 15:32:05 - End Time 2025-02-07 18:32:05 [2025-02-07 18:32:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424228', 'tblTempUsageDetail_20' ) start [2025-02-07 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424228', 'tblTempUsageDetail_20' ) end [2025-02-07 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424228', 'tblTempVendorCDR_20' ) start [2025-02-07 18:32:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424228', 'tblTempVendorCDR_20' ) end [2025-02-07 18:32:27] Production.INFO: ProcessCDR(1,14424228,1,1,2) [2025-02-07 18:32:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424228', 'tblTempUsageDetail_20' ) start [2025-02-07 18:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424228', 'tblTempUsageDetail_20' ) end [2025-02-07 18:32:32] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:32:32] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:32:32] Production.INFO: ==3075== Releasing lock... [2025-02-07 18:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:32:32] Production.INFO: 66 MB #Memory Used# [2025-02-07 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:33:05 [end_date_ymd] => 2025-02-07 18:33:05 [RateCDR] => 1 ) [2025-02-07 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:33:05' and `end` < '2025-02-07 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:33:21] Production.INFO: count ==5035 [2025-02-07 18:33:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:33:05 - End Time 2025-02-07 18:33:05 [2025-02-07 18:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424233', 'tblTempUsageDetail_20' ) start [2025-02-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424233', 'tblTempUsageDetail_20' ) end [2025-02-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424233', 'tblTempVendorCDR_20' ) start [2025-02-07 18:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424233', 'tblTempVendorCDR_20' ) end [2025-02-07 18:33:23] Production.INFO: ProcessCDR(1,14424233,1,1,2) [2025-02-07 18:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424233', 'tblTempUsageDetail_20' ) start [2025-02-07 18:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424233', 'tblTempUsageDetail_20' ) end [2025-02-07 18:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:33:27] Production.INFO: ==3150== Releasing lock... [2025-02-07 18:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:33:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:34:05 [end_date_ymd] => 2025-02-07 18:34:05 [RateCDR] => 1 ) [2025-02-07 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:34:05' and `end` < '2025-02-07 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:34:20] Production.INFO: count ==5013 [2025-02-07 18:34:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:34:05 - End Time 2025-02-07 18:34:05 [2025-02-07 18:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424238', 'tblTempUsageDetail_20' ) start [2025-02-07 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424238', 'tblTempUsageDetail_20' ) end [2025-02-07 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424238', 'tblTempVendorCDR_20' ) start [2025-02-07 18:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424238', 'tblTempVendorCDR_20' ) end [2025-02-07 18:34:22] Production.INFO: ProcessCDR(1,14424238,1,1,2) [2025-02-07 18:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424238', 'tblTempUsageDetail_20' ) start [2025-02-07 18:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424238', 'tblTempUsageDetail_20' ) end [2025-02-07 18:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:34:27] Production.INFO: ==3222== Releasing lock... [2025-02-07 18:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:34:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-07 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:35:05 [end_date_ymd] => 2025-02-07 18:35:05 [RateCDR] => 1 ) [2025-02-07 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:35:05' and `end` < '2025-02-07 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:35:22] Production.INFO: count ==4993 [2025-02-07 18:35:24] Production.ERROR: pbx CDR StartTime 2025-02-07 15:35:05 - End Time 2025-02-07 18:35:05 [2025-02-07 18:35:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424243', 'tblTempUsageDetail_20' ) start [2025-02-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424243', 'tblTempUsageDetail_20' ) end [2025-02-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424243', 'tblTempVendorCDR_20' ) start [2025-02-07 18:35:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424243', 'tblTempVendorCDR_20' ) end [2025-02-07 18:35:24] Production.INFO: ProcessCDR(1,14424243,1,1,2) [2025-02-07 18:35:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:35:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:35:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424243', 'tblTempUsageDetail_20' ) start [2025-02-07 18:35:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424243', 'tblTempUsageDetail_20' ) end [2025-02-07 18:35:29] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:35:29] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:35:29] Production.INFO: ==3298== Releasing lock... [2025-02-07 18:35:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:35:29] Production.INFO: 65.25 MB #Memory Used# [2025-02-07 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:36:05 [end_date_ymd] => 2025-02-07 18:36:05 [RateCDR] => 1 ) [2025-02-07 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:36:05' and `end` < '2025-02-07 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:36:22] Production.INFO: count ==4944 [2025-02-07 18:36:24] Production.ERROR: pbx CDR StartTime 2025-02-07 15:36:05 - End Time 2025-02-07 18:36:05 [2025-02-07 18:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424248', 'tblTempUsageDetail_20' ) start [2025-02-07 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424248', 'tblTempUsageDetail_20' ) end [2025-02-07 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424248', 'tblTempVendorCDR_20' ) start [2025-02-07 18:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424248', 'tblTempVendorCDR_20' ) end [2025-02-07 18:36:24] Production.INFO: ProcessCDR(1,14424248,1,1,2) [2025-02-07 18:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424248', 'tblTempUsageDetail_20' ) start [2025-02-07 18:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424248', 'tblTempUsageDetail_20' ) end [2025-02-07 18:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:36:27] Production.INFO: ==3370== Releasing lock... [2025-02-07 18:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:36:27] Production.INFO: 65 MB #Memory Used# [2025-02-07 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:37:05 [end_date_ymd] => 2025-02-07 18:37:05 [RateCDR] => 1 ) [2025-02-07 18:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:37:05' and `end` < '2025-02-07 18:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:37:19] Production.INFO: count ==4926 [2025-02-07 18:37:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:37:05 - End Time 2025-02-07 18:37:05 [2025-02-07 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424253', 'tblTempUsageDetail_20' ) start [2025-02-07 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424253', 'tblTempUsageDetail_20' ) end [2025-02-07 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424253', 'tblTempVendorCDR_20' ) start [2025-02-07 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424253', 'tblTempVendorCDR_20' ) end [2025-02-07 18:37:21] Production.INFO: ProcessCDR(1,14424253,1,1,2) [2025-02-07 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424253', 'tblTempUsageDetail_20' ) start [2025-02-07 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424253', 'tblTempUsageDetail_20' ) end [2025-02-07 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:37:26] Production.INFO: ==3445== Releasing lock... [2025-02-07 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:37:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:38:05 [end_date_ymd] => 2025-02-07 18:38:05 [RateCDR] => 1 ) [2025-02-07 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:38:05' and `end` < '2025-02-07 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:38:19] Production.INFO: count ==4929 [2025-02-07 18:38:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:38:05 - End Time 2025-02-07 18:38:05 [2025-02-07 18:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424258', 'tblTempUsageDetail_20' ) start [2025-02-07 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424258', 'tblTempUsageDetail_20' ) end [2025-02-07 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424258', 'tblTempVendorCDR_20' ) start [2025-02-07 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424258', 'tblTempVendorCDR_20' ) end [2025-02-07 18:38:21] Production.INFO: ProcessCDR(1,14424258,1,1,2) [2025-02-07 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424258', 'tblTempUsageDetail_20' ) start [2025-02-07 18:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424258', 'tblTempUsageDetail_20' ) end [2025-02-07 18:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:38:26] Production.INFO: ==3522== Releasing lock... [2025-02-07 18:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 18:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:39:04 [end_date_ymd] => 2025-02-07 18:39:04 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:39:04' and `end` < '2025-02-07 18: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-07 18:39:19] Production.INFO: count ==4933 [2025-02-07 18:39:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:39:04 - End Time 2025-02-07 18:39:04 [2025-02-07 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424263', 'tblTempUsageDetail_20' ) start [2025-02-07 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424263', 'tblTempUsageDetail_20' ) end [2025-02-07 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424263', 'tblTempVendorCDR_20' ) start [2025-02-07 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424263', 'tblTempVendorCDR_20' ) end [2025-02-07 18:39:21] Production.INFO: ProcessCDR(1,14424263,1,1,2) [2025-02-07 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424263', 'tblTempUsageDetail_20' ) start [2025-02-07 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424263', 'tblTempUsageDetail_20' ) end [2025-02-07 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:39:25] Production.INFO: ==3598== Releasing lock... [2025-02-07 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:39:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:40:06 [end_date_ymd] => 2025-02-07 18:40:06 [RateCDR] => 1 ) [2025-02-07 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:40:06' and `end` < '2025-02-07 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:40:26] Production.INFO: count ==4927 [2025-02-07 18:40:28] Production.ERROR: pbx CDR StartTime 2025-02-07 15:40:06 - End Time 2025-02-07 18:40:06 [2025-02-07 18:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424268', 'tblTempUsageDetail_20' ) start [2025-02-07 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424268', 'tblTempUsageDetail_20' ) end [2025-02-07 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424268', 'tblTempVendorCDR_20' ) start [2025-02-07 18:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424268', 'tblTempVendorCDR_20' ) end [2025-02-07 18:40:28] Production.INFO: ProcessCDR(1,14424268,1,1,2) [2025-02-07 18:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424268', 'tblTempUsageDetail_20' ) start [2025-02-07 18:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424268', 'tblTempUsageDetail_20' ) end [2025-02-07 18:40:33] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:40:33] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:40:33] Production.INFO: ==3675== Releasing lock... [2025-02-07 18:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:40:33] Production.INFO: 64.75 MB #Memory Used# [2025-02-07 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:41:05 [end_date_ymd] => 2025-02-07 18:41:05 [RateCDR] => 1 ) [2025-02-07 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:41:05' and `end` < '2025-02-07 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:41:19] Production.INFO: count ==4884 [2025-02-07 18:41:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:41:05 - End Time 2025-02-07 18:41:05 [2025-02-07 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424274', 'tblTempUsageDetail_20' ) start [2025-02-07 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424274', 'tblTempUsageDetail_20' ) end [2025-02-07 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424274', 'tblTempVendorCDR_20' ) start [2025-02-07 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424274', 'tblTempVendorCDR_20' ) end [2025-02-07 18:41:21] Production.INFO: ProcessCDR(1,14424274,1,1,2) [2025-02-07 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424274', 'tblTempUsageDetail_20' ) start [2025-02-07 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424274', 'tblTempUsageDetail_20' ) end [2025-02-07 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:41:24] Production.INFO: ==3755== Releasing lock... [2025-02-07 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:41:24] Production.INFO: 64.5 MB #Memory Used# [2025-02-07 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:42:06 [end_date_ymd] => 2025-02-07 18:42:06 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:42:06' and `end` < '2025-02-07 18: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-07 18:42:19] Production.INFO: count ==4810 [2025-02-07 18:42:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:42:06 - End Time 2025-02-07 18:42:06 [2025-02-07 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424279', 'tblTempUsageDetail_20' ) start [2025-02-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424279', 'tblTempUsageDetail_20' ) end [2025-02-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424279', 'tblTempVendorCDR_20' ) start [2025-02-07 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424279', 'tblTempVendorCDR_20' ) end [2025-02-07 18:42:21] Production.INFO: ProcessCDR(1,14424279,1,1,2) [2025-02-07 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424279', 'tblTempUsageDetail_20' ) start [2025-02-07 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424279', 'tblTempUsageDetail_20' ) end [2025-02-07 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:42:26] Production.INFO: ==3830== Releasing lock... [2025-02-07 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:42:26] Production.INFO: 64 MB #Memory Used# [2025-02-07 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:43:05 [end_date_ymd] => 2025-02-07 18:43:05 [RateCDR] => 1 ) [2025-02-07 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:43:05' and `end` < '2025-02-07 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:43:20] Production.INFO: count ==4715 [2025-02-07 18:43:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:43:05 - End Time 2025-02-07 18:43:05 [2025-02-07 18:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424284', 'tblTempUsageDetail_20' ) start [2025-02-07 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424284', 'tblTempUsageDetail_20' ) end [2025-02-07 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424284', 'tblTempVendorCDR_20' ) start [2025-02-07 18:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424284', 'tblTempVendorCDR_20' ) end [2025-02-07 18:43:22] Production.INFO: ProcessCDR(1,14424284,1,1,2) [2025-02-07 18:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424284', 'tblTempUsageDetail_20' ) start [2025-02-07 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424284', 'tblTempUsageDetail_20' ) end [2025-02-07 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:43:25] Production.INFO: ==3904== Releasing lock... [2025-02-07 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:43:25] Production.INFO: 63.25 MB #Memory Used# [2025-02-07 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:44:05 [end_date_ymd] => 2025-02-07 18:44:05 [RateCDR] => 1 ) [2025-02-07 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:44:05' and `end` < '2025-02-07 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:44:19] Production.INFO: count ==4634 [2025-02-07 18:44:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:44:05 - End Time 2025-02-07 18:44:05 [2025-02-07 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424289', 'tblTempUsageDetail_20' ) start [2025-02-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424289', 'tblTempUsageDetail_20' ) end [2025-02-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424289', 'tblTempVendorCDR_20' ) start [2025-02-07 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424289', 'tblTempVendorCDR_20' ) end [2025-02-07 18:44:21] Production.INFO: ProcessCDR(1,14424289,1,1,2) [2025-02-07 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424289', 'tblTempUsageDetail_20' ) start [2025-02-07 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424289', 'tblTempUsageDetail_20' ) end [2025-02-07 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:44:24] Production.INFO: ==4024== Releasing lock... [2025-02-07 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:44:24] Production.INFO: 62.5 MB #Memory Used# [2025-02-07 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:45:05 [end_date_ymd] => 2025-02-07 18:45:05 [RateCDR] => 1 ) [2025-02-07 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:45:05' and `end` < '2025-02-07 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:45:20] Production.INFO: count ==4547 [2025-02-07 18:45:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:45:05 - End Time 2025-02-07 18:45:05 [2025-02-07 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424294', 'tblTempUsageDetail_20' ) start [2025-02-07 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424294', 'tblTempUsageDetail_20' ) end [2025-02-07 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424294', 'tblTempVendorCDR_20' ) start [2025-02-07 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424294', 'tblTempVendorCDR_20' ) end [2025-02-07 18:45:21] Production.INFO: ProcessCDR(1,14424294,1,1,2) [2025-02-07 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424294', 'tblTempUsageDetail_20' ) start [2025-02-07 18:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424294', 'tblTempUsageDetail_20' ) end [2025-02-07 18:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:45:26] Production.INFO: ==4112== Releasing lock... [2025-02-07 18:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:45:26] Production.INFO: 62 MB #Memory Used# [2025-02-07 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:46:05 [end_date_ymd] => 2025-02-07 18:46:05 [RateCDR] => 1 ) [2025-02-07 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:46:05' and `end` < '2025-02-07 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:46:20] Production.INFO: count ==4458 [2025-02-07 18:46:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:46:05 - End Time 2025-02-07 18:46:05 [2025-02-07 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424299', 'tblTempUsageDetail_20' ) start [2025-02-07 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424299', 'tblTempUsageDetail_20' ) end [2025-02-07 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424299', 'tblTempVendorCDR_20' ) start [2025-02-07 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424299', 'tblTempVendorCDR_20' ) end [2025-02-07 18:46:21] Production.INFO: ProcessCDR(1,14424299,1,1,2) [2025-02-07 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424299', 'tblTempUsageDetail_20' ) start [2025-02-07 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424299', 'tblTempUsageDetail_20' ) end [2025-02-07 18:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:46:26] Production.INFO: ==4194== Releasing lock... [2025-02-07 18:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:46:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-07 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:47:05 [end_date_ymd] => 2025-02-07 18:47:05 [RateCDR] => 1 ) [2025-02-07 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:47:05' and `end` < '2025-02-07 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:47:20] Production.INFO: count ==4380 [2025-02-07 18:47:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:47:05 - End Time 2025-02-07 18:47:05 [2025-02-07 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424304', 'tblTempUsageDetail_20' ) start [2025-02-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424304', 'tblTempUsageDetail_20' ) end [2025-02-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424304', 'tblTempVendorCDR_20' ) start [2025-02-07 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424304', 'tblTempVendorCDR_20' ) end [2025-02-07 18:47:21] Production.INFO: ProcessCDR(1,14424304,1,1,2) [2025-02-07 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424304', 'tblTempUsageDetail_20' ) start [2025-02-07 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424304', 'tblTempUsageDetail_20' ) end [2025-02-07 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:47:25] Production.INFO: ==4279== Releasing lock... [2025-02-07 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:47:25] Production.INFO: 60.75 MB #Memory Used# [2025-02-07 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:48:06 [end_date_ymd] => 2025-02-07 18:48:06 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:48:06' and `end` < '2025-02-07 18: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-07 18:48:20] Production.INFO: count ==4297 [2025-02-07 18:48:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:48:06 - End Time 2025-02-07 18:48:06 [2025-02-07 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424309', 'tblTempUsageDetail_20' ) start [2025-02-07 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424309', 'tblTempUsageDetail_20' ) end [2025-02-07 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424309', 'tblTempVendorCDR_20' ) start [2025-02-07 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424309', 'tblTempVendorCDR_20' ) end [2025-02-07 18:48:21] Production.INFO: ProcessCDR(1,14424309,1,1,2) [2025-02-07 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424309', 'tblTempUsageDetail_20' ) start [2025-02-07 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424309', 'tblTempUsageDetail_20' ) end [2025-02-07 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:48:24] Production.INFO: ==4364== Releasing lock... [2025-02-07 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:48:24] Production.INFO: 60 MB #Memory Used# [2025-02-07 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:49:05 [end_date_ymd] => 2025-02-07 18:49:05 [RateCDR] => 1 ) [2025-02-07 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:49:05' and `end` < '2025-02-07 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:49:19] Production.INFO: count ==4199 [2025-02-07 18:49:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:49:05 - End Time 2025-02-07 18:49:05 [2025-02-07 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424314', 'tblTempUsageDetail_20' ) start [2025-02-07 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424314', 'tblTempUsageDetail_20' ) end [2025-02-07 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424314', 'tblTempVendorCDR_20' ) start [2025-02-07 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424314', 'tblTempVendorCDR_20' ) end [2025-02-07 18:49:21] Production.INFO: ProcessCDR(1,14424314,1,1,2) [2025-02-07 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424314', 'tblTempUsageDetail_20' ) start [2025-02-07 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424314', 'tblTempUsageDetail_20' ) end [2025-02-07 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:49:24] Production.INFO: ==4446== Releasing lock... [2025-02-07 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:49:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-07 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:50:05 [end_date_ymd] => 2025-02-07 18:50:05 [RateCDR] => 1 ) [2025-02-07 18:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:50:05' and `end` < '2025-02-07 18:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:50:21] Production.INFO: count ==4123 [2025-02-07 18:50:23] Production.ERROR: pbx CDR StartTime 2025-02-07 15:50:05 - End Time 2025-02-07 18:50:05 [2025-02-07 18:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424319', 'tblTempUsageDetail_20' ) start [2025-02-07 18:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424319', 'tblTempUsageDetail_20' ) end [2025-02-07 18:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424319', 'tblTempVendorCDR_20' ) start [2025-02-07 18:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424319', 'tblTempVendorCDR_20' ) end [2025-02-07 18:50:23] Production.INFO: ProcessCDR(1,14424319,1,1,2) [2025-02-07 18:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424319', 'tblTempUsageDetail_20' ) start [2025-02-07 18:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424319', 'tblTempUsageDetail_20' ) end [2025-02-07 18:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:50:28] Production.INFO: ==4533== Releasing lock... [2025-02-07 18:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:50:28] Production.INFO: 58.75 MB #Memory Used# [2025-02-07 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:51:05 [end_date_ymd] => 2025-02-07 18:51:05 [RateCDR] => 1 ) [2025-02-07 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:51:05' and `end` < '2025-02-07 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:51:19] Production.INFO: count ==4029 [2025-02-07 18:51:20] Production.ERROR: pbx CDR StartTime 2025-02-07 15:51:05 - End Time 2025-02-07 18:51:05 [2025-02-07 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424325', 'tblTempUsageDetail_20' ) start [2025-02-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424325', 'tblTempUsageDetail_20' ) end [2025-02-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424325', 'tblTempVendorCDR_20' ) start [2025-02-07 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424325', 'tblTempVendorCDR_20' ) end [2025-02-07 18:51:20] Production.INFO: ProcessCDR(1,14424325,1,1,2) [2025-02-07 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424325', 'tblTempUsageDetail_20' ) start [2025-02-07 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424325', 'tblTempUsageDetail_20' ) end [2025-02-07 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:51:25] Production.INFO: ==4626== Releasing lock... [2025-02-07 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:51:25] Production.INFO: 58 MB #Memory Used# [2025-02-07 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:52:05 [end_date_ymd] => 2025-02-07 18:52:05 [RateCDR] => 1 ) [2025-02-07 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:52:05' and `end` < '2025-02-07 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:52:20] Production.INFO: count ==3935 [2025-02-07 18:52:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:52:05 - End Time 2025-02-07 18:52:05 [2025-02-07 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424330', 'tblTempUsageDetail_20' ) start [2025-02-07 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424330', 'tblTempUsageDetail_20' ) end [2025-02-07 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424330', 'tblTempVendorCDR_20' ) start [2025-02-07 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424330', 'tblTempVendorCDR_20' ) end [2025-02-07 18:52:21] Production.INFO: ProcessCDR(1,14424330,1,1,2) [2025-02-07 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424330', 'tblTempUsageDetail_20' ) start [2025-02-07 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424330', 'tblTempUsageDetail_20' ) end [2025-02-07 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:52:25] Production.INFO: ==4719== Releasing lock... [2025-02-07 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:52:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-07 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:53:05 [end_date_ymd] => 2025-02-07 18:53:05 [RateCDR] => 1 ) [2025-02-07 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:53:05' and `end` < '2025-02-07 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:53:19] Production.INFO: count ==3849 [2025-02-07 18:53:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:53:05 - End Time 2025-02-07 18:53:05 [2025-02-07 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424335', 'tblTempUsageDetail_20' ) start [2025-02-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424335', 'tblTempUsageDetail_20' ) end [2025-02-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424335', 'tblTempVendorCDR_20' ) start [2025-02-07 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424335', 'tblTempVendorCDR_20' ) end [2025-02-07 18:53:21] Production.INFO: ProcessCDR(1,14424335,1,1,2) [2025-02-07 18:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424335', 'tblTempUsageDetail_20' ) start [2025-02-07 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424335', 'tblTempUsageDetail_20' ) end [2025-02-07 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:53:25] Production.INFO: ==4828== Releasing lock... [2025-02-07 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:53:25] Production.INFO: 56.75 MB #Memory Used# [2025-02-07 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:54:06 [end_date_ymd] => 2025-02-07 18:54:06 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:54:06' and `end` < '2025-02-07 18: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-07 18:54:19] Production.INFO: count ==3749 [2025-02-07 18:54:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:54:06 - End Time 2025-02-07 18:54:06 [2025-02-07 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424340', 'tblTempUsageDetail_20' ) start [2025-02-07 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424340', 'tblTempUsageDetail_20' ) end [2025-02-07 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424340', 'tblTempVendorCDR_20' ) start [2025-02-07 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424340', 'tblTempVendorCDR_20' ) end [2025-02-07 18:54:21] Production.INFO: ProcessCDR(1,14424340,1,1,2) [2025-02-07 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424340', 'tblTempUsageDetail_20' ) start [2025-02-07 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424340', 'tblTempUsageDetail_20' ) end [2025-02-07 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:54:25] Production.INFO: ==4929== Releasing lock... [2025-02-07 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:54:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-07 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:55:05 [end_date_ymd] => 2025-02-07 18:55:05 [RateCDR] => 1 ) [2025-02-07 18:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:55:05' and `end` < '2025-02-07 18:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:55:20] Production.INFO: count ==3676 [2025-02-07 18:55:22] Production.ERROR: pbx CDR StartTime 2025-02-07 15:55:05 - End Time 2025-02-07 18:55:05 [2025-02-07 18:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424345', 'tblTempUsageDetail_20' ) start [2025-02-07 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424345', 'tblTempUsageDetail_20' ) end [2025-02-07 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424345', 'tblTempVendorCDR_20' ) start [2025-02-07 18:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424345', 'tblTempVendorCDR_20' ) end [2025-02-07 18:55:22] Production.INFO: ProcessCDR(1,14424345,1,1,2) [2025-02-07 18:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424345', 'tblTempUsageDetail_20' ) start [2025-02-07 18:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424345', 'tblTempUsageDetail_20' ) end [2025-02-07 18:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:55:26] Production.INFO: ==5029== Releasing lock... [2025-02-07 18:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:55:26] Production.INFO: 55.5 MB #Memory Used# [2025-02-07 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:56:05 [end_date_ymd] => 2025-02-07 18:56:05 [RateCDR] => 1 ) [2025-02-07 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:56:05' and `end` < '2025-02-07 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:56:19] Production.INFO: count ==3583 [2025-02-07 18:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 15:56:05 - End Time 2025-02-07 18:56:05 [2025-02-07 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424350', 'tblTempUsageDetail_20' ) start [2025-02-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424350', 'tblTempUsageDetail_20' ) end [2025-02-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424350', 'tblTempVendorCDR_20' ) start [2025-02-07 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424350', 'tblTempVendorCDR_20' ) end [2025-02-07 18:56:20] Production.INFO: ProcessCDR(1,14424350,1,1,2) [2025-02-07 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424350', 'tblTempUsageDetail_20' ) start [2025-02-07 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424350', 'tblTempUsageDetail_20' ) end [2025-02-07 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:56:23] Production.INFO: ==5119== Releasing lock... [2025-02-07 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:56:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-07 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:57:04 [end_date_ymd] => 2025-02-07 18:57:04 [RateCDR] => 1 ) [2025-02-07 18: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-07 15:57:04' and `end` < '2025-02-07 18: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-07 18:57:20] Production.INFO: count ==3580 [2025-02-07 18:57:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:57:04 - End Time 2025-02-07 18:57:04 [2025-02-07 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424355', 'tblTempUsageDetail_20' ) start [2025-02-07 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424355', 'tblTempUsageDetail_20' ) end [2025-02-07 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424355', 'tblTempVendorCDR_20' ) start [2025-02-07 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424355', 'tblTempVendorCDR_20' ) end [2025-02-07 18:57:21] Production.INFO: ProcessCDR(1,14424355,1,1,2) [2025-02-07 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424355', 'tblTempUsageDetail_20' ) start [2025-02-07 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424355', 'tblTempUsageDetail_20' ) end [2025-02-07 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:57:25] Production.INFO: ==5204== Releasing lock... [2025-02-07 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:57:25] Production.INFO: 54.75 MB #Memory Used# [2025-02-07 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:58:05 [end_date_ymd] => 2025-02-07 18:58:05 [RateCDR] => 1 ) [2025-02-07 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:58:05' and `end` < '2025-02-07 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:58:20] Production.INFO: count ==3561 [2025-02-07 18:58:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:58:05 - End Time 2025-02-07 18:58:05 [2025-02-07 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424360', 'tblTempUsageDetail_20' ) start [2025-02-07 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424360', 'tblTempUsageDetail_20' ) end [2025-02-07 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424360', 'tblTempVendorCDR_20' ) start [2025-02-07 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424360', 'tblTempVendorCDR_20' ) end [2025-02-07 18:58:21] Production.INFO: ProcessCDR(1,14424360,1,1,2) [2025-02-07 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424360', 'tblTempUsageDetail_20' ) start [2025-02-07 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424360', 'tblTempUsageDetail_20' ) end [2025-02-07 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:58:25] Production.INFO: ==5288== Releasing lock... [2025-02-07 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:58:25] Production.INFO: 54.5 MB #Memory Used# [2025-02-07 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 15:59:06 [end_date_ymd] => 2025-02-07 18:59:06 [RateCDR] => 1 ) [2025-02-07 18:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 15:59:06' and `end` < '2025-02-07 18:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 18:59:20] Production.INFO: count ==3549 [2025-02-07 18:59:21] Production.ERROR: pbx CDR StartTime 2025-02-07 15:59:06 - End Time 2025-02-07 18:59:06 [2025-02-07 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424365', 'tblTempUsageDetail_20' ) start [2025-02-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424365', 'tblTempUsageDetail_20' ) end [2025-02-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424365', 'tblTempVendorCDR_20' ) start [2025-02-07 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424365', 'tblTempVendorCDR_20' ) end [2025-02-07 18:59:21] Production.INFO: ProcessCDR(1,14424365,1,1,2) [2025-02-07 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424365', 'tblTempUsageDetail_20' ) start [2025-02-07 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424365', 'tblTempUsageDetail_20' ) end [2025-02-07 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 18:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 18:59:24] Production.INFO: ==5410== Releasing lock... [2025-02-07 18:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 18:59:24] Production.INFO: 54.5 MB #Memory Used# [2025-02-07 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:00:06 [end_date_ymd] => 2025-02-07 19:00:06 [RateCDR] => 1 ) [2025-02-07 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:00:06' and `end` < '2025-02-07 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:00:20] Production.INFO: count ==3518 [2025-02-07 19:00:21] Production.ERROR: pbx CDR StartTime 2025-02-07 16:00:06 - End Time 2025-02-07 19:00:06 [2025-02-07 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424370', 'tblTempUsageDetail_20' ) start [2025-02-07 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424370', 'tblTempUsageDetail_20' ) end [2025-02-07 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424370', 'tblTempVendorCDR_20' ) start [2025-02-07 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424370', 'tblTempVendorCDR_20' ) end [2025-02-07 19:00:22] Production.INFO: ProcessCDR(1,14424370,1,1,2) [2025-02-07 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424370', 'tblTempUsageDetail_20' ) start [2025-02-07 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424370', 'tblTempUsageDetail_20' ) end [2025-02-07 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:00:25] Production.INFO: ==5504== Releasing lock... [2025-02-07 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:00:25] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:01:06 [end_date_ymd] => 2025-02-07 19:01:06 [RateCDR] => 1 ) [2025-02-07 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:01:06' and `end` < '2025-02-07 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:01:20] Production.INFO: count ==3412 [2025-02-07 19:01:21] Production.ERROR: pbx CDR StartTime 2025-02-07 16:01:06 - End Time 2025-02-07 19:01:06 [2025-02-07 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424376', 'tblTempUsageDetail_20' ) start [2025-02-07 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424376', 'tblTempUsageDetail_20' ) end [2025-02-07 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424376', 'tblTempVendorCDR_20' ) start [2025-02-07 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424376', 'tblTempVendorCDR_20' ) end [2025-02-07 19:01:21] Production.INFO: ProcessCDR(1,14424376,1,1,2) [2025-02-07 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424376', 'tblTempUsageDetail_20' ) start [2025-02-07 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424376', 'tblTempUsageDetail_20' ) end [2025-02-07 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:01:26] Production.INFO: ==5596== Releasing lock... [2025-02-07 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:01:26] Production.INFO: 53.5 MB #Memory Used# [2025-02-07 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:02:05 [end_date_ymd] => 2025-02-07 19:02:05 [RateCDR] => 1 ) [2025-02-07 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:02:05' and `end` < '2025-02-07 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:02:18] Production.INFO: count ==3407 [2025-02-07 19:02:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:02:05 - End Time 2025-02-07 19:02:05 [2025-02-07 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424381', 'tblTempUsageDetail_20' ) start [2025-02-07 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424381', 'tblTempUsageDetail_20' ) end [2025-02-07 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424381', 'tblTempVendorCDR_20' ) start [2025-02-07 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424381', 'tblTempVendorCDR_20' ) end [2025-02-07 19:02:20] Production.INFO: ProcessCDR(1,14424381,1,1,2) [2025-02-07 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424381', 'tblTempUsageDetail_20' ) start [2025-02-07 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424381', 'tblTempUsageDetail_20' ) end [2025-02-07 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:02:23] Production.INFO: ==5765== Releasing lock... [2025-02-07 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:02:23] Production.INFO: 54 MB #Memory Used# [2025-02-07 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:03:05 [end_date_ymd] => 2025-02-07 19:03:05 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:03:05' and `end` < '2025-02-07 19: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-07 19:03:18] Production.INFO: count ==3384 [2025-02-07 19:03:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:03:05 - End Time 2025-02-07 19:03:05 [2025-02-07 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424386', 'tblTempUsageDetail_20' ) start [2025-02-07 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424386', 'tblTempUsageDetail_20' ) end [2025-02-07 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424386', 'tblTempVendorCDR_20' ) start [2025-02-07 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424386', 'tblTempVendorCDR_20' ) end [2025-02-07 19:03:19] Production.INFO: ProcessCDR(1,14424386,1,1,2) [2025-02-07 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424386', 'tblTempUsageDetail_20' ) start [2025-02-07 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424386', 'tblTempUsageDetail_20' ) end [2025-02-07 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:03:22] Production.INFO: ==5848== Releasing lock... [2025-02-07 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:03:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-07 19:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:04:04 [end_date_ymd] => 2025-02-07 19:04:04 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:04:04' and `end` < '2025-02-07 19: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-07 19:04:18] Production.INFO: count ==3387 [2025-02-07 19:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:04:04 - End Time 2025-02-07 19:04:04 [2025-02-07 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424391', 'tblTempUsageDetail_20' ) start [2025-02-07 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424391', 'tblTempUsageDetail_20' ) end [2025-02-07 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424391', 'tblTempVendorCDR_20' ) start [2025-02-07 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424391', 'tblTempVendorCDR_20' ) end [2025-02-07 19:04:19] Production.INFO: ProcessCDR(1,14424391,1,1,2) [2025-02-07 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424391', 'tblTempUsageDetail_20' ) start [2025-02-07 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424391', 'tblTempUsageDetail_20' ) end [2025-02-07 19:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:04:22] Production.INFO: ==5935== Releasing lock... [2025-02-07 19:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:04:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-07 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:05:06 [end_date_ymd] => 2025-02-07 19:05:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:05:06' and `end` < '2025-02-07 19: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-07 19:05:21] Production.INFO: count ==3389 [2025-02-07 19:05:22] Production.ERROR: pbx CDR StartTime 2025-02-07 16:05:06 - End Time 2025-02-07 19:05:06 [2025-02-07 19:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424396', 'tblTempUsageDetail_20' ) start [2025-02-07 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424396', 'tblTempUsageDetail_20' ) end [2025-02-07 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424396', 'tblTempVendorCDR_20' ) start [2025-02-07 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424396', 'tblTempVendorCDR_20' ) end [2025-02-07 19:05:22] Production.INFO: ProcessCDR(1,14424396,1,1,2) [2025-02-07 19:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424396', 'tblTempUsageDetail_20' ) start [2025-02-07 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424396', 'tblTempUsageDetail_20' ) end [2025-02-07 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:05:26] Production.INFO: ==6095== Releasing lock... [2025-02-07 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:05:26] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 19:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:06:04 [end_date_ymd] => 2025-02-07 19:06:04 [RateCDR] => 1 ) [2025-02-07 19:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:06:04' and `end` < '2025-02-07 19:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:06:19] Production.INFO: count ==3391 [2025-02-07 19:06:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:06:04 - End Time 2025-02-07 19:06:04 [2025-02-07 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424401', 'tblTempUsageDetail_20' ) start [2025-02-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424401', 'tblTempUsageDetail_20' ) end [2025-02-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424401', 'tblTempVendorCDR_20' ) start [2025-02-07 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424401', 'tblTempVendorCDR_20' ) end [2025-02-07 19:06:20] Production.INFO: ProcessCDR(1,14424401,1,1,2) [2025-02-07 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424401', 'tblTempUsageDetail_20' ) start [2025-02-07 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424401', 'tblTempUsageDetail_20' ) end [2025-02-07 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:06:24] Production.INFO: ==6177== Releasing lock... [2025-02-07 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:06:24] Production.INFO: 53.75 MB #Memory Used# [2025-02-07 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:07:05 [end_date_ymd] => 2025-02-07 19:07:05 [RateCDR] => 1 ) [2025-02-07 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:07:05' and `end` < '2025-02-07 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:07:18] Production.INFO: count ==3385 [2025-02-07 19:07:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:07:05 - End Time 2025-02-07 19:07:05 [2025-02-07 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424406', 'tblTempUsageDetail_20' ) start [2025-02-07 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424406', 'tblTempUsageDetail_20' ) end [2025-02-07 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424406', 'tblTempVendorCDR_20' ) start [2025-02-07 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424406', 'tblTempVendorCDR_20' ) end [2025-02-07 19:07:20] Production.INFO: ProcessCDR(1,14424406,1,1,2) [2025-02-07 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424406', 'tblTempUsageDetail_20' ) start [2025-02-07 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424406', 'tblTempUsageDetail_20' ) end [2025-02-07 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:07:23] Production.INFO: ==6268== Releasing lock... [2025-02-07 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:07:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-07 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:08:05 [end_date_ymd] => 2025-02-07 19:08:05 [RateCDR] => 1 ) [2025-02-07 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:08:05' and `end` < '2025-02-07 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:08:19] Production.INFO: count ==3380 [2025-02-07 19:08:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:08:05 - End Time 2025-02-07 19:08:05 [2025-02-07 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424411', 'tblTempUsageDetail_20' ) start [2025-02-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424411', 'tblTempUsageDetail_20' ) end [2025-02-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424411', 'tblTempVendorCDR_20' ) start [2025-02-07 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424411', 'tblTempVendorCDR_20' ) end [2025-02-07 19:08:20] Production.INFO: ProcessCDR(1,14424411,1,1,2) [2025-02-07 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424411', 'tblTempUsageDetail_20' ) start [2025-02-07 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424411', 'tblTempUsageDetail_20' ) end [2025-02-07 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:08:23] Production.INFO: ==6355== Releasing lock... [2025-02-07 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:08:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-07 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:09:05 [end_date_ymd] => 2025-02-07 19:09:05 [RateCDR] => 1 ) [2025-02-07 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:09:05' and `end` < '2025-02-07 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:09:18] Production.INFO: count ==3376 [2025-02-07 19:09:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:09:05 - End Time 2025-02-07 19:09:05 [2025-02-07 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424416', 'tblTempUsageDetail_20' ) start [2025-02-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424416', 'tblTempUsageDetail_20' ) end [2025-02-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424416', 'tblTempVendorCDR_20' ) start [2025-02-07 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424416', 'tblTempVendorCDR_20' ) end [2025-02-07 19:09:19] Production.INFO: ProcessCDR(1,14424416,1,1,2) [2025-02-07 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424416', 'tblTempUsageDetail_20' ) start [2025-02-07 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424416', 'tblTempUsageDetail_20' ) end [2025-02-07 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:09:22] Production.INFO: ==6521== Releasing lock... [2025-02-07 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:09:22] Production.INFO: 54.25 MB #Memory Used# [2025-02-07 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:10:05 [end_date_ymd] => 2025-02-07 19:10:05 [RateCDR] => 1 ) [2025-02-07 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:10:05' and `end` < '2025-02-07 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:10:19] Production.INFO: count ==3373 [2025-02-07 19:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:10:05 - End Time 2025-02-07 19:10:05 [2025-02-07 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424422', 'tblTempUsageDetail_20' ) start [2025-02-07 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424422', 'tblTempUsageDetail_20' ) end [2025-02-07 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424422', 'tblTempVendorCDR_20' ) start [2025-02-07 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424422', 'tblTempVendorCDR_20' ) end [2025-02-07 19:10:20] Production.INFO: ProcessCDR(1,14424422,1,1,2) [2025-02-07 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424422', 'tblTempUsageDetail_20' ) start [2025-02-07 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424422', 'tblTempUsageDetail_20' ) end [2025-02-07 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:10:23] Production.INFO: ==6607== Releasing lock... [2025-02-07 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:10:23] Production.INFO: 53.5 MB #Memory Used# [2025-02-07 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:11:05 [end_date_ymd] => 2025-02-07 19:11:05 [RateCDR] => 1 ) [2025-02-07 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:11:05' and `end` < '2025-02-07 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:11:18] Production.INFO: count ==3357 [2025-02-07 19:11:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:11:05 - End Time 2025-02-07 19:11:05 [2025-02-07 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424427', 'tblTempUsageDetail_20' ) start [2025-02-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424427', 'tblTempUsageDetail_20' ) end [2025-02-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424427', 'tblTempVendorCDR_20' ) start [2025-02-07 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424427', 'tblTempVendorCDR_20' ) end [2025-02-07 19:11:19] Production.INFO: ProcessCDR(1,14424427,1,1,2) [2025-02-07 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424427', 'tblTempUsageDetail_20' ) start [2025-02-07 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424427', 'tblTempUsageDetail_20' ) end [2025-02-07 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:11:24] Production.INFO: ==6700== Releasing lock... [2025-02-07 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:11:24] Production.INFO: 53.75 MB #Memory Used# [2025-02-07 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:12:05 [end_date_ymd] => 2025-02-07 19:12:05 [RateCDR] => 1 ) [2025-02-07 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:12:05' and `end` < '2025-02-07 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:12:19] Production.INFO: count ==3346 [2025-02-07 19:12:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:12:05 - End Time 2025-02-07 19:12:05 [2025-02-07 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424432', 'tblTempUsageDetail_20' ) start [2025-02-07 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424432', 'tblTempUsageDetail_20' ) end [2025-02-07 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424432', 'tblTempVendorCDR_20' ) start [2025-02-07 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424432', 'tblTempVendorCDR_20' ) end [2025-02-07 19:12:21] Production.INFO: ProcessCDR(1,14424432,1,1,2) [2025-02-07 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424432', 'tblTempUsageDetail_20' ) start [2025-02-07 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424432', 'tblTempUsageDetail_20' ) end [2025-02-07 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:12:24] Production.INFO: ==6861== Releasing lock... [2025-02-07 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:12:24] Production.INFO: 53 MB #Memory Used# [2025-02-07 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:13:06 [end_date_ymd] => 2025-02-07 19:13:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:13:06' and `end` < '2025-02-07 19: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-07 19:13:19] Production.INFO: count ==3337 [2025-02-07 19:13:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:13:06 - End Time 2025-02-07 19:13:06 [2025-02-07 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424437', 'tblTempUsageDetail_20' ) start [2025-02-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424437', 'tblTempUsageDetail_20' ) end [2025-02-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424437', 'tblTempVendorCDR_20' ) start [2025-02-07 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424437', 'tblTempVendorCDR_20' ) end [2025-02-07 19:13:20] Production.INFO: ProcessCDR(1,14424437,1,1,2) [2025-02-07 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424437', 'tblTempUsageDetail_20' ) start [2025-02-07 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424437', 'tblTempUsageDetail_20' ) end [2025-02-07 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:13:25] Production.INFO: ==6945== Releasing lock... [2025-02-07 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:13:25] Production.INFO: 53 MB #Memory Used# [2025-02-07 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:14:05 [end_date_ymd] => 2025-02-07 19:14:05 [RateCDR] => 1 ) [2025-02-07 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:14:05' and `end` < '2025-02-07 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:14:18] Production.INFO: count ==3317 [2025-02-07 19:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:14:05 - End Time 2025-02-07 19:14:05 [2025-02-07 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424442', 'tblTempUsageDetail_20' ) start [2025-02-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424442', 'tblTempUsageDetail_20' ) end [2025-02-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424442', 'tblTempVendorCDR_20' ) start [2025-02-07 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424442', 'tblTempVendorCDR_20' ) end [2025-02-07 19:14:19] Production.INFO: ProcessCDR(1,14424442,1,1,2) [2025-02-07 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424442', 'tblTempUsageDetail_20' ) start [2025-02-07 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424442', 'tblTempUsageDetail_20' ) end [2025-02-07 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:14:23] Production.INFO: ==7073== Releasing lock... [2025-02-07 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:14:23] Production.INFO: 53 MB #Memory Used# [2025-02-07 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:15:05 [end_date_ymd] => 2025-02-07 19:15:05 [RateCDR] => 1 ) [2025-02-07 19:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:15:05' and `end` < '2025-02-07 19:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:15:18] Production.INFO: count ==3315 [2025-02-07 19:15:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:15:05 - End Time 2025-02-07 19:15:05 [2025-02-07 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424447', 'tblTempUsageDetail_20' ) start [2025-02-07 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424447', 'tblTempUsageDetail_20' ) end [2025-02-07 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424447', 'tblTempVendorCDR_20' ) start [2025-02-07 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424447', 'tblTempVendorCDR_20' ) end [2025-02-07 19:15:20] Production.INFO: ProcessCDR(1,14424447,1,1,2) [2025-02-07 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424447', 'tblTempUsageDetail_20' ) start [2025-02-07 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424447', 'tblTempUsageDetail_20' ) end [2025-02-07 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:15:23] Production.INFO: ==7208== Releasing lock... [2025-02-07 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:15:23] Production.INFO: 52.75 MB #Memory Used# [2025-02-07 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:16:05 [end_date_ymd] => 2025-02-07 19:16:05 [RateCDR] => 1 ) [2025-02-07 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:16:05' and `end` < '2025-02-07 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:16:18] Production.INFO: count ==3313 [2025-02-07 19:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:16:05 - End Time 2025-02-07 19:16:05 [2025-02-07 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424452', 'tblTempUsageDetail_20' ) start [2025-02-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424452', 'tblTempUsageDetail_20' ) end [2025-02-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424452', 'tblTempVendorCDR_20' ) start [2025-02-07 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424452', 'tblTempVendorCDR_20' ) end [2025-02-07 19:16:19] Production.INFO: ProcessCDR(1,14424452,1,1,2) [2025-02-07 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424452', 'tblTempUsageDetail_20' ) start [2025-02-07 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424452', 'tblTempUsageDetail_20' ) end [2025-02-07 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:16:22] Production.INFO: ==7338== Releasing lock... [2025-02-07 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:16:22] Production.INFO: 52.75 MB #Memory Used# [2025-02-07 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:17:05 [end_date_ymd] => 2025-02-07 19:17:05 [RateCDR] => 1 ) [2025-02-07 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:17:05' and `end` < '2025-02-07 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:17:19] Production.INFO: count ==3283 [2025-02-07 19:17:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:17:05 - End Time 2025-02-07 19:17:05 [2025-02-07 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424457', 'tblTempUsageDetail_20' ) start [2025-02-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424457', 'tblTempUsageDetail_20' ) end [2025-02-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424457', 'tblTempVendorCDR_20' ) start [2025-02-07 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424457', 'tblTempVendorCDR_20' ) end [2025-02-07 19:17:20] Production.INFO: ProcessCDR(1,14424457,1,1,2) [2025-02-07 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424457', 'tblTempUsageDetail_20' ) start [2025-02-07 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424457', 'tblTempUsageDetail_20' ) end [2025-02-07 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:17:23] Production.INFO: ==7431== Releasing lock... [2025-02-07 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:17:23] Production.INFO: 53 MB #Memory Used# [2025-02-07 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:18:05 [end_date_ymd] => 2025-02-07 19:18:05 [RateCDR] => 1 ) [2025-02-07 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:18:05' and `end` < '2025-02-07 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:18:18] Production.INFO: count ==3272 [2025-02-07 19:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:18:05 - End Time 2025-02-07 19:18:05 [2025-02-07 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424461', 'tblTempUsageDetail_20' ) start [2025-02-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424461', 'tblTempUsageDetail_20' ) end [2025-02-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424461', 'tblTempVendorCDR_20' ) start [2025-02-07 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424461', 'tblTempVendorCDR_20' ) end [2025-02-07 19:18:19] Production.INFO: ProcessCDR(1,14424461,1,1,2) [2025-02-07 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424461', 'tblTempUsageDetail_20' ) start [2025-02-07 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424461', 'tblTempUsageDetail_20' ) end [2025-02-07 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:18:24] Production.INFO: ==7526== Releasing lock... [2025-02-07 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:18:24] Production.INFO: 52.5 MB #Memory Used# [2025-02-07 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:19:05 [end_date_ymd] => 2025-02-07 19:19:05 [RateCDR] => 1 ) [2025-02-07 19:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:19:05' and `end` < '2025-02-07 19:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:19:19] Production.INFO: count ==3248 [2025-02-07 19:19:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:19:05 - End Time 2025-02-07 19:19:05 [2025-02-07 19:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424467', 'tblTempUsageDetail_20' ) start [2025-02-07 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424467', 'tblTempUsageDetail_20' ) end [2025-02-07 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424467', 'tblTempVendorCDR_20' ) start [2025-02-07 19:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424467', 'tblTempVendorCDR_20' ) end [2025-02-07 19:19:20] Production.INFO: ProcessCDR(1,14424467,1,1,2) [2025-02-07 19:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424467', 'tblTempUsageDetail_20' ) start [2025-02-07 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424467', 'tblTempUsageDetail_20' ) end [2025-02-07 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:19:23] Production.INFO: ==7611== Releasing lock... [2025-02-07 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:19:23] Production.INFO: 52.5 MB #Memory Used# [2025-02-07 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:20:06 [end_date_ymd] => 2025-02-07 19:20:06 [RateCDR] => 1 ) [2025-02-07 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:20:06' and `end` < '2025-02-07 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:20:22] Production.INFO: count ==3248 [2025-02-07 19:20:23] Production.ERROR: pbx CDR StartTime 2025-02-07 16:20:06 - End Time 2025-02-07 19:20:06 [2025-02-07 19:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424473', 'tblTempUsageDetail_20' ) start [2025-02-07 19:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424473', 'tblTempUsageDetail_20' ) end [2025-02-07 19:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424473', 'tblTempVendorCDR_20' ) start [2025-02-07 19:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424473', 'tblTempVendorCDR_20' ) end [2025-02-07 19:20:23] Production.INFO: ProcessCDR(1,14424473,1,1,2) [2025-02-07 19:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424473', 'tblTempUsageDetail_20' ) start [2025-02-07 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424473', 'tblTempUsageDetail_20' ) end [2025-02-07 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:20:26] Production.INFO: ==7709== Releasing lock... [2025-02-07 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:20:26] Production.INFO: 52.75 MB #Memory Used# [2025-02-07 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:21:05 [end_date_ymd] => 2025-02-07 19:21:05 [RateCDR] => 1 ) [2025-02-07 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:21:05' and `end` < '2025-02-07 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:21:20] Production.INFO: count ==3226 [2025-02-07 19:21:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:21:05 - End Time 2025-02-07 19:21:05 [2025-02-07 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424478', 'tblTempUsageDetail_20' ) start [2025-02-07 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424478', 'tblTempUsageDetail_20' ) end [2025-02-07 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424478', 'tblTempVendorCDR_20' ) start [2025-02-07 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424478', 'tblTempVendorCDR_20' ) end [2025-02-07 19:21:21] Production.INFO: ProcessCDR(1,14424478,1,1,2) [2025-02-07 19:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424478', 'tblTempUsageDetail_20' ) start [2025-02-07 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424478', 'tblTempUsageDetail_20' ) end [2025-02-07 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:21:25] Production.INFO: ==7802== Releasing lock... [2025-02-07 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:21:25] Production.INFO: 52 MB #Memory Used# [2025-02-07 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:22:06 [end_date_ymd] => 2025-02-07 19:22:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:22:06' and `end` < '2025-02-07 19: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-07 19:22:20] Production.INFO: count ==3207 [2025-02-07 19:22:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:22:06 - End Time 2025-02-07 19:22:06 [2025-02-07 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424483', 'tblTempUsageDetail_20' ) start [2025-02-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424483', 'tblTempUsageDetail_20' ) end [2025-02-07 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424483', 'tblTempVendorCDR_20' ) start [2025-02-07 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424483', 'tblTempVendorCDR_20' ) end [2025-02-07 19:22:21] Production.INFO: ProcessCDR(1,14424483,1,1,2) [2025-02-07 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424483', 'tblTempUsageDetail_20' ) start [2025-02-07 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424483', 'tblTempUsageDetail_20' ) end [2025-02-07 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:22:24] Production.INFO: ==7890== Releasing lock... [2025-02-07 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:22:24] Production.INFO: 52 MB #Memory Used# [2025-02-07 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:23:05 [end_date_ymd] => 2025-02-07 19:23:05 [RateCDR] => 1 ) [2025-02-07 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:23:05' and `end` < '2025-02-07 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:23:18] Production.INFO: count ==3202 [2025-02-07 19:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:23:05 - End Time 2025-02-07 19:23:05 [2025-02-07 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424488', 'tblTempUsageDetail_20' ) start [2025-02-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424488', 'tblTempUsageDetail_20' ) end [2025-02-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424488', 'tblTempVendorCDR_20' ) start [2025-02-07 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424488', 'tblTempVendorCDR_20' ) end [2025-02-07 19:23:19] Production.INFO: ProcessCDR(1,14424488,1,1,2) [2025-02-07 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424488', 'tblTempUsageDetail_20' ) start [2025-02-07 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424488', 'tblTempUsageDetail_20' ) end [2025-02-07 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:23:22] Production.INFO: ==7971== Releasing lock... [2025-02-07 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:23:22] Production.INFO: 52 MB #Memory Used# [2025-02-07 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:24:05 [end_date_ymd] => 2025-02-07 19:24:05 [RateCDR] => 1 ) [2025-02-07 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:24:05' and `end` < '2025-02-07 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:24:19] Production.INFO: count ==3180 [2025-02-07 19:24:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:24:05 - End Time 2025-02-07 19:24:05 [2025-02-07 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424493', 'tblTempUsageDetail_20' ) start [2025-02-07 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424493', 'tblTempUsageDetail_20' ) end [2025-02-07 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424493', 'tblTempVendorCDR_20' ) start [2025-02-07 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424493', 'tblTempVendorCDR_20' ) end [2025-02-07 19:24:19] Production.INFO: ProcessCDR(1,14424493,1,1,2) [2025-02-07 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424493', 'tblTempUsageDetail_20' ) start [2025-02-07 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424493', 'tblTempUsageDetail_20' ) end [2025-02-07 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:24:24] Production.INFO: ==8063== Releasing lock... [2025-02-07 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:24:24] Production.INFO: 52 MB #Memory Used# [2025-02-07 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:25:05 [end_date_ymd] => 2025-02-07 19:25:05 [RateCDR] => 1 ) [2025-02-07 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:25:05' and `end` < '2025-02-07 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:25:19] Production.INFO: count ==3159 [2025-02-07 19:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:25:05 - End Time 2025-02-07 19:25:05 [2025-02-07 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424498', 'tblTempUsageDetail_20' ) start [2025-02-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424498', 'tblTempUsageDetail_20' ) end [2025-02-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424498', 'tblTempVendorCDR_20' ) start [2025-02-07 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424498', 'tblTempVendorCDR_20' ) end [2025-02-07 19:25:19] Production.INFO: ProcessCDR(1,14424498,1,1,2) [2025-02-07 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424498', 'tblTempUsageDetail_20' ) start [2025-02-07 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424498', 'tblTempUsageDetail_20' ) end [2025-02-07 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:25:23] Production.INFO: ==8153== Releasing lock... [2025-02-07 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:25:23] Production.INFO: 51.5 MB #Memory Used# [2025-02-07 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:26:05 [end_date_ymd] => 2025-02-07 19:26:05 [RateCDR] => 1 ) [2025-02-07 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:26:05' and `end` < '2025-02-07 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:26:19] Production.INFO: count ==3140 [2025-02-07 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:26:05 - End Time 2025-02-07 19:26:05 [2025-02-07 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424503', 'tblTempUsageDetail_20' ) start [2025-02-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424503', 'tblTempUsageDetail_20' ) end [2025-02-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424503', 'tblTempVendorCDR_20' ) start [2025-02-07 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424503', 'tblTempVendorCDR_20' ) end [2025-02-07 19:26:20] Production.INFO: ProcessCDR(1,14424503,1,1,2) [2025-02-07 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424503', 'tblTempUsageDetail_20' ) start [2025-02-07 19:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424503', 'tblTempUsageDetail_20' ) end [2025-02-07 19:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:26:25] Production.INFO: ==8257== Releasing lock... [2025-02-07 19:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:26:25] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:27:05 [end_date_ymd] => 2025-02-07 19:27:05 [RateCDR] => 1 ) [2025-02-07 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:27:05' and `end` < '2025-02-07 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:27:20] Production.INFO: count ==3139 [2025-02-07 19:27:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:27:05 - End Time 2025-02-07 19:27:05 [2025-02-07 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424508', 'tblTempUsageDetail_20' ) start [2025-02-07 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424508', 'tblTempUsageDetail_20' ) end [2025-02-07 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424508', 'tblTempVendorCDR_20' ) start [2025-02-07 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424508', 'tblTempVendorCDR_20' ) end [2025-02-07 19:27:21] Production.INFO: ProcessCDR(1,14424508,1,1,2) [2025-02-07 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424508', 'tblTempUsageDetail_20' ) start [2025-02-07 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424508', 'tblTempUsageDetail_20' ) end [2025-02-07 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:27:24] Production.INFO: ==8368== Releasing lock... [2025-02-07 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:27:24] Production.INFO: 51.5 MB #Memory Used# [2025-02-07 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:28:05 [end_date_ymd] => 2025-02-07 19:28:05 [RateCDR] => 1 ) [2025-02-07 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:28:05' and `end` < '2025-02-07 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:28:19] Production.INFO: count ==3134 [2025-02-07 19:28:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:28:05 - End Time 2025-02-07 19:28:05 [2025-02-07 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424513', 'tblTempUsageDetail_20' ) start [2025-02-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424513', 'tblTempUsageDetail_20' ) end [2025-02-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424513', 'tblTempVendorCDR_20' ) start [2025-02-07 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424513', 'tblTempVendorCDR_20' ) end [2025-02-07 19:28:20] Production.INFO: ProcessCDR(1,14424513,1,1,2) [2025-02-07 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424513', 'tblTempUsageDetail_20' ) start [2025-02-07 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424513', 'tblTempUsageDetail_20' ) end [2025-02-07 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:28:23] Production.INFO: ==8485== Releasing lock... [2025-02-07 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:28:23] Production.INFO: 52.25 MB #Memory Used# [2025-02-07 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:29:06 [end_date_ymd] => 2025-02-07 19:29:06 [RateCDR] => 1 ) [2025-02-07 19:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:29:06' and `end` < '2025-02-07 19:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:29:20] Production.INFO: count ==3122 [2025-02-07 19:29:21] Production.ERROR: pbx CDR StartTime 2025-02-07 16:29:06 - End Time 2025-02-07 19:29:06 [2025-02-07 19:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424518', 'tblTempUsageDetail_20' ) start [2025-02-07 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424518', 'tblTempUsageDetail_20' ) end [2025-02-07 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424518', 'tblTempVendorCDR_20' ) start [2025-02-07 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424518', 'tblTempVendorCDR_20' ) end [2025-02-07 19:29:21] Production.INFO: ProcessCDR(1,14424518,1,1,2) [2025-02-07 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424518', 'tblTempUsageDetail_20' ) start [2025-02-07 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424518', 'tblTempUsageDetail_20' ) end [2025-02-07 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:29:24] Production.INFO: ==8597== Releasing lock... [2025-02-07 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:29:24] Production.INFO: 51.25 MB #Memory Used# [2025-02-07 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:30:05 [end_date_ymd] => 2025-02-07 19:30:05 [RateCDR] => 1 ) [2025-02-07 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:30:05' and `end` < '2025-02-07 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:30:19] Production.INFO: count ==3123 [2025-02-07 19:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:30:05 - End Time 2025-02-07 19:30:05 [2025-02-07 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424524', 'tblTempUsageDetail_20' ) start [2025-02-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424524', 'tblTempUsageDetail_20' ) end [2025-02-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424524', 'tblTempVendorCDR_20' ) start [2025-02-07 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424524', 'tblTempVendorCDR_20' ) end [2025-02-07 19:30:20] Production.INFO: ProcessCDR(1,14424524,1,1,2) [2025-02-07 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424524', 'tblTempUsageDetail_20' ) start [2025-02-07 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424524', 'tblTempUsageDetail_20' ) end [2025-02-07 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:30:23] Production.INFO: ==8809== Releasing lock... [2025-02-07 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:30:23] Production.INFO: 52 MB #Memory Used# [2025-02-07 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:31:06 [end_date_ymd] => 2025-02-07 19:31:06 [RateCDR] => 1 ) [2025-02-07 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:31:06' and `end` < '2025-02-07 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:31:19] Production.INFO: count ==3092 [2025-02-07 19:31:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:31:06 - End Time 2025-02-07 19:31:06 [2025-02-07 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424529', 'tblTempUsageDetail_20' ) start [2025-02-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424529', 'tblTempUsageDetail_20' ) end [2025-02-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424529', 'tblTempVendorCDR_20' ) start [2025-02-07 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424529', 'tblTempVendorCDR_20' ) end [2025-02-07 19:31:20] Production.INFO: ProcessCDR(1,14424529,1,1,2) [2025-02-07 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424529', 'tblTempUsageDetail_20' ) start [2025-02-07 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424529', 'tblTempUsageDetail_20' ) end [2025-02-07 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:31:23] Production.INFO: ==8970== Releasing lock... [2025-02-07 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:31:23] Production.INFO: 52 MB #Memory Used# [2025-02-07 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:32:05 [end_date_ymd] => 2025-02-07 19:32:05 [RateCDR] => 1 ) [2025-02-07 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:32:05' and `end` < '2025-02-07 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:32:18] Production.INFO: count ==3080 [2025-02-07 19:32:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:32:05 - End Time 2025-02-07 19:32:05 [2025-02-07 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424534', 'tblTempUsageDetail_20' ) start [2025-02-07 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424534', 'tblTempUsageDetail_20' ) end [2025-02-07 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424534', 'tblTempVendorCDR_20' ) start [2025-02-07 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424534', 'tblTempVendorCDR_20' ) end [2025-02-07 19:32:19] Production.INFO: ProcessCDR(1,14424534,1,1,2) [2025-02-07 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424534', 'tblTempUsageDetail_20' ) start [2025-02-07 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424534', 'tblTempUsageDetail_20' ) end [2025-02-07 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:32:24] Production.INFO: ==9074== Releasing lock... [2025-02-07 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:32:24] Production.INFO: 51 MB #Memory Used# [2025-02-07 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:33:05 [end_date_ymd] => 2025-02-07 19:33:05 [RateCDR] => 1 ) [2025-02-07 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:33:05' and `end` < '2025-02-07 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:33:19] Production.INFO: count ==3076 [2025-02-07 19:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:33:05 - End Time 2025-02-07 19:33:05 [2025-02-07 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424539', 'tblTempUsageDetail_20' ) start [2025-02-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424539', 'tblTempUsageDetail_20' ) end [2025-02-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424539', 'tblTempVendorCDR_20' ) start [2025-02-07 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424539', 'tblTempVendorCDR_20' ) end [2025-02-07 19:33:20] Production.INFO: ProcessCDR(1,14424539,1,1,2) [2025-02-07 19:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424539', 'tblTempUsageDetail_20' ) start [2025-02-07 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424539', 'tblTempUsageDetail_20' ) end [2025-02-07 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:33:23] Production.INFO: ==9183== Releasing lock... [2025-02-07 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:33:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-07 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:34:05 [end_date_ymd] => 2025-02-07 19:34:05 [RateCDR] => 1 ) [2025-02-07 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:34:05' and `end` < '2025-02-07 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:34:19] Production.INFO: count ==3063 [2025-02-07 19:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:34:05 - End Time 2025-02-07 19:34:05 [2025-02-07 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424544', 'tblTempUsageDetail_20' ) start [2025-02-07 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424544', 'tblTempUsageDetail_20' ) end [2025-02-07 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424544', 'tblTempVendorCDR_20' ) start [2025-02-07 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424544', 'tblTempVendorCDR_20' ) end [2025-02-07 19:34:19] Production.INFO: ProcessCDR(1,14424544,1,1,2) [2025-02-07 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424544', 'tblTempUsageDetail_20' ) start [2025-02-07 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424544', 'tblTempUsageDetail_20' ) end [2025-02-07 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:34:24] Production.INFO: ==9292== Releasing lock... [2025-02-07 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:34:24] Production.INFO: 50.75 MB #Memory Used# [2025-02-07 19:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:35:06 [end_date_ymd] => 2025-02-07 19:35:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:35:06' and `end` < '2025-02-07 19: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-07 19:35:19] Production.INFO: count ==3031 [2025-02-07 19:35:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:35:06 - End Time 2025-02-07 19:35:06 [2025-02-07 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424549', 'tblTempUsageDetail_20' ) start [2025-02-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424549', 'tblTempUsageDetail_20' ) end [2025-02-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424549', 'tblTempVendorCDR_20' ) start [2025-02-07 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424549', 'tblTempVendorCDR_20' ) end [2025-02-07 19:35:20] Production.INFO: ProcessCDR(1,14424549,1,1,2) [2025-02-07 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424549', 'tblTempUsageDetail_20' ) start [2025-02-07 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424549', 'tblTempUsageDetail_20' ) end [2025-02-07 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:35:25] Production.INFO: ==9403== Releasing lock... [2025-02-07 19:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:35:25] Production.INFO: 51 MB #Memory Used# [2025-02-07 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:36:04 [end_date_ymd] => 2025-02-07 19:36:04 [RateCDR] => 1 ) [2025-02-07 19:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:36:04' and `end` < '2025-02-07 19:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:36:18] Production.INFO: count ==3027 [2025-02-07 19:36:18] Production.ERROR: pbx CDR StartTime 2025-02-07 16:36:04 - End Time 2025-02-07 19:36:04 [2025-02-07 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424554', 'tblTempUsageDetail_20' ) start [2025-02-07 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424554', 'tblTempUsageDetail_20' ) end [2025-02-07 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424554', 'tblTempVendorCDR_20' ) start [2025-02-07 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424554', 'tblTempVendorCDR_20' ) end [2025-02-07 19:36:19] Production.INFO: ProcessCDR(1,14424554,1,1,2) [2025-02-07 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424554', 'tblTempUsageDetail_20' ) start [2025-02-07 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424554', 'tblTempUsageDetail_20' ) end [2025-02-07 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:36:22] Production.INFO: ==9523== Releasing lock... [2025-02-07 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:36:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-07 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:37:05 [end_date_ymd] => 2025-02-07 19:37:05 [RateCDR] => 1 ) [2025-02-07 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:37:05' and `end` < '2025-02-07 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:37:20] Production.INFO: count ==3029 [2025-02-07 19:37:21] Production.ERROR: pbx CDR StartTime 2025-02-07 16:37:05 - End Time 2025-02-07 19:37:05 [2025-02-07 19:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424559', 'tblTempUsageDetail_20' ) start [2025-02-07 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424559', 'tblTempUsageDetail_20' ) end [2025-02-07 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424559', 'tblTempVendorCDR_20' ) start [2025-02-07 19:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424559', 'tblTempVendorCDR_20' ) end [2025-02-07 19:37:21] Production.INFO: ProcessCDR(1,14424559,1,1,2) [2025-02-07 19:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424559', 'tblTempUsageDetail_20' ) start [2025-02-07 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424559', 'tblTempUsageDetail_20' ) end [2025-02-07 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:37:24] Production.INFO: ==9630== Releasing lock... [2025-02-07 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:37:24] Production.INFO: 50.5 MB #Memory Used# [2025-02-07 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:38:05 [end_date_ymd] => 2025-02-07 19:38:05 [RateCDR] => 1 ) [2025-02-07 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:38:05' and `end` < '2025-02-07 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:38:18] Production.INFO: count ==3010 [2025-02-07 19:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:38:05 - End Time 2025-02-07 19:38:05 [2025-02-07 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424564', 'tblTempUsageDetail_20' ) start [2025-02-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424564', 'tblTempUsageDetail_20' ) end [2025-02-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424564', 'tblTempVendorCDR_20' ) start [2025-02-07 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424564', 'tblTempVendorCDR_20' ) end [2025-02-07 19:38:19] Production.INFO: ProcessCDR(1,14424564,1,1,2) [2025-02-07 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424564', 'tblTempUsageDetail_20' ) start [2025-02-07 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424564', 'tblTempUsageDetail_20' ) end [2025-02-07 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:38:22] Production.INFO: ==9746== Releasing lock... [2025-02-07 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:38:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-07 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:39:06 [end_date_ymd] => 2025-02-07 19:39:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:39:06' and `end` < '2025-02-07 19: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-07 19:39:20] Production.INFO: count ==3031 [2025-02-07 19:39:21] Production.ERROR: pbx CDR StartTime 2025-02-07 16:39:06 - End Time 2025-02-07 19:39:06 [2025-02-07 19:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424569', 'tblTempUsageDetail_20' ) start [2025-02-07 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424569', 'tblTempUsageDetail_20' ) end [2025-02-07 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424569', 'tblTempVendorCDR_20' ) start [2025-02-07 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424569', 'tblTempVendorCDR_20' ) end [2025-02-07 19:39:21] Production.INFO: ProcessCDR(1,14424569,1,1,2) [2025-02-07 19:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424569', 'tblTempUsageDetail_20' ) start [2025-02-07 19:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424569', 'tblTempUsageDetail_20' ) end [2025-02-07 19:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:39:26] Production.INFO: ==9860== Releasing lock... [2025-02-07 19:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:39:26] Production.INFO: 50.5 MB #Memory Used# [2025-02-07 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:40:06 [end_date_ymd] => 2025-02-07 19:40:06 [RateCDR] => 1 ) [2025-02-07 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:40:06' and `end` < '2025-02-07 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:40:22] Production.INFO: count ==3007 [2025-02-07 19:40:22] Production.ERROR: pbx CDR StartTime 2025-02-07 16:40:06 - End Time 2025-02-07 19:40:06 [2025-02-07 19:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424575', 'tblTempUsageDetail_20' ) start [2025-02-07 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424575', 'tblTempUsageDetail_20' ) end [2025-02-07 19:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424575', 'tblTempVendorCDR_20' ) start [2025-02-07 19:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424575', 'tblTempVendorCDR_20' ) end [2025-02-07 19:40:23] Production.INFO: ProcessCDR(1,14424575,1,1,2) [2025-02-07 19:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424575', 'tblTempUsageDetail_20' ) start [2025-02-07 19:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424575', 'tblTempUsageDetail_20' ) end [2025-02-07 19:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:40:26] Production.INFO: ==9969== Releasing lock... [2025-02-07 19:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:40:26] Production.INFO: 50.75 MB #Memory Used# [2025-02-07 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:41:04 [end_date_ymd] => 2025-02-07 19:41:04 [RateCDR] => 1 ) [2025-02-07 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:41:04' and `end` < '2025-02-07 19: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-07 19:41:24] Production.INFO: count ==2953 [2025-02-07 19:41:24] Production.ERROR: pbx CDR StartTime 2025-02-07 16:41:04 - End Time 2025-02-07 19:41:04 [2025-02-07 19:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424580', 'tblTempUsageDetail_20' ) start [2025-02-07 19:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424580', 'tblTempUsageDetail_20' ) end [2025-02-07 19:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424580', 'tblTempVendorCDR_20' ) start [2025-02-07 19:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424580', 'tblTempVendorCDR_20' ) end [2025-02-07 19:41:24] Production.INFO: ProcessCDR(1,14424580,1,1,2) [2025-02-07 19:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424580', 'tblTempUsageDetail_20' ) start [2025-02-07 19:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424580', 'tblTempUsageDetail_20' ) end [2025-02-07 19:41:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:41:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:41:28] Production.INFO: ==10092== Releasing lock... [2025-02-07 19:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:41:28] Production.INFO: 49.75 MB #Memory Used# [2025-02-07 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:42:05 [end_date_ymd] => 2025-02-07 19:42:05 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:42:05' and `end` < '2025-02-07 19: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-07 19:42:19] Production.INFO: count ==2948 [2025-02-07 19:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:42:05 - End Time 2025-02-07 19:42:05 [2025-02-07 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424585', 'tblTempUsageDetail_20' ) start [2025-02-07 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424585', 'tblTempUsageDetail_20' ) end [2025-02-07 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424585', 'tblTempVendorCDR_20' ) start [2025-02-07 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424585', 'tblTempVendorCDR_20' ) end [2025-02-07 19:42:19] Production.INFO: ProcessCDR(1,14424585,1,1,2) [2025-02-07 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424585', 'tblTempUsageDetail_20' ) start [2025-02-07 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424585', 'tblTempUsageDetail_20' ) end [2025-02-07 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:42:23] Production.INFO: ==10204== Releasing lock... [2025-02-07 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:42:23] Production.INFO: 50 MB #Memory Used# [2025-02-07 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:43:05 [end_date_ymd] => 2025-02-07 19:43:05 [RateCDR] => 1 ) [2025-02-07 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:43:05' and `end` < '2025-02-07 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:43:18] Production.INFO: count ==2923 [2025-02-07 19:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:43:05 - End Time 2025-02-07 19:43:05 [2025-02-07 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424590', 'tblTempUsageDetail_20' ) start [2025-02-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424590', 'tblTempUsageDetail_20' ) end [2025-02-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424590', 'tblTempVendorCDR_20' ) start [2025-02-07 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424590', 'tblTempVendorCDR_20' ) end [2025-02-07 19:43:19] Production.INFO: ProcessCDR(1,14424590,1,1,2) [2025-02-07 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424590', 'tblTempUsageDetail_20' ) start [2025-02-07 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424590', 'tblTempUsageDetail_20' ) end [2025-02-07 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:43:24] Production.INFO: ==10326== Releasing lock... [2025-02-07 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:43:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-07 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:44:06 [end_date_ymd] => 2025-02-07 19:44:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:44:06' and `end` < '2025-02-07 19: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-07 19:44:19] Production.INFO: count ==2921 [2025-02-07 19:44:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:44:06 - End Time 2025-02-07 19:44:06 [2025-02-07 19:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424595', 'tblTempUsageDetail_20' ) start [2025-02-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424595', 'tblTempUsageDetail_20' ) end [2025-02-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424595', 'tblTempVendorCDR_20' ) start [2025-02-07 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424595', 'tblTempVendorCDR_20' ) end [2025-02-07 19:44:20] Production.INFO: ProcessCDR(1,14424595,1,1,2) [2025-02-07 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424595', 'tblTempUsageDetail_20' ) start [2025-02-07 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424595', 'tblTempUsageDetail_20' ) end [2025-02-07 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:44:24] Production.INFO: ==10408== Releasing lock... [2025-02-07 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:44:24] Production.INFO: 49.75 MB #Memory Used# [2025-02-07 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:45:05 [end_date_ymd] => 2025-02-07 19:45:05 [RateCDR] => 1 ) [2025-02-07 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:45:05' and `end` < '2025-02-07 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:45:18] Production.INFO: count ==2910 [2025-02-07 19:45:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:45:05 - End Time 2025-02-07 19:45:05 [2025-02-07 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424600', 'tblTempUsageDetail_20' ) start [2025-02-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424600', 'tblTempUsageDetail_20' ) end [2025-02-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424600', 'tblTempVendorCDR_20' ) start [2025-02-07 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424600', 'tblTempVendorCDR_20' ) end [2025-02-07 19:45:19] Production.INFO: ProcessCDR(1,14424600,1,1,2) [2025-02-07 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424600', 'tblTempUsageDetail_20' ) start [2025-02-07 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424600', 'tblTempUsageDetail_20' ) end [2025-02-07 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:45:22] Production.INFO: ==10526== Releasing lock... [2025-02-07 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:45:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-07 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:46:05 [end_date_ymd] => 2025-02-07 19:46:05 [RateCDR] => 1 ) [2025-02-07 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:46:05' and `end` < '2025-02-07 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:46:19] Production.INFO: count ==2899 [2025-02-07 19:46:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:46:05 - End Time 2025-02-07 19:46:05 [2025-02-07 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424605', 'tblTempUsageDetail_20' ) start [2025-02-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424605', 'tblTempUsageDetail_20' ) end [2025-02-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424605', 'tblTempVendorCDR_20' ) start [2025-02-07 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424605', 'tblTempVendorCDR_20' ) end [2025-02-07 19:46:20] Production.INFO: ProcessCDR(1,14424605,1,1,2) [2025-02-07 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424605', 'tblTempUsageDetail_20' ) start [2025-02-07 19:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424605', 'tblTempUsageDetail_20' ) end [2025-02-07 19:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:46:23] Production.INFO: ==10611== Releasing lock... [2025-02-07 19:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:46:23] Production.INFO: 49.5 MB #Memory Used# [2025-02-07 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:47:05 [end_date_ymd] => 2025-02-07 19:47:05 [RateCDR] => 1 ) [2025-02-07 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:47:05' and `end` < '2025-02-07 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:47:18] Production.INFO: count ==2886 [2025-02-07 19:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:47:05 - End Time 2025-02-07 19:47:05 [2025-02-07 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424610', 'tblTempUsageDetail_20' ) start [2025-02-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424610', 'tblTempUsageDetail_20' ) end [2025-02-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424610', 'tblTempVendorCDR_20' ) start [2025-02-07 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424610', 'tblTempVendorCDR_20' ) end [2025-02-07 19:47:19] Production.INFO: ProcessCDR(1,14424610,1,1,2) [2025-02-07 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424610', 'tblTempUsageDetail_20' ) start [2025-02-07 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424610', 'tblTempUsageDetail_20' ) end [2025-02-07 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:47:22] Production.INFO: ==10693== Releasing lock... [2025-02-07 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:47:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-07 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:48:05 [end_date_ymd] => 2025-02-07 19:48:05 [RateCDR] => 1 ) [2025-02-07 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:48:05' and `end` < '2025-02-07 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:48:18] Production.INFO: count ==2863 [2025-02-07 19:48:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:48:05 - End Time 2025-02-07 19:48:05 [2025-02-07 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424615', 'tblTempUsageDetail_20' ) start [2025-02-07 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424615', 'tblTempUsageDetail_20' ) end [2025-02-07 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424615', 'tblTempVendorCDR_20' ) start [2025-02-07 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424615', 'tblTempVendorCDR_20' ) end [2025-02-07 19:48:19] Production.INFO: ProcessCDR(1,14424615,1,1,2) [2025-02-07 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424615', 'tblTempUsageDetail_20' ) start [2025-02-07 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424615', 'tblTempUsageDetail_20' ) end [2025-02-07 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:48:22] Production.INFO: ==10777== Releasing lock... [2025-02-07 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:48:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-07 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:49:06 [end_date_ymd] => 2025-02-07 19:49:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:49:06' and `end` < '2025-02-07 19: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-07 19:49:20] Production.INFO: count ==2827 [2025-02-07 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:49:06 - End Time 2025-02-07 19:49:06 [2025-02-07 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424620', 'tblTempUsageDetail_20' ) start [2025-02-07 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424620', 'tblTempUsageDetail_20' ) end [2025-02-07 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424620', 'tblTempVendorCDR_20' ) start [2025-02-07 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424620', 'tblTempVendorCDR_20' ) end [2025-02-07 19:49:20] Production.INFO: ProcessCDR(1,14424620,1,1,2) [2025-02-07 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424620', 'tblTempUsageDetail_20' ) start [2025-02-07 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424620', 'tblTempUsageDetail_20' ) end [2025-02-07 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:49:24] Production.INFO: ==10862== Releasing lock... [2025-02-07 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:49:24] Production.INFO: 49.25 MB #Memory Used# [2025-02-07 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:50:06 [end_date_ymd] => 2025-02-07 19:50:06 [RateCDR] => 1 ) [2025-02-07 19: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-07 16:50:06' and `end` < '2025-02-07 19: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-07 19:50:19] Production.INFO: count ==2816 [2025-02-07 19:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:50:06 - End Time 2025-02-07 19:50:06 [2025-02-07 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424626', 'tblTempUsageDetail_20' ) start [2025-02-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424626', 'tblTempUsageDetail_20' ) end [2025-02-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424626', 'tblTempVendorCDR_20' ) start [2025-02-07 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424626', 'tblTempVendorCDR_20' ) end [2025-02-07 19:50:20] Production.INFO: ProcessCDR(1,14424626,1,1,2) [2025-02-07 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424626', 'tblTempUsageDetail_20' ) start [2025-02-07 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424626', 'tblTempUsageDetail_20' ) end [2025-02-07 19:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:50:23] Production.INFO: ==10945== Releasing lock... [2025-02-07 19:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:50:23] Production.INFO: 49.25 MB #Memory Used# [2025-02-07 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:51:06 [end_date_ymd] => 2025-02-07 19:51:06 [RateCDR] => 1 ) [2025-02-07 19:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:51:06' and `end` < '2025-02-07 19:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:51:19] Production.INFO: count ==2771 [2025-02-07 19:51:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:51:06 - End Time 2025-02-07 19:51:06 [2025-02-07 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424631', 'tblTempUsageDetail_20' ) start [2025-02-07 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424631', 'tblTempUsageDetail_20' ) end [2025-02-07 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424631', 'tblTempVendorCDR_20' ) start [2025-02-07 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424631', 'tblTempVendorCDR_20' ) end [2025-02-07 19:51:20] Production.INFO: ProcessCDR(1,14424631,1,1,2) [2025-02-07 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424631', 'tblTempUsageDetail_20' ) start [2025-02-07 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424631', 'tblTempUsageDetail_20' ) end [2025-02-07 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:51:23] Production.INFO: ==11035== Releasing lock... [2025-02-07 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:51:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:52:05 [end_date_ymd] => 2025-02-07 19:52:05 [RateCDR] => 1 ) [2025-02-07 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:52:05' and `end` < '2025-02-07 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:52:20] Production.INFO: count ==2773 [2025-02-07 19:52:21] Production.ERROR: pbx CDR StartTime 2025-02-07 16:52:05 - End Time 2025-02-07 19:52:05 [2025-02-07 19:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424636', 'tblTempUsageDetail_20' ) start [2025-02-07 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424636', 'tblTempUsageDetail_20' ) end [2025-02-07 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424636', 'tblTempVendorCDR_20' ) start [2025-02-07 19:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424636', 'tblTempVendorCDR_20' ) end [2025-02-07 19:52:21] Production.INFO: ProcessCDR(1,14424636,1,1,2) [2025-02-07 19:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424636', 'tblTempUsageDetail_20' ) start [2025-02-07 19:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424636', 'tblTempUsageDetail_20' ) end [2025-02-07 19:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:52:26] Production.INFO: ==11114== Releasing lock... [2025-02-07 19:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:52:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:53:05 [end_date_ymd] => 2025-02-07 19:53:05 [RateCDR] => 1 ) [2025-02-07 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:53:05' and `end` < '2025-02-07 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:53:19] Production.INFO: count ==2766 [2025-02-07 19:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:53:05 - End Time 2025-02-07 19:53:05 [2025-02-07 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424641', 'tblTempUsageDetail_20' ) start [2025-02-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424641', 'tblTempUsageDetail_20' ) end [2025-02-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424641', 'tblTempVendorCDR_20' ) start [2025-02-07 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424641', 'tblTempVendorCDR_20' ) end [2025-02-07 19:53:19] Production.INFO: ProcessCDR(1,14424641,1,1,2) [2025-02-07 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424641', 'tblTempUsageDetail_20' ) start [2025-02-07 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424641', 'tblTempUsageDetail_20' ) end [2025-02-07 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:53:24] Production.INFO: ==11195== Releasing lock... [2025-02-07 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:53:24] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:54:04 [end_date_ymd] => 2025-02-07 19:54:04 [RateCDR] => 1 ) [2025-02-07 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:54:04' and `end` < '2025-02-07 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:54:18] Production.INFO: count ==2762 [2025-02-07 19:54:18] Production.ERROR: pbx CDR StartTime 2025-02-07 16:54:04 - End Time 2025-02-07 19:54:04 [2025-02-07 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424646', 'tblTempUsageDetail_20' ) start [2025-02-07 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424646', 'tblTempUsageDetail_20' ) end [2025-02-07 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424646', 'tblTempVendorCDR_20' ) start [2025-02-07 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424646', 'tblTempVendorCDR_20' ) end [2025-02-07 19:54:18] Production.INFO: ProcessCDR(1,14424646,1,1,2) [2025-02-07 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424646', 'tblTempUsageDetail_20' ) start [2025-02-07 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424646', 'tblTempUsageDetail_20' ) end [2025-02-07 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:54:22] Production.INFO: ==11273== Releasing lock... [2025-02-07 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:54:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:55:06 [end_date_ymd] => 2025-02-07 19:55:06 [RateCDR] => 1 ) [2025-02-07 19:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:55:06' and `end` < '2025-02-07 19:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:55:19] Production.INFO: count ==2750 [2025-02-07 19:55:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:55:06 - End Time 2025-02-07 19:55:06 [2025-02-07 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424651', 'tblTempUsageDetail_20' ) start [2025-02-07 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424651', 'tblTempUsageDetail_20' ) end [2025-02-07 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424651', 'tblTempVendorCDR_20' ) start [2025-02-07 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424651', 'tblTempVendorCDR_20' ) end [2025-02-07 19:55:20] Production.INFO: ProcessCDR(1,14424651,1,1,2) [2025-02-07 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424651', 'tblTempUsageDetail_20' ) start [2025-02-07 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424651', 'tblTempUsageDetail_20' ) end [2025-02-07 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:55:23] Production.INFO: ==11355== Releasing lock... [2025-02-07 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:55:23] Production.INFO: 48.75 MB #Memory Used# [2025-02-07 19:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:56:06 [end_date_ymd] => 2025-02-07 19:56:06 [RateCDR] => 1 ) [2025-02-07 19:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:56:06' and `end` < '2025-02-07 19:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:56:20] Production.INFO: count ==2743 [2025-02-07 19:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 16:56:06 - End Time 2025-02-07 19:56:06 [2025-02-07 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424656', 'tblTempUsageDetail_20' ) start [2025-02-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424656', 'tblTempUsageDetail_20' ) end [2025-02-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424656', 'tblTempVendorCDR_20' ) start [2025-02-07 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424656', 'tblTempVendorCDR_20' ) end [2025-02-07 19:56:20] Production.INFO: ProcessCDR(1,14424656,1,1,2) [2025-02-07 19:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424656', 'tblTempUsageDetail_20' ) start [2025-02-07 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424656', 'tblTempUsageDetail_20' ) end [2025-02-07 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:56:25] Production.INFO: ==11436== Releasing lock... [2025-02-07 19:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:56:25] Production.INFO: 48.5 MB #Memory Used# [2025-02-07 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:57:05 [end_date_ymd] => 2025-02-07 19:57:05 [RateCDR] => 1 ) [2025-02-07 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:57:05' and `end` < '2025-02-07 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:57:19] Production.INFO: count ==2739 [2025-02-07 19:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:57:05 - End Time 2025-02-07 19:57:05 [2025-02-07 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424661', 'tblTempUsageDetail_20' ) start [2025-02-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424661', 'tblTempUsageDetail_20' ) end [2025-02-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424661', 'tblTempVendorCDR_20' ) start [2025-02-07 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424661', 'tblTempVendorCDR_20' ) end [2025-02-07 19:57:19] Production.INFO: ProcessCDR(1,14424661,1,1,2) [2025-02-07 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424661', 'tblTempUsageDetail_20' ) start [2025-02-07 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424661', 'tblTempUsageDetail_20' ) end [2025-02-07 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:57:22] Production.INFO: ==11516== Releasing lock... [2025-02-07 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:57:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-07 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:58:05 [end_date_ymd] => 2025-02-07 19:58:05 [RateCDR] => 1 ) [2025-02-07 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:58:05' and `end` < '2025-02-07 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:58:19] Production.INFO: count ==2731 [2025-02-07 19:58:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:58:05 - End Time 2025-02-07 19:58:05 [2025-02-07 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424666', 'tblTempUsageDetail_20' ) start [2025-02-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424666', 'tblTempUsageDetail_20' ) end [2025-02-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424666', 'tblTempVendorCDR_20' ) start [2025-02-07 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424666', 'tblTempVendorCDR_20' ) end [2025-02-07 19:58:19] Production.INFO: ProcessCDR(1,14424666,1,1,2) [2025-02-07 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424666', 'tblTempUsageDetail_20' ) start [2025-02-07 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424666', 'tblTempUsageDetail_20' ) end [2025-02-07 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:58:22] Production.INFO: ==11595== Releasing lock... [2025-02-07 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:58:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-07 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 16:59:05 [end_date_ymd] => 2025-02-07 19:59:05 [RateCDR] => 1 ) [2025-02-07 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 16:59:05' and `end` < '2025-02-07 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 19:59:18] Production.INFO: count ==2723 [2025-02-07 19:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 16:59:05 - End Time 2025-02-07 19:59:05 [2025-02-07 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424671', 'tblTempUsageDetail_20' ) start [2025-02-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424671', 'tblTempUsageDetail_20' ) end [2025-02-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424671', 'tblTempVendorCDR_20' ) start [2025-02-07 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424671', 'tblTempVendorCDR_20' ) end [2025-02-07 19:59:19] Production.INFO: ProcessCDR(1,14424671,1,1,2) [2025-02-07 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424671', 'tblTempUsageDetail_20' ) start [2025-02-07 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424671', 'tblTempUsageDetail_20' ) end [2025-02-07 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 19:59:24] Production.INFO: ==11672== Releasing lock... [2025-02-07 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 19:59:24] Production.INFO: 48.5 MB #Memory Used# [2025-02-07 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:00:06 [end_date_ymd] => 2025-02-07 20:00:06 [RateCDR] => 1 ) [2025-02-07 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:00:06' and `end` < '2025-02-07 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:00:19] Production.INFO: count ==2707 [2025-02-07 20:00:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:00:06 - End Time 2025-02-07 20:00:06 [2025-02-07 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424677', 'tblTempUsageDetail_20' ) start [2025-02-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424677', 'tblTempUsageDetail_20' ) end [2025-02-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424677', 'tblTempVendorCDR_20' ) start [2025-02-07 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424677', 'tblTempVendorCDR_20' ) end [2025-02-07 20:00:20] Production.INFO: ProcessCDR(1,14424677,1,1,2) [2025-02-07 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424677', 'tblTempUsageDetail_20' ) start [2025-02-07 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424677', 'tblTempUsageDetail_20' ) end [2025-02-07 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:00:23] Production.INFO: ==11751== Releasing lock... [2025-02-07 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:00:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-07 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:01:05 [end_date_ymd] => 2025-02-07 20:01:05 [RateCDR] => 1 ) [2025-02-07 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:01:05' and `end` < '2025-02-07 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:01:18] Production.INFO: count ==2646 [2025-02-07 20:01:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:01:05 - End Time 2025-02-07 20:01:05 [2025-02-07 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424682', 'tblTempUsageDetail_20' ) start [2025-02-07 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424682', 'tblTempUsageDetail_20' ) end [2025-02-07 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424682', 'tblTempVendorCDR_20' ) start [2025-02-07 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424682', 'tblTempVendorCDR_20' ) end [2025-02-07 20:01:19] Production.INFO: ProcessCDR(1,14424682,1,1,2) [2025-02-07 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424682', 'tblTempUsageDetail_20' ) start [2025-02-07 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424682', 'tblTempUsageDetail_20' ) end [2025-02-07 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:01:22] Production.INFO: ==11919== Releasing lock... [2025-02-07 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:01:22] Production.INFO: 48 MB #Memory Used# [2025-02-07 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:02:05 [end_date_ymd] => 2025-02-07 20:02:05 [RateCDR] => 1 ) [2025-02-07 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:02:05' and `end` < '2025-02-07 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:02:19] Production.INFO: count ==2658 [2025-02-07 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:02:05 - End Time 2025-02-07 20:02:05 [2025-02-07 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424687', 'tblTempUsageDetail_20' ) start [2025-02-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424687', 'tblTempUsageDetail_20' ) end [2025-02-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424687', 'tblTempVendorCDR_20' ) start [2025-02-07 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424687', 'tblTempVendorCDR_20' ) end [2025-02-07 20:02:20] Production.INFO: ProcessCDR(1,14424687,1,1,2) [2025-02-07 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424687', 'tblTempUsageDetail_20' ) start [2025-02-07 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424687', 'tblTempUsageDetail_20' ) end [2025-02-07 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:02:24] Production.INFO: ==11995== Releasing lock... [2025-02-07 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:02:24] Production.INFO: 48 MB #Memory Used# [2025-02-07 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:03:05 [end_date_ymd] => 2025-02-07 20:03:05 [RateCDR] => 1 ) [2025-02-07 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:03:05' and `end` < '2025-02-07 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:03:19] Production.INFO: count ==2637 [2025-02-07 20:03:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:03:05 - End Time 2025-02-07 20:03:05 [2025-02-07 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424692', 'tblTempUsageDetail_20' ) start [2025-02-07 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424692', 'tblTempUsageDetail_20' ) end [2025-02-07 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424692', 'tblTempVendorCDR_20' ) start [2025-02-07 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424692', 'tblTempVendorCDR_20' ) end [2025-02-07 20:03:20] Production.INFO: ProcessCDR(1,14424692,1,1,2) [2025-02-07 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424692', 'tblTempUsageDetail_20' ) start [2025-02-07 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424692', 'tblTempUsageDetail_20' ) end [2025-02-07 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:03:23] Production.INFO: ==12070== Releasing lock... [2025-02-07 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:03:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:04:05 [end_date_ymd] => 2025-02-07 20:04:05 [RateCDR] => 1 ) [2025-02-07 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:04:05' and `end` < '2025-02-07 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:04:19] Production.INFO: count ==2631 [2025-02-07 20:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:04:05 - End Time 2025-02-07 20:04:05 [2025-02-07 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424697', 'tblTempUsageDetail_20' ) start [2025-02-07 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424697', 'tblTempUsageDetail_20' ) end [2025-02-07 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424697', 'tblTempVendorCDR_20' ) start [2025-02-07 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424697', 'tblTempVendorCDR_20' ) end [2025-02-07 20:04:20] Production.INFO: ProcessCDR(1,14424697,1,1,2) [2025-02-07 20:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424697', 'tblTempUsageDetail_20' ) start [2025-02-07 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424697', 'tblTempUsageDetail_20' ) end [2025-02-07 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:04:23] Production.INFO: ==12152== Releasing lock... [2025-02-07 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:04:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:05:06 [end_date_ymd] => 2025-02-07 20:05:06 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:05:06' and `end` < '2025-02-07 20: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-07 20:05:24] Production.INFO: count ==2633 [2025-02-07 20:05:25] Production.ERROR: pbx CDR StartTime 2025-02-07 17:05:06 - End Time 2025-02-07 20:05:06 [2025-02-07 20:05:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424702', 'tblTempUsageDetail_20' ) start [2025-02-07 20:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424702', 'tblTempUsageDetail_20' ) end [2025-02-07 20:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424702', 'tblTempVendorCDR_20' ) start [2025-02-07 20:05:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424702', 'tblTempVendorCDR_20' ) end [2025-02-07 20:05:25] Production.INFO: ProcessCDR(1,14424702,1,1,2) [2025-02-07 20:05:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424702', 'tblTempUsageDetail_20' ) start [2025-02-07 20:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424702', 'tblTempUsageDetail_20' ) end [2025-02-07 20:05:28] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:05:28] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:05:28] Production.INFO: ==12226== Releasing lock... [2025-02-07 20:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:05:28] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:06:05 [end_date_ymd] => 2025-02-07 20:06:05 [RateCDR] => 1 ) [2025-02-07 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:06:05' and `end` < '2025-02-07 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:06:18] Production.INFO: count ==2627 [2025-02-07 20:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:06:05 - End Time 2025-02-07 20:06:05 [2025-02-07 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424707', 'tblTempUsageDetail_20' ) start [2025-02-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424707', 'tblTempUsageDetail_20' ) end [2025-02-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424707', 'tblTempVendorCDR_20' ) start [2025-02-07 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424707', 'tblTempVendorCDR_20' ) end [2025-02-07 20:06:19] Production.INFO: ProcessCDR(1,14424707,1,1,2) [2025-02-07 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424707', 'tblTempUsageDetail_20' ) start [2025-02-07 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424707', 'tblTempUsageDetail_20' ) end [2025-02-07 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:06:22] Production.INFO: ==12299== Releasing lock... [2025-02-07 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:06:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:07:05 [end_date_ymd] => 2025-02-07 20:07:05 [RateCDR] => 1 ) [2025-02-07 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:07:05' and `end` < '2025-02-07 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:07:19] Production.INFO: count ==2628 [2025-02-07 20:07:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:07:05 - End Time 2025-02-07 20:07:05 [2025-02-07 20:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424712', 'tblTempUsageDetail_20' ) start [2025-02-07 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424712', 'tblTempUsageDetail_20' ) end [2025-02-07 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424712', 'tblTempVendorCDR_20' ) start [2025-02-07 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424712', 'tblTempVendorCDR_20' ) end [2025-02-07 20:07:20] Production.INFO: ProcessCDR(1,14424712,1,1,2) [2025-02-07 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424712', 'tblTempUsageDetail_20' ) start [2025-02-07 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424712', 'tblTempUsageDetail_20' ) end [2025-02-07 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:07:23] Production.INFO: ==12376== Releasing lock... [2025-02-07 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:07:23] Production.INFO: 47.75 MB #Memory Used# [2025-02-07 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:08:05 [end_date_ymd] => 2025-02-07 20:08:05 [RateCDR] => 1 ) [2025-02-07 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:08:05' and `end` < '2025-02-07 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:08:18] Production.INFO: count ==2598 [2025-02-07 20:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:08:05 - End Time 2025-02-07 20:08:05 [2025-02-07 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424717', 'tblTempUsageDetail_20' ) start [2025-02-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424717', 'tblTempUsageDetail_20' ) end [2025-02-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424717', 'tblTempVendorCDR_20' ) start [2025-02-07 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424717', 'tblTempVendorCDR_20' ) end [2025-02-07 20:08:19] Production.INFO: ProcessCDR(1,14424717,1,1,2) [2025-02-07 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424717', 'tblTempUsageDetail_20' ) start [2025-02-07 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424717', 'tblTempUsageDetail_20' ) end [2025-02-07 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:08:22] Production.INFO: ==12451== Releasing lock... [2025-02-07 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:08:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-07 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:09:05 [end_date_ymd] => 2025-02-07 20:09:05 [RateCDR] => 1 ) [2025-02-07 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:09:05' and `end` < '2025-02-07 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:09:19] Production.INFO: count ==2576 [2025-02-07 20:09:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:09:05 - End Time 2025-02-07 20:09:05 [2025-02-07 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424722', 'tblTempUsageDetail_20' ) start [2025-02-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424722', 'tblTempUsageDetail_20' ) end [2025-02-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424722', 'tblTempVendorCDR_20' ) start [2025-02-07 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424722', 'tblTempVendorCDR_20' ) end [2025-02-07 20:09:19] Production.INFO: ProcessCDR(1,14424722,1,1,2) [2025-02-07 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424722', 'tblTempUsageDetail_20' ) start [2025-02-07 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424722', 'tblTempUsageDetail_20' ) end [2025-02-07 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:09:22] Production.INFO: ==12526== Releasing lock... [2025-02-07 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:09:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-07 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:10:06 [end_date_ymd] => 2025-02-07 20:10:06 [RateCDR] => 1 ) [2025-02-07 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:10:06' and `end` < '2025-02-07 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:10:19] Production.INFO: count ==2577 [2025-02-07 20:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:10:06 - End Time 2025-02-07 20:10:06 [2025-02-07 20:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424728', 'tblTempUsageDetail_20' ) start [2025-02-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424728', 'tblTempUsageDetail_20' ) end [2025-02-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424728', 'tblTempVendorCDR_20' ) start [2025-02-07 20:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424728', 'tblTempVendorCDR_20' ) end [2025-02-07 20:10:20] Production.INFO: ProcessCDR(1,14424728,1,1,2) [2025-02-07 20:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424728', 'tblTempUsageDetail_20' ) start [2025-02-07 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424728', 'tblTempUsageDetail_20' ) end [2025-02-07 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:10:23] Production.INFO: ==12606== Releasing lock... [2025-02-07 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:10:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-07 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:11:05 [end_date_ymd] => 2025-02-07 20:11:05 [RateCDR] => 1 ) [2025-02-07 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:11:05' and `end` < '2025-02-07 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:11:21] Production.INFO: count ==2543 [2025-02-07 20:11:21] Production.ERROR: pbx CDR StartTime 2025-02-07 17:11:05 - End Time 2025-02-07 20:11:05 [2025-02-07 20:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424733', 'tblTempUsageDetail_20' ) start [2025-02-07 20:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424733', 'tblTempUsageDetail_20' ) end [2025-02-07 20:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424733', 'tblTempVendorCDR_20' ) start [2025-02-07 20:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424733', 'tblTempVendorCDR_20' ) end [2025-02-07 20:11:22] Production.INFO: ProcessCDR(1,14424733,1,1,2) [2025-02-07 20:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424733', 'tblTempUsageDetail_20' ) start [2025-02-07 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424733', 'tblTempUsageDetail_20' ) end [2025-02-07 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:11:25] Production.INFO: ==12686== Releasing lock... [2025-02-07 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:11:25] Production.INFO: 47 MB #Memory Used# [2025-02-07 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:12:05 [end_date_ymd] => 2025-02-07 20:12:05 [RateCDR] => 1 ) [2025-02-07 20:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:12:05' and `end` < '2025-02-07 20:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:12:19] Production.INFO: count ==2535 [2025-02-07 20:12:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:12:05 - End Time 2025-02-07 20:12:05 [2025-02-07 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424738', 'tblTempUsageDetail_20' ) start [2025-02-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424738', 'tblTempUsageDetail_20' ) end [2025-02-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424738', 'tblTempVendorCDR_20' ) start [2025-02-07 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424738', 'tblTempVendorCDR_20' ) end [2025-02-07 20:12:20] Production.INFO: ProcessCDR(1,14424738,1,1,2) [2025-02-07 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424738', 'tblTempUsageDetail_20' ) start [2025-02-07 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424738', 'tblTempUsageDetail_20' ) end [2025-02-07 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:12:23] Production.INFO: ==12759== Releasing lock... [2025-02-07 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:12:23] Production.INFO: 47 MB #Memory Used# [2025-02-07 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:13:05 [end_date_ymd] => 2025-02-07 20:13:05 [RateCDR] => 1 ) [2025-02-07 20:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:13:05' and `end` < '2025-02-07 20:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:13:18] Production.INFO: count ==2539 [2025-02-07 20:13:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:13:05 - End Time 2025-02-07 20:13:05 [2025-02-07 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424743', 'tblTempUsageDetail_20' ) start [2025-02-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424743', 'tblTempUsageDetail_20' ) end [2025-02-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424743', 'tblTempVendorCDR_20' ) start [2025-02-07 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424743', 'tblTempVendorCDR_20' ) end [2025-02-07 20:13:19] Production.INFO: ProcessCDR(1,14424743,1,1,2) [2025-02-07 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424743', 'tblTempUsageDetail_20' ) start [2025-02-07 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424743', 'tblTempUsageDetail_20' ) end [2025-02-07 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:13:22] Production.INFO: ==12832== Releasing lock... [2025-02-07 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:13:22] Production.INFO: 47 MB #Memory Used# [2025-02-07 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:14:06 [end_date_ymd] => 2025-02-07 20:14:06 [RateCDR] => 1 ) [2025-02-07 20:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:14:06' and `end` < '2025-02-07 20:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:14:19] Production.INFO: count ==2519 [2025-02-07 20:14:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:14:06 - End Time 2025-02-07 20:14:06 [2025-02-07 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424748', 'tblTempUsageDetail_20' ) start [2025-02-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424748', 'tblTempUsageDetail_20' ) end [2025-02-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424748', 'tblTempVendorCDR_20' ) start [2025-02-07 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424748', 'tblTempVendorCDR_20' ) end [2025-02-07 20:14:20] Production.INFO: ProcessCDR(1,14424748,1,1,2) [2025-02-07 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424748', 'tblTempUsageDetail_20' ) start [2025-02-07 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424748', 'tblTempUsageDetail_20' ) end [2025-02-07 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:14:24] Production.INFO: ==12905== Releasing lock... [2025-02-07 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:14:24] Production.INFO: 47 MB #Memory Used# [2025-02-07 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:15:05 [end_date_ymd] => 2025-02-07 20:15:05 [RateCDR] => 1 ) [2025-02-07 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:15:05' and `end` < '2025-02-07 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:15:19] Production.INFO: count ==2513 [2025-02-07 20:15:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:15:05 - End Time 2025-02-07 20:15:05 [2025-02-07 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424753', 'tblTempUsageDetail_20' ) start [2025-02-07 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424753', 'tblTempUsageDetail_20' ) end [2025-02-07 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424753', 'tblTempVendorCDR_20' ) start [2025-02-07 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424753', 'tblTempVendorCDR_20' ) end [2025-02-07 20:15:19] Production.INFO: ProcessCDR(1,14424753,1,1,2) [2025-02-07 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424753', 'tblTempUsageDetail_20' ) start [2025-02-07 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424753', 'tblTempUsageDetail_20' ) end [2025-02-07 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:15:24] Production.INFO: ==12985== Releasing lock... [2025-02-07 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:15:24] Production.INFO: 47 MB #Memory Used# [2025-02-07 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:16:05 [end_date_ymd] => 2025-02-07 20:16:05 [RateCDR] => 1 ) [2025-02-07 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:16:05' and `end` < '2025-02-07 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:16:19] Production.INFO: count ==2506 [2025-02-07 20:16:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:16:05 - End Time 2025-02-07 20:16:05 [2025-02-07 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424758', 'tblTempUsageDetail_20' ) start [2025-02-07 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424758', 'tblTempUsageDetail_20' ) end [2025-02-07 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424758', 'tblTempVendorCDR_20' ) start [2025-02-07 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424758', 'tblTempVendorCDR_20' ) end [2025-02-07 20:16:20] Production.INFO: ProcessCDR(1,14424758,1,1,2) [2025-02-07 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424758', 'tblTempUsageDetail_20' ) start [2025-02-07 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424758', 'tblTempUsageDetail_20' ) end [2025-02-07 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:16:23] Production.INFO: ==13099== Releasing lock... [2025-02-07 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:16:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-07 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:17:05 [end_date_ymd] => 2025-02-07 20:17:05 [RateCDR] => 1 ) [2025-02-07 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:17:05' and `end` < '2025-02-07 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:17:19] Production.INFO: count ==2510 [2025-02-07 20:17:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:17:05 - End Time 2025-02-07 20:17:05 [2025-02-07 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424763', 'tblTempUsageDetail_20' ) start [2025-02-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424763', 'tblTempUsageDetail_20' ) end [2025-02-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424763', 'tblTempVendorCDR_20' ) start [2025-02-07 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424763', 'tblTempVendorCDR_20' ) end [2025-02-07 20:17:19] Production.INFO: ProcessCDR(1,14424763,1,1,2) [2025-02-07 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424763', 'tblTempUsageDetail_20' ) start [2025-02-07 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424763', 'tblTempUsageDetail_20' ) end [2025-02-07 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:17:22] Production.INFO: ==13175== Releasing lock... [2025-02-07 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:17:22] Production.INFO: 46.75 MB #Memory Used# [2025-02-07 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:18:05 [end_date_ymd] => 2025-02-07 20:18:05 [RateCDR] => 1 ) [2025-02-07 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:18:05' and `end` < '2025-02-07 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:18:20] Production.INFO: count ==2509 [2025-02-07 20:18:21] Production.ERROR: pbx CDR StartTime 2025-02-07 17:18:05 - End Time 2025-02-07 20:18:05 [2025-02-07 20:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424768', 'tblTempUsageDetail_20' ) start [2025-02-07 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424768', 'tblTempUsageDetail_20' ) end [2025-02-07 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424768', 'tblTempVendorCDR_20' ) start [2025-02-07 20:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424768', 'tblTempVendorCDR_20' ) end [2025-02-07 20:18:21] Production.INFO: ProcessCDR(1,14424768,1,1,2) [2025-02-07 20:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424768', 'tblTempUsageDetail_20' ) start [2025-02-07 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424768', 'tblTempUsageDetail_20' ) end [2025-02-07 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:18:24] Production.INFO: ==13258== Releasing lock... [2025-02-07 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:18:24] Production.INFO: 46.75 MB #Memory Used# [2025-02-07 20:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:19:06 [end_date_ymd] => 2025-02-07 20:19:06 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:19:06' and `end` < '2025-02-07 20: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-07 20:19:19] Production.INFO: count ==2505 [2025-02-07 20:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:19:06 - End Time 2025-02-07 20:19:06 [2025-02-07 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424773', 'tblTempUsageDetail_20' ) start [2025-02-07 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424773', 'tblTempUsageDetail_20' ) end [2025-02-07 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424773', 'tblTempVendorCDR_20' ) start [2025-02-07 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424773', 'tblTempVendorCDR_20' ) end [2025-02-07 20:19:20] Production.INFO: ProcessCDR(1,14424773,1,1,2) [2025-02-07 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424773', 'tblTempUsageDetail_20' ) start [2025-02-07 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424773', 'tblTempUsageDetail_20' ) end [2025-02-07 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:19:23] Production.INFO: ==13332== Releasing lock... [2025-02-07 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:19:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-07 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:20:06 [end_date_ymd] => 2025-02-07 20:20:06 [RateCDR] => 1 ) [2025-02-07 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:20:06' and `end` < '2025-02-07 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:20:19] Production.INFO: count ==2499 [2025-02-07 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:20:06 - End Time 2025-02-07 20:20:06 [2025-02-07 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424779', 'tblTempUsageDetail_20' ) start [2025-02-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424779', 'tblTempUsageDetail_20' ) end [2025-02-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424779', 'tblTempVendorCDR_20' ) start [2025-02-07 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424779', 'tblTempVendorCDR_20' ) end [2025-02-07 20:20:20] Production.INFO: ProcessCDR(1,14424779,1,1,2) [2025-02-07 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424779', 'tblTempUsageDetail_20' ) start [2025-02-07 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424779', 'tblTempUsageDetail_20' ) end [2025-02-07 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:20:23] Production.INFO: ==13405== Releasing lock... [2025-02-07 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:20:23] Production.INFO: 46.5 MB #Memory Used# [2025-02-07 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:21:05 [end_date_ymd] => 2025-02-07 20:21:05 [RateCDR] => 1 ) [2025-02-07 20:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:21:05' and `end` < '2025-02-07 20:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:21:18] Production.INFO: count ==2420 [2025-02-07 20:21:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:21:05 - End Time 2025-02-07 20:21:05 [2025-02-07 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424784', 'tblTempUsageDetail_20' ) start [2025-02-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424784', 'tblTempUsageDetail_20' ) end [2025-02-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424784', 'tblTempVendorCDR_20' ) start [2025-02-07 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424784', 'tblTempVendorCDR_20' ) end [2025-02-07 20:21:18] Production.INFO: ProcessCDR(1,14424784,1,1,2) [2025-02-07 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424784', 'tblTempUsageDetail_20' ) start [2025-02-07 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424784', 'tblTempUsageDetail_20' ) end [2025-02-07 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:21:22] Production.INFO: ==13477== Releasing lock... [2025-02-07 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:21:22] Production.INFO: 46.25 MB #Memory Used# [2025-02-07 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:22:05 [end_date_ymd] => 2025-02-07 20:22:05 [RateCDR] => 1 ) [2025-02-07 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:22:05' and `end` < '2025-02-07 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:22:21] Production.INFO: count ==2415 [2025-02-07 20:22:21] Production.ERROR: pbx CDR StartTime 2025-02-07 17:22:05 - End Time 2025-02-07 20:22:05 [2025-02-07 20:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424789', 'tblTempUsageDetail_20' ) start [2025-02-07 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424789', 'tblTempUsageDetail_20' ) end [2025-02-07 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424789', 'tblTempVendorCDR_20' ) start [2025-02-07 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424789', 'tblTempVendorCDR_20' ) end [2025-02-07 20:22:21] Production.INFO: ProcessCDR(1,14424789,1,1,2) [2025-02-07 20:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424789', 'tblTempUsageDetail_20' ) start [2025-02-07 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424789', 'tblTempUsageDetail_20' ) end [2025-02-07 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:22:24] Production.INFO: ==13548== Releasing lock... [2025-02-07 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:22:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-07 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:23:05 [end_date_ymd] => 2025-02-07 20:23:05 [RateCDR] => 1 ) [2025-02-07 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:23:05' and `end` < '2025-02-07 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:23:19] Production.INFO: count ==2392 [2025-02-07 20:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:23:05 - End Time 2025-02-07 20:23:05 [2025-02-07 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424794', 'tblTempUsageDetail_20' ) start [2025-02-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424794', 'tblTempUsageDetail_20' ) end [2025-02-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424794', 'tblTempVendorCDR_20' ) start [2025-02-07 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424794', 'tblTempVendorCDR_20' ) end [2025-02-07 20:23:19] Production.INFO: ProcessCDR(1,14424794,1,1,2) [2025-02-07 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424794', 'tblTempUsageDetail_20' ) start [2025-02-07 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424794', 'tblTempUsageDetail_20' ) end [2025-02-07 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:23:23] Production.INFO: ==13619== Releasing lock... [2025-02-07 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:23:23] Production.INFO: 46 MB #Memory Used# [2025-02-07 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:24:05 [end_date_ymd] => 2025-02-07 20:24:05 [RateCDR] => 1 ) [2025-02-07 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:24:05' and `end` < '2025-02-07 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:24:18] Production.INFO: count ==2391 [2025-02-07 20:24:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:24:05 - End Time 2025-02-07 20:24:05 [2025-02-07 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424799', 'tblTempUsageDetail_20' ) start [2025-02-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424799', 'tblTempUsageDetail_20' ) end [2025-02-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424799', 'tblTempVendorCDR_20' ) start [2025-02-07 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424799', 'tblTempVendorCDR_20' ) end [2025-02-07 20:24:19] Production.INFO: ProcessCDR(1,14424799,1,1,2) [2025-02-07 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424799', 'tblTempUsageDetail_20' ) start [2025-02-07 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424799', 'tblTempUsageDetail_20' ) end [2025-02-07 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:24:22] Production.INFO: ==13693== Releasing lock... [2025-02-07 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:24:22] Production.INFO: 46 MB #Memory Used# [2025-02-07 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:25:05 [end_date_ymd] => 2025-02-07 20:25:05 [RateCDR] => 1 ) [2025-02-07 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:25:05' and `end` < '2025-02-07 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:25:18] Production.INFO: count ==2389 [2025-02-07 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:25:05 - End Time 2025-02-07 20:25:05 [2025-02-07 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424804', 'tblTempUsageDetail_20' ) start [2025-02-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424804', 'tblTempUsageDetail_20' ) end [2025-02-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424804', 'tblTempVendorCDR_20' ) start [2025-02-07 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424804', 'tblTempVendorCDR_20' ) end [2025-02-07 20:25:19] Production.INFO: ProcessCDR(1,14424804,1,1,2) [2025-02-07 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424804', 'tblTempUsageDetail_20' ) start [2025-02-07 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424804', 'tblTempUsageDetail_20' ) end [2025-02-07 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:25:22] Production.INFO: ==13764== Releasing lock... [2025-02-07 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:25:22] Production.INFO: 46 MB #Memory Used# [2025-02-07 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:26:05 [end_date_ymd] => 2025-02-07 20:26:05 [RateCDR] => 1 ) [2025-02-07 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:26:05' and `end` < '2025-02-07 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:26:18] Production.INFO: count ==2385 [2025-02-07 20:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:26:05 - End Time 2025-02-07 20:26:05 [2025-02-07 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424809', 'tblTempUsageDetail_20' ) start [2025-02-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424809', 'tblTempUsageDetail_20' ) end [2025-02-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424809', 'tblTempVendorCDR_20' ) start [2025-02-07 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424809', 'tblTempVendorCDR_20' ) end [2025-02-07 20:26:19] Production.INFO: ProcessCDR(1,14424809,1,1,2) [2025-02-07 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424809', 'tblTempUsageDetail_20' ) start [2025-02-07 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424809', 'tblTempUsageDetail_20' ) end [2025-02-07 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:26:22] Production.INFO: ==13837== Releasing lock... [2025-02-07 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:26:22] Production.INFO: 46 MB #Memory Used# [2025-02-07 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:27:05 [end_date_ymd] => 2025-02-07 20:27:05 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:27:05' and `end` < '2025-02-07 20: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-07 20:27:18] Production.INFO: count ==2384 [2025-02-07 20:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:27:05 - End Time 2025-02-07 20:27:05 [2025-02-07 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424814', 'tblTempUsageDetail_20' ) start [2025-02-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424814', 'tblTempUsageDetail_20' ) end [2025-02-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424814', 'tblTempVendorCDR_20' ) start [2025-02-07 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424814', 'tblTempVendorCDR_20' ) end [2025-02-07 20:27:19] Production.INFO: ProcessCDR(1,14424814,1,1,2) [2025-02-07 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424814', 'tblTempUsageDetail_20' ) start [2025-02-07 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424814', 'tblTempUsageDetail_20' ) end [2025-02-07 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:27:23] Production.INFO: ==13912== Releasing lock... [2025-02-07 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:27:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-07 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:28:05 [end_date_ymd] => 2025-02-07 20:28:05 [RateCDR] => 1 ) [2025-02-07 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:28:05' and `end` < '2025-02-07 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:28:19] Production.INFO: count ==2378 [2025-02-07 20:28:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:28:05 - End Time 2025-02-07 20:28:05 [2025-02-07 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424819', 'tblTempUsageDetail_20' ) start [2025-02-07 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424819', 'tblTempUsageDetail_20' ) end [2025-02-07 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424819', 'tblTempVendorCDR_20' ) start [2025-02-07 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424819', 'tblTempVendorCDR_20' ) end [2025-02-07 20:28:19] Production.INFO: ProcessCDR(1,14424819,1,1,2) [2025-02-07 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424819', 'tblTempUsageDetail_20' ) start [2025-02-07 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424819', 'tblTempUsageDetail_20' ) end [2025-02-07 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:28:22] Production.INFO: ==13983== Releasing lock... [2025-02-07 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:28:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-07 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:29:05 [end_date_ymd] => 2025-02-07 20:29:05 [RateCDR] => 1 ) [2025-02-07 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:29:05' and `end` < '2025-02-07 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:29:19] Production.INFO: count ==2366 [2025-02-07 20:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:29:05 - End Time 2025-02-07 20:29:05 [2025-02-07 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424824', 'tblTempUsageDetail_20' ) start [2025-02-07 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424824', 'tblTempUsageDetail_20' ) end [2025-02-07 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424824', 'tblTempVendorCDR_20' ) start [2025-02-07 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424824', 'tblTempVendorCDR_20' ) end [2025-02-07 20:29:19] Production.INFO: ProcessCDR(1,14424824,1,1,2) [2025-02-07 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424824', 'tblTempUsageDetail_20' ) start [2025-02-07 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424824', 'tblTempUsageDetail_20' ) end [2025-02-07 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:29:24] Production.INFO: ==14056== Releasing lock... [2025-02-07 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:29:24] Production.INFO: 45.5 MB #Memory Used# [2025-02-07 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:30:05 [end_date_ymd] => 2025-02-07 20:30:05 [RateCDR] => 1 ) [2025-02-07 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:30:05' and `end` < '2025-02-07 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:30:19] Production.INFO: count ==2382 [2025-02-07 20:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:30:05 - End Time 2025-02-07 20:30:05 [2025-02-07 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424830', 'tblTempUsageDetail_20' ) start [2025-02-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424830', 'tblTempUsageDetail_20' ) end [2025-02-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424830', 'tblTempVendorCDR_20' ) start [2025-02-07 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424830', 'tblTempVendorCDR_20' ) end [2025-02-07 20:30:19] Production.INFO: ProcessCDR(1,14424830,1,1,2) [2025-02-07 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424830', 'tblTempUsageDetail_20' ) start [2025-02-07 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424830', 'tblTempUsageDetail_20' ) end [2025-02-07 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:30:24] Production.INFO: ==14131== Releasing lock... [2025-02-07 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:30:24] Production.INFO: 46 MB #Memory Used# [2025-02-07 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:31:05 [end_date_ymd] => 2025-02-07 20:31:05 [RateCDR] => 1 ) [2025-02-07 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:31:05' and `end` < '2025-02-07 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:31:18] Production.INFO: count ==2323 [2025-02-07 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:31:05 - End Time 2025-02-07 20:31:05 [2025-02-07 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424835', 'tblTempUsageDetail_20' ) start [2025-02-07 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424835', 'tblTempUsageDetail_20' ) end [2025-02-07 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424835', 'tblTempVendorCDR_20' ) start [2025-02-07 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424835', 'tblTempVendorCDR_20' ) end [2025-02-07 20:31:19] Production.INFO: ProcessCDR(1,14424835,1,1,2) [2025-02-07 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424835', 'tblTempUsageDetail_20' ) start [2025-02-07 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424835', 'tblTempUsageDetail_20' ) end [2025-02-07 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:31:23] Production.INFO: ==14202== Releasing lock... [2025-02-07 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:31:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-07 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:32:06 [end_date_ymd] => 2025-02-07 20:32:06 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:32:06' and `end` < '2025-02-07 20: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-07 20:32:19] Production.INFO: count ==2305 [2025-02-07 20:32:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:32:06 - End Time 2025-02-07 20:32:06 [2025-02-07 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424840', 'tblTempUsageDetail_20' ) start [2025-02-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424840', 'tblTempUsageDetail_20' ) end [2025-02-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424840', 'tblTempVendorCDR_20' ) start [2025-02-07 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424840', 'tblTempVendorCDR_20' ) end [2025-02-07 20:32:19] Production.INFO: ProcessCDR(1,14424840,1,1,2) [2025-02-07 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424840', 'tblTempUsageDetail_20' ) start [2025-02-07 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424840', 'tblTempUsageDetail_20' ) end [2025-02-07 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:32:23] Production.INFO: ==14314== Releasing lock... [2025-02-07 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:32:23] Production.INFO: 45 MB #Memory Used# [2025-02-07 20:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:33:06 [end_date_ymd] => 2025-02-07 20:33:06 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:33:06' and `end` < '2025-02-07 20: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-07 20:33:19] Production.INFO: count ==2281 [2025-02-07 20:33:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:33:06 - End Time 2025-02-07 20:33:06 [2025-02-07 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424845', 'tblTempUsageDetail_20' ) start [2025-02-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424845', 'tblTempUsageDetail_20' ) end [2025-02-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424845', 'tblTempVendorCDR_20' ) start [2025-02-07 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424845', 'tblTempVendorCDR_20' ) end [2025-02-07 20:33:20] Production.INFO: ProcessCDR(1,14424845,1,1,2) [2025-02-07 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424845', 'tblTempUsageDetail_20' ) start [2025-02-07 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424845', 'tblTempUsageDetail_20' ) end [2025-02-07 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:33:23] Production.INFO: ==14384== Releasing lock... [2025-02-07 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:33:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-07 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:34:05 [end_date_ymd] => 2025-02-07 20:34:05 [RateCDR] => 1 ) [2025-02-07 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:34:05' and `end` < '2025-02-07 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:34:19] Production.INFO: count ==2267 [2025-02-07 20:34:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:34:05 - End Time 2025-02-07 20:34:05 [2025-02-07 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424850', 'tblTempUsageDetail_20' ) start [2025-02-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424850', 'tblTempUsageDetail_20' ) end [2025-02-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424850', 'tblTempVendorCDR_20' ) start [2025-02-07 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424850', 'tblTempVendorCDR_20' ) end [2025-02-07 20:34:19] Production.INFO: ProcessCDR(1,14424850,1,1,2) [2025-02-07 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424850', 'tblTempUsageDetail_20' ) start [2025-02-07 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424850', 'tblTempUsageDetail_20' ) end [2025-02-07 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:34:23] Production.INFO: ==14453== Releasing lock... [2025-02-07 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:34:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-07 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:35:05 [end_date_ymd] => 2025-02-07 20:35:05 [RateCDR] => 1 ) [2025-02-07 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:35:05' and `end` < '2025-02-07 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:35:20] Production.INFO: count ==2257 [2025-02-07 20:35:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:35:05 - End Time 2025-02-07 20:35:05 [2025-02-07 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424855', 'tblTempUsageDetail_20' ) start [2025-02-07 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424855', 'tblTempUsageDetail_20' ) end [2025-02-07 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424855', 'tblTempVendorCDR_20' ) start [2025-02-07 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424855', 'tblTempVendorCDR_20' ) end [2025-02-07 20:35:20] Production.INFO: ProcessCDR(1,14424855,1,1,2) [2025-02-07 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424855', 'tblTempUsageDetail_20' ) start [2025-02-07 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424855', 'tblTempUsageDetail_20' ) end [2025-02-07 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:35:24] Production.INFO: ==14530== Releasing lock... [2025-02-07 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:35:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-07 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:36:06 [end_date_ymd] => 2025-02-07 20:36:06 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:36:06' and `end` < '2025-02-07 20: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-07 20:36:19] Production.INFO: count ==2227 [2025-02-07 20:36:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:36:06 - End Time 2025-02-07 20:36:06 [2025-02-07 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424860', 'tblTempUsageDetail_20' ) start [2025-02-07 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424860', 'tblTempUsageDetail_20' ) end [2025-02-07 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424860', 'tblTempVendorCDR_20' ) start [2025-02-07 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424860', 'tblTempVendorCDR_20' ) end [2025-02-07 20:36:20] Production.INFO: ProcessCDR(1,14424860,1,1,2) [2025-02-07 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424860', 'tblTempUsageDetail_20' ) start [2025-02-07 20:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424860', 'tblTempUsageDetail_20' ) end [2025-02-07 20:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:36:24] Production.INFO: ==14603== Releasing lock... [2025-02-07 20:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:36:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-07 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:37:05 [end_date_ymd] => 2025-02-07 20:37:05 [RateCDR] => 1 ) [2025-02-07 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:37:05' and `end` < '2025-02-07 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:37:19] Production.INFO: count ==2197 [2025-02-07 20:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:37:05 - End Time 2025-02-07 20:37:05 [2025-02-07 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424865', 'tblTempUsageDetail_20' ) start [2025-02-07 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424865', 'tblTempUsageDetail_20' ) end [2025-02-07 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424865', 'tblTempVendorCDR_20' ) start [2025-02-07 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424865', 'tblTempVendorCDR_20' ) end [2025-02-07 20:37:20] Production.INFO: ProcessCDR(1,14424865,1,1,2) [2025-02-07 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424865', 'tblTempUsageDetail_20' ) start [2025-02-07 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424865', 'tblTempUsageDetail_20' ) end [2025-02-07 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:37:23] Production.INFO: ==14677== Releasing lock... [2025-02-07 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:37:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-07 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:38:06 [end_date_ymd] => 2025-02-07 20:38:06 [RateCDR] => 1 ) [2025-02-07 20:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:38:06' and `end` < '2025-02-07 20:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:38:19] Production.INFO: count ==2156 [2025-02-07 20:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:38:06 - End Time 2025-02-07 20:38:06 [2025-02-07 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424870', 'tblTempUsageDetail_20' ) start [2025-02-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424870', 'tblTempUsageDetail_20' ) end [2025-02-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424870', 'tblTempVendorCDR_20' ) start [2025-02-07 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424870', 'tblTempVendorCDR_20' ) end [2025-02-07 20:38:19] Production.INFO: ProcessCDR(1,14424870,1,1,2) [2025-02-07 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424870', 'tblTempUsageDetail_20' ) start [2025-02-07 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424870', 'tblTempUsageDetail_20' ) end [2025-02-07 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:38:22] Production.INFO: ==14754== Releasing lock... [2025-02-07 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:38:22] Production.INFO: 43.75 MB #Memory Used# [2025-02-07 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:39:05 [end_date_ymd] => 2025-02-07 20:39:05 [RateCDR] => 1 ) [2025-02-07 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:39:05' and `end` < '2025-02-07 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:39:18] Production.INFO: count ==2133 [2025-02-07 20:39:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:39:05 - End Time 2025-02-07 20:39:05 [2025-02-07 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424875', 'tblTempUsageDetail_20' ) start [2025-02-07 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424875', 'tblTempUsageDetail_20' ) end [2025-02-07 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424875', 'tblTempVendorCDR_20' ) start [2025-02-07 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424875', 'tblTempVendorCDR_20' ) end [2025-02-07 20:39:18] Production.INFO: ProcessCDR(1,14424875,1,1,2) [2025-02-07 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424875', 'tblTempUsageDetail_20' ) start [2025-02-07 20:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424875', 'tblTempUsageDetail_20' ) end [2025-02-07 20:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:39:23] Production.INFO: ==14825== Releasing lock... [2025-02-07 20:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:39:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-07 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:40:06 [end_date_ymd] => 2025-02-07 20:40:06 [RateCDR] => 1 ) [2025-02-07 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:40:06' and `end` < '2025-02-07 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:40:21] Production.INFO: count ==2121 [2025-02-07 20:40:21] Production.ERROR: pbx CDR StartTime 2025-02-07 17:40:06 - End Time 2025-02-07 20:40:06 [2025-02-07 20:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424881', 'tblTempUsageDetail_20' ) start [2025-02-07 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424881', 'tblTempUsageDetail_20' ) end [2025-02-07 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424881', 'tblTempVendorCDR_20' ) start [2025-02-07 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424881', 'tblTempVendorCDR_20' ) end [2025-02-07 20:40:21] Production.INFO: ProcessCDR(1,14424881,1,1,2) [2025-02-07 20:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424881', 'tblTempUsageDetail_20' ) start [2025-02-07 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424881', 'tblTempUsageDetail_20' ) end [2025-02-07 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:40:24] Production.INFO: ==14899== Releasing lock... [2025-02-07 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:40:24] Production.INFO: 43.5 MB #Memory Used# [2025-02-07 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:41:04 [end_date_ymd] => 2025-02-07 20:41:04 [RateCDR] => 1 ) [2025-02-07 20: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-07 17:41:04' and `end` < '2025-02-07 20: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-07 20:41:17] Production.INFO: count ==2089 [2025-02-07 20:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:41:04 - End Time 2025-02-07 20:41:04 [2025-02-07 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424886', 'tblTempUsageDetail_20' ) start [2025-02-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424886', 'tblTempUsageDetail_20' ) end [2025-02-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424886', 'tblTempVendorCDR_20' ) start [2025-02-07 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424886', 'tblTempVendorCDR_20' ) end [2025-02-07 20:41:18] Production.INFO: ProcessCDR(1,14424886,1,1,2) [2025-02-07 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424886', 'tblTempUsageDetail_20' ) start [2025-02-07 20:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424886', 'tblTempUsageDetail_20' ) end [2025-02-07 20:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:41:21] Production.INFO: ==14973== Releasing lock... [2025-02-07 20:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:41:21] Production.INFO: 43.25 MB #Memory Used# [2025-02-07 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:42:05 [end_date_ymd] => 2025-02-07 20:42:05 [RateCDR] => 1 ) [2025-02-07 20:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:42:05' and `end` < '2025-02-07 20:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:42:18] Production.INFO: count ==2073 [2025-02-07 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:42:05 - End Time 2025-02-07 20:42:05 [2025-02-07 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424891', 'tblTempUsageDetail_20' ) start [2025-02-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424891', 'tblTempUsageDetail_20' ) end [2025-02-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424891', 'tblTempVendorCDR_20' ) start [2025-02-07 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424891', 'tblTempVendorCDR_20' ) end [2025-02-07 20:42:19] Production.INFO: ProcessCDR(1,14424891,1,1,2) [2025-02-07 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424891', 'tblTempUsageDetail_20' ) start [2025-02-07 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424891', 'tblTempUsageDetail_20' ) end [2025-02-07 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:42:22] Production.INFO: ==15045== Releasing lock... [2025-02-07 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:42:22] Production.INFO: 43.25 MB #Memory Used# [2025-02-07 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:43:05 [end_date_ymd] => 2025-02-07 20:43:05 [RateCDR] => 1 ) [2025-02-07 20:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:43:05' and `end` < '2025-02-07 20:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:43:18] Production.INFO: count ==2066 [2025-02-07 20:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:43:05 - End Time 2025-02-07 20:43:05 [2025-02-07 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424896', 'tblTempUsageDetail_20' ) start [2025-02-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424896', 'tblTempUsageDetail_20' ) end [2025-02-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424896', 'tblTempVendorCDR_20' ) start [2025-02-07 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424896', 'tblTempVendorCDR_20' ) end [2025-02-07 20:43:19] Production.INFO: ProcessCDR(1,14424896,1,1,2) [2025-02-07 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424896', 'tblTempUsageDetail_20' ) start [2025-02-07 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424896', 'tblTempUsageDetail_20' ) end [2025-02-07 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:43:22] Production.INFO: ==15117== Releasing lock... [2025-02-07 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:43:22] Production.INFO: 43 MB #Memory Used# [2025-02-07 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:44:05 [end_date_ymd] => 2025-02-07 20:44:05 [RateCDR] => 1 ) [2025-02-07 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:44:05' and `end` < '2025-02-07 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:44:20] Production.INFO: count ==2061 [2025-02-07 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:44:05 - End Time 2025-02-07 20:44:05 [2025-02-07 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424901', 'tblTempUsageDetail_20' ) start [2025-02-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424901', 'tblTempUsageDetail_20' ) end [2025-02-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424901', 'tblTempVendorCDR_20' ) start [2025-02-07 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424901', 'tblTempVendorCDR_20' ) end [2025-02-07 20:44:20] Production.INFO: ProcessCDR(1,14424901,1,1,2) [2025-02-07 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424901', 'tblTempUsageDetail_20' ) start [2025-02-07 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424901', 'tblTempUsageDetail_20' ) end [2025-02-07 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:44:23] Production.INFO: ==15189== Releasing lock... [2025-02-07 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:44:23] Production.INFO: 43 MB #Memory Used# [2025-02-07 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:45:05 [end_date_ymd] => 2025-02-07 20:45:05 [RateCDR] => 1 ) [2025-02-07 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:45:05' and `end` < '2025-02-07 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:45:18] Production.INFO: count ==2056 [2025-02-07 20:45:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:45:05 - End Time 2025-02-07 20:45:05 [2025-02-07 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424906', 'tblTempUsageDetail_20' ) start [2025-02-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424906', 'tblTempUsageDetail_20' ) end [2025-02-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424906', 'tblTempVendorCDR_20' ) start [2025-02-07 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424906', 'tblTempVendorCDR_20' ) end [2025-02-07 20:45:18] Production.INFO: ProcessCDR(1,14424906,1,1,2) [2025-02-07 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424906', 'tblTempUsageDetail_20' ) start [2025-02-07 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424906', 'tblTempUsageDetail_20' ) end [2025-02-07 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:45:21] Production.INFO: ==15259== Releasing lock... [2025-02-07 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:45:21] Production.INFO: 43 MB #Memory Used# [2025-02-07 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:46:05 [end_date_ymd] => 2025-02-07 20:46:05 [RateCDR] => 1 ) [2025-02-07 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:46:05' and `end` < '2025-02-07 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:46:18] Production.INFO: count ==2048 [2025-02-07 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:46:05 - End Time 2025-02-07 20:46:05 [2025-02-07 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424911', 'tblTempUsageDetail_20' ) start [2025-02-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424911', 'tblTempUsageDetail_20' ) end [2025-02-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424911', 'tblTempVendorCDR_20' ) start [2025-02-07 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424911', 'tblTempVendorCDR_20' ) end [2025-02-07 20:46:19] Production.INFO: ProcessCDR(1,14424911,1,1,2) [2025-02-07 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424911', 'tblTempUsageDetail_20' ) start [2025-02-07 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424911', 'tblTempUsageDetail_20' ) end [2025-02-07 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:46:22] Production.INFO: ==15328== Releasing lock... [2025-02-07 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:46:22] Production.INFO: 43 MB #Memory Used# [2025-02-07 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:47:05 [end_date_ymd] => 2025-02-07 20:47:05 [RateCDR] => 1 ) [2025-02-07 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:47:05' and `end` < '2025-02-07 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:47:18] Production.INFO: count ==2044 [2025-02-07 20:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:47:05 - End Time 2025-02-07 20:47:05 [2025-02-07 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424915', 'tblTempUsageDetail_20' ) start [2025-02-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424915', 'tblTempUsageDetail_20' ) end [2025-02-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424915', 'tblTempVendorCDR_20' ) start [2025-02-07 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424915', 'tblTempVendorCDR_20' ) end [2025-02-07 20:47:19] Production.INFO: ProcessCDR(1,14424915,1,1,2) [2025-02-07 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424915', 'tblTempUsageDetail_20' ) start [2025-02-07 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424915', 'tblTempUsageDetail_20' ) end [2025-02-07 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:47:22] Production.INFO: ==15439== Releasing lock... [2025-02-07 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:47:22] Production.INFO: 43 MB #Memory Used# [2025-02-07 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:48:05 [end_date_ymd] => 2025-02-07 20:48:05 [RateCDR] => 1 ) [2025-02-07 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:48:05' and `end` < '2025-02-07 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:48:19] Production.INFO: count ==2039 [2025-02-07 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:48:05 - End Time 2025-02-07 20:48:05 [2025-02-07 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424921', 'tblTempUsageDetail_20' ) start [2025-02-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424921', 'tblTempUsageDetail_20' ) end [2025-02-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424921', 'tblTempVendorCDR_20' ) start [2025-02-07 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424921', 'tblTempVendorCDR_20' ) end [2025-02-07 20:48:19] Production.INFO: ProcessCDR(1,14424921,1,1,2) [2025-02-07 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424921', 'tblTempUsageDetail_20' ) start [2025-02-07 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424921', 'tblTempUsageDetail_20' ) end [2025-02-07 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:48:22] Production.INFO: ==15511== Releasing lock... [2025-02-07 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:48:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-07 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:49:05 [end_date_ymd] => 2025-02-07 20:49:05 [RateCDR] => 1 ) [2025-02-07 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:49:05' and `end` < '2025-02-07 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:49:19] Production.INFO: count ==2038 [2025-02-07 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:49:05 - End Time 2025-02-07 20:49:05 [2025-02-07 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424926', 'tblTempUsageDetail_20' ) start [2025-02-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424926', 'tblTempUsageDetail_20' ) end [2025-02-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424926', 'tblTempVendorCDR_20' ) start [2025-02-07 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424926', 'tblTempVendorCDR_20' ) end [2025-02-07 20:49:19] Production.INFO: ProcessCDR(1,14424926,1,1,2) [2025-02-07 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424926', 'tblTempUsageDetail_20' ) start [2025-02-07 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424926', 'tblTempUsageDetail_20' ) end [2025-02-07 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:49:24] Production.INFO: ==15586== Releasing lock... [2025-02-07 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:49:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-07 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:50:06 [end_date_ymd] => 2025-02-07 20:50:06 [RateCDR] => 1 ) [2025-02-07 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:50:06' and `end` < '2025-02-07 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:50:20] Production.INFO: count ==2035 [2025-02-07 20:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:50:06 - End Time 2025-02-07 20:50:06 [2025-02-07 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424932', 'tblTempUsageDetail_20' ) start [2025-02-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424932', 'tblTempUsageDetail_20' ) end [2025-02-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424932', 'tblTempVendorCDR_20' ) start [2025-02-07 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424932', 'tblTempVendorCDR_20' ) end [2025-02-07 20:50:20] Production.INFO: ProcessCDR(1,14424932,1,1,2) [2025-02-07 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424932', 'tblTempUsageDetail_20' ) start [2025-02-07 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424932', 'tblTempUsageDetail_20' ) end [2025-02-07 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:50:24] Production.INFO: ==15659== Releasing lock... [2025-02-07 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:50:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-07 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:51:05 [end_date_ymd] => 2025-02-07 20:51:05 [RateCDR] => 1 ) [2025-02-07 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:51:05' and `end` < '2025-02-07 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:51:18] Production.INFO: count ==1958 [2025-02-07 20:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:51:05 - End Time 2025-02-07 20:51:05 [2025-02-07 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424937', 'tblTempUsageDetail_20' ) start [2025-02-07 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424937', 'tblTempUsageDetail_20' ) end [2025-02-07 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424937', 'tblTempVendorCDR_20' ) start [2025-02-07 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424937', 'tblTempVendorCDR_20' ) end [2025-02-07 20:51:19] Production.INFO: ProcessCDR(1,14424937,1,1,2) [2025-02-07 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424937', 'tblTempUsageDetail_20' ) start [2025-02-07 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424937', 'tblTempUsageDetail_20' ) end [2025-02-07 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:51:21] Production.INFO: ==15742== Releasing lock... [2025-02-07 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:51:21] Production.INFO: 42.25 MB #Memory Used# [2025-02-07 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:52:05 [end_date_ymd] => 2025-02-07 20:52:05 [RateCDR] => 1 ) [2025-02-07 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:52:05' and `end` < '2025-02-07 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:52:19] Production.INFO: count ==1952 [2025-02-07 20:52:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:52:05 - End Time 2025-02-07 20:52:05 [2025-02-07 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424942', 'tblTempUsageDetail_20' ) start [2025-02-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424942', 'tblTempUsageDetail_20' ) end [2025-02-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424942', 'tblTempVendorCDR_20' ) start [2025-02-07 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424942', 'tblTempVendorCDR_20' ) end [2025-02-07 20:52:19] Production.INFO: ProcessCDR(1,14424942,1,1,2) [2025-02-07 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424942', 'tblTempUsageDetail_20' ) start [2025-02-07 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424942', 'tblTempUsageDetail_20' ) end [2025-02-07 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:52:22] Production.INFO: ==15814== Releasing lock... [2025-02-07 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:52:22] Production.INFO: 42.25 MB #Memory Used# [2025-02-07 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:53:05 [end_date_ymd] => 2025-02-07 20:53:05 [RateCDR] => 1 ) [2025-02-07 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:53:05' and `end` < '2025-02-07 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:53:18] Production.INFO: count ==1946 [2025-02-07 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:53:05 - End Time 2025-02-07 20:53:05 [2025-02-07 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424947', 'tblTempUsageDetail_20' ) start [2025-02-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424947', 'tblTempUsageDetail_20' ) end [2025-02-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424947', 'tblTempVendorCDR_20' ) start [2025-02-07 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424947', 'tblTempVendorCDR_20' ) end [2025-02-07 20:53:19] Production.INFO: ProcessCDR(1,14424947,1,1,2) [2025-02-07 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424947', 'tblTempUsageDetail_20' ) start [2025-02-07 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424947', 'tblTempUsageDetail_20' ) end [2025-02-07 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:53:23] Production.INFO: ==15886== Releasing lock... [2025-02-07 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:53:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-07 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:54:05 [end_date_ymd] => 2025-02-07 20:54:05 [RateCDR] => 1 ) [2025-02-07 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:54:05' and `end` < '2025-02-07 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:54:18] Production.INFO: count ==1941 [2025-02-07 20:54:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:54:05 - End Time 2025-02-07 20:54:05 [2025-02-07 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424952', 'tblTempUsageDetail_20' ) start [2025-02-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424952', 'tblTempUsageDetail_20' ) end [2025-02-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424952', 'tblTempVendorCDR_20' ) start [2025-02-07 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424952', 'tblTempVendorCDR_20' ) end [2025-02-07 20:54:18] Production.INFO: ProcessCDR(1,14424952,1,1,2) [2025-02-07 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424952', 'tblTempUsageDetail_20' ) start [2025-02-07 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424952', 'tblTempUsageDetail_20' ) end [2025-02-07 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:54:23] Production.INFO: ==15960== Releasing lock... [2025-02-07 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:54:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-07 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:55:06 [end_date_ymd] => 2025-02-07 20:55:06 [RateCDR] => 1 ) [2025-02-07 20:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:55:06' and `end` < '2025-02-07 20:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:55:19] Production.INFO: count ==1935 [2025-02-07 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:55:06 - End Time 2025-02-07 20:55:06 [2025-02-07 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424957', 'tblTempUsageDetail_20' ) start [2025-02-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424957', 'tblTempUsageDetail_20' ) end [2025-02-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424957', 'tblTempVendorCDR_20' ) start [2025-02-07 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424957', 'tblTempVendorCDR_20' ) end [2025-02-07 20:55:19] Production.INFO: ProcessCDR(1,14424957,1,1,2) [2025-02-07 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424957', 'tblTempUsageDetail_20' ) start [2025-02-07 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424957', 'tblTempUsageDetail_20' ) end [2025-02-07 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:55:22] Production.INFO: ==16032== Releasing lock... [2025-02-07 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:55:22] Production.INFO: 42 MB #Memory Used# [2025-02-07 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:56:05 [end_date_ymd] => 2025-02-07 20:56:05 [RateCDR] => 1 ) [2025-02-07 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:56:05' and `end` < '2025-02-07 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:56:18] Production.INFO: count ==1920 [2025-02-07 20:56:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:56:05 - End Time 2025-02-07 20:56:05 [2025-02-07 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424962', 'tblTempUsageDetail_20' ) start [2025-02-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424962', 'tblTempUsageDetail_20' ) end [2025-02-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424962', 'tblTempVendorCDR_20' ) start [2025-02-07 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424962', 'tblTempVendorCDR_20' ) end [2025-02-07 20:56:18] Production.INFO: ProcessCDR(1,14424962,1,1,2) [2025-02-07 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424962', 'tblTempUsageDetail_20' ) start [2025-02-07 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424962', 'tblTempUsageDetail_20' ) end [2025-02-07 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:56:23] Production.INFO: ==16103== Releasing lock... [2025-02-07 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:56:23] Production.INFO: 42 MB #Memory Used# [2025-02-07 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:57:06 [end_date_ymd] => 2025-02-07 20:57:06 [RateCDR] => 1 ) [2025-02-07 20:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:57:06' and `end` < '2025-02-07 20:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:57:19] Production.INFO: count ==1914 [2025-02-07 20:57:20] Production.ERROR: pbx CDR StartTime 2025-02-07 17:57:06 - End Time 2025-02-07 20:57:06 [2025-02-07 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424967', 'tblTempUsageDetail_20' ) start [2025-02-07 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424967', 'tblTempUsageDetail_20' ) end [2025-02-07 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424967', 'tblTempVendorCDR_20' ) start [2025-02-07 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424967', 'tblTempVendorCDR_20' ) end [2025-02-07 20:57:20] Production.INFO: ProcessCDR(1,14424967,1,1,2) [2025-02-07 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424967', 'tblTempUsageDetail_20' ) start [2025-02-07 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424967', 'tblTempUsageDetail_20' ) end [2025-02-07 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:57:23] Production.INFO: ==16175== Releasing lock... [2025-02-07 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:57:23] Production.INFO: 42.25 MB #Memory Used# [2025-02-07 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:58:05 [end_date_ymd] => 2025-02-07 20:58:05 [RateCDR] => 1 ) [2025-02-07 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:58:05' and `end` < '2025-02-07 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:58:18] Production.INFO: count ==1903 [2025-02-07 20:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 17:58:05 - End Time 2025-02-07 20:58:05 [2025-02-07 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424972', 'tblTempUsageDetail_20' ) start [2025-02-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424972', 'tblTempUsageDetail_20' ) end [2025-02-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424972', 'tblTempVendorCDR_20' ) start [2025-02-07 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424972', 'tblTempVendorCDR_20' ) end [2025-02-07 20:58:18] Production.INFO: ProcessCDR(1,14424972,1,1,2) [2025-02-07 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424972', 'tblTempUsageDetail_20' ) start [2025-02-07 20:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424972', 'tblTempUsageDetail_20' ) end [2025-02-07 20:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:58:21] Production.INFO: ==16246== Releasing lock... [2025-02-07 20:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:58:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 17:59:05 [end_date_ymd] => 2025-02-07 20:59:05 [RateCDR] => 1 ) [2025-02-07 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 17:59:05' and `end` < '2025-02-07 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 20:59:18] Production.INFO: count ==1890 [2025-02-07 20:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 17:59:05 - End Time 2025-02-07 20:59:05 [2025-02-07 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424977', 'tblTempUsageDetail_20' ) start [2025-02-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424977', 'tblTempUsageDetail_20' ) end [2025-02-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424977', 'tblTempVendorCDR_20' ) start [2025-02-07 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424977', 'tblTempVendorCDR_20' ) end [2025-02-07 20:59:19] Production.INFO: ProcessCDR(1,14424977,1,1,2) [2025-02-07 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424977', 'tblTempUsageDetail_20' ) start [2025-02-07 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424977', 'tblTempUsageDetail_20' ) end [2025-02-07 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 20:59:22] Production.INFO: ==16320== Releasing lock... [2025-02-07 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 20:59:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:00:05 [end_date_ymd] => 2025-02-07 21:00:05 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:00:05' and `end` < '2025-02-07 21: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-07 21:00:18] Production.INFO: count ==1879 [2025-02-07 21:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:00:05 - End Time 2025-02-07 21:00:05 [2025-02-07 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424982', 'tblTempUsageDetail_20' ) start [2025-02-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424982', 'tblTempUsageDetail_20' ) end [2025-02-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424982', 'tblTempVendorCDR_20' ) start [2025-02-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424982', 'tblTempVendorCDR_20' ) end [2025-02-07 21:00:19] Production.INFO: ProcessCDR(1,14424982,1,1,2) [2025-02-07 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424982', 'tblTempUsageDetail_20' ) start [2025-02-07 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424982', 'tblTempUsageDetail_20' ) end [2025-02-07 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:00:22] Production.INFO: ==16394== Releasing lock... [2025-02-07 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:00:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-07 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:01:05 [end_date_ymd] => 2025-02-07 21:01:05 [RateCDR] => 1 ) [2025-02-07 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:01:05' and `end` < '2025-02-07 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:01:19] Production.INFO: count ==1838 [2025-02-07 21:01:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:01:05 - End Time 2025-02-07 21:01:05 [2025-02-07 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424988', 'tblTempUsageDetail_20' ) start [2025-02-07 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424988', 'tblTempUsageDetail_20' ) end [2025-02-07 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424988', 'tblTempVendorCDR_20' ) start [2025-02-07 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424988', 'tblTempVendorCDR_20' ) end [2025-02-07 21:01:20] Production.INFO: ProcessCDR(1,14424988,1,1,2) [2025-02-07 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424988', 'tblTempUsageDetail_20' ) start [2025-02-07 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424988', 'tblTempUsageDetail_20' ) end [2025-02-07 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:01:23] Production.INFO: ==16478== Releasing lock... [2025-02-07 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:01:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:02:05 [end_date_ymd] => 2025-02-07 21:02:05 [RateCDR] => 1 ) [2025-02-07 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:02:05' and `end` < '2025-02-07 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:02:18] Production.INFO: count ==1837 [2025-02-07 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:02:05 - End Time 2025-02-07 21:02:05 [2025-02-07 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424993', 'tblTempUsageDetail_20' ) start [2025-02-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424993', 'tblTempUsageDetail_20' ) end [2025-02-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424993', 'tblTempVendorCDR_20' ) start [2025-02-07 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424993', 'tblTempVendorCDR_20' ) end [2025-02-07 21:02:19] Production.INFO: ProcessCDR(1,14424993,1,1,2) [2025-02-07 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424993', 'tblTempUsageDetail_20' ) start [2025-02-07 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424993', 'tblTempUsageDetail_20' ) end [2025-02-07 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:02:22] Production.INFO: ==16552== Releasing lock... [2025-02-07 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:02:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:03:05 [end_date_ymd] => 2025-02-07 21:03:05 [RateCDR] => 1 ) [2025-02-07 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:03:05' and `end` < '2025-02-07 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:03:18] Production.INFO: count ==1836 [2025-02-07 21:03:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:03:05 - End Time 2025-02-07 21:03:05 [2025-02-07 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424998', 'tblTempUsageDetail_20' ) start [2025-02-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14424998', 'tblTempUsageDetail_20' ) end [2025-02-07 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424998', 'tblTempVendorCDR_20' ) start [2025-02-07 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14424998', 'tblTempVendorCDR_20' ) end [2025-02-07 21:03:19] Production.INFO: ProcessCDR(1,14424998,1,1,2) [2025-02-07 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14424998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14424998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14424998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14424998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424998', 'tblTempUsageDetail_20' ) start [2025-02-07 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14424998', 'tblTempUsageDetail_20' ) end [2025-02-07 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:03:22] Production.INFO: ==16663== Releasing lock... [2025-02-07 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:03:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:04:06 [end_date_ymd] => 2025-02-07 21:04:06 [RateCDR] => 1 ) [2025-02-07 21:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:04:06' and `end` < '2025-02-07 21:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:04:19] Production.INFO: count ==1833 [2025-02-07 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:04:06 - End Time 2025-02-07 21:04:06 [2025-02-07 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425003', 'tblTempUsageDetail_20' ) start [2025-02-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425003', 'tblTempUsageDetail_20' ) end [2025-02-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425003', 'tblTempVendorCDR_20' ) start [2025-02-07 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425003', 'tblTempVendorCDR_20' ) end [2025-02-07 21:04:19] Production.INFO: ProcessCDR(1,14425003,1,1,2) [2025-02-07 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425003', 'tblTempUsageDetail_20' ) start [2025-02-07 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425003', 'tblTempUsageDetail_20' ) end [2025-02-07 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:04:22] Production.INFO: ==16737== Releasing lock... [2025-02-07 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:05:05 [end_date_ymd] => 2025-02-07 21:05:05 [RateCDR] => 1 ) [2025-02-07 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:05:05' and `end` < '2025-02-07 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:05:20] Production.INFO: count ==1823 [2025-02-07 21:05:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:05:05 - End Time 2025-02-07 21:05:05 [2025-02-07 21:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425008', 'tblTempUsageDetail_20' ) start [2025-02-07 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425008', 'tblTempUsageDetail_20' ) end [2025-02-07 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425008', 'tblTempVendorCDR_20' ) start [2025-02-07 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425008', 'tblTempVendorCDR_20' ) end [2025-02-07 21:05:20] Production.INFO: ProcessCDR(1,14425008,1,1,2) [2025-02-07 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425008', 'tblTempUsageDetail_20' ) start [2025-02-07 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425008', 'tblTempUsageDetail_20' ) end [2025-02-07 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:05:23] Production.INFO: ==16812== Releasing lock... [2025-02-07 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:05:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:06:05 [end_date_ymd] => 2025-02-07 21:06:05 [RateCDR] => 1 ) [2025-02-07 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:06:05' and `end` < '2025-02-07 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:06:19] Production.INFO: count ==1820 [2025-02-07 21:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:06:05 - End Time 2025-02-07 21:06:05 [2025-02-07 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425013', 'tblTempUsageDetail_20' ) start [2025-02-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425013', 'tblTempUsageDetail_20' ) end [2025-02-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425013', 'tblTempVendorCDR_20' ) start [2025-02-07 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425013', 'tblTempVendorCDR_20' ) end [2025-02-07 21:06:19] Production.INFO: ProcessCDR(1,14425013,1,1,2) [2025-02-07 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425013', 'tblTempUsageDetail_20' ) start [2025-02-07 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425013', 'tblTempUsageDetail_20' ) end [2025-02-07 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:06:22] Production.INFO: ==16881== Releasing lock... [2025-02-07 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:06:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:07:05 [end_date_ymd] => 2025-02-07 21:07:05 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:07:05' and `end` < '2025-02-07 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:07:20] Production.INFO: count ==1820 [2025-02-07 21:07:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:07:05 - End Time 2025-02-07 21:07:05 [2025-02-07 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425018', 'tblTempUsageDetail_20' ) start [2025-02-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425018', 'tblTempUsageDetail_20' ) end [2025-02-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425018', 'tblTempVendorCDR_20' ) start [2025-02-07 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425018', 'tblTempVendorCDR_20' ) end [2025-02-07 21:07:20] Production.INFO: ProcessCDR(1,14425018,1,1,2) [2025-02-07 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425018', 'tblTempUsageDetail_20' ) start [2025-02-07 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425018', 'tblTempUsageDetail_20' ) end [2025-02-07 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:07:23] Production.INFO: ==16953== Releasing lock... [2025-02-07 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:08:04 [end_date_ymd] => 2025-02-07 21:08:04 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:08:04' and `end` < '2025-02-07 21: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-07 21:08:18] Production.INFO: count ==1816 [2025-02-07 21:08:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:08:04 - End Time 2025-02-07 21:08:04 [2025-02-07 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425023', 'tblTempUsageDetail_20' ) start [2025-02-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425023', 'tblTempUsageDetail_20' ) end [2025-02-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425023', 'tblTempVendorCDR_20' ) start [2025-02-07 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425023', 'tblTempVendorCDR_20' ) end [2025-02-07 21:08:18] Production.INFO: ProcessCDR(1,14425023,1,1,2) [2025-02-07 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425023', 'tblTempUsageDetail_20' ) start [2025-02-07 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425023', 'tblTempUsageDetail_20' ) end [2025-02-07 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:08:21] Production.INFO: ==17025== Releasing lock... [2025-02-07 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:08:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:09:05 [end_date_ymd] => 2025-02-07 21:09:05 [RateCDR] => 1 ) [2025-02-07 21:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:09:05' and `end` < '2025-02-07 21:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:09:18] Production.INFO: count ==1814 [2025-02-07 21:09:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:09:05 - End Time 2025-02-07 21:09:05 [2025-02-07 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425028', 'tblTempUsageDetail_20' ) start [2025-02-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425028', 'tblTempUsageDetail_20' ) end [2025-02-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425028', 'tblTempVendorCDR_20' ) start [2025-02-07 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425028', 'tblTempVendorCDR_20' ) end [2025-02-07 21:09:18] Production.INFO: ProcessCDR(1,14425028,1,1,2) [2025-02-07 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425028', 'tblTempUsageDetail_20' ) start [2025-02-07 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425028', 'tblTempUsageDetail_20' ) end [2025-02-07 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:09:21] Production.INFO: ==17098== Releasing lock... [2025-02-07 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:09:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-07 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:10:06 [end_date_ymd] => 2025-02-07 21:10:06 [RateCDR] => 1 ) [2025-02-07 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:10:06' and `end` < '2025-02-07 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:10:20] Production.INFO: count ==1807 [2025-02-07 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:10:06 - End Time 2025-02-07 21:10:06 [2025-02-07 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425034', 'tblTempUsageDetail_20' ) start [2025-02-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425034', 'tblTempUsageDetail_20' ) end [2025-02-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425034', 'tblTempVendorCDR_20' ) start [2025-02-07 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425034', 'tblTempVendorCDR_20' ) end [2025-02-07 21:10:20] Production.INFO: ProcessCDR(1,14425034,1,1,2) [2025-02-07 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425034', 'tblTempUsageDetail_20' ) start [2025-02-07 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425034', 'tblTempUsageDetail_20' ) end [2025-02-07 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:10:23] Production.INFO: ==17170== Releasing lock... [2025-02-07 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:10:23] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:11:05 [end_date_ymd] => 2025-02-07 21:11:05 [RateCDR] => 1 ) [2025-02-07 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:11:05' and `end` < '2025-02-07 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:11:18] Production.INFO: count ==1800 [2025-02-07 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:11:05 - End Time 2025-02-07 21:11:05 [2025-02-07 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425039', 'tblTempUsageDetail_20' ) start [2025-02-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425039', 'tblTempUsageDetail_20' ) end [2025-02-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425039', 'tblTempVendorCDR_20' ) start [2025-02-07 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425039', 'tblTempVendorCDR_20' ) end [2025-02-07 21:11:19] Production.INFO: ProcessCDR(1,14425039,1,1,2) [2025-02-07 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425039', 'tblTempUsageDetail_20' ) start [2025-02-07 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425039', 'tblTempUsageDetail_20' ) end [2025-02-07 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:11:22] Production.INFO: ==17244== Releasing lock... [2025-02-07 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:11:22] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:12:05 [end_date_ymd] => 2025-02-07 21:12:05 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:12:05' and `end` < '2025-02-07 21: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-07 21:12:19] Production.INFO: count ==1792 [2025-02-07 21:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:12:05 - End Time 2025-02-07 21:12:05 [2025-02-07 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425044', 'tblTempUsageDetail_20' ) start [2025-02-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425044', 'tblTempUsageDetail_20' ) end [2025-02-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425044', 'tblTempVendorCDR_20' ) start [2025-02-07 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425044', 'tblTempVendorCDR_20' ) end [2025-02-07 21:12:19] Production.INFO: ProcessCDR(1,14425044,1,1,2) [2025-02-07 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425044', 'tblTempUsageDetail_20' ) start [2025-02-07 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425044', 'tblTempUsageDetail_20' ) end [2025-02-07 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:12:24] Production.INFO: ==17315== Releasing lock... [2025-02-07 21:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:12:24] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:13:05 [end_date_ymd] => 2025-02-07 21:13:05 [RateCDR] => 1 ) [2025-02-07 21:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:13:05' and `end` < '2025-02-07 21:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:13:18] Production.INFO: count ==1792 [2025-02-07 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:13:05 - End Time 2025-02-07 21:13:05 [2025-02-07 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425049', 'tblTempUsageDetail_20' ) start [2025-02-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425049', 'tblTempUsageDetail_20' ) end [2025-02-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425049', 'tblTempVendorCDR_20' ) start [2025-02-07 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425049', 'tblTempVendorCDR_20' ) end [2025-02-07 21:13:19] Production.INFO: ProcessCDR(1,14425049,1,1,2) [2025-02-07 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425049', 'tblTempUsageDetail_20' ) start [2025-02-07 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425049', 'tblTempUsageDetail_20' ) end [2025-02-07 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:13:22] Production.INFO: ==17391== Releasing lock... [2025-02-07 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:13:22] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:14:05 [end_date_ymd] => 2025-02-07 21:14:05 [RateCDR] => 1 ) [2025-02-07 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:14:05' and `end` < '2025-02-07 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:14:19] Production.INFO: count ==1789 [2025-02-07 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:14:05 - End Time 2025-02-07 21:14:05 [2025-02-07 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425054', 'tblTempUsageDetail_20' ) start [2025-02-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425054', 'tblTempUsageDetail_20' ) end [2025-02-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425054', 'tblTempVendorCDR_20' ) start [2025-02-07 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425054', 'tblTempVendorCDR_20' ) end [2025-02-07 21:14:19] Production.INFO: ProcessCDR(1,14425054,1,1,2) [2025-02-07 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425054', 'tblTempUsageDetail_20' ) start [2025-02-07 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425054', 'tblTempUsageDetail_20' ) end [2025-02-07 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:14:22] Production.INFO: ==17465== Releasing lock... [2025-02-07 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:14:22] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:15:05 [end_date_ymd] => 2025-02-07 21:15:05 [RateCDR] => 1 ) [2025-02-07 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:15:05' and `end` < '2025-02-07 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:15:18] Production.INFO: count ==1784 [2025-02-07 21:15:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:15:05 - End Time 2025-02-07 21:15:05 [2025-02-07 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425059', 'tblTempUsageDetail_20' ) start [2025-02-07 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425059', 'tblTempUsageDetail_20' ) end [2025-02-07 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425059', 'tblTempVendorCDR_20' ) start [2025-02-07 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425059', 'tblTempVendorCDR_20' ) end [2025-02-07 21:15:18] Production.INFO: ProcessCDR(1,14425059,1,1,2) [2025-02-07 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425059', 'tblTempUsageDetail_20' ) start [2025-02-07 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425059', 'tblTempUsageDetail_20' ) end [2025-02-07 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:15:23] Production.INFO: ==17539== Releasing lock... [2025-02-07 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:15:23] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:16:05 [end_date_ymd] => 2025-02-07 21:16:05 [RateCDR] => 1 ) [2025-02-07 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:16:05' and `end` < '2025-02-07 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:16:19] Production.INFO: count ==1781 [2025-02-07 21:16:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:16:05 - End Time 2025-02-07 21:16:05 [2025-02-07 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425064', 'tblTempUsageDetail_20' ) start [2025-02-07 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425064', 'tblTempUsageDetail_20' ) end [2025-02-07 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425064', 'tblTempVendorCDR_20' ) start [2025-02-07 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425064', 'tblTempVendorCDR_20' ) end [2025-02-07 21:16:19] Production.INFO: ProcessCDR(1,14425064,1,1,2) [2025-02-07 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425064', 'tblTempUsageDetail_20' ) start [2025-02-07 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425064', 'tblTempUsageDetail_20' ) end [2025-02-07 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:16:23] Production.INFO: ==17608== Releasing lock... [2025-02-07 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:16:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-07 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:17:04 [end_date_ymd] => 2025-02-07 21:17:04 [RateCDR] => 1 ) [2025-02-07 21:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:17:04' and `end` < '2025-02-07 21:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:17:17] Production.INFO: count ==1771 [2025-02-07 21:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:17:04 - End Time 2025-02-07 21:17:04 [2025-02-07 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425069', 'tblTempUsageDetail_20' ) start [2025-02-07 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425069', 'tblTempUsageDetail_20' ) end [2025-02-07 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425069', 'tblTempVendorCDR_20' ) start [2025-02-07 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425069', 'tblTempVendorCDR_20' ) end [2025-02-07 21:17:18] Production.INFO: ProcessCDR(1,14425069,1,1,2) [2025-02-07 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425069', 'tblTempUsageDetail_20' ) start [2025-02-07 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425069', 'tblTempUsageDetail_20' ) end [2025-02-07 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:17:21] Production.INFO: ==17679== Releasing lock... [2025-02-07 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:17:21] Production.INFO: 40.75 MB #Memory Used# [2025-02-07 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:18:05 [end_date_ymd] => 2025-02-07 21:18:05 [RateCDR] => 1 ) [2025-02-07 21:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:18:05' and `end` < '2025-02-07 21:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:18:18] Production.INFO: count ==1766 [2025-02-07 21:18:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:18:05 - End Time 2025-02-07 21:18:05 [2025-02-07 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425074', 'tblTempUsageDetail_20' ) start [2025-02-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425074', 'tblTempUsageDetail_20' ) end [2025-02-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425074', 'tblTempVendorCDR_20' ) start [2025-02-07 21:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425074', 'tblTempVendorCDR_20' ) end [2025-02-07 21:18:19] Production.INFO: ProcessCDR(1,14425074,1,1,2) [2025-02-07 21:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425074', 'tblTempUsageDetail_20' ) start [2025-02-07 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425074', 'tblTempUsageDetail_20' ) end [2025-02-07 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:18:22] Production.INFO: ==17791== Releasing lock... [2025-02-07 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:18:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-07 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:19:05 [end_date_ymd] => 2025-02-07 21:19:05 [RateCDR] => 1 ) [2025-02-07 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:19:05' and `end` < '2025-02-07 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:19:18] Production.INFO: count ==1770 [2025-02-07 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:19:05 - End Time 2025-02-07 21:19:05 [2025-02-07 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425079', 'tblTempUsageDetail_20' ) start [2025-02-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425079', 'tblTempUsageDetail_20' ) end [2025-02-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425079', 'tblTempVendorCDR_20' ) start [2025-02-07 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425079', 'tblTempVendorCDR_20' ) end [2025-02-07 21:19:19] Production.INFO: ProcessCDR(1,14425079,1,1,2) [2025-02-07 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425079', 'tblTempUsageDetail_20' ) start [2025-02-07 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425079', 'tblTempUsageDetail_20' ) end [2025-02-07 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:19:22] Production.INFO: ==17863== Releasing lock... [2025-02-07 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:19:22] Production.INFO: 40.75 MB #Memory Used# [2025-02-07 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:20:06 [end_date_ymd] => 2025-02-07 21:20:06 [RateCDR] => 1 ) [2025-02-07 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:20:06' and `end` < '2025-02-07 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:20:19] Production.INFO: count ==1769 [2025-02-07 21:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:20:06 - End Time 2025-02-07 21:20:06 [2025-02-07 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425085', 'tblTempUsageDetail_20' ) start [2025-02-07 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425085', 'tblTempUsageDetail_20' ) end [2025-02-07 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425085', 'tblTempVendorCDR_20' ) start [2025-02-07 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425085', 'tblTempVendorCDR_20' ) end [2025-02-07 21:20:19] Production.INFO: ProcessCDR(1,14425085,1,1,2) [2025-02-07 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425085', 'tblTempUsageDetail_20' ) start [2025-02-07 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425085', 'tblTempUsageDetail_20' ) end [2025-02-07 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:20:23] Production.INFO: ==17936== Releasing lock... [2025-02-07 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:20:23] Production.INFO: 40.75 MB #Memory Used# [2025-02-07 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:21:06 [end_date_ymd] => 2025-02-07 21:21:06 [RateCDR] => 1 ) [2025-02-07 21:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:21:06' and `end` < '2025-02-07 21:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:21:19] Production.INFO: count ==1727 [2025-02-07 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:21:06 - End Time 2025-02-07 21:21:06 [2025-02-07 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425090', 'tblTempUsageDetail_20' ) start [2025-02-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425090', 'tblTempUsageDetail_20' ) end [2025-02-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425090', 'tblTempVendorCDR_20' ) start [2025-02-07 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425090', 'tblTempVendorCDR_20' ) end [2025-02-07 21:21:19] Production.INFO: ProcessCDR(1,14425090,1,1,2) [2025-02-07 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425090', 'tblTempUsageDetail_20' ) start [2025-02-07 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425090', 'tblTempUsageDetail_20' ) end [2025-02-07 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:21:22] Production.INFO: ==18011== Releasing lock... [2025-02-07 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:22:06 [end_date_ymd] => 2025-02-07 21:22:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:22:06' and `end` < '2025-02-07 21: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-07 21:22:19] Production.INFO: count ==1727 [2025-02-07 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:22:06 - End Time 2025-02-07 21:22:06 [2025-02-07 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425095', 'tblTempUsageDetail_20' ) start [2025-02-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425095', 'tblTempUsageDetail_20' ) end [2025-02-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425095', 'tblTempVendorCDR_20' ) start [2025-02-07 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425095', 'tblTempVendorCDR_20' ) end [2025-02-07 21:22:19] Production.INFO: ProcessCDR(1,14425095,1,1,2) [2025-02-07 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425095', 'tblTempUsageDetail_20' ) start [2025-02-07 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425095', 'tblTempUsageDetail_20' ) end [2025-02-07 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:22:22] Production.INFO: ==18081== Releasing lock... [2025-02-07 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:22:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:23:04 [end_date_ymd] => 2025-02-07 21:23:04 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:23:04' and `end` < '2025-02-07 21: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-07 21:23:18] Production.INFO: count ==1730 [2025-02-07 21:23:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:23:04 - End Time 2025-02-07 21:23:04 [2025-02-07 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425100', 'tblTempUsageDetail_20' ) start [2025-02-07 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425100', 'tblTempUsageDetail_20' ) end [2025-02-07 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425100', 'tblTempVendorCDR_20' ) start [2025-02-07 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425100', 'tblTempVendorCDR_20' ) end [2025-02-07 21:23:18] Production.INFO: ProcessCDR(1,14425100,1,1,2) [2025-02-07 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425100', 'tblTempUsageDetail_20' ) start [2025-02-07 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425100', 'tblTempUsageDetail_20' ) end [2025-02-07 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:23:23] Production.INFO: ==18157== Releasing lock... [2025-02-07 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:23:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:24:06 [end_date_ymd] => 2025-02-07 21:24:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:24:06' and `end` < '2025-02-07 21: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-07 21:24:19] Production.INFO: count ==1729 [2025-02-07 21:24:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:24:06 - End Time 2025-02-07 21:24:06 [2025-02-07 21:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425105', 'tblTempUsageDetail_20' ) start [2025-02-07 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425105', 'tblTempUsageDetail_20' ) end [2025-02-07 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425105', 'tblTempVendorCDR_20' ) start [2025-02-07 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425105', 'tblTempVendorCDR_20' ) end [2025-02-07 21:24:20] Production.INFO: ProcessCDR(1,14425105,1,1,2) [2025-02-07 21:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425105', 'tblTempUsageDetail_20' ) start [2025-02-07 21:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425105', 'tblTempUsageDetail_20' ) end [2025-02-07 21:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:24:24] Production.INFO: ==18228== Releasing lock... [2025-02-07 21:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:24:24] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:25:05 [end_date_ymd] => 2025-02-07 21:25:05 [RateCDR] => 1 ) [2025-02-07 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:25:05' and `end` < '2025-02-07 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:25:19] Production.INFO: count ==1738 [2025-02-07 21:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:25:05 - End Time 2025-02-07 21:25:05 [2025-02-07 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425110', 'tblTempUsageDetail_20' ) start [2025-02-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425110', 'tblTempUsageDetail_20' ) end [2025-02-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425110', 'tblTempVendorCDR_20' ) start [2025-02-07 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425110', 'tblTempVendorCDR_20' ) end [2025-02-07 21:25:19] Production.INFO: ProcessCDR(1,14425110,1,1,2) [2025-02-07 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425110', 'tblTempUsageDetail_20' ) start [2025-02-07 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425110', 'tblTempUsageDetail_20' ) end [2025-02-07 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:25:23] Production.INFO: ==18298== Releasing lock... [2025-02-07 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:25:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:26:05 [end_date_ymd] => 2025-02-07 21:26:05 [RateCDR] => 1 ) [2025-02-07 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:26:05' and `end` < '2025-02-07 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:26:19] Production.INFO: count ==1737 [2025-02-07 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:26:05 - End Time 2025-02-07 21:26:05 [2025-02-07 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425115', 'tblTempUsageDetail_20' ) start [2025-02-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425115', 'tblTempUsageDetail_20' ) end [2025-02-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425115', 'tblTempVendorCDR_20' ) start [2025-02-07 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425115', 'tblTempVendorCDR_20' ) end [2025-02-07 21:26:19] Production.INFO: ProcessCDR(1,14425115,1,1,2) [2025-02-07 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425115', 'tblTempUsageDetail_20' ) start [2025-02-07 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425115', 'tblTempUsageDetail_20' ) end [2025-02-07 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:26:23] Production.INFO: ==18370== Releasing lock... [2025-02-07 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:26:23] Production.INFO: 41 MB #Memory Used# [2025-02-07 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:27:06 [end_date_ymd] => 2025-02-07 21:27:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:27:06' and `end` < '2025-02-07 21: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-07 21:27:19] Production.INFO: count ==1738 [2025-02-07 21:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:27:06 - End Time 2025-02-07 21:27:06 [2025-02-07 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425120', 'tblTempUsageDetail_20' ) start [2025-02-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425120', 'tblTempUsageDetail_20' ) end [2025-02-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425120', 'tblTempVendorCDR_20' ) start [2025-02-07 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425120', 'tblTempVendorCDR_20' ) end [2025-02-07 21:27:19] Production.INFO: ProcessCDR(1,14425120,1,1,2) [2025-02-07 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425120', 'tblTempUsageDetail_20' ) start [2025-02-07 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425120', 'tblTempUsageDetail_20' ) end [2025-02-07 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:27:22] Production.INFO: ==18442== Releasing lock... [2025-02-07 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:27:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:28:05 [end_date_ymd] => 2025-02-07 21:28:05 [RateCDR] => 1 ) [2025-02-07 21:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:28:05' and `end` < '2025-02-07 21:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:28:18] Production.INFO: count ==1723 [2025-02-07 21:28:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:28:05 - End Time 2025-02-07 21:28:05 [2025-02-07 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425125', 'tblTempUsageDetail_20' ) start [2025-02-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425125', 'tblTempUsageDetail_20' ) end [2025-02-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425125', 'tblTempVendorCDR_20' ) start [2025-02-07 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425125', 'tblTempVendorCDR_20' ) end [2025-02-07 21:28:18] Production.INFO: ProcessCDR(1,14425125,1,1,2) [2025-02-07 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425125', 'tblTempUsageDetail_20' ) start [2025-02-07 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425125', 'tblTempUsageDetail_20' ) end [2025-02-07 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:28:23] Production.INFO: ==18511== Releasing lock... [2025-02-07 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:28:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:29:06 [end_date_ymd] => 2025-02-07 21:29:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:29:06' and `end` < '2025-02-07 21: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-07 21:29:20] Production.INFO: count ==1721 [2025-02-07 21:29:21] Production.ERROR: pbx CDR StartTime 2025-02-07 18:29:06 - End Time 2025-02-07 21:29:06 [2025-02-07 21:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425130', 'tblTempUsageDetail_20' ) start [2025-02-07 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425130', 'tblTempUsageDetail_20' ) end [2025-02-07 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425130', 'tblTempVendorCDR_20' ) start [2025-02-07 21:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425130', 'tblTempVendorCDR_20' ) end [2025-02-07 21:29:21] Production.INFO: ProcessCDR(1,14425130,1,1,2) [2025-02-07 21:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425130', 'tblTempUsageDetail_20' ) start [2025-02-07 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425130', 'tblTempUsageDetail_20' ) end [2025-02-07 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:29:23] Production.INFO: ==18581== Releasing lock... [2025-02-07 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:29:23] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:30:06 [end_date_ymd] => 2025-02-07 21:30:06 [RateCDR] => 1 ) [2025-02-07 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:30:06' and `end` < '2025-02-07 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:30:19] Production.INFO: count ==1716 [2025-02-07 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:30:06 - End Time 2025-02-07 21:30:06 [2025-02-07 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425135', 'tblTempUsageDetail_20' ) start [2025-02-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425135', 'tblTempUsageDetail_20' ) end [2025-02-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425135', 'tblTempVendorCDR_20' ) start [2025-02-07 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425135', 'tblTempVendorCDR_20' ) end [2025-02-07 21:30:19] Production.INFO: ProcessCDR(1,14425135,1,1,2) [2025-02-07 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425135', 'tblTempUsageDetail_20' ) start [2025-02-07 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425135', 'tblTempUsageDetail_20' ) end [2025-02-07 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:30:22] Production.INFO: ==18656== Releasing lock... [2025-02-07 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:30:22] Production.INFO: 40.5 MB #Memory Used# [2025-02-07 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:31:05 [end_date_ymd] => 2025-02-07 21:31:05 [RateCDR] => 1 ) [2025-02-07 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:31:05' and `end` < '2025-02-07 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:31:19] Production.INFO: count ==1639 [2025-02-07 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:31:05 - End Time 2025-02-07 21:31:05 [2025-02-07 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425141', 'tblTempUsageDetail_20' ) start [2025-02-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425141', 'tblTempUsageDetail_20' ) end [2025-02-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425141', 'tblTempVendorCDR_20' ) start [2025-02-07 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425141', 'tblTempVendorCDR_20' ) end [2025-02-07 21:31:19] Production.INFO: ProcessCDR(1,14425141,1,1,2) [2025-02-07 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425141', 'tblTempUsageDetail_20' ) start [2025-02-07 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425141', 'tblTempUsageDetail_20' ) end [2025-02-07 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:31:23] Production.INFO: ==18731== Releasing lock... [2025-02-07 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:31:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:32:05 [end_date_ymd] => 2025-02-07 21:32:05 [RateCDR] => 1 ) [2025-02-07 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:32:05' and `end` < '2025-02-07 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:32:19] Production.INFO: count ==1629 [2025-02-07 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:32:05 - End Time 2025-02-07 21:32:05 [2025-02-07 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425146', 'tblTempUsageDetail_20' ) start [2025-02-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425146', 'tblTempUsageDetail_20' ) end [2025-02-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425146', 'tblTempVendorCDR_20' ) start [2025-02-07 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425146', 'tblTempVendorCDR_20' ) end [2025-02-07 21:32:19] Production.INFO: ProcessCDR(1,14425146,1,1,2) [2025-02-07 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425146', 'tblTempUsageDetail_20' ) start [2025-02-07 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425146', 'tblTempUsageDetail_20' ) end [2025-02-07 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:32:23] Production.INFO: ==18805== Releasing lock... [2025-02-07 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:32:23] Production.INFO: 40 MB #Memory Used# [2025-02-07 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:33:06 [end_date_ymd] => 2025-02-07 21:33:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:33:06' and `end` < '2025-02-07 21: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-07 21:33:19] Production.INFO: count ==1628 [2025-02-07 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:33:06 - End Time 2025-02-07 21:33:06 [2025-02-07 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425151', 'tblTempUsageDetail_20' ) start [2025-02-07 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425151', 'tblTempUsageDetail_20' ) end [2025-02-07 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425151', 'tblTempVendorCDR_20' ) start [2025-02-07 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425151', 'tblTempVendorCDR_20' ) end [2025-02-07 21:33:19] Production.INFO: ProcessCDR(1,14425151,1,1,2) [2025-02-07 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425151', 'tblTempUsageDetail_20' ) start [2025-02-07 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425151', 'tblTempUsageDetail_20' ) end [2025-02-07 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:33:22] Production.INFO: ==18921== Releasing lock... [2025-02-07 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:34:04 [end_date_ymd] => 2025-02-07 21:34:04 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:34:04' and `end` < '2025-02-07 21: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-07 21:34:18] Production.INFO: count ==1621 [2025-02-07 21:34:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:34:04 - End Time 2025-02-07 21:34:04 [2025-02-07 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425156', 'tblTempUsageDetail_20' ) start [2025-02-07 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425156', 'tblTempUsageDetail_20' ) end [2025-02-07 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425156', 'tblTempVendorCDR_20' ) start [2025-02-07 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425156', 'tblTempVendorCDR_20' ) end [2025-02-07 21:34:18] Production.INFO: ProcessCDR(1,14425156,1,1,2) [2025-02-07 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425156', 'tblTempUsageDetail_20' ) start [2025-02-07 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425156', 'tblTempUsageDetail_20' ) end [2025-02-07 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:34:21] Production.INFO: ==18991== Releasing lock... [2025-02-07 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:34:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:35:05 [end_date_ymd] => 2025-02-07 21:35:05 [RateCDR] => 1 ) [2025-02-07 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:35:05' and `end` < '2025-02-07 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:35:18] Production.INFO: count ==1613 [2025-02-07 21:35:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:35:05 - End Time 2025-02-07 21:35:05 [2025-02-07 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425161', 'tblTempUsageDetail_20' ) start [2025-02-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425161', 'tblTempUsageDetail_20' ) end [2025-02-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425161', 'tblTempVendorCDR_20' ) start [2025-02-07 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425161', 'tblTempVendorCDR_20' ) end [2025-02-07 21:35:18] Production.INFO: ProcessCDR(1,14425161,1,1,2) [2025-02-07 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425161', 'tblTempUsageDetail_20' ) start [2025-02-07 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425161', 'tblTempUsageDetail_20' ) end [2025-02-07 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:35:21] Production.INFO: ==19063== Releasing lock... [2025-02-07 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:35:21] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:36:05 [end_date_ymd] => 2025-02-07 21:36:05 [RateCDR] => 1 ) [2025-02-07 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:36:05' and `end` < '2025-02-07 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:36:19] Production.INFO: count ==1614 [2025-02-07 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:36:05 - End Time 2025-02-07 21:36:05 [2025-02-07 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425166', 'tblTempUsageDetail_20' ) start [2025-02-07 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425166', 'tblTempUsageDetail_20' ) end [2025-02-07 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425166', 'tblTempVendorCDR_20' ) start [2025-02-07 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425166', 'tblTempVendorCDR_20' ) end [2025-02-07 21:36:19] Production.INFO: ProcessCDR(1,14425166,1,1,2) [2025-02-07 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425166', 'tblTempUsageDetail_20' ) start [2025-02-07 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425166', 'tblTempUsageDetail_20' ) end [2025-02-07 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:36:22] Production.INFO: ==19139== Releasing lock... [2025-02-07 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:36:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:37:06 [end_date_ymd] => 2025-02-07 21:37:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:37:06' and `end` < '2025-02-07 21: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-07 21:37:20] Production.INFO: count ==1605 [2025-02-07 21:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:37:06 - End Time 2025-02-07 21:37:06 [2025-02-07 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425171', 'tblTempUsageDetail_20' ) start [2025-02-07 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425171', 'tblTempUsageDetail_20' ) end [2025-02-07 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425171', 'tblTempVendorCDR_20' ) start [2025-02-07 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425171', 'tblTempVendorCDR_20' ) end [2025-02-07 21:37:21] Production.INFO: ProcessCDR(1,14425171,1,1,2) [2025-02-07 21:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425171', 'tblTempUsageDetail_20' ) start [2025-02-07 21:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425171', 'tblTempUsageDetail_20' ) end [2025-02-07 21:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:37:24] Production.INFO: ==19213== Releasing lock... [2025-02-07 21:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:37:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:38:05 [end_date_ymd] => 2025-02-07 21:38:05 [RateCDR] => 1 ) [2025-02-07 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:38:05' and `end` < '2025-02-07 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:38:18] Production.INFO: count ==1595 [2025-02-07 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:38:05 - End Time 2025-02-07 21:38:05 [2025-02-07 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425176', 'tblTempUsageDetail_20' ) start [2025-02-07 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425176', 'tblTempUsageDetail_20' ) end [2025-02-07 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425176', 'tblTempVendorCDR_20' ) start [2025-02-07 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425176', 'tblTempVendorCDR_20' ) end [2025-02-07 21:38:18] Production.INFO: ProcessCDR(1,14425176,1,1,2) [2025-02-07 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425176', 'tblTempUsageDetail_20' ) start [2025-02-07 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425176', 'tblTempUsageDetail_20' ) end [2025-02-07 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:38:22] Production.INFO: ==19284== Releasing lock... [2025-02-07 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:38:22] Production.INFO: 39.75 MB #Memory Used# [2025-02-07 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:39:06 [end_date_ymd] => 2025-02-07 21:39:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:39:06' and `end` < '2025-02-07 21: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-07 21:39:19] Production.INFO: count ==1595 [2025-02-07 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:39:06 - End Time 2025-02-07 21:39:06 [2025-02-07 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425181', 'tblTempUsageDetail_20' ) start [2025-02-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425181', 'tblTempUsageDetail_20' ) end [2025-02-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425181', 'tblTempVendorCDR_20' ) start [2025-02-07 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425181', 'tblTempVendorCDR_20' ) end [2025-02-07 21:39:19] Production.INFO: ProcessCDR(1,14425181,1,1,2) [2025-02-07 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425181', 'tblTempUsageDetail_20' ) start [2025-02-07 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425181', 'tblTempUsageDetail_20' ) end [2025-02-07 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:39:24] Production.INFO: ==19356== Releasing lock... [2025-02-07 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:39:24] Production.INFO: 39.5 MB #Memory Used# [2025-02-07 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:40:05 [end_date_ymd] => 2025-02-07 21:40:05 [RateCDR] => 1 ) [2025-02-07 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:40:05' and `end` < '2025-02-07 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:40:18] Production.INFO: count ==1591 [2025-02-07 21:40:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:40:05 - End Time 2025-02-07 21:40:05 [2025-02-07 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425186', 'tblTempUsageDetail_20' ) start [2025-02-07 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425186', 'tblTempUsageDetail_20' ) end [2025-02-07 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425186', 'tblTempVendorCDR_20' ) start [2025-02-07 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425186', 'tblTempVendorCDR_20' ) end [2025-02-07 21:40:18] Production.INFO: ProcessCDR(1,14425186,1,1,2) [2025-02-07 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425186', 'tblTempUsageDetail_20' ) start [2025-02-07 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425186', 'tblTempUsageDetail_20' ) end [2025-02-07 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:40:23] Production.INFO: ==19427== Releasing lock... [2025-02-07 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:40:23] Production.INFO: 39.5 MB #Memory Used# [2025-02-07 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:41:05 [end_date_ymd] => 2025-02-07 21:41:05 [RateCDR] => 1 ) [2025-02-07 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:41:05' and `end` < '2025-02-07 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:41:18] Production.INFO: count ==1562 [2025-02-07 21:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:41:05 - End Time 2025-02-07 21:41:05 [2025-02-07 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425192', 'tblTempUsageDetail_20' ) start [2025-02-07 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425192', 'tblTempUsageDetail_20' ) end [2025-02-07 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425192', 'tblTempVendorCDR_20' ) start [2025-02-07 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425192', 'tblTempVendorCDR_20' ) end [2025-02-07 21:41:18] Production.INFO: ProcessCDR(1,14425192,1,1,2) [2025-02-07 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425192', 'tblTempUsageDetail_20' ) start [2025-02-07 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425192', 'tblTempUsageDetail_20' ) end [2025-02-07 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:41:21] Production.INFO: ==19503== Releasing lock... [2025-02-07 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:41:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:42:06 [end_date_ymd] => 2025-02-07 21:42:06 [RateCDR] => 1 ) [2025-02-07 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:42:06' and `end` < '2025-02-07 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:42:19] Production.INFO: count ==1558 [2025-02-07 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:42:06 - End Time 2025-02-07 21:42:06 [2025-02-07 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425197', 'tblTempUsageDetail_20' ) start [2025-02-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425197', 'tblTempUsageDetail_20' ) end [2025-02-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425197', 'tblTempVendorCDR_20' ) start [2025-02-07 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425197', 'tblTempVendorCDR_20' ) end [2025-02-07 21:42:19] Production.INFO: ProcessCDR(1,14425197,1,1,2) [2025-02-07 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425197', 'tblTempUsageDetail_20' ) start [2025-02-07 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425197', 'tblTempUsageDetail_20' ) end [2025-02-07 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:42:23] Production.INFO: ==19574== Releasing lock... [2025-02-07 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:42:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:43:05 [end_date_ymd] => 2025-02-07 21:43:05 [RateCDR] => 1 ) [2025-02-07 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:43:05' and `end` < '2025-02-07 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:43:19] Production.INFO: count ==1552 [2025-02-07 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:43:05 - End Time 2025-02-07 21:43:05 [2025-02-07 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425202', 'tblTempUsageDetail_20' ) start [2025-02-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425202', 'tblTempUsageDetail_20' ) end [2025-02-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425202', 'tblTempVendorCDR_20' ) start [2025-02-07 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425202', 'tblTempVendorCDR_20' ) end [2025-02-07 21:43:19] Production.INFO: ProcessCDR(1,14425202,1,1,2) [2025-02-07 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425202', 'tblTempUsageDetail_20' ) start [2025-02-07 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425202', 'tblTempUsageDetail_20' ) end [2025-02-07 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:43:22] Production.INFO: ==19644== Releasing lock... [2025-02-07 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:43:22] Production.INFO: 39.5 MB #Memory Used# [2025-02-07 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:44:05 [end_date_ymd] => 2025-02-07 21:44:05 [RateCDR] => 1 ) [2025-02-07 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:44:05' and `end` < '2025-02-07 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:44:18] Production.INFO: count ==1551 [2025-02-07 21:44:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:44:05 - End Time 2025-02-07 21:44:05 [2025-02-07 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425207', 'tblTempUsageDetail_20' ) start [2025-02-07 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425207', 'tblTempUsageDetail_20' ) end [2025-02-07 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425207', 'tblTempVendorCDR_20' ) start [2025-02-07 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425207', 'tblTempVendorCDR_20' ) end [2025-02-07 21:44:19] Production.INFO: ProcessCDR(1,14425207,1,1,2) [2025-02-07 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425207', 'tblTempUsageDetail_20' ) start [2025-02-07 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425207', 'tblTempUsageDetail_20' ) end [2025-02-07 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:44:22] Production.INFO: ==19715== Releasing lock... [2025-02-07 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:44:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:45:04 [end_date_ymd] => 2025-02-07 21:45:04 [RateCDR] => 1 ) [2025-02-07 21:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:45:04' and `end` < '2025-02-07 21:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:45:18] Production.INFO: count ==1547 [2025-02-07 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:45:04 - End Time 2025-02-07 21:45:04 [2025-02-07 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425212', 'tblTempUsageDetail_20' ) start [2025-02-07 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425212', 'tblTempUsageDetail_20' ) end [2025-02-07 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425212', 'tblTempVendorCDR_20' ) start [2025-02-07 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425212', 'tblTempVendorCDR_20' ) end [2025-02-07 21:45:18] Production.INFO: ProcessCDR(1,14425212,1,1,2) [2025-02-07 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425212', 'tblTempUsageDetail_20' ) start [2025-02-07 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425212', 'tblTempUsageDetail_20' ) end [2025-02-07 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:45:21] Production.INFO: ==19788== Releasing lock... [2025-02-07 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:45:21] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:46:06 [end_date_ymd] => 2025-02-07 21:46:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:46:06' and `end` < '2025-02-07 21: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-07 21:46:19] Production.INFO: count ==1545 [2025-02-07 21:46:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:46:06 - End Time 2025-02-07 21:46:06 [2025-02-07 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425217', 'tblTempUsageDetail_20' ) start [2025-02-07 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425217', 'tblTempUsageDetail_20' ) end [2025-02-07 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425217', 'tblTempVendorCDR_20' ) start [2025-02-07 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425217', 'tblTempVendorCDR_20' ) end [2025-02-07 21:46:19] Production.INFO: ProcessCDR(1,14425217,1,1,2) [2025-02-07 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425217', 'tblTempUsageDetail_20' ) start [2025-02-07 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425217', 'tblTempUsageDetail_20' ) end [2025-02-07 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:46:22] Production.INFO: ==19865== Releasing lock... [2025-02-07 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:47:05 [end_date_ymd] => 2025-02-07 21:47:05 [RateCDR] => 1 ) [2025-02-07 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:47:05' and `end` < '2025-02-07 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:47:18] Production.INFO: count ==1542 [2025-02-07 21:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:47:05 - End Time 2025-02-07 21:47:05 [2025-02-07 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425222', 'tblTempUsageDetail_20' ) start [2025-02-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425222', 'tblTempUsageDetail_20' ) end [2025-02-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425222', 'tblTempVendorCDR_20' ) start [2025-02-07 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425222', 'tblTempVendorCDR_20' ) end [2025-02-07 21:47:19] Production.INFO: ProcessCDR(1,14425222,1,1,2) [2025-02-07 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425222', 'tblTempUsageDetail_20' ) start [2025-02-07 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425222', 'tblTempUsageDetail_20' ) end [2025-02-07 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:47:22] Production.INFO: ==19937== Releasing lock... [2025-02-07 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:47:22] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:48:05 [end_date_ymd] => 2025-02-07 21:48:05 [RateCDR] => 1 ) [2025-02-07 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:48:05' and `end` < '2025-02-07 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:48:18] Production.INFO: count ==1542 [2025-02-07 21:48:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:48:05 - End Time 2025-02-07 21:48:05 [2025-02-07 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425227', 'tblTempUsageDetail_20' ) start [2025-02-07 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425227', 'tblTempUsageDetail_20' ) end [2025-02-07 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425227', 'tblTempVendorCDR_20' ) start [2025-02-07 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425227', 'tblTempVendorCDR_20' ) end [2025-02-07 21:48:19] Production.INFO: ProcessCDR(1,14425227,1,1,2) [2025-02-07 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425227', 'tblTempUsageDetail_20' ) start [2025-02-07 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425227', 'tblTempUsageDetail_20' ) end [2025-02-07 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:48:23] Production.INFO: ==20007== Releasing lock... [2025-02-07 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:48:23] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:49:05 [end_date_ymd] => 2025-02-07 21:49:05 [RateCDR] => 1 ) [2025-02-07 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:49:05' and `end` < '2025-02-07 21:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:49:19] Production.INFO: count ==1543 [2025-02-07 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:49:05 - End Time 2025-02-07 21:49:05 [2025-02-07 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425232', 'tblTempUsageDetail_20' ) start [2025-02-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425232', 'tblTempUsageDetail_20' ) end [2025-02-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425232', 'tblTempVendorCDR_20' ) start [2025-02-07 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425232', 'tblTempVendorCDR_20' ) end [2025-02-07 21:49:19] Production.INFO: ProcessCDR(1,14425232,1,1,2) [2025-02-07 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425232', 'tblTempUsageDetail_20' ) start [2025-02-07 21:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425232', 'tblTempUsageDetail_20' ) end [2025-02-07 21:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:49:24] Production.INFO: ==20120== Releasing lock... [2025-02-07 21:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:49:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:50:06 [end_date_ymd] => 2025-02-07 21:50:06 [RateCDR] => 1 ) [2025-02-07 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:50:06' and `end` < '2025-02-07 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:50:19] Production.INFO: count ==1546 [2025-02-07 21:50:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:50:06 - End Time 2025-02-07 21:50:06 [2025-02-07 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425238', 'tblTempUsageDetail_20' ) start [2025-02-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425238', 'tblTempUsageDetail_20' ) end [2025-02-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425238', 'tblTempVendorCDR_20' ) start [2025-02-07 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425238', 'tblTempVendorCDR_20' ) end [2025-02-07 21:50:20] Production.INFO: ProcessCDR(1,14425238,1,1,2) [2025-02-07 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425238', 'tblTempUsageDetail_20' ) start [2025-02-07 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425238', 'tblTempUsageDetail_20' ) end [2025-02-07 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:50:24] Production.INFO: ==20199== Releasing lock... [2025-02-07 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:50:24] Production.INFO: 39.25 MB #Memory Used# [2025-02-07 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:51:05 [end_date_ymd] => 2025-02-07 21:51:05 [RateCDR] => 1 ) [2025-02-07 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:51:05' and `end` < '2025-02-07 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:51:18] Production.INFO: count ==1478 [2025-02-07 21:51:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:51:05 - End Time 2025-02-07 21:51:05 [2025-02-07 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425243', 'tblTempUsageDetail_20' ) start [2025-02-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425243', 'tblTempUsageDetail_20' ) end [2025-02-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425243', 'tblTempVendorCDR_20' ) start [2025-02-07 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425243', 'tblTempVendorCDR_20' ) end [2025-02-07 21:51:19] Production.INFO: ProcessCDR(1,14425243,1,1,2) [2025-02-07 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425243', 'tblTempUsageDetail_20' ) start [2025-02-07 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425243', 'tblTempUsageDetail_20' ) end [2025-02-07 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:51:22] Production.INFO: ==20271== Releasing lock... [2025-02-07 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:51:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-07 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:52:06 [end_date_ymd] => 2025-02-07 21:52:06 [RateCDR] => 1 ) [2025-02-07 21: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-07 18:52:06' and `end` < '2025-02-07 21: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-07 21:52:19] Production.INFO: count ==1475 [2025-02-07 21:52:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:52:06 - End Time 2025-02-07 21:52:06 [2025-02-07 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425248', 'tblTempUsageDetail_20' ) start [2025-02-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425248', 'tblTempUsageDetail_20' ) end [2025-02-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425248', 'tblTempVendorCDR_20' ) start [2025-02-07 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425248', 'tblTempVendorCDR_20' ) end [2025-02-07 21:52:19] Production.INFO: ProcessCDR(1,14425248,1,1,2) [2025-02-07 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425248', 'tblTempUsageDetail_20' ) start [2025-02-07 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425248', 'tblTempUsageDetail_20' ) end [2025-02-07 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:52:22] Production.INFO: ==20347== Releasing lock... [2025-02-07 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-02-07 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:53:05 [end_date_ymd] => 2025-02-07 21:53:05 [RateCDR] => 1 ) [2025-02-07 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:53:05' and `end` < '2025-02-07 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:53:18] Production.INFO: count ==1466 [2025-02-07 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:53:05 - End Time 2025-02-07 21:53:05 [2025-02-07 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425253', 'tblTempUsageDetail_20' ) start [2025-02-07 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425253', 'tblTempUsageDetail_20' ) end [2025-02-07 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425253', 'tblTempVendorCDR_20' ) start [2025-02-07 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425253', 'tblTempVendorCDR_20' ) end [2025-02-07 21:53:18] Production.INFO: ProcessCDR(1,14425253,1,1,2) [2025-02-07 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425253', 'tblTempUsageDetail_20' ) start [2025-02-07 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425253', 'tblTempUsageDetail_20' ) end [2025-02-07 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:53:21] Production.INFO: ==20418== Releasing lock... [2025-02-07 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:54:05 [end_date_ymd] => 2025-02-07 21:54:05 [RateCDR] => 1 ) [2025-02-07 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:54:05' and `end` < '2025-02-07 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:54:19] Production.INFO: count ==1464 [2025-02-07 21:54:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:54:05 - End Time 2025-02-07 21:54:05 [2025-02-07 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425258', 'tblTempUsageDetail_20' ) start [2025-02-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425258', 'tblTempUsageDetail_20' ) end [2025-02-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425258', 'tblTempVendorCDR_20' ) start [2025-02-07 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425258', 'tblTempVendorCDR_20' ) end [2025-02-07 21:54:19] Production.INFO: ProcessCDR(1,14425258,1,1,2) [2025-02-07 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425258', 'tblTempUsageDetail_20' ) start [2025-02-07 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425258', 'tblTempUsageDetail_20' ) end [2025-02-07 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:54:22] Production.INFO: ==20490== Releasing lock... [2025-02-07 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:55:05 [end_date_ymd] => 2025-02-07 21:55:05 [RateCDR] => 1 ) [2025-02-07 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:55:05' and `end` < '2025-02-07 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:55:19] Production.INFO: count ==1460 [2025-02-07 21:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 18:55:05 - End Time 2025-02-07 21:55:05 [2025-02-07 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425263', 'tblTempUsageDetail_20' ) start [2025-02-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425263', 'tblTempUsageDetail_20' ) end [2025-02-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425263', 'tblTempVendorCDR_20' ) start [2025-02-07 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425263', 'tblTempVendorCDR_20' ) end [2025-02-07 21:55:19] Production.INFO: ProcessCDR(1,14425263,1,1,2) [2025-02-07 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425263', 'tblTempUsageDetail_20' ) start [2025-02-07 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425263', 'tblTempUsageDetail_20' ) end [2025-02-07 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:55:22] Production.INFO: ==20563== Releasing lock... [2025-02-07 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:56:05 [end_date_ymd] => 2025-02-07 21:56:05 [RateCDR] => 1 ) [2025-02-07 21:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:56:05' and `end` < '2025-02-07 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:56:20] Production.INFO: count ==1455 [2025-02-07 21:56:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:56:05 - End Time 2025-02-07 21:56:05 [2025-02-07 21:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425268', 'tblTempUsageDetail_20' ) start [2025-02-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425268', 'tblTempUsageDetail_20' ) end [2025-02-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425268', 'tblTempVendorCDR_20' ) start [2025-02-07 21:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425268', 'tblTempVendorCDR_20' ) end [2025-02-07 21:56:20] Production.INFO: ProcessCDR(1,14425268,1,1,2) [2025-02-07 21:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425268', 'tblTempUsageDetail_20' ) start [2025-02-07 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425268', 'tblTempUsageDetail_20' ) end [2025-02-07 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:56:23] Production.INFO: ==20635== Releasing lock... [2025-02-07 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:56:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:57:05 [end_date_ymd] => 2025-02-07 21:57:05 [RateCDR] => 1 ) [2025-02-07 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:57:05' and `end` < '2025-02-07 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:57:20] Production.INFO: count ==1446 [2025-02-07 21:57:20] Production.ERROR: pbx CDR StartTime 2025-02-07 18:57:05 - End Time 2025-02-07 21:57:05 [2025-02-07 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425273', 'tblTempUsageDetail_20' ) start [2025-02-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425273', 'tblTempUsageDetail_20' ) end [2025-02-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425273', 'tblTempVendorCDR_20' ) start [2025-02-07 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425273', 'tblTempVendorCDR_20' ) end [2025-02-07 21:57:20] Production.INFO: ProcessCDR(1,14425273,1,1,2) [2025-02-07 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425273', 'tblTempUsageDetail_20' ) start [2025-02-07 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425273', 'tblTempUsageDetail_20' ) end [2025-02-07 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:57:23] Production.INFO: ==20711== Releasing lock... [2025-02-07 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:57:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:58:05 [end_date_ymd] => 2025-02-07 21:58:05 [RateCDR] => 1 ) [2025-02-07 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:58:05' and `end` < '2025-02-07 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:58:18] Production.INFO: count ==1445 [2025-02-07 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:58:05 - End Time 2025-02-07 21:58:05 [2025-02-07 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425278', 'tblTempUsageDetail_20' ) start [2025-02-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425278', 'tblTempUsageDetail_20' ) end [2025-02-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425278', 'tblTempVendorCDR_20' ) start [2025-02-07 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425278', 'tblTempVendorCDR_20' ) end [2025-02-07 21:58:18] Production.INFO: ProcessCDR(1,14425278,1,1,2) [2025-02-07 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425278', 'tblTempUsageDetail_20' ) start [2025-02-07 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425278', 'tblTempUsageDetail_20' ) end [2025-02-07 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:58:22] Production.INFO: ==20783== Releasing lock... [2025-02-07 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:58:22] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 18:59:05 [end_date_ymd] => 2025-02-07 21:59:05 [RateCDR] => 1 ) [2025-02-07 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 18:59:05' and `end` < '2025-02-07 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 21:59:18] Production.INFO: count ==1445 [2025-02-07 21:59:18] Production.ERROR: pbx CDR StartTime 2025-02-07 18:59:05 - End Time 2025-02-07 21:59:05 [2025-02-07 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425283', 'tblTempUsageDetail_20' ) start [2025-02-07 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425283', 'tblTempUsageDetail_20' ) end [2025-02-07 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425283', 'tblTempVendorCDR_20' ) start [2025-02-07 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425283', 'tblTempVendorCDR_20' ) end [2025-02-07 21:59:18] Production.INFO: ProcessCDR(1,14425283,1,1,2) [2025-02-07 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425283', 'tblTempUsageDetail_20' ) start [2025-02-07 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425283', 'tblTempUsageDetail_20' ) end [2025-02-07 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 21:59:21] Production.INFO: ==20880== Releasing lock... [2025-02-07 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 21:59:21] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:00:06 [end_date_ymd] => 2025-02-07 22:00:06 [RateCDR] => 1 ) [2025-02-07 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:00:06' and `end` < '2025-02-07 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:00:19] Production.INFO: count ==1447 [2025-02-07 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:00:06 - End Time 2025-02-07 22:00:06 [2025-02-07 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425289', 'tblTempUsageDetail_20' ) start [2025-02-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425289', 'tblTempUsageDetail_20' ) end [2025-02-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425289', 'tblTempVendorCDR_20' ) start [2025-02-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425289', 'tblTempVendorCDR_20' ) end [2025-02-07 22:00:19] Production.INFO: ProcessCDR(1,14425289,1,1,2) [2025-02-07 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425289', 'tblTempUsageDetail_20' ) start [2025-02-07 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425289', 'tblTempUsageDetail_20' ) end [2025-02-07 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:00:23] Production.INFO: ==20989== Releasing lock... [2025-02-07 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:00:23] Production.INFO: 38.5 MB #Memory Used# [2025-02-07 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:01:05 [end_date_ymd] => 2025-02-07 22:01:05 [RateCDR] => 1 ) [2025-02-07 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:01:05' and `end` < '2025-02-07 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:01:18] Production.INFO: count ==1430 [2025-02-07 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:01:05 - End Time 2025-02-07 22:01:05 [2025-02-07 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425294', 'tblTempUsageDetail_20' ) start [2025-02-07 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425294', 'tblTempUsageDetail_20' ) end [2025-02-07 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425294', 'tblTempVendorCDR_20' ) start [2025-02-07 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425294', 'tblTempVendorCDR_20' ) end [2025-02-07 22:01:19] Production.INFO: ProcessCDR(1,14425294,1,1,2) [2025-02-07 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425294', 'tblTempUsageDetail_20' ) start [2025-02-07 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425294', 'tblTempUsageDetail_20' ) end [2025-02-07 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:01:22] Production.INFO: ==21099== Releasing lock... [2025-02-07 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:01:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:02:05 [end_date_ymd] => 2025-02-07 22:02:05 [RateCDR] => 1 ) [2025-02-07 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:02:05' and `end` < '2025-02-07 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:02:18] Production.INFO: count ==1426 [2025-02-07 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:02:05 - End Time 2025-02-07 22:02:05 [2025-02-07 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425299', 'tblTempUsageDetail_20' ) start [2025-02-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425299', 'tblTempUsageDetail_20' ) end [2025-02-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425299', 'tblTempVendorCDR_20' ) start [2025-02-07 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425299', 'tblTempVendorCDR_20' ) end [2025-02-07 22:02:18] Production.INFO: ProcessCDR(1,14425299,1,1,2) [2025-02-07 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425299', 'tblTempUsageDetail_20' ) start [2025-02-07 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425299', 'tblTempUsageDetail_20' ) end [2025-02-07 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:02:21] Production.INFO: ==21196== Releasing lock... [2025-02-07 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:02:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:03:05 [end_date_ymd] => 2025-02-07 22:03:05 [RateCDR] => 1 ) [2025-02-07 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:03:05' and `end` < '2025-02-07 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:03:18] Production.INFO: count ==1421 [2025-02-07 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:03:05 - End Time 2025-02-07 22:03:05 [2025-02-07 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425304', 'tblTempUsageDetail_20' ) start [2025-02-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425304', 'tblTempUsageDetail_20' ) end [2025-02-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425304', 'tblTempVendorCDR_20' ) start [2025-02-07 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425304', 'tblTempVendorCDR_20' ) end [2025-02-07 22:03:18] Production.INFO: ProcessCDR(1,14425304,1,1,2) [2025-02-07 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425304', 'tblTempUsageDetail_20' ) start [2025-02-07 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425304', 'tblTempUsageDetail_20' ) end [2025-02-07 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:03:21] Production.INFO: ==21295== Releasing lock... [2025-02-07 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:03:21] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:04:05 [end_date_ymd] => 2025-02-07 22:04:05 [RateCDR] => 1 ) [2025-02-07 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:04:05' and `end` < '2025-02-07 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:04:19] Production.INFO: count ==1418 [2025-02-07 22:04:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:04:05 - End Time 2025-02-07 22:04:05 [2025-02-07 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425309', 'tblTempUsageDetail_20' ) start [2025-02-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425309', 'tblTempUsageDetail_20' ) end [2025-02-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425309', 'tblTempVendorCDR_20' ) start [2025-02-07 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425309', 'tblTempVendorCDR_20' ) end [2025-02-07 22:04:19] Production.INFO: ProcessCDR(1,14425309,1,1,2) [2025-02-07 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425309', 'tblTempUsageDetail_20' ) start [2025-02-07 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425309', 'tblTempUsageDetail_20' ) end [2025-02-07 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:04:23] Production.INFO: ==21434== Releasing lock... [2025-02-07 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:04:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:05:06 [end_date_ymd] => 2025-02-07 22:05:06 [RateCDR] => 1 ) [2025-02-07 22: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-07 19:05:06' and `end` < '2025-02-07 22: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-07 22:05:19] Production.INFO: count ==1414 [2025-02-07 22:05:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:05:06 - End Time 2025-02-07 22:05:06 [2025-02-07 22:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425314', 'tblTempUsageDetail_20' ) start [2025-02-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425314', 'tblTempUsageDetail_20' ) end [2025-02-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425314', 'tblTempVendorCDR_20' ) start [2025-02-07 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425314', 'tblTempVendorCDR_20' ) end [2025-02-07 22:05:19] Production.INFO: ProcessCDR(1,14425314,1,1,2) [2025-02-07 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425314', 'tblTempUsageDetail_20' ) start [2025-02-07 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425314', 'tblTempUsageDetail_20' ) end [2025-02-07 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:05:22] Production.INFO: ==21552== Releasing lock... [2025-02-07 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:05:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:06:05 [end_date_ymd] => 2025-02-07 22:06:05 [RateCDR] => 1 ) [2025-02-07 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:06:05' and `end` < '2025-02-07 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:06:18] Production.INFO: count ==1408 [2025-02-07 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:06:05 - End Time 2025-02-07 22:06:05 [2025-02-07 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425319', 'tblTempUsageDetail_20' ) start [2025-02-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425319', 'tblTempUsageDetail_20' ) end [2025-02-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425319', 'tblTempVendorCDR_20' ) start [2025-02-07 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425319', 'tblTempVendorCDR_20' ) end [2025-02-07 22:06:19] Production.INFO: ProcessCDR(1,14425319,1,1,2) [2025-02-07 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425319', 'tblTempUsageDetail_20' ) start [2025-02-07 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425319', 'tblTempUsageDetail_20' ) end [2025-02-07 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:06:22] Production.INFO: ==21651== Releasing lock... [2025-02-07 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:06:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:07:06 [end_date_ymd] => 2025-02-07 22:07:06 [RateCDR] => 1 ) [2025-02-07 22:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:07:06' and `end` < '2025-02-07 22:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:07:20] Production.INFO: count ==1407 [2025-02-07 22:07:20] Production.ERROR: pbx CDR StartTime 2025-02-07 19:07:06 - End Time 2025-02-07 22:07:06 [2025-02-07 22:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425324', 'tblTempUsageDetail_20' ) start [2025-02-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425324', 'tblTempUsageDetail_20' ) end [2025-02-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425324', 'tblTempVendorCDR_20' ) start [2025-02-07 22:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425324', 'tblTempVendorCDR_20' ) end [2025-02-07 22:07:20] Production.INFO: ProcessCDR(1,14425324,1,1,2) [2025-02-07 22:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425324', 'tblTempUsageDetail_20' ) start [2025-02-07 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425324', 'tblTempUsageDetail_20' ) end [2025-02-07 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:07:23] Production.INFO: ==21749== Releasing lock... [2025-02-07 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:07:23] Production.INFO: 38 MB #Memory Used# [2025-02-07 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:08:05 [end_date_ymd] => 2025-02-07 22:08:05 [RateCDR] => 1 ) [2025-02-07 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:08:05' and `end` < '2025-02-07 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:08:18] Production.INFO: count ==1410 [2025-02-07 22:08:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:08:05 - End Time 2025-02-07 22:08:05 [2025-02-07 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425329', 'tblTempUsageDetail_20' ) start [2025-02-07 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425329', 'tblTempUsageDetail_20' ) end [2025-02-07 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425329', 'tblTempVendorCDR_20' ) start [2025-02-07 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425329', 'tblTempVendorCDR_20' ) end [2025-02-07 22:08:18] Production.INFO: ProcessCDR(1,14425329,1,1,2) [2025-02-07 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425329', 'tblTempUsageDetail_20' ) start [2025-02-07 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425329', 'tblTempUsageDetail_20' ) end [2025-02-07 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:08:22] Production.INFO: ==21846== Releasing lock... [2025-02-07 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:08:22] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:09:06 [end_date_ymd] => 2025-02-07 22:09:06 [RateCDR] => 1 ) [2025-02-07 22:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:09:06' and `end` < '2025-02-07 22:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:09:19] Production.INFO: count ==1411 [2025-02-07 22:09:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:09:06 - End Time 2025-02-07 22:09:06 [2025-02-07 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425334', 'tblTempUsageDetail_20' ) start [2025-02-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425334', 'tblTempUsageDetail_20' ) end [2025-02-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425334', 'tblTempVendorCDR_20' ) start [2025-02-07 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425334', 'tblTempVendorCDR_20' ) end [2025-02-07 22:09:19] Production.INFO: ProcessCDR(1,14425334,1,1,2) [2025-02-07 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425334', 'tblTempUsageDetail_20' ) start [2025-02-07 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425334', 'tblTempUsageDetail_20' ) end [2025-02-07 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:09:24] Production.INFO: ==21948== Releasing lock... [2025-02-07 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:09:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-07 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:10:05 [end_date_ymd] => 2025-02-07 22:10:05 [RateCDR] => 1 ) [2025-02-07 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:10:05' and `end` < '2025-02-07 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:10:19] Production.INFO: count ==1405 [2025-02-07 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:10:05 - End Time 2025-02-07 22:10:05 [2025-02-07 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425340', 'tblTempUsageDetail_20' ) start [2025-02-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425340', 'tblTempUsageDetail_20' ) end [2025-02-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425340', 'tblTempVendorCDR_20' ) start [2025-02-07 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425340', 'tblTempVendorCDR_20' ) end [2025-02-07 22:10:19] Production.INFO: ProcessCDR(1,14425340,1,1,2) [2025-02-07 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425340', 'tblTempUsageDetail_20' ) start [2025-02-07 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425340', 'tblTempUsageDetail_20' ) end [2025-02-07 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:10:22] Production.INFO: ==22049== Releasing lock... [2025-02-07 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:10:22] Production.INFO: 38 MB #Memory Used# [2025-02-07 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:11:05 [end_date_ymd] => 2025-02-07 22:11:05 [RateCDR] => 1 ) [2025-02-07 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:11:05' and `end` < '2025-02-07 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:11:18] Production.INFO: count ==1360 [2025-02-07 22:11:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:11:05 - End Time 2025-02-07 22:11:05 [2025-02-07 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425345', 'tblTempUsageDetail_20' ) start [2025-02-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425345', 'tblTempUsageDetail_20' ) end [2025-02-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425345', 'tblTempVendorCDR_20' ) start [2025-02-07 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425345', 'tblTempVendorCDR_20' ) end [2025-02-07 22:11:19] Production.INFO: ProcessCDR(1,14425345,1,1,2) [2025-02-07 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425345', 'tblTempUsageDetail_20' ) start [2025-02-07 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425345', 'tblTempUsageDetail_20' ) end [2025-02-07 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:11:22] Production.INFO: ==22154== Releasing lock... [2025-02-07 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:12:05 [end_date_ymd] => 2025-02-07 22:12:05 [RateCDR] => 1 ) [2025-02-07 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:12:05' and `end` < '2025-02-07 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:12:19] Production.INFO: count ==1361 [2025-02-07 22:12:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:12:05 - End Time 2025-02-07 22:12:05 [2025-02-07 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425350', 'tblTempUsageDetail_20' ) start [2025-02-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425350', 'tblTempUsageDetail_20' ) end [2025-02-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425350', 'tblTempVendorCDR_20' ) start [2025-02-07 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425350', 'tblTempVendorCDR_20' ) end [2025-02-07 22:12:19] Production.INFO: ProcessCDR(1,14425350,1,1,2) [2025-02-07 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425350', 'tblTempUsageDetail_20' ) start [2025-02-07 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425350', 'tblTempUsageDetail_20' ) end [2025-02-07 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:12:23] Production.INFO: ==22252== Releasing lock... [2025-02-07 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:12:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:13:05 [end_date_ymd] => 2025-02-07 22:13:05 [RateCDR] => 1 ) [2025-02-07 22:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:13:05' and `end` < '2025-02-07 22:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:13:18] Production.INFO: count ==1357 [2025-02-07 22:13:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:13:05 - End Time 2025-02-07 22:13:05 [2025-02-07 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425355', 'tblTempUsageDetail_20' ) start [2025-02-07 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425355', 'tblTempUsageDetail_20' ) end [2025-02-07 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425355', 'tblTempVendorCDR_20' ) start [2025-02-07 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425355', 'tblTempVendorCDR_20' ) end [2025-02-07 22:13:18] Production.INFO: ProcessCDR(1,14425355,1,1,2) [2025-02-07 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425355', 'tblTempUsageDetail_20' ) start [2025-02-07 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425355', 'tblTempUsageDetail_20' ) end [2025-02-07 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:13:21] Production.INFO: ==22355== Releasing lock... [2025-02-07 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:14:05 [end_date_ymd] => 2025-02-07 22:14:05 [RateCDR] => 1 ) [2025-02-07 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:14:05' and `end` < '2025-02-07 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:14:19] Production.INFO: count ==1364 [2025-02-07 22:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:14:05 - End Time 2025-02-07 22:14:05 [2025-02-07 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425360', 'tblTempUsageDetail_20' ) start [2025-02-07 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425360', 'tblTempUsageDetail_20' ) end [2025-02-07 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425360', 'tblTempVendorCDR_20' ) start [2025-02-07 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425360', 'tblTempVendorCDR_20' ) end [2025-02-07 22:14:19] Production.INFO: ProcessCDR(1,14425360,1,1,2) [2025-02-07 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425360', 'tblTempUsageDetail_20' ) start [2025-02-07 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425360', 'tblTempUsageDetail_20' ) end [2025-02-07 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:14:24] Production.INFO: ==22454== Releasing lock... [2025-02-07 22:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:14:24] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:15:05 [end_date_ymd] => 2025-02-07 22:15:05 [RateCDR] => 1 ) [2025-02-07 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:15:05' and `end` < '2025-02-07 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:15:19] Production.INFO: count ==1363 [2025-02-07 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:15:05 - End Time 2025-02-07 22:15:05 [2025-02-07 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425365', 'tblTempUsageDetail_20' ) start [2025-02-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425365', 'tblTempUsageDetail_20' ) end [2025-02-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425365', 'tblTempVendorCDR_20' ) start [2025-02-07 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425365', 'tblTempVendorCDR_20' ) end [2025-02-07 22:15:19] Production.INFO: ProcessCDR(1,14425365,1,1,2) [2025-02-07 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425365', 'tblTempUsageDetail_20' ) start [2025-02-07 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425365', 'tblTempUsageDetail_20' ) end [2025-02-07 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:15:22] Production.INFO: ==22553== Releasing lock... [2025-02-07 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:15:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:16:05 [end_date_ymd] => 2025-02-07 22:16:05 [RateCDR] => 1 ) [2025-02-07 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:16:05' and `end` < '2025-02-07 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:16:18] Production.INFO: count ==1363 [2025-02-07 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:16:05 - End Time 2025-02-07 22:16:05 [2025-02-07 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425370', 'tblTempUsageDetail_20' ) start [2025-02-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425370', 'tblTempUsageDetail_20' ) end [2025-02-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425370', 'tblTempVendorCDR_20' ) start [2025-02-07 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425370', 'tblTempVendorCDR_20' ) end [2025-02-07 22:16:18] Production.INFO: ProcessCDR(1,14425370,1,1,2) [2025-02-07 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425370', 'tblTempUsageDetail_20' ) start [2025-02-07 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425370', 'tblTempUsageDetail_20' ) end [2025-02-07 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:16:21] Production.INFO: ==22650== Releasing lock... [2025-02-07 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:16:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:17:05 [end_date_ymd] => 2025-02-07 22:17:05 [RateCDR] => 1 ) [2025-02-07 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:17:05' and `end` < '2025-02-07 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:17:18] Production.INFO: count ==1363 [2025-02-07 22:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:17:05 - End Time 2025-02-07 22:17:05 [2025-02-07 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425375', 'tblTempUsageDetail_20' ) start [2025-02-07 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425375', 'tblTempUsageDetail_20' ) end [2025-02-07 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425375', 'tblTempVendorCDR_20' ) start [2025-02-07 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425375', 'tblTempVendorCDR_20' ) end [2025-02-07 22:17:18] Production.INFO: ProcessCDR(1,14425375,1,1,2) [2025-02-07 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425375', 'tblTempUsageDetail_20' ) start [2025-02-07 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425375', 'tblTempUsageDetail_20' ) end [2025-02-07 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:17:21] Production.INFO: ==22734== Releasing lock... [2025-02-07 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:17:21] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:18:06 [end_date_ymd] => 2025-02-07 22:18:06 [RateCDR] => 1 ) [2025-02-07 22: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-07 19:18:06' and `end` < '2025-02-07 22: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-07 22:18:19] Production.INFO: count ==1362 [2025-02-07 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:18:06 - End Time 2025-02-07 22:18:06 [2025-02-07 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425380', 'tblTempUsageDetail_20' ) start [2025-02-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425380', 'tblTempUsageDetail_20' ) end [2025-02-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425380', 'tblTempVendorCDR_20' ) start [2025-02-07 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425380', 'tblTempVendorCDR_20' ) end [2025-02-07 22:18:19] Production.INFO: ProcessCDR(1,14425380,1,1,2) [2025-02-07 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425380', 'tblTempUsageDetail_20' ) start [2025-02-07 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425380', 'tblTempUsageDetail_20' ) end [2025-02-07 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:18:23] Production.INFO: ==22806== Releasing lock... [2025-02-07 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:18:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:19:05 [end_date_ymd] => 2025-02-07 22:19:05 [RateCDR] => 1 ) [2025-02-07 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:19:05' and `end` < '2025-02-07 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:19:19] Production.INFO: count ==1357 [2025-02-07 22:19:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:19:05 - End Time 2025-02-07 22:19:05 [2025-02-07 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425385', 'tblTempUsageDetail_20' ) start [2025-02-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425385', 'tblTempUsageDetail_20' ) end [2025-02-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425385', 'tblTempVendorCDR_20' ) start [2025-02-07 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425385', 'tblTempVendorCDR_20' ) end [2025-02-07 22:19:19] Production.INFO: ProcessCDR(1,14425385,1,1,2) [2025-02-07 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425385', 'tblTempUsageDetail_20' ) start [2025-02-07 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425385', 'tblTempUsageDetail_20' ) end [2025-02-07 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:19:22] Production.INFO: ==22875== Releasing lock... [2025-02-07 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:19:22] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:20:06 [end_date_ymd] => 2025-02-07 22:20:06 [RateCDR] => 1 ) [2025-02-07 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:20:06' and `end` < '2025-02-07 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:20:19] Production.INFO: count ==1354 [2025-02-07 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:20:06 - End Time 2025-02-07 22:20:06 [2025-02-07 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425391', 'tblTempUsageDetail_20' ) start [2025-02-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425391', 'tblTempUsageDetail_20' ) end [2025-02-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425391', 'tblTempVendorCDR_20' ) start [2025-02-07 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425391', 'tblTempVendorCDR_20' ) end [2025-02-07 22:20:19] Production.INFO: ProcessCDR(1,14425391,1,1,2) [2025-02-07 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425391', 'tblTempUsageDetail_20' ) start [2025-02-07 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425391', 'tblTempUsageDetail_20' ) end [2025-02-07 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:20:23] Production.INFO: ==22993== Releasing lock... [2025-02-07 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:20:23] Production.INFO: 37.75 MB #Memory Used# [2025-02-07 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:21:05 [end_date_ymd] => 2025-02-07 22:21:05 [RateCDR] => 1 ) [2025-02-07 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:21:05' and `end` < '2025-02-07 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:21:18] Production.INFO: count ==1280 [2025-02-07 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:21:05 - End Time 2025-02-07 22:21:05 [2025-02-07 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425396', 'tblTempUsageDetail_20' ) start [2025-02-07 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425396', 'tblTempUsageDetail_20' ) end [2025-02-07 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425396', 'tblTempVendorCDR_20' ) start [2025-02-07 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425396', 'tblTempVendorCDR_20' ) end [2025-02-07 22:21:18] Production.INFO: ProcessCDR(1,14425396,1,1,2) [2025-02-07 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425396', 'tblTempUsageDetail_20' ) start [2025-02-07 22:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425396', 'tblTempUsageDetail_20' ) end [2025-02-07 22:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:21:23] Production.INFO: ==23064== Releasing lock... [2025-02-07 22:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:21:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:22:05 [end_date_ymd] => 2025-02-07 22:22:05 [RateCDR] => 1 ) [2025-02-07 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:22:05' and `end` < '2025-02-07 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:22:19] Production.INFO: count ==1279 [2025-02-07 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:22:05 - End Time 2025-02-07 22:22:05 [2025-02-07 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425401', 'tblTempUsageDetail_20' ) start [2025-02-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425401', 'tblTempUsageDetail_20' ) end [2025-02-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425401', 'tblTempVendorCDR_20' ) start [2025-02-07 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425401', 'tblTempVendorCDR_20' ) end [2025-02-07 22:22:19] Production.INFO: ProcessCDR(1,14425401,1,1,2) [2025-02-07 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425401', 'tblTempUsageDetail_20' ) start [2025-02-07 22:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425401', 'tblTempUsageDetail_20' ) end [2025-02-07 22:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:22:24] Production.INFO: ==23136== Releasing lock... [2025-02-07 22:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:22:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:23:05 [end_date_ymd] => 2025-02-07 22:23:05 [RateCDR] => 1 ) [2025-02-07 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:23:05' and `end` < '2025-02-07 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:23:19] Production.INFO: count ==1278 [2025-02-07 22:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:23:05 - End Time 2025-02-07 22:23:05 [2025-02-07 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425406', 'tblTempUsageDetail_20' ) start [2025-02-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425406', 'tblTempUsageDetail_20' ) end [2025-02-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425406', 'tblTempVendorCDR_20' ) start [2025-02-07 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425406', 'tblTempVendorCDR_20' ) end [2025-02-07 22:23:19] Production.INFO: ProcessCDR(1,14425406,1,1,2) [2025-02-07 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425406', 'tblTempUsageDetail_20' ) start [2025-02-07 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425406', 'tblTempUsageDetail_20' ) end [2025-02-07 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:23:23] Production.INFO: ==23207== Releasing lock... [2025-02-07 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:23:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:24:05 [end_date_ymd] => 2025-02-07 22:24:05 [RateCDR] => 1 ) [2025-02-07 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:24:05' and `end` < '2025-02-07 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:24:18] Production.INFO: count ==1277 [2025-02-07 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:24:05 - End Time 2025-02-07 22:24:05 [2025-02-07 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425411', 'tblTempUsageDetail_20' ) start [2025-02-07 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425411', 'tblTempUsageDetail_20' ) end [2025-02-07 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425411', 'tblTempVendorCDR_20' ) start [2025-02-07 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425411', 'tblTempVendorCDR_20' ) end [2025-02-07 22:24:18] Production.INFO: ProcessCDR(1,14425411,1,1,2) [2025-02-07 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425411', 'tblTempUsageDetail_20' ) start [2025-02-07 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425411', 'tblTempUsageDetail_20' ) end [2025-02-07 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:24:23] Production.INFO: ==23280== Releasing lock... [2025-02-07 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:24:23] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:25:05 [end_date_ymd] => 2025-02-07 22:25:05 [RateCDR] => 1 ) [2025-02-07 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:25:05' and `end` < '2025-02-07 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:25:18] Production.INFO: count ==1278 [2025-02-07 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:25:05 - End Time 2025-02-07 22:25:05 [2025-02-07 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425416', 'tblTempUsageDetail_20' ) start [2025-02-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425416', 'tblTempUsageDetail_20' ) end [2025-02-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425416', 'tblTempVendorCDR_20' ) start [2025-02-07 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425416', 'tblTempVendorCDR_20' ) end [2025-02-07 22:25:18] Production.INFO: ProcessCDR(1,14425416,1,1,2) [2025-02-07 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425416', 'tblTempUsageDetail_20' ) start [2025-02-07 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425416', 'tblTempUsageDetail_20' ) end [2025-02-07 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:25:22] Production.INFO: ==23351== Releasing lock... [2025-02-07 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:25:22] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:26:05 [end_date_ymd] => 2025-02-07 22:26:05 [RateCDR] => 1 ) [2025-02-07 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:26:05' and `end` < '2025-02-07 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:26:18] Production.INFO: count ==1270 [2025-02-07 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:26:05 - End Time 2025-02-07 22:26:05 [2025-02-07 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425421', 'tblTempUsageDetail_20' ) start [2025-02-07 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425421', 'tblTempUsageDetail_20' ) end [2025-02-07 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425421', 'tblTempVendorCDR_20' ) start [2025-02-07 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425421', 'tblTempVendorCDR_20' ) end [2025-02-07 22:26:18] Production.INFO: ProcessCDR(1,14425421,1,1,2) [2025-02-07 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425421', 'tblTempUsageDetail_20' ) start [2025-02-07 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425421', 'tblTempUsageDetail_20' ) end [2025-02-07 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:26:21] Production.INFO: ==23423== Releasing lock... [2025-02-07 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:26:21] Production.INFO: 37.25 MB #Memory Used# [2025-02-07 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:27:05 [end_date_ymd] => 2025-02-07 22:27:05 [RateCDR] => 1 ) [2025-02-07 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:27:05' and `end` < '2025-02-07 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:27:18] Production.INFO: count ==1268 [2025-02-07 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:27:05 - End Time 2025-02-07 22:27:05 [2025-02-07 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425426', 'tblTempUsageDetail_20' ) start [2025-02-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425426', 'tblTempUsageDetail_20' ) end [2025-02-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425426', 'tblTempVendorCDR_20' ) start [2025-02-07 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425426', 'tblTempVendorCDR_20' ) end [2025-02-07 22:27:18] Production.INFO: ProcessCDR(1,14425426,1,1,2) [2025-02-07 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425426', 'tblTempUsageDetail_20' ) start [2025-02-07 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425426', 'tblTempUsageDetail_20' ) end [2025-02-07 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:27:23] Production.INFO: ==23494== Releasing lock... [2025-02-07 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:27:23] Production.INFO: 37 MB #Memory Used# [2025-02-07 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:28:05 [end_date_ymd] => 2025-02-07 22:28:05 [RateCDR] => 1 ) [2025-02-07 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:28:05' and `end` < '2025-02-07 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:28:18] Production.INFO: count ==1268 [2025-02-07 22:28:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:28:05 - End Time 2025-02-07 22:28:05 [2025-02-07 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425431', 'tblTempUsageDetail_20' ) start [2025-02-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425431', 'tblTempUsageDetail_20' ) end [2025-02-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425431', 'tblTempVendorCDR_20' ) start [2025-02-07 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425431', 'tblTempVendorCDR_20' ) end [2025-02-07 22:28:19] Production.INFO: ProcessCDR(1,14425431,1,1,2) [2025-02-07 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425431', 'tblTempUsageDetail_20' ) start [2025-02-07 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425431', 'tblTempUsageDetail_20' ) end [2025-02-07 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:28:22] Production.INFO: ==23567== Releasing lock... [2025-02-07 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:28:22] Production.INFO: 37 MB #Memory Used# [2025-02-07 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:29:05 [end_date_ymd] => 2025-02-07 22:29:05 [RateCDR] => 1 ) [2025-02-07 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:29:05' and `end` < '2025-02-07 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:29:18] Production.INFO: count ==1264 [2025-02-07 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:29:05 - End Time 2025-02-07 22:29:05 [2025-02-07 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425436', 'tblTempUsageDetail_20' ) start [2025-02-07 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425436', 'tblTempUsageDetail_20' ) end [2025-02-07 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425436', 'tblTempVendorCDR_20' ) start [2025-02-07 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425436', 'tblTempVendorCDR_20' ) end [2025-02-07 22:29:18] Production.INFO: ProcessCDR(1,14425436,1,1,2) [2025-02-07 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425436', 'tblTempUsageDetail_20' ) start [2025-02-07 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425436', 'tblTempUsageDetail_20' ) end [2025-02-07 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:29:22] Production.INFO: ==23635== Releasing lock... [2025-02-07 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:29:22] Production.INFO: 37 MB #Memory Used# [2025-02-07 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:30:06 [end_date_ymd] => 2025-02-07 22:30:06 [RateCDR] => 1 ) [2025-02-07 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:30:06' and `end` < '2025-02-07 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:30:19] Production.INFO: count ==1264 [2025-02-07 22:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:30:06 - End Time 2025-02-07 22:30:06 [2025-02-07 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425442', 'tblTempUsageDetail_20' ) start [2025-02-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425442', 'tblTempUsageDetail_20' ) end [2025-02-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425442', 'tblTempVendorCDR_20' ) start [2025-02-07 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425442', 'tblTempVendorCDR_20' ) end [2025-02-07 22:30:19] Production.INFO: ProcessCDR(1,14425442,1,1,2) [2025-02-07 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425442', 'tblTempUsageDetail_20' ) start [2025-02-07 22:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425442', 'tblTempUsageDetail_20' ) end [2025-02-07 22:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:30:24] Production.INFO: ==23710== Releasing lock... [2025-02-07 22:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:30:24] Production.INFO: 37 MB #Memory Used# [2025-02-07 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:31:05 [end_date_ymd] => 2025-02-07 22:31:05 [RateCDR] => 1 ) [2025-02-07 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:31:05' and `end` < '2025-02-07 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:31:18] Production.INFO: count ==1228 [2025-02-07 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:31:05 - End Time 2025-02-07 22:31:05 [2025-02-07 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425447', 'tblTempUsageDetail_20' ) start [2025-02-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425447', 'tblTempUsageDetail_20' ) end [2025-02-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425447', 'tblTempVendorCDR_20' ) start [2025-02-07 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425447', 'tblTempVendorCDR_20' ) end [2025-02-07 22:31:18] Production.INFO: ProcessCDR(1,14425447,1,1,2) [2025-02-07 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425447', 'tblTempUsageDetail_20' ) start [2025-02-07 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425447', 'tblTempUsageDetail_20' ) end [2025-02-07 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:31:21] Production.INFO: ==23787== Releasing lock... [2025-02-07 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-07 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:32:05 [end_date_ymd] => 2025-02-07 22:32:05 [RateCDR] => 1 ) [2025-02-07 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:32:05' and `end` < '2025-02-07 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:32:18] Production.INFO: count ==1235 [2025-02-07 22:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:32:05 - End Time 2025-02-07 22:32:05 [2025-02-07 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425452', 'tblTempUsageDetail_20' ) start [2025-02-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425452', 'tblTempUsageDetail_20' ) end [2025-02-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425452', 'tblTempVendorCDR_20' ) start [2025-02-07 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425452', 'tblTempVendorCDR_20' ) end [2025-02-07 22:32:18] Production.INFO: ProcessCDR(1,14425452,1,1,2) [2025-02-07 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425452', 'tblTempUsageDetail_20' ) start [2025-02-07 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425452', 'tblTempUsageDetail_20' ) end [2025-02-07 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:32:23] Production.INFO: ==23861== Releasing lock... [2025-02-07 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:32:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-07 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:33:05 [end_date_ymd] => 2025-02-07 22:33:05 [RateCDR] => 1 ) [2025-02-07 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:33:05' and `end` < '2025-02-07 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:33:18] Production.INFO: count ==1237 [2025-02-07 22:33:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:33:05 - End Time 2025-02-07 22:33:05 [2025-02-07 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425457', 'tblTempUsageDetail_20' ) start [2025-02-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425457', 'tblTempUsageDetail_20' ) end [2025-02-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425457', 'tblTempVendorCDR_20' ) start [2025-02-07 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425457', 'tblTempVendorCDR_20' ) end [2025-02-07 22:33:19] Production.INFO: ProcessCDR(1,14425457,1,1,2) [2025-02-07 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425457', 'tblTempUsageDetail_20' ) start [2025-02-07 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425457', 'tblTempUsageDetail_20' ) end [2025-02-07 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:33:22] Production.INFO: ==23930== Releasing lock... [2025-02-07 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:33:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-07 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:34:05 [end_date_ymd] => 2025-02-07 22:34:05 [RateCDR] => 1 ) [2025-02-07 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:34:05' and `end` < '2025-02-07 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:34:18] Production.INFO: count ==1236 [2025-02-07 22:34:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:34:05 - End Time 2025-02-07 22:34:05 [2025-02-07 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425462', 'tblTempUsageDetail_20' ) start [2025-02-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425462', 'tblTempUsageDetail_20' ) end [2025-02-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425462', 'tblTempVendorCDR_20' ) start [2025-02-07 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425462', 'tblTempVendorCDR_20' ) end [2025-02-07 22:34:18] Production.INFO: ProcessCDR(1,14425462,1,1,2) [2025-02-07 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425462', 'tblTempUsageDetail_20' ) start [2025-02-07 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425462', 'tblTempUsageDetail_20' ) end [2025-02-07 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:34:21] Production.INFO: ==24001== Releasing lock... [2025-02-07 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:34:21] Production.INFO: 36.75 MB #Memory Used# [2025-02-07 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:35:05 [end_date_ymd] => 2025-02-07 22:35:05 [RateCDR] => 1 ) [2025-02-07 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:35:05' and `end` < '2025-02-07 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:35:19] Production.INFO: count ==1234 [2025-02-07 22:35:20] Production.ERROR: pbx CDR StartTime 2025-02-07 19:35:05 - End Time 2025-02-07 22:35:05 [2025-02-07 22:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425467', 'tblTempUsageDetail_20' ) start [2025-02-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425467', 'tblTempUsageDetail_20' ) end [2025-02-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425467', 'tblTempVendorCDR_20' ) start [2025-02-07 22:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425467', 'tblTempVendorCDR_20' ) end [2025-02-07 22:35:20] Production.INFO: ProcessCDR(1,14425467,1,1,2) [2025-02-07 22:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425467', 'tblTempUsageDetail_20' ) start [2025-02-07 22:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425467', 'tblTempUsageDetail_20' ) end [2025-02-07 22:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:35:23] Production.INFO: ==24112== Releasing lock... [2025-02-07 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:35:23] Production.INFO: 36.75 MB #Memory Used# [2025-02-07 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:36:05 [end_date_ymd] => 2025-02-07 22:36:05 [RateCDR] => 1 ) [2025-02-07 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:36:05' and `end` < '2025-02-07 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:36:19] Production.INFO: count ==1229 [2025-02-07 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:36:05 - End Time 2025-02-07 22:36:05 [2025-02-07 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425472', 'tblTempUsageDetail_20' ) start [2025-02-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425472', 'tblTempUsageDetail_20' ) end [2025-02-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425472', 'tblTempVendorCDR_20' ) start [2025-02-07 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425472', 'tblTempVendorCDR_20' ) end [2025-02-07 22:36:19] Production.INFO: ProcessCDR(1,14425472,1,1,2) [2025-02-07 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425472', 'tblTempUsageDetail_20' ) start [2025-02-07 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425472', 'tblTempUsageDetail_20' ) end [2025-02-07 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:36:22] Production.INFO: ==24186== Releasing lock... [2025-02-07 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:36:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-07 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:37:06 [end_date_ymd] => 2025-02-07 22:37:06 [RateCDR] => 1 ) [2025-02-07 22: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-07 19:37:06' and `end` < '2025-02-07 22: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-07 22:37:20] Production.INFO: count ==1195 [2025-02-07 22:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 19:37:06 - End Time 2025-02-07 22:37:06 [2025-02-07 22:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425477', 'tblTempUsageDetail_20' ) start [2025-02-07 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425477', 'tblTempUsageDetail_20' ) end [2025-02-07 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425477', 'tblTempVendorCDR_20' ) start [2025-02-07 22:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425477', 'tblTempVendorCDR_20' ) end [2025-02-07 22:37:20] Production.INFO: ProcessCDR(1,14425477,1,1,2) [2025-02-07 22:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425477', 'tblTempUsageDetail_20' ) start [2025-02-07 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425477', 'tblTempUsageDetail_20' ) end [2025-02-07 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:37:23] Production.INFO: ==24257== Releasing lock... [2025-02-07 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:37:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-07 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:38:05 [end_date_ymd] => 2025-02-07 22:38:05 [RateCDR] => 1 ) [2025-02-07 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:38:05' and `end` < '2025-02-07 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:38:18] Production.INFO: count ==1195 [2025-02-07 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:38:05 - End Time 2025-02-07 22:38:05 [2025-02-07 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425482', 'tblTempUsageDetail_20' ) start [2025-02-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425482', 'tblTempUsageDetail_20' ) end [2025-02-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425482', 'tblTempVendorCDR_20' ) start [2025-02-07 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425482', 'tblTempVendorCDR_20' ) end [2025-02-07 22:38:18] Production.INFO: ProcessCDR(1,14425482,1,1,2) [2025-02-07 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425482', 'tblTempUsageDetail_20' ) start [2025-02-07 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425482', 'tblTempUsageDetail_20' ) end [2025-02-07 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:38:22] Production.INFO: ==24328== Releasing lock... [2025-02-07 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:38:22] Production.INFO: 36.5 MB #Memory Used# [2025-02-07 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:39:05 [end_date_ymd] => 2025-02-07 22:39:05 [RateCDR] => 1 ) [2025-02-07 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:39:05' and `end` < '2025-02-07 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:39:20] Production.INFO: count ==1177 [2025-02-07 22:39:20] Production.ERROR: pbx CDR StartTime 2025-02-07 19:39:05 - End Time 2025-02-07 22:39:05 [2025-02-07 22:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425487', 'tblTempUsageDetail_20' ) start [2025-02-07 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425487', 'tblTempUsageDetail_20' ) end [2025-02-07 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425487', 'tblTempVendorCDR_20' ) start [2025-02-07 22:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425487', 'tblTempVendorCDR_20' ) end [2025-02-07 22:39:20] Production.INFO: ProcessCDR(1,14425487,1,1,2) [2025-02-07 22:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425487', 'tblTempUsageDetail_20' ) start [2025-02-07 22:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425487', 'tblTempUsageDetail_20' ) end [2025-02-07 22:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:39:23] Production.INFO: ==24398== Releasing lock... [2025-02-07 22:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:39:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-07 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:40:06 [end_date_ymd] => 2025-02-07 22:40:06 [RateCDR] => 1 ) [2025-02-07 22:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:40:06' and `end` < '2025-02-07 22:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:40:19] Production.INFO: count ==1173 [2025-02-07 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:40:06 - End Time 2025-02-07 22:40:06 [2025-02-07 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425493', 'tblTempUsageDetail_20' ) start [2025-02-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425493', 'tblTempUsageDetail_20' ) end [2025-02-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425493', 'tblTempVendorCDR_20' ) start [2025-02-07 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425493', 'tblTempVendorCDR_20' ) end [2025-02-07 22:40:19] Production.INFO: ProcessCDR(1,14425493,1,1,2) [2025-02-07 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425493', 'tblTempUsageDetail_20' ) start [2025-02-07 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425493', 'tblTempUsageDetail_20' ) end [2025-02-07 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:40:23] Production.INFO: ==24476== Releasing lock... [2025-02-07 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:40:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:41:05 [end_date_ymd] => 2025-02-07 22:41:05 [RateCDR] => 1 ) [2025-02-07 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:41:05' and `end` < '2025-02-07 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:41:18] Production.INFO: count ==1155 [2025-02-07 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:41:05 - End Time 2025-02-07 22:41:05 [2025-02-07 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425498', 'tblTempUsageDetail_20' ) start [2025-02-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425498', 'tblTempUsageDetail_20' ) end [2025-02-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425498', 'tblTempVendorCDR_20' ) start [2025-02-07 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425498', 'tblTempVendorCDR_20' ) end [2025-02-07 22:41:19] Production.INFO: ProcessCDR(1,14425498,1,1,2) [2025-02-07 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425498', 'tblTempUsageDetail_20' ) start [2025-02-07 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425498', 'tblTempUsageDetail_20' ) end [2025-02-07 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:41:22] Production.INFO: ==24555== Releasing lock... [2025-02-07 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:41:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:42:04 [end_date_ymd] => 2025-02-07 22:42:04 [RateCDR] => 1 ) [2025-02-07 22:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:42:04' and `end` < '2025-02-07 22:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:42:19] Production.INFO: count ==1155 [2025-02-07 22:42:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:42:04 - End Time 2025-02-07 22:42:04 [2025-02-07 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425503', 'tblTempUsageDetail_20' ) start [2025-02-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425503', 'tblTempUsageDetail_20' ) end [2025-02-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425503', 'tblTempVendorCDR_20' ) start [2025-02-07 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425503', 'tblTempVendorCDR_20' ) end [2025-02-07 22:42:19] Production.INFO: ProcessCDR(1,14425503,1,1,2) [2025-02-07 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425503', 'tblTempUsageDetail_20' ) start [2025-02-07 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425503', 'tblTempUsageDetail_20' ) end [2025-02-07 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:42:23] Production.INFO: ==24623== Releasing lock... [2025-02-07 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:42:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:43:05 [end_date_ymd] => 2025-02-07 22:43:05 [RateCDR] => 1 ) [2025-02-07 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:43:05' and `end` < '2025-02-07 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:43:19] Production.INFO: count ==1159 [2025-02-07 22:43:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:43:05 - End Time 2025-02-07 22:43:05 [2025-02-07 22:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425508', 'tblTempUsageDetail_20' ) start [2025-02-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425508', 'tblTempUsageDetail_20' ) end [2025-02-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425508', 'tblTempVendorCDR_20' ) start [2025-02-07 22:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425508', 'tblTempVendorCDR_20' ) end [2025-02-07 22:43:19] Production.INFO: ProcessCDR(1,14425508,1,1,2) [2025-02-07 22:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425508', 'tblTempUsageDetail_20' ) start [2025-02-07 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425508', 'tblTempUsageDetail_20' ) end [2025-02-07 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:43:23] Production.INFO: ==24700== Releasing lock... [2025-02-07 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:43:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:44:06 [end_date_ymd] => 2025-02-07 22:44:06 [RateCDR] => 1 ) [2025-02-07 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:44:06' and `end` < '2025-02-07 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:44:20] Production.INFO: count ==1158 [2025-02-07 22:44:20] Production.ERROR: pbx CDR StartTime 2025-02-07 19:44:06 - End Time 2025-02-07 22:44:06 [2025-02-07 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425513', 'tblTempUsageDetail_20' ) start [2025-02-07 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425513', 'tblTempUsageDetail_20' ) end [2025-02-07 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425513', 'tblTempVendorCDR_20' ) start [2025-02-07 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425513', 'tblTempVendorCDR_20' ) end [2025-02-07 22:44:20] Production.INFO: ProcessCDR(1,14425513,1,1,2) [2025-02-07 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425513', 'tblTempUsageDetail_20' ) start [2025-02-07 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425513', 'tblTempUsageDetail_20' ) end [2025-02-07 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:44:23] Production.INFO: ==24775== Releasing lock... [2025-02-07 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:44:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:45:05 [end_date_ymd] => 2025-02-07 22:45:05 [RateCDR] => 1 ) [2025-02-07 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:45:05' and `end` < '2025-02-07 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:45:19] Production.INFO: count ==1154 [2025-02-07 22:45:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:45:05 - End Time 2025-02-07 22:45:05 [2025-02-07 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425518', 'tblTempUsageDetail_20' ) start [2025-02-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425518', 'tblTempUsageDetail_20' ) end [2025-02-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425518', 'tblTempVendorCDR_20' ) start [2025-02-07 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425518', 'tblTempVendorCDR_20' ) end [2025-02-07 22:45:19] Production.INFO: ProcessCDR(1,14425518,1,1,2) [2025-02-07 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425518', 'tblTempUsageDetail_20' ) start [2025-02-07 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425518', 'tblTempUsageDetail_20' ) end [2025-02-07 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:45:22] Production.INFO: ==24845== Releasing lock... [2025-02-07 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:45:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:46:05 [end_date_ymd] => 2025-02-07 22:46:05 [RateCDR] => 1 ) [2025-02-07 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:46:05' and `end` < '2025-02-07 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:46:20] Production.INFO: count ==1154 [2025-02-07 22:46:20] Production.ERROR: pbx CDR StartTime 2025-02-07 19:46:05 - End Time 2025-02-07 22:46:05 [2025-02-07 22:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425523', 'tblTempUsageDetail_20' ) start [2025-02-07 22:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425523', 'tblTempUsageDetail_20' ) end [2025-02-07 22:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425523', 'tblTempVendorCDR_20' ) start [2025-02-07 22:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425523', 'tblTempVendorCDR_20' ) end [2025-02-07 22:46:20] Production.INFO: ProcessCDR(1,14425523,1,1,2) [2025-02-07 22:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425523', 'tblTempUsageDetail_20' ) start [2025-02-07 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425523', 'tblTempUsageDetail_20' ) end [2025-02-07 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:46:23] Production.INFO: ==24915== Releasing lock... [2025-02-07 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:46:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:47:05 [end_date_ymd] => 2025-02-07 22:47:05 [RateCDR] => 1 ) [2025-02-07 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:47:05' and `end` < '2025-02-07 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:47:18] Production.INFO: count ==1154 [2025-02-07 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:47:05 - End Time 2025-02-07 22:47:05 [2025-02-07 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425528', 'tblTempUsageDetail_20' ) start [2025-02-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425528', 'tblTempUsageDetail_20' ) end [2025-02-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425528', 'tblTempVendorCDR_20' ) start [2025-02-07 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425528', 'tblTempVendorCDR_20' ) end [2025-02-07 22:47:18] Production.INFO: ProcessCDR(1,14425528,1,1,2) [2025-02-07 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425528', 'tblTempUsageDetail_20' ) start [2025-02-07 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425528', 'tblTempUsageDetail_20' ) end [2025-02-07 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:47:22] Production.INFO: ==24986== Releasing lock... [2025-02-07 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:47:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:48:06 [end_date_ymd] => 2025-02-07 22:48:06 [RateCDR] => 1 ) [2025-02-07 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:48:06' and `end` < '2025-02-07 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:48:19] Production.INFO: count ==1154 [2025-02-07 22:48:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:48:06 - End Time 2025-02-07 22:48:06 [2025-02-07 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425533', 'tblTempUsageDetail_20' ) start [2025-02-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425533', 'tblTempUsageDetail_20' ) end [2025-02-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425533', 'tblTempVendorCDR_20' ) start [2025-02-07 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425533', 'tblTempVendorCDR_20' ) end [2025-02-07 22:48:19] Production.INFO: ProcessCDR(1,14425533,1,1,2) [2025-02-07 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425533', 'tblTempUsageDetail_20' ) start [2025-02-07 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425533', 'tblTempUsageDetail_20' ) end [2025-02-07 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:48:22] Production.INFO: ==25059== Releasing lock... [2025-02-07 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:48:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:49:05 [end_date_ymd] => 2025-02-07 22:49:05 [RateCDR] => 1 ) [2025-02-07 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:49:05' and `end` < '2025-02-07 22:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:49:18] Production.INFO: count ==1154 [2025-02-07 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:49:05 - End Time 2025-02-07 22:49:05 [2025-02-07 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425538', 'tblTempUsageDetail_20' ) start [2025-02-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425538', 'tblTempUsageDetail_20' ) end [2025-02-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425538', 'tblTempVendorCDR_20' ) start [2025-02-07 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425538', 'tblTempVendorCDR_20' ) end [2025-02-07 22:49:18] Production.INFO: ProcessCDR(1,14425538,1,1,2) [2025-02-07 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425538', 'tblTempUsageDetail_20' ) start [2025-02-07 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425538', 'tblTempUsageDetail_20' ) end [2025-02-07 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:49:21] Production.INFO: ==25133== Releasing lock... [2025-02-07 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:50:06 [end_date_ymd] => 2025-02-07 22:50:06 [RateCDR] => 1 ) [2025-02-07 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:50:06' and `end` < '2025-02-07 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:50:19] Production.INFO: count ==1156 [2025-02-07 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:50:06 - End Time 2025-02-07 22:50:06 [2025-02-07 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425544', 'tblTempUsageDetail_20' ) start [2025-02-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425544', 'tblTempUsageDetail_20' ) end [2025-02-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425544', 'tblTempVendorCDR_20' ) start [2025-02-07 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425544', 'tblTempVendorCDR_20' ) end [2025-02-07 22:50:19] Production.INFO: ProcessCDR(1,14425544,1,1,2) [2025-02-07 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425544', 'tblTempUsageDetail_20' ) start [2025-02-07 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425544', 'tblTempUsageDetail_20' ) end [2025-02-07 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:50:22] Production.INFO: ==25212== Releasing lock... [2025-02-07 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:51:05 [end_date_ymd] => 2025-02-07 22:51:05 [RateCDR] => 1 ) [2025-02-07 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:51:05' and `end` < '2025-02-07 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:51:18] Production.INFO: count ==1159 [2025-02-07 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:51:05 - End Time 2025-02-07 22:51:05 [2025-02-07 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425549', 'tblTempUsageDetail_20' ) start [2025-02-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425549', 'tblTempUsageDetail_20' ) end [2025-02-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425549', 'tblTempVendorCDR_20' ) start [2025-02-07 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425549', 'tblTempVendorCDR_20' ) end [2025-02-07 22:51:18] Production.INFO: ProcessCDR(1,14425549,1,1,2) [2025-02-07 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425549', 'tblTempUsageDetail_20' ) start [2025-02-07 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425549', 'tblTempUsageDetail_20' ) end [2025-02-07 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:51:21] Production.INFO: ==25325== Releasing lock... [2025-02-07 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:52:05 [end_date_ymd] => 2025-02-07 22:52:05 [RateCDR] => 1 ) [2025-02-07 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:52:05' and `end` < '2025-02-07 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:52:21] Production.INFO: count ==1154 [2025-02-07 22:52:21] Production.ERROR: pbx CDR StartTime 2025-02-07 19:52:05 - End Time 2025-02-07 22:52:05 [2025-02-07 22:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425554', 'tblTempUsageDetail_20' ) start [2025-02-07 22:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425554', 'tblTempUsageDetail_20' ) end [2025-02-07 22:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425554', 'tblTempVendorCDR_20' ) start [2025-02-07 22:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425554', 'tblTempVendorCDR_20' ) end [2025-02-07 22:52:21] Production.INFO: ProcessCDR(1,14425554,1,1,2) [2025-02-07 22:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425554', 'tblTempUsageDetail_20' ) start [2025-02-07 22:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425554', 'tblTempUsageDetail_20' ) end [2025-02-07 22:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:52:24] Production.INFO: ==25401== Releasing lock... [2025-02-07 22:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:52:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:53:05 [end_date_ymd] => 2025-02-07 22:53:05 [RateCDR] => 1 ) [2025-02-07 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:53:05' and `end` < '2025-02-07 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:53:19] Production.INFO: count ==1150 [2025-02-07 22:53:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:53:05 - End Time 2025-02-07 22:53:05 [2025-02-07 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425559', 'tblTempUsageDetail_20' ) start [2025-02-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425559', 'tblTempUsageDetail_20' ) end [2025-02-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425559', 'tblTempVendorCDR_20' ) start [2025-02-07 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425559', 'tblTempVendorCDR_20' ) end [2025-02-07 22:53:19] Production.INFO: ProcessCDR(1,14425559,1,1,2) [2025-02-07 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425559', 'tblTempUsageDetail_20' ) start [2025-02-07 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425559', 'tblTempUsageDetail_20' ) end [2025-02-07 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:53:22] Production.INFO: ==25472== Releasing lock... [2025-02-07 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:54:05 [end_date_ymd] => 2025-02-07 22:54:05 [RateCDR] => 1 ) [2025-02-07 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:54:05' and `end` < '2025-02-07 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:54:19] Production.INFO: count ==1145 [2025-02-07 22:54:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:54:05 - End Time 2025-02-07 22:54:05 [2025-02-07 22:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425564', 'tblTempUsageDetail_20' ) start [2025-02-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425564', 'tblTempUsageDetail_20' ) end [2025-02-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425564', 'tblTempVendorCDR_20' ) start [2025-02-07 22:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425564', 'tblTempVendorCDR_20' ) end [2025-02-07 22:54:19] Production.INFO: ProcessCDR(1,14425564,1,1,2) [2025-02-07 22:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425564', 'tblTempUsageDetail_20' ) start [2025-02-07 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425564', 'tblTempUsageDetail_20' ) end [2025-02-07 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:54:23] Production.INFO: ==25553== Releasing lock... [2025-02-07 22:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:54:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:55:06 [end_date_ymd] => 2025-02-07 22:55:06 [RateCDR] => 1 ) [2025-02-07 22:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:55:06' and `end` < '2025-02-07 22:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:55:19] Production.INFO: count ==1145 [2025-02-07 22:55:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:55:06 - End Time 2025-02-07 22:55:06 [2025-02-07 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425569', 'tblTempUsageDetail_20' ) start [2025-02-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425569', 'tblTempUsageDetail_20' ) end [2025-02-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425569', 'tblTempVendorCDR_20' ) start [2025-02-07 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425569', 'tblTempVendorCDR_20' ) end [2025-02-07 22:55:19] Production.INFO: ProcessCDR(1,14425569,1,1,2) [2025-02-07 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425569', 'tblTempUsageDetail_20' ) start [2025-02-07 22:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425569', 'tblTempUsageDetail_20' ) end [2025-02-07 22:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:55:24] Production.INFO: ==25625== Releasing lock... [2025-02-07 22:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:55:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:56:05 [end_date_ymd] => 2025-02-07 22:56:05 [RateCDR] => 1 ) [2025-02-07 22: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-07 19:56:05' and `end` < '2025-02-07 22:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:56:19] Production.INFO: count ==1146 [2025-02-07 22:56:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:56:05 - End Time 2025-02-07 22:56:05 [2025-02-07 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425574', 'tblTempUsageDetail_20' ) start [2025-02-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425574', 'tblTempUsageDetail_20' ) end [2025-02-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425574', 'tblTempVendorCDR_20' ) start [2025-02-07 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425574', 'tblTempVendorCDR_20' ) end [2025-02-07 22:56:19] Production.INFO: ProcessCDR(1,14425574,1,1,2) [2025-02-07 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425574', 'tblTempUsageDetail_20' ) start [2025-02-07 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425574', 'tblTempUsageDetail_20' ) end [2025-02-07 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:56:23] Production.INFO: ==25697== Releasing lock... [2025-02-07 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:56:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:57:05 [end_date_ymd] => 2025-02-07 22:57:05 [RateCDR] => 1 ) [2025-02-07 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:57:05' and `end` < '2025-02-07 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:57:19] Production.INFO: count ==1147 [2025-02-07 22:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:57:05 - End Time 2025-02-07 22:57:05 [2025-02-07 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425579', 'tblTempUsageDetail_20' ) start [2025-02-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425579', 'tblTempUsageDetail_20' ) end [2025-02-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425579', 'tblTempVendorCDR_20' ) start [2025-02-07 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425579', 'tblTempVendorCDR_20' ) end [2025-02-07 22:57:19] Production.INFO: ProcessCDR(1,14425579,1,1,2) [2025-02-07 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425579', 'tblTempUsageDetail_20' ) start [2025-02-07 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425579', 'tblTempUsageDetail_20' ) end [2025-02-07 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:57:23] Production.INFO: ==25767== Releasing lock... [2025-02-07 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:57:23] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:58:05 [end_date_ymd] => 2025-02-07 22:58:05 [RateCDR] => 1 ) [2025-02-07 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:58:05' and `end` < '2025-02-07 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:58:18] Production.INFO: count ==1150 [2025-02-07 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 19:58:05 - End Time 2025-02-07 22:58:05 [2025-02-07 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425584', 'tblTempUsageDetail_20' ) start [2025-02-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425584', 'tblTempUsageDetail_20' ) end [2025-02-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425584', 'tblTempVendorCDR_20' ) start [2025-02-07 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425584', 'tblTempVendorCDR_20' ) end [2025-02-07 22:58:18] Production.INFO: ProcessCDR(1,14425584,1,1,2) [2025-02-07 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425584', 'tblTempUsageDetail_20' ) start [2025-02-07 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425584', 'tblTempUsageDetail_20' ) end [2025-02-07 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:58:21] Production.INFO: ==25840== Releasing lock... [2025-02-07 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:58:21] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 19:59:05 [end_date_ymd] => 2025-02-07 22:59:05 [RateCDR] => 1 ) [2025-02-07 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 19:59:05' and `end` < '2025-02-07 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 22:59:19] Production.INFO: count ==1146 [2025-02-07 22:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 19:59:05 - End Time 2025-02-07 22:59:05 [2025-02-07 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425589', 'tblTempUsageDetail_20' ) start [2025-02-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425589', 'tblTempUsageDetail_20' ) end [2025-02-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425589', 'tblTempVendorCDR_20' ) start [2025-02-07 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425589', 'tblTempVendorCDR_20' ) end [2025-02-07 22:59:19] Production.INFO: ProcessCDR(1,14425589,1,1,2) [2025-02-07 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425589', 'tblTempUsageDetail_20' ) start [2025-02-07 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425589', 'tblTempUsageDetail_20' ) end [2025-02-07 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 22:59:22] Production.INFO: ==25920== Releasing lock... [2025-02-07 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 22:59:22] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:00:06 [end_date_ymd] => 2025-02-07 23:00:06 [RateCDR] => 1 ) [2025-02-07 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:00:06' and `end` < '2025-02-07 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:00:19] Production.INFO: count ==1149 [2025-02-07 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:00:06 - End Time 2025-02-07 23:00:06 [2025-02-07 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425594', 'tblTempUsageDetail_20' ) start [2025-02-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425594', 'tblTempUsageDetail_20' ) end [2025-02-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425594', 'tblTempVendorCDR_20' ) start [2025-02-07 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425594', 'tblTempVendorCDR_20' ) end [2025-02-07 23:00:19] Production.INFO: ProcessCDR(1,14425594,1,1,2) [2025-02-07 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425594', 'tblTempUsageDetail_20' ) start [2025-02-07 23:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425594', 'tblTempUsageDetail_20' ) end [2025-02-07 23:00:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:00:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:00:24] Production.INFO: ==25992== Releasing lock... [2025-02-07 23:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:00:24] Production.INFO: 36.25 MB #Memory Used# [2025-02-07 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:01:05 [end_date_ymd] => 2025-02-07 23:01:05 [RateCDR] => 1 ) [2025-02-07 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:01:05' and `end` < '2025-02-07 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:01:19] Production.INFO: count ==1119 [2025-02-07 23:01:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:01:05 - End Time 2025-02-07 23:01:05 [2025-02-07 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425600', 'tblTempUsageDetail_20' ) start [2025-02-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425600', 'tblTempUsageDetail_20' ) end [2025-02-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425600', 'tblTempVendorCDR_20' ) start [2025-02-07 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425600', 'tblTempVendorCDR_20' ) end [2025-02-07 23:01:19] Production.INFO: ProcessCDR(1,14425600,1,1,2) [2025-02-07 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425600', 'tblTempUsageDetail_20' ) start [2025-02-07 23:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425600', 'tblTempUsageDetail_20' ) end [2025-02-07 23:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:01:23] Production.INFO: ==26078== Releasing lock... [2025-02-07 23:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:01:23] Production.INFO: 36 MB #Memory Used# [2025-02-07 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:02:06 [end_date_ymd] => 2025-02-07 23:02:06 [RateCDR] => 1 ) [2025-02-07 23: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-07 20:02:06' and `end` < '2025-02-07 23: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-07 23:02:19] Production.INFO: count ==1107 [2025-02-07 23:02:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:02:06 - End Time 2025-02-07 23:02:06 [2025-02-07 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425605', 'tblTempUsageDetail_20' ) start [2025-02-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425605', 'tblTempUsageDetail_20' ) end [2025-02-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425605', 'tblTempVendorCDR_20' ) start [2025-02-07 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425605', 'tblTempVendorCDR_20' ) end [2025-02-07 23:02:19] Production.INFO: ProcessCDR(1,14425605,1,1,2) [2025-02-07 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425605', 'tblTempUsageDetail_20' ) start [2025-02-07 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425605', 'tblTempUsageDetail_20' ) end [2025-02-07 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:02:22] Production.INFO: ==26230== Releasing lock... [2025-02-07 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:02:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:03:05 [end_date_ymd] => 2025-02-07 23:03:05 [RateCDR] => 1 ) [2025-02-07 23:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:03:05' and `end` < '2025-02-07 23:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:03:18] Production.INFO: count ==1101 [2025-02-07 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:03:05 - End Time 2025-02-07 23:03:05 [2025-02-07 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425610', 'tblTempUsageDetail_20' ) start [2025-02-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425610', 'tblTempUsageDetail_20' ) end [2025-02-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425610', 'tblTempVendorCDR_20' ) start [2025-02-07 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425610', 'tblTempVendorCDR_20' ) end [2025-02-07 23:03:18] Production.INFO: ProcessCDR(1,14425610,1,1,2) [2025-02-07 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425610', 'tblTempUsageDetail_20' ) start [2025-02-07 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425610', 'tblTempUsageDetail_20' ) end [2025-02-07 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:03:23] Production.INFO: ==26299== Releasing lock... [2025-02-07 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:03:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:04:05 [end_date_ymd] => 2025-02-07 23:04:05 [RateCDR] => 1 ) [2025-02-07 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:04:05' and `end` < '2025-02-07 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:04:18] Production.INFO: count ==1101 [2025-02-07 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:04:05 - End Time 2025-02-07 23:04:05 [2025-02-07 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425615', 'tblTempUsageDetail_20' ) start [2025-02-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425615', 'tblTempUsageDetail_20' ) end [2025-02-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425615', 'tblTempVendorCDR_20' ) start [2025-02-07 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425615', 'tblTempVendorCDR_20' ) end [2025-02-07 23:04:18] Production.INFO: ProcessCDR(1,14425615,1,1,2) [2025-02-07 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425615', 'tblTempUsageDetail_20' ) start [2025-02-07 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425615', 'tblTempUsageDetail_20' ) end [2025-02-07 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:04:22] Production.INFO: ==26374== Releasing lock... [2025-02-07 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:04:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:05:05 [end_date_ymd] => 2025-02-07 23:05:05 [RateCDR] => 1 ) [2025-02-07 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:05:05' and `end` < '2025-02-07 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:05:18] Production.INFO: count ==1097 [2025-02-07 23:05:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:05:05 - End Time 2025-02-07 23:05:05 [2025-02-07 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425620', 'tblTempUsageDetail_20' ) start [2025-02-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425620', 'tblTempUsageDetail_20' ) end [2025-02-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425620', 'tblTempVendorCDR_20' ) start [2025-02-07 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425620', 'tblTempVendorCDR_20' ) end [2025-02-07 23:05:18] Production.INFO: ProcessCDR(1,14425620,1,1,2) [2025-02-07 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425620', 'tblTempUsageDetail_20' ) start [2025-02-07 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425620', 'tblTempUsageDetail_20' ) end [2025-02-07 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:05:22] Production.INFO: ==26526== Releasing lock... [2025-02-07 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:05:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:06:06 [end_date_ymd] => 2025-02-07 23:06:06 [RateCDR] => 1 ) [2025-02-07 23:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:06:06' and `end` < '2025-02-07 23:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:06:19] Production.INFO: count ==1097 [2025-02-07 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:06:06 - End Time 2025-02-07 23:06:06 [2025-02-07 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425625', 'tblTempUsageDetail_20' ) start [2025-02-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425625', 'tblTempUsageDetail_20' ) end [2025-02-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425625', 'tblTempVendorCDR_20' ) start [2025-02-07 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425625', 'tblTempVendorCDR_20' ) end [2025-02-07 23:06:19] Production.INFO: ProcessCDR(1,14425625,1,1,2) [2025-02-07 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425625', 'tblTempUsageDetail_20' ) start [2025-02-07 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425625', 'tblTempUsageDetail_20' ) end [2025-02-07 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:06:22] Production.INFO: ==26636== Releasing lock... [2025-02-07 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:06:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:07:05 [end_date_ymd] => 2025-02-07 23:07:05 [RateCDR] => 1 ) [2025-02-07 23:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:07:05' and `end` < '2025-02-07 23:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:07:20] Production.INFO: count ==1098 [2025-02-07 23:07:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:07:05 - End Time 2025-02-07 23:07:05 [2025-02-07 23:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425630', 'tblTempUsageDetail_20' ) start [2025-02-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425630', 'tblTempUsageDetail_20' ) end [2025-02-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425630', 'tblTempVendorCDR_20' ) start [2025-02-07 23:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425630', 'tblTempVendorCDR_20' ) end [2025-02-07 23:07:20] Production.INFO: ProcessCDR(1,14425630,1,1,2) [2025-02-07 23:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425630', 'tblTempUsageDetail_20' ) start [2025-02-07 23:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425630', 'tblTempUsageDetail_20' ) end [2025-02-07 23:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:07:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:07:25] Production.INFO: ==26710== Releasing lock... [2025-02-07 23:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:07:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:08:05 [end_date_ymd] => 2025-02-07 23:08:05 [RateCDR] => 1 ) [2025-02-07 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:08:05' and `end` < '2025-02-07 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:08:19] Production.INFO: count ==1102 [2025-02-07 23:08:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:08:05 - End Time 2025-02-07 23:08:05 [2025-02-07 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425635', 'tblTempUsageDetail_20' ) start [2025-02-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425635', 'tblTempUsageDetail_20' ) end [2025-02-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425635', 'tblTempVendorCDR_20' ) start [2025-02-07 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425635', 'tblTempVendorCDR_20' ) end [2025-02-07 23:08:19] Production.INFO: ProcessCDR(1,14425635,1,1,2) [2025-02-07 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425635', 'tblTempUsageDetail_20' ) start [2025-02-07 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425635', 'tblTempUsageDetail_20' ) end [2025-02-07 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:08:23] Production.INFO: ==26870== Releasing lock... [2025-02-07 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:09:05 [end_date_ymd] => 2025-02-07 23:09:05 [RateCDR] => 1 ) [2025-02-07 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:09:05' and `end` < '2025-02-07 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:09:18] Production.INFO: count ==1103 [2025-02-07 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:09:05 - End Time 2025-02-07 23:09:05 [2025-02-07 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425640', 'tblTempUsageDetail_20' ) start [2025-02-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425640', 'tblTempUsageDetail_20' ) end [2025-02-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425640', 'tblTempVendorCDR_20' ) start [2025-02-07 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425640', 'tblTempVendorCDR_20' ) end [2025-02-07 23:09:18] Production.INFO: ProcessCDR(1,14425640,1,1,2) [2025-02-07 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425640', 'tblTempUsageDetail_20' ) start [2025-02-07 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425640', 'tblTempUsageDetail_20' ) end [2025-02-07 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:09:21] Production.INFO: ==26941== Releasing lock... [2025-02-07 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:09:21] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:10:06 [end_date_ymd] => 2025-02-07 23:10:06 [RateCDR] => 1 ) [2025-02-07 23:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:10:06' and `end` < '2025-02-07 23:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:10:19] Production.INFO: count ==1102 [2025-02-07 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:10:06 - End Time 2025-02-07 23:10:06 [2025-02-07 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425646', 'tblTempUsageDetail_20' ) start [2025-02-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425646', 'tblTempUsageDetail_20' ) end [2025-02-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425646', 'tblTempVendorCDR_20' ) start [2025-02-07 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425646', 'tblTempVendorCDR_20' ) end [2025-02-07 23:10:19] Production.INFO: ProcessCDR(1,14425646,1,1,2) [2025-02-07 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425646', 'tblTempUsageDetail_20' ) start [2025-02-07 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425646', 'tblTempUsageDetail_20' ) end [2025-02-07 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:10:22] Production.INFO: ==27017== Releasing lock... [2025-02-07 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:10:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:11:05 [end_date_ymd] => 2025-02-07 23:11:05 [RateCDR] => 1 ) [2025-02-07 23:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:11:05' and `end` < '2025-02-07 23:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:11:18] Production.INFO: count ==1051 [2025-02-07 23:11:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:11:05 - End Time 2025-02-07 23:11:05 [2025-02-07 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425651', 'tblTempUsageDetail_20' ) start [2025-02-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425651', 'tblTempUsageDetail_20' ) end [2025-02-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425651', 'tblTempVendorCDR_20' ) start [2025-02-07 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425651', 'tblTempVendorCDR_20' ) end [2025-02-07 23:11:18] Production.INFO: ProcessCDR(1,14425651,1,1,2) [2025-02-07 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425651', 'tblTempUsageDetail_20' ) start [2025-02-07 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425651', 'tblTempUsageDetail_20' ) end [2025-02-07 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:11:21] Production.INFO: ==27095== Releasing lock... [2025-02-07 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:11:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:12:06 [end_date_ymd] => 2025-02-07 23:12:06 [RateCDR] => 1 ) [2025-02-07 23: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-07 20:12:06' and `end` < '2025-02-07 23: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-07 23:12:19] Production.INFO: count ==1051 [2025-02-07 23:12:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:12:06 - End Time 2025-02-07 23:12:06 [2025-02-07 23:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425656', 'tblTempUsageDetail_20' ) start [2025-02-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425656', 'tblTempUsageDetail_20' ) end [2025-02-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425656', 'tblTempVendorCDR_20' ) start [2025-02-07 23:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425656', 'tblTempVendorCDR_20' ) end [2025-02-07 23:12:20] Production.INFO: ProcessCDR(1,14425656,1,1,2) [2025-02-07 23:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425656', 'tblTempUsageDetail_20' ) start [2025-02-07 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425656', 'tblTempUsageDetail_20' ) end [2025-02-07 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:12:23] Production.INFO: ==27246== Releasing lock... [2025-02-07 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:12:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:13:04 [end_date_ymd] => 2025-02-07 23:13:04 [RateCDR] => 1 ) [2025-02-07 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:13:04' and `end` < '2025-02-07 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:13:19] Production.INFO: count ==1050 [2025-02-07 23:13:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:13:04 - End Time 2025-02-07 23:13:04 [2025-02-07 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425661', 'tblTempUsageDetail_20' ) start [2025-02-07 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425661', 'tblTempUsageDetail_20' ) end [2025-02-07 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425661', 'tblTempVendorCDR_20' ) start [2025-02-07 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425661', 'tblTempVendorCDR_20' ) end [2025-02-07 23:13:19] Production.INFO: ProcessCDR(1,14425661,1,1,2) [2025-02-07 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425661', 'tblTempUsageDetail_20' ) start [2025-02-07 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425661', 'tblTempUsageDetail_20' ) end [2025-02-07 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:13:23] Production.INFO: ==27319== Releasing lock... [2025-02-07 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:13:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:14:06 [end_date_ymd] => 2025-02-07 23:14:06 [RateCDR] => 1 ) [2025-02-07 23:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:14:06' and `end` < '2025-02-07 23:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:14:19] Production.INFO: count ==1050 [2025-02-07 23:14:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:14:06 - End Time 2025-02-07 23:14:06 [2025-02-07 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425666', 'tblTempUsageDetail_20' ) start [2025-02-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425666', 'tblTempUsageDetail_20' ) end [2025-02-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425666', 'tblTempVendorCDR_20' ) start [2025-02-07 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425666', 'tblTempVendorCDR_20' ) end [2025-02-07 23:14:19] Production.INFO: ProcessCDR(1,14425666,1,1,2) [2025-02-07 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425666', 'tblTempUsageDetail_20' ) start [2025-02-07 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425666', 'tblTempUsageDetail_20' ) end [2025-02-07 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:14:22] Production.INFO: ==27397== Releasing lock... [2025-02-07 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-02-07 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:15:05 [end_date_ymd] => 2025-02-07 23:15:05 [RateCDR] => 1 ) [2025-02-07 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:15:05' and `end` < '2025-02-07 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:15:18] Production.INFO: count ==1052 [2025-02-07 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:15:05 - End Time 2025-02-07 23:15:05 [2025-02-07 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425671', 'tblTempUsageDetail_20' ) start [2025-02-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425671', 'tblTempUsageDetail_20' ) end [2025-02-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425671', 'tblTempVendorCDR_20' ) start [2025-02-07 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425671', 'tblTempVendorCDR_20' ) end [2025-02-07 23:15:18] Production.INFO: ProcessCDR(1,14425671,1,1,2) [2025-02-07 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425671', 'tblTempUsageDetail_20' ) start [2025-02-07 23:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425671', 'tblTempUsageDetail_20' ) end [2025-02-07 23:15:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:15:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:15:23] Production.INFO: ==27548== Releasing lock... [2025-02-07 23:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:15:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:16:05 [end_date_ymd] => 2025-02-07 23:16:05 [RateCDR] => 1 ) [2025-02-07 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:16:05' and `end` < '2025-02-07 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:16:18] Production.INFO: count ==1045 [2025-02-07 23:16:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:16:05 - End Time 2025-02-07 23:16:05 [2025-02-07 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425676', 'tblTempUsageDetail_20' ) start [2025-02-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425676', 'tblTempUsageDetail_20' ) end [2025-02-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425676', 'tblTempVendorCDR_20' ) start [2025-02-07 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425676', 'tblTempVendorCDR_20' ) end [2025-02-07 23:16:19] Production.INFO: ProcessCDR(1,14425676,1,1,2) [2025-02-07 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425676', 'tblTempUsageDetail_20' ) start [2025-02-07 23:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425676', 'tblTempUsageDetail_20' ) end [2025-02-07 23:16:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:16:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:16:22] Production.INFO: ==27629== Releasing lock... [2025-02-07 23:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:16:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:17:05 [end_date_ymd] => 2025-02-07 23:17:05 [RateCDR] => 1 ) [2025-02-07 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:17:05' and `end` < '2025-02-07 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:17:18] Production.INFO: count ==1044 [2025-02-07 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:17:05 - End Time 2025-02-07 23:17:05 [2025-02-07 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425681', 'tblTempUsageDetail_20' ) start [2025-02-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425681', 'tblTempUsageDetail_20' ) end [2025-02-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425681', 'tblTempVendorCDR_20' ) start [2025-02-07 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425681', 'tblTempVendorCDR_20' ) end [2025-02-07 23:17:18] Production.INFO: ProcessCDR(1,14425681,1,1,2) [2025-02-07 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425681', 'tblTempUsageDetail_20' ) start [2025-02-07 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425681', 'tblTempUsageDetail_20' ) end [2025-02-07 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:17:23] Production.INFO: ==27702== Releasing lock... [2025-02-07 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:17:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:18:05 [end_date_ymd] => 2025-02-07 23:18:05 [RateCDR] => 1 ) [2025-02-07 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:18:05' and `end` < '2025-02-07 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:18:18] Production.INFO: count ==1042 [2025-02-07 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:18:05 - End Time 2025-02-07 23:18:05 [2025-02-07 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425686', 'tblTempUsageDetail_20' ) start [2025-02-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425686', 'tblTempUsageDetail_20' ) end [2025-02-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425686', 'tblTempVendorCDR_20' ) start [2025-02-07 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425686', 'tblTempVendorCDR_20' ) end [2025-02-07 23:18:18] Production.INFO: ProcessCDR(1,14425686,1,1,2) [2025-02-07 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425686', 'tblTempUsageDetail_20' ) start [2025-02-07 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425686', 'tblTempUsageDetail_20' ) end [2025-02-07 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:18:22] Production.INFO: ==27776== Releasing lock... [2025-02-07 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:18:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:19:05 [end_date_ymd] => 2025-02-07 23:19:05 [RateCDR] => 1 ) [2025-02-07 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:19:05' and `end` < '2025-02-07 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:19:18] Production.INFO: count ==1044 [2025-02-07 23:19:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:19:05 - End Time 2025-02-07 23:19:05 [2025-02-07 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425691', 'tblTempUsageDetail_20' ) start [2025-02-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425691', 'tblTempUsageDetail_20' ) end [2025-02-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425691', 'tblTempVendorCDR_20' ) start [2025-02-07 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425691', 'tblTempVendorCDR_20' ) end [2025-02-07 23:19:18] Production.INFO: ProcessCDR(1,14425691,1,1,2) [2025-02-07 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425691', 'tblTempUsageDetail_20' ) start [2025-02-07 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425691', 'tblTempUsageDetail_20' ) end [2025-02-07 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:19:21] Production.INFO: ==27852== Releasing lock... [2025-02-07 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:19:21] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:20:06 [end_date_ymd] => 2025-02-07 23:20:06 [RateCDR] => 1 ) [2025-02-07 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:20:06' and `end` < '2025-02-07 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:20:19] Production.INFO: count ==1044 [2025-02-07 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:20:06 - End Time 2025-02-07 23:20:06 [2025-02-07 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425697', 'tblTempUsageDetail_20' ) start [2025-02-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425697', 'tblTempUsageDetail_20' ) end [2025-02-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425697', 'tblTempVendorCDR_20' ) start [2025-02-07 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425697', 'tblTempVendorCDR_20' ) end [2025-02-07 23:20:19] Production.INFO: ProcessCDR(1,14425697,1,1,2) [2025-02-07 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425697', 'tblTempUsageDetail_20' ) start [2025-02-07 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425697', 'tblTempUsageDetail_20' ) end [2025-02-07 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:20:22] Production.INFO: ==27924== Releasing lock... [2025-02-07 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:20:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:21:05 [end_date_ymd] => 2025-02-07 23:21:05 [RateCDR] => 1 ) [2025-02-07 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:21:05' and `end` < '2025-02-07 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:21:19] Production.INFO: count ==1039 [2025-02-07 23:21:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:21:05 - End Time 2025-02-07 23:21:05 [2025-02-07 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425702', 'tblTempUsageDetail_20' ) start [2025-02-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425702', 'tblTempUsageDetail_20' ) end [2025-02-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425702', 'tblTempVendorCDR_20' ) start [2025-02-07 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425702', 'tblTempVendorCDR_20' ) end [2025-02-07 23:21:19] Production.INFO: ProcessCDR(1,14425702,1,1,2) [2025-02-07 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425702', 'tblTempUsageDetail_20' ) start [2025-02-07 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425702', 'tblTempUsageDetail_20' ) end [2025-02-07 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:21:22] Production.INFO: ==28001== Releasing lock... [2025-02-07 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:21:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:22:05 [end_date_ymd] => 2025-02-07 23:22:05 [RateCDR] => 1 ) [2025-02-07 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:22:05' and `end` < '2025-02-07 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:22:21] Production.INFO: count ==1040 [2025-02-07 23:22:21] Production.ERROR: pbx CDR StartTime 2025-02-07 20:22:05 - End Time 2025-02-07 23:22:05 [2025-02-07 23:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425707', 'tblTempUsageDetail_20' ) start [2025-02-07 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425707', 'tblTempUsageDetail_20' ) end [2025-02-07 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425707', 'tblTempVendorCDR_20' ) start [2025-02-07 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425707', 'tblTempVendorCDR_20' ) end [2025-02-07 23:22:21] Production.INFO: ProcessCDR(1,14425707,1,1,2) [2025-02-07 23:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425707', 'tblTempUsageDetail_20' ) start [2025-02-07 23:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425707', 'tblTempUsageDetail_20' ) end [2025-02-07 23:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:22:26] Production.INFO: ==28114== Releasing lock... [2025-02-07 23:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:22:26] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:23:06 [end_date_ymd] => 2025-02-07 23:23:06 [RateCDR] => 1 ) [2025-02-07 23: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-07 20:23:06' and `end` < '2025-02-07 23: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-07 23:23:19] Production.INFO: count ==1040 [2025-02-07 23:23:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:23:06 - End Time 2025-02-07 23:23:06 [2025-02-07 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425712', 'tblTempUsageDetail_20' ) start [2025-02-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425712', 'tblTempUsageDetail_20' ) end [2025-02-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425712', 'tblTempVendorCDR_20' ) start [2025-02-07 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425712', 'tblTempVendorCDR_20' ) end [2025-02-07 23:23:19] Production.INFO: ProcessCDR(1,14425712,1,1,2) [2025-02-07 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425712', 'tblTempUsageDetail_20' ) start [2025-02-07 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425712', 'tblTempUsageDetail_20' ) end [2025-02-07 23:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:23:23] Production.INFO: ==28187== Releasing lock... [2025-02-07 23:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:23:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:24:05 [end_date_ymd] => 2025-02-07 23:24:05 [RateCDR] => 1 ) [2025-02-07 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:24:05' and `end` < '2025-02-07 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:24:18] Production.INFO: count ==1037 [2025-02-07 23:24:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:24:05 - End Time 2025-02-07 23:24:05 [2025-02-07 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425717', 'tblTempUsageDetail_20' ) start [2025-02-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425717', 'tblTempUsageDetail_20' ) end [2025-02-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425717', 'tblTempVendorCDR_20' ) start [2025-02-07 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425717', 'tblTempVendorCDR_20' ) end [2025-02-07 23:24:19] Production.INFO: ProcessCDR(1,14425717,1,1,2) [2025-02-07 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425717', 'tblTempUsageDetail_20' ) start [2025-02-07 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425717', 'tblTempUsageDetail_20' ) end [2025-02-07 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:24:22] Production.INFO: ==28260== Releasing lock... [2025-02-07 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:24:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:25:06 [end_date_ymd] => 2025-02-07 23:25:06 [RateCDR] => 1 ) [2025-02-07 23: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-07 20:25:06' and `end` < '2025-02-07 23: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-07 23:25:19] Production.INFO: count ==1040 [2025-02-07 23:25:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:25:06 - End Time 2025-02-07 23:25:06 [2025-02-07 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425722', 'tblTempUsageDetail_20' ) start [2025-02-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425722', 'tblTempUsageDetail_20' ) end [2025-02-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425722', 'tblTempVendorCDR_20' ) start [2025-02-07 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425722', 'tblTempVendorCDR_20' ) end [2025-02-07 23:25:19] Production.INFO: ProcessCDR(1,14425722,1,1,2) [2025-02-07 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425722', 'tblTempUsageDetail_20' ) start [2025-02-07 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425722', 'tblTempUsageDetail_20' ) end [2025-02-07 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:25:22] Production.INFO: ==28331== Releasing lock... [2025-02-07 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:25:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:26:05 [end_date_ymd] => 2025-02-07 23:26:05 [RateCDR] => 1 ) [2025-02-07 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:26:05' and `end` < '2025-02-07 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:26:18] Production.INFO: count ==1036 [2025-02-07 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:26:05 - End Time 2025-02-07 23:26:05 [2025-02-07 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425727', 'tblTempUsageDetail_20' ) start [2025-02-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425727', 'tblTempUsageDetail_20' ) end [2025-02-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425727', 'tblTempVendorCDR_20' ) start [2025-02-07 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425727', 'tblTempVendorCDR_20' ) end [2025-02-07 23:26:18] Production.INFO: ProcessCDR(1,14425727,1,1,2) [2025-02-07 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425727', 'tblTempUsageDetail_20' ) start [2025-02-07 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425727', 'tblTempUsageDetail_20' ) end [2025-02-07 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:26:22] Production.INFO: ==28430== Releasing lock... [2025-02-07 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:26:22] Production.INFO: 35.5 MB #Memory Used# [2025-02-07 23:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:27:06 [end_date_ymd] => 2025-02-07 23:27:06 [RateCDR] => 1 ) [2025-02-07 23:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:27:06' and `end` < '2025-02-07 23:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:27:19] Production.INFO: count ==1034 [2025-02-07 23:27:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:27:06 - End Time 2025-02-07 23:27:06 [2025-02-07 23:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425732', 'tblTempUsageDetail_20' ) start [2025-02-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425732', 'tblTempUsageDetail_20' ) end [2025-02-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425732', 'tblTempVendorCDR_20' ) start [2025-02-07 23:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425732', 'tblTempVendorCDR_20' ) end [2025-02-07 23:27:19] Production.INFO: ProcessCDR(1,14425732,1,1,2) [2025-02-07 23:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425732', 'tblTempUsageDetail_20' ) start [2025-02-07 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425732', 'tblTempUsageDetail_20' ) end [2025-02-07 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:27:22] Production.INFO: ==28560== Releasing lock... [2025-02-07 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:28:05 [end_date_ymd] => 2025-02-07 23:28:05 [RateCDR] => 1 ) [2025-02-07 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:28:05' and `end` < '2025-02-07 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:28:20] Production.INFO: count ==1035 [2025-02-07 23:28:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:28:05 - End Time 2025-02-07 23:28:05 [2025-02-07 23:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425737', 'tblTempUsageDetail_20' ) start [2025-02-07 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425737', 'tblTempUsageDetail_20' ) end [2025-02-07 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425737', 'tblTempVendorCDR_20' ) start [2025-02-07 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425737', 'tblTempVendorCDR_20' ) end [2025-02-07 23:28:20] Production.INFO: ProcessCDR(1,14425737,1,1,2) [2025-02-07 23:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425737', 'tblTempUsageDetail_20' ) start [2025-02-07 23:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425737', 'tblTempUsageDetail_20' ) end [2025-02-07 23:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:28:25] Production.INFO: ==28691== Releasing lock... [2025-02-07 23:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:28:25] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:29:06 [end_date_ymd] => 2025-02-07 23:29:06 [RateCDR] => 1 ) [2025-02-07 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:29:06' and `end` < '2025-02-07 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:29:19] Production.INFO: count ==1034 [2025-02-07 23:29:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:29:06 - End Time 2025-02-07 23:29:06 [2025-02-07 23:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425742', 'tblTempUsageDetail_20' ) start [2025-02-07 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425742', 'tblTempUsageDetail_20' ) end [2025-02-07 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425742', 'tblTempVendorCDR_20' ) start [2025-02-07 23:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425742', 'tblTempVendorCDR_20' ) end [2025-02-07 23:29:19] Production.INFO: ProcessCDR(1,14425742,1,1,2) [2025-02-07 23:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425742', 'tblTempUsageDetail_20' ) start [2025-02-07 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425742', 'tblTempUsageDetail_20' ) end [2025-02-07 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:29:22] Production.INFO: ==28821== Releasing lock... [2025-02-07 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:29:22] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:30:06 [end_date_ymd] => 2025-02-07 23:30:06 [RateCDR] => 1 ) [2025-02-07 23:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:30:06' and `end` < '2025-02-07 23:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:30:19] Production.INFO: count ==1020 [2025-02-07 23:30:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:30:06 - End Time 2025-02-07 23:30:06 [2025-02-07 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425748', 'tblTempUsageDetail_20' ) start [2025-02-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425748', 'tblTempUsageDetail_20' ) end [2025-02-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425748', 'tblTempVendorCDR_20' ) start [2025-02-07 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425748', 'tblTempVendorCDR_20' ) end [2025-02-07 23:30:19] Production.INFO: ProcessCDR(1,14425748,1,1,2) [2025-02-07 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425748', 'tblTempUsageDetail_20' ) start [2025-02-07 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425748', 'tblTempUsageDetail_20' ) end [2025-02-07 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:30:23] Production.INFO: ==28951== Releasing lock... [2025-02-07 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-02-07 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:31:05 [end_date_ymd] => 2025-02-07 23:31:05 [RateCDR] => 1 ) [2025-02-07 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:31:05' and `end` < '2025-02-07 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:31:20] Production.INFO: count ==985 [2025-02-07 23:31:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:31:05 - End Time 2025-02-07 23:31:05 [2025-02-07 23:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425753', 'tblTempUsageDetail_20' ) start [2025-02-07 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425753', 'tblTempUsageDetail_20' ) end [2025-02-07 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425753', 'tblTempVendorCDR_20' ) start [2025-02-07 23:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425753', 'tblTempVendorCDR_20' ) end [2025-02-07 23:31:20] Production.INFO: ProcessCDR(1,14425753,1,1,2) [2025-02-07 23:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425753', 'tblTempUsageDetail_20' ) start [2025-02-07 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425753', 'tblTempUsageDetail_20' ) end [2025-02-07 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:31:23] Production.INFO: ==29081== Releasing lock... [2025-02-07 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:31:23] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:32:05 [end_date_ymd] => 2025-02-07 23:32:05 [RateCDR] => 1 ) [2025-02-07 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:32:05' and `end` < '2025-02-07 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:32:18] Production.INFO: count ==983 [2025-02-07 23:32:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:32:05 - End Time 2025-02-07 23:32:05 [2025-02-07 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425758', 'tblTempUsageDetail_20' ) start [2025-02-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425758', 'tblTempUsageDetail_20' ) end [2025-02-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425758', 'tblTempVendorCDR_20' ) start [2025-02-07 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425758', 'tblTempVendorCDR_20' ) end [2025-02-07 23:32:18] Production.INFO: ProcessCDR(1,14425758,1,1,2) [2025-02-07 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425758', 'tblTempUsageDetail_20' ) start [2025-02-07 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425758', 'tblTempUsageDetail_20' ) end [2025-02-07 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:32:22] Production.INFO: ==29208== Releasing lock... [2025-02-07 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:32:22] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:33:05 [end_date_ymd] => 2025-02-07 23:33:05 [RateCDR] => 1 ) [2025-02-07 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:33:05' and `end` < '2025-02-07 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:33:18] Production.INFO: count ==980 [2025-02-07 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:33:05 - End Time 2025-02-07 23:33:05 [2025-02-07 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425763', 'tblTempUsageDetail_20' ) start [2025-02-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425763', 'tblTempUsageDetail_20' ) end [2025-02-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425763', 'tblTempVendorCDR_20' ) start [2025-02-07 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425763', 'tblTempVendorCDR_20' ) end [2025-02-07 23:33:18] Production.INFO: ProcessCDR(1,14425763,1,1,2) [2025-02-07 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425763', 'tblTempUsageDetail_20' ) start [2025-02-07 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425763', 'tblTempUsageDetail_20' ) end [2025-02-07 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:33:23] Production.INFO: ==29337== Releasing lock... [2025-02-07 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:33:23] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:34:05 [end_date_ymd] => 2025-02-07 23:34:05 [RateCDR] => 1 ) [2025-02-07 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:34:05' and `end` < '2025-02-07 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:34:18] Production.INFO: count ==980 [2025-02-07 23:34:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:34:05 - End Time 2025-02-07 23:34:05 [2025-02-07 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425768', 'tblTempUsageDetail_20' ) start [2025-02-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425768', 'tblTempUsageDetail_20' ) end [2025-02-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425768', 'tblTempVendorCDR_20' ) start [2025-02-07 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425768', 'tblTempVendorCDR_20' ) end [2025-02-07 23:34:18] Production.INFO: ProcessCDR(1,14425768,1,1,2) [2025-02-07 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425768', 'tblTempUsageDetail_20' ) start [2025-02-07 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425768', 'tblTempUsageDetail_20' ) end [2025-02-07 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:34:21] Production.INFO: ==29461== Releasing lock... [2025-02-07 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:34:21] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:35:05 [end_date_ymd] => 2025-02-07 23:35:05 [RateCDR] => 1 ) [2025-02-07 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:35:05' and `end` < '2025-02-07 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:35:18] Production.INFO: count ==975 [2025-02-07 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:35:05 - End Time 2025-02-07 23:35:05 [2025-02-07 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425773', 'tblTempUsageDetail_20' ) start [2025-02-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425773', 'tblTempUsageDetail_20' ) end [2025-02-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425773', 'tblTempVendorCDR_20' ) start [2025-02-07 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425773', 'tblTempVendorCDR_20' ) end [2025-02-07 23:35:18] Production.INFO: ProcessCDR(1,14425773,1,1,2) [2025-02-07 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425773', 'tblTempUsageDetail_20' ) start [2025-02-07 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425773', 'tblTempUsageDetail_20' ) end [2025-02-07 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:35:21] Production.INFO: ==29596== Releasing lock... [2025-02-07 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:35:21] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:36:05 [end_date_ymd] => 2025-02-07 23:36:05 [RateCDR] => 1 ) [2025-02-07 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:36:05' and `end` < '2025-02-07 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:36:19] Production.INFO: count ==973 [2025-02-07 23:36:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:36:05 - End Time 2025-02-07 23:36:05 [2025-02-07 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425778', 'tblTempUsageDetail_20' ) start [2025-02-07 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425778', 'tblTempUsageDetail_20' ) end [2025-02-07 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425778', 'tblTempVendorCDR_20' ) start [2025-02-07 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425778', 'tblTempVendorCDR_20' ) end [2025-02-07 23:36:20] Production.INFO: ProcessCDR(1,14425778,1,1,2) [2025-02-07 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425778', 'tblTempUsageDetail_20' ) start [2025-02-07 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425778', 'tblTempUsageDetail_20' ) end [2025-02-07 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:36:23] Production.INFO: ==29720== Releasing lock... [2025-02-07 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:36:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:37:05 [end_date_ymd] => 2025-02-07 23:37:05 [RateCDR] => 1 ) [2025-02-07 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:37:05' and `end` < '2025-02-07 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:37:20] Production.INFO: count ==974 [2025-02-07 23:37:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:37:05 - End Time 2025-02-07 23:37:05 [2025-02-07 23:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425783', 'tblTempUsageDetail_20' ) start [2025-02-07 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425783', 'tblTempUsageDetail_20' ) end [2025-02-07 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425783', 'tblTempVendorCDR_20' ) start [2025-02-07 23:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425783', 'tblTempVendorCDR_20' ) end [2025-02-07 23:37:20] Production.INFO: ProcessCDR(1,14425783,1,1,2) [2025-02-07 23:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425783', 'tblTempUsageDetail_20' ) start [2025-02-07 23:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425783', 'tblTempUsageDetail_20' ) end [2025-02-07 23:37:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:37:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:37:23] Production.INFO: ==29883== Releasing lock... [2025-02-07 23:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:37:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:38:05 [end_date_ymd] => 2025-02-07 23:38:05 [RateCDR] => 1 ) [2025-02-07 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:38:05' and `end` < '2025-02-07 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:38:18] Production.INFO: count ==977 [2025-02-07 23:38:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:38:05 - End Time 2025-02-07 23:38:05 [2025-02-07 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425788', 'tblTempUsageDetail_20' ) start [2025-02-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425788', 'tblTempUsageDetail_20' ) end [2025-02-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425788', 'tblTempVendorCDR_20' ) start [2025-02-07 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425788', 'tblTempVendorCDR_20' ) end [2025-02-07 23:38:19] Production.INFO: ProcessCDR(1,14425788,1,1,2) [2025-02-07 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425788', 'tblTempUsageDetail_20' ) start [2025-02-07 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425788', 'tblTempUsageDetail_20' ) end [2025-02-07 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:38:22] Production.INFO: ==30012== Releasing lock... [2025-02-07 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:38:22] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:39:05 [end_date_ymd] => 2025-02-07 23:39:05 [RateCDR] => 1 ) [2025-02-07 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:39:05' and `end` < '2025-02-07 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:39:20] Production.INFO: count ==977 [2025-02-07 23:39:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:39:05 - End Time 2025-02-07 23:39:05 [2025-02-07 23:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425793', 'tblTempUsageDetail_20' ) start [2025-02-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425793', 'tblTempUsageDetail_20' ) end [2025-02-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425793', 'tblTempVendorCDR_20' ) start [2025-02-07 23:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425793', 'tblTempVendorCDR_20' ) end [2025-02-07 23:39:20] Production.INFO: ProcessCDR(1,14425793,1,1,2) [2025-02-07 23:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425793', 'tblTempUsageDetail_20' ) start [2025-02-07 23:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425793', 'tblTempUsageDetail_20' ) end [2025-02-07 23:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:39:25] Production.INFO: ==30147== Releasing lock... [2025-02-07 23:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:39:25] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:40:06 [end_date_ymd] => 2025-02-07 23:40:06 [RateCDR] => 1 ) [2025-02-07 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:40:06' and `end` < '2025-02-07 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:40:19] Production.INFO: count ==973 [2025-02-07 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:40:06 - End Time 2025-02-07 23:40:06 [2025-02-07 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425799', 'tblTempUsageDetail_20' ) start [2025-02-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425799', 'tblTempUsageDetail_20' ) end [2025-02-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425799', 'tblTempVendorCDR_20' ) start [2025-02-07 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425799', 'tblTempVendorCDR_20' ) end [2025-02-07 23:40:19] Production.INFO: ProcessCDR(1,14425799,1,1,2) [2025-02-07 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425799', 'tblTempUsageDetail_20' ) start [2025-02-07 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425799', 'tblTempUsageDetail_20' ) end [2025-02-07 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:40:23] Production.INFO: ==30281== Releasing lock... [2025-02-07 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:40:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:41:05 [end_date_ymd] => 2025-02-07 23:41:05 [RateCDR] => 1 ) [2025-02-07 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:41:05' and `end` < '2025-02-07 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:41:18] Production.INFO: count ==950 [2025-02-07 23:41:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:41:05 - End Time 2025-02-07 23:41:05 [2025-02-07 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425804', 'tblTempUsageDetail_20' ) start [2025-02-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425804', 'tblTempUsageDetail_20' ) end [2025-02-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425804', 'tblTempVendorCDR_20' ) start [2025-02-07 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425804', 'tblTempVendorCDR_20' ) end [2025-02-07 23:41:18] Production.INFO: ProcessCDR(1,14425804,1,1,2) [2025-02-07 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425804', 'tblTempUsageDetail_20' ) start [2025-02-07 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425804', 'tblTempUsageDetail_20' ) end [2025-02-07 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:41:21] Production.INFO: ==30375== Releasing lock... [2025-02-07 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:41:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:42:05 [end_date_ymd] => 2025-02-07 23:42:05 [RateCDR] => 1 ) [2025-02-07 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:42:05' and `end` < '2025-02-07 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:42:18] Production.INFO: count ==952 [2025-02-07 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:42:05 - End Time 2025-02-07 23:42:05 [2025-02-07 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425809', 'tblTempUsageDetail_20' ) start [2025-02-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425809', 'tblTempUsageDetail_20' ) end [2025-02-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425809', 'tblTempVendorCDR_20' ) start [2025-02-07 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425809', 'tblTempVendorCDR_20' ) end [2025-02-07 23:42:18] Production.INFO: ProcessCDR(1,14425809,1,1,2) [2025-02-07 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425809', 'tblTempUsageDetail_20' ) start [2025-02-07 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425809', 'tblTempUsageDetail_20' ) end [2025-02-07 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:42:21] Production.INFO: ==30445== Releasing lock... [2025-02-07 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:42:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:43:05 [end_date_ymd] => 2025-02-07 23:43:05 [RateCDR] => 1 ) [2025-02-07 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:43:05' and `end` < '2025-02-07 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:43:18] Production.INFO: count ==953 [2025-02-07 23:43:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:43:05 - End Time 2025-02-07 23:43:05 [2025-02-07 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425814', 'tblTempUsageDetail_20' ) start [2025-02-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425814', 'tblTempUsageDetail_20' ) end [2025-02-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425814', 'tblTempVendorCDR_20' ) start [2025-02-07 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425814', 'tblTempVendorCDR_20' ) end [2025-02-07 23:43:18] Production.INFO: ProcessCDR(1,14425814,1,1,2) [2025-02-07 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425814', 'tblTempUsageDetail_20' ) start [2025-02-07 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425814', 'tblTempUsageDetail_20' ) end [2025-02-07 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:43:21] Production.INFO: ==30516== Releasing lock... [2025-02-07 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:43:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:44:05 [end_date_ymd] => 2025-02-07 23:44:05 [RateCDR] => 1 ) [2025-02-07 23:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:44:05' and `end` < '2025-02-07 23:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:44:18] Production.INFO: count ==960 [2025-02-07 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:44:05 - End Time 2025-02-07 23:44:05 [2025-02-07 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425819', 'tblTempUsageDetail_20' ) start [2025-02-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425819', 'tblTempUsageDetail_20' ) end [2025-02-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425819', 'tblTempVendorCDR_20' ) start [2025-02-07 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425819', 'tblTempVendorCDR_20' ) end [2025-02-07 23:44:18] Production.INFO: ProcessCDR(1,14425819,1,1,2) [2025-02-07 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425819', 'tblTempUsageDetail_20' ) start [2025-02-07 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425819', 'tblTempUsageDetail_20' ) end [2025-02-07 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:44:23] Production.INFO: ==30592== Releasing lock... [2025-02-07 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:44:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:45:05 [end_date_ymd] => 2025-02-07 23:45:05 [RateCDR] => 1 ) [2025-02-07 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:45:05' and `end` < '2025-02-07 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:45:19] Production.INFO: count ==967 [2025-02-07 23:45:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:45:05 - End Time 2025-02-07 23:45:05 [2025-02-07 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425823', 'tblTempUsageDetail_20' ) start [2025-02-07 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425823', 'tblTempUsageDetail_20' ) end [2025-02-07 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425823', 'tblTempVendorCDR_20' ) start [2025-02-07 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425823', 'tblTempVendorCDR_20' ) end [2025-02-07 23:45:19] Production.INFO: ProcessCDR(1,14425823,1,1,2) [2025-02-07 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425823', 'tblTempUsageDetail_20' ) start [2025-02-07 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425823', 'tblTempUsageDetail_20' ) end [2025-02-07 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:45:22] Production.INFO: ==30665== Releasing lock... [2025-02-07 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:46:05 [end_date_ymd] => 2025-02-07 23:46:05 [RateCDR] => 1 ) [2025-02-07 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:46:05' and `end` < '2025-02-07 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:46:19] Production.INFO: count ==972 [2025-02-07 23:46:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:46:05 - End Time 2025-02-07 23:46:05 [2025-02-07 23:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425829', 'tblTempUsageDetail_20' ) start [2025-02-07 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425829', 'tblTempUsageDetail_20' ) end [2025-02-07 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425829', 'tblTempVendorCDR_20' ) start [2025-02-07 23:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425829', 'tblTempVendorCDR_20' ) end [2025-02-07 23:46:19] Production.INFO: ProcessCDR(1,14425829,1,1,2) [2025-02-07 23:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425829', 'tblTempUsageDetail_20' ) start [2025-02-07 23:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425829', 'tblTempUsageDetail_20' ) end [2025-02-07 23:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:46:24] Production.INFO: ==30737== Releasing lock... [2025-02-07 23:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:46:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:47:05 [end_date_ymd] => 2025-02-07 23:47:05 [RateCDR] => 1 ) [2025-02-07 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:47:05' and `end` < '2025-02-07 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:47:19] Production.INFO: count ==972 [2025-02-07 23:47:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:47:05 - End Time 2025-02-07 23:47:05 [2025-02-07 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425830', 'tblTempUsageDetail_20' ) start [2025-02-07 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425830', 'tblTempUsageDetail_20' ) end [2025-02-07 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425830', 'tblTempVendorCDR_20' ) start [2025-02-07 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425830', 'tblTempVendorCDR_20' ) end [2025-02-07 23:47:19] Production.INFO: ProcessCDR(1,14425830,1,1,2) [2025-02-07 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425830', 'tblTempUsageDetail_20' ) start [2025-02-07 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425830', 'tblTempUsageDetail_20' ) end [2025-02-07 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:47:22] Production.INFO: ==30811== Releasing lock... [2025-02-07 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:47:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:48:05 [end_date_ymd] => 2025-02-07 23:48:05 [RateCDR] => 1 ) [2025-02-07 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:48:05' and `end` < '2025-02-07 23:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:48:18] Production.INFO: count ==972 [2025-02-07 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:48:05 - End Time 2025-02-07 23:48:05 [2025-02-07 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425839', 'tblTempUsageDetail_20' ) start [2025-02-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425839', 'tblTempUsageDetail_20' ) end [2025-02-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425839', 'tblTempVendorCDR_20' ) start [2025-02-07 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425839', 'tblTempVendorCDR_20' ) end [2025-02-07 23:48:18] Production.INFO: ProcessCDR(1,14425839,1,1,2) [2025-02-07 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425839', 'tblTempUsageDetail_20' ) start [2025-02-07 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425839', 'tblTempUsageDetail_20' ) end [2025-02-07 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:48:21] Production.INFO: ==30891== Releasing lock... [2025-02-07 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:48:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:49:05 [end_date_ymd] => 2025-02-07 23:49:05 [RateCDR] => 1 ) [2025-02-07 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:49:05' and `end` < '2025-02-07 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:49:20] Production.INFO: count ==969 [2025-02-07 23:49:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:49:05 - End Time 2025-02-07 23:49:05 [2025-02-07 23:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425844', 'tblTempUsageDetail_20' ) start [2025-02-07 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425844', 'tblTempUsageDetail_20' ) end [2025-02-07 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425844', 'tblTempVendorCDR_20' ) start [2025-02-07 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425844', 'tblTempVendorCDR_20' ) end [2025-02-07 23:49:20] Production.INFO: ProcessCDR(1,14425844,1,1,2) [2025-02-07 23:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425844', 'tblTempUsageDetail_20' ) start [2025-02-07 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425844', 'tblTempUsageDetail_20' ) end [2025-02-07 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:49:23] Production.INFO: ==30964== Releasing lock... [2025-02-07 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:49:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:50:06 [end_date_ymd] => 2025-02-07 23:50:06 [RateCDR] => 1 ) [2025-02-07 23:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:50:06' and `end` < '2025-02-07 23:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:50:19] Production.INFO: count ==968 [2025-02-07 23:50:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:50:06 - End Time 2025-02-07 23:50:06 [2025-02-07 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425850', 'tblTempUsageDetail_20' ) start [2025-02-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425850', 'tblTempUsageDetail_20' ) end [2025-02-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425850', 'tblTempVendorCDR_20' ) start [2025-02-07 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425850', 'tblTempVendorCDR_20' ) end [2025-02-07 23:50:19] Production.INFO: ProcessCDR(1,14425850,1,1,2) [2025-02-07 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425850', 'tblTempUsageDetail_20' ) start [2025-02-07 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425850', 'tblTempUsageDetail_20' ) end [2025-02-07 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:50:22] Production.INFO: ==31037== Releasing lock... [2025-02-07 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:51:05 [end_date_ymd] => 2025-02-07 23:51:05 [RateCDR] => 1 ) [2025-02-07 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:51:05' and `end` < '2025-02-07 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:51:18] Production.INFO: count ==977 [2025-02-07 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:51:05 - End Time 2025-02-07 23:51:05 [2025-02-07 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425855', 'tblTempUsageDetail_20' ) start [2025-02-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425855', 'tblTempUsageDetail_20' ) end [2025-02-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425855', 'tblTempVendorCDR_20' ) start [2025-02-07 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425855', 'tblTempVendorCDR_20' ) end [2025-02-07 23:51:18] Production.INFO: ProcessCDR(1,14425855,1,1,2) [2025-02-07 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425855', 'tblTempUsageDetail_20' ) start [2025-02-07 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425855', 'tblTempUsageDetail_20' ) end [2025-02-07 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:51:23] Production.INFO: ==31113== Releasing lock... [2025-02-07 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:51:23] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:52:05 [end_date_ymd] => 2025-02-07 23:52:05 [RateCDR] => 1 ) [2025-02-07 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:52:05' and `end` < '2025-02-07 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:52:18] Production.INFO: count ==977 [2025-02-07 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:52:05 - End Time 2025-02-07 23:52:05 [2025-02-07 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425860', 'tblTempUsageDetail_20' ) start [2025-02-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425860', 'tblTempUsageDetail_20' ) end [2025-02-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425860', 'tblTempVendorCDR_20' ) start [2025-02-07 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425860', 'tblTempVendorCDR_20' ) end [2025-02-07 23:52:18] Production.INFO: ProcessCDR(1,14425860,1,1,2) [2025-02-07 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425860', 'tblTempUsageDetail_20' ) start [2025-02-07 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425860', 'tblTempUsageDetail_20' ) end [2025-02-07 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:52:21] Production.INFO: ==31223== Releasing lock... [2025-02-07 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:52:21] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:53:06 [end_date_ymd] => 2025-02-07 23:53:06 [RateCDR] => 1 ) [2025-02-07 23: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-07 20:53:06' and `end` < '2025-02-07 23: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-07 23:53:20] Production.INFO: count ==973 [2025-02-07 23:53:20] Production.ERROR: pbx CDR StartTime 2025-02-07 20:53:06 - End Time 2025-02-07 23:53:06 [2025-02-07 23:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425865', 'tblTempUsageDetail_20' ) start [2025-02-07 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425865', 'tblTempUsageDetail_20' ) end [2025-02-07 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425865', 'tblTempVendorCDR_20' ) start [2025-02-07 23:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425865', 'tblTempVendorCDR_20' ) end [2025-02-07 23:53:20] Production.INFO: ProcessCDR(1,14425865,1,1,2) [2025-02-07 23:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425865', 'tblTempUsageDetail_20' ) start [2025-02-07 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425865', 'tblTempUsageDetail_20' ) end [2025-02-07 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:53:23] Production.INFO: ==31297== Releasing lock... [2025-02-07 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:53:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:54:05 [end_date_ymd] => 2025-02-07 23:54:05 [RateCDR] => 1 ) [2025-02-07 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:54:05' and `end` < '2025-02-07 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:54:18] Production.INFO: count ==970 [2025-02-07 23:54:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:54:05 - End Time 2025-02-07 23:54:05 [2025-02-07 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425870', 'tblTempUsageDetail_20' ) start [2025-02-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425870', 'tblTempUsageDetail_20' ) end [2025-02-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425870', 'tblTempVendorCDR_20' ) start [2025-02-07 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425870', 'tblTempVendorCDR_20' ) end [2025-02-07 23:54:18] Production.INFO: ProcessCDR(1,14425870,1,1,2) [2025-02-07 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425870', 'tblTempUsageDetail_20' ) start [2025-02-07 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425870', 'tblTempUsageDetail_20' ) end [2025-02-07 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:54:21] Production.INFO: ==31366== Releasing lock... [2025-02-07 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:55:05 [end_date_ymd] => 2025-02-07 23:55:05 [RateCDR] => 1 ) [2025-02-07 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:55:05' and `end` < '2025-02-07 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:55:18] Production.INFO: count ==973 [2025-02-07 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:55:05 - End Time 2025-02-07 23:55:05 [2025-02-07 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425875', 'tblTempUsageDetail_20' ) start [2025-02-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425875', 'tblTempUsageDetail_20' ) end [2025-02-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425875', 'tblTempVendorCDR_20' ) start [2025-02-07 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425875', 'tblTempVendorCDR_20' ) end [2025-02-07 23:55:18] Production.INFO: ProcessCDR(1,14425875,1,1,2) [2025-02-07 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425875', 'tblTempUsageDetail_20' ) start [2025-02-07 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425875', 'tblTempUsageDetail_20' ) end [2025-02-07 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:55:22] Production.INFO: ==31442== Releasing lock... [2025-02-07 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:56:05 [end_date_ymd] => 2025-02-07 23:56:05 [RateCDR] => 1 ) [2025-02-07 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:56:05' and `end` < '2025-02-07 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:56:18] Production.INFO: count ==972 [2025-02-07 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:56:05 - End Time 2025-02-07 23:56:05 [2025-02-07 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425880', 'tblTempUsageDetail_20' ) start [2025-02-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425880', 'tblTempUsageDetail_20' ) end [2025-02-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425880', 'tblTempVendorCDR_20' ) start [2025-02-07 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425880', 'tblTempVendorCDR_20' ) end [2025-02-07 23:56:18] Production.INFO: ProcessCDR(1,14425880,1,1,2) [2025-02-07 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425880', 'tblTempUsageDetail_20' ) start [2025-02-07 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425880', 'tblTempUsageDetail_20' ) end [2025-02-07 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:56:22] Production.INFO: ==31514== Releasing lock... [2025-02-07 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:57:05 [end_date_ymd] => 2025-02-07 23:57:05 [RateCDR] => 1 ) [2025-02-07 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:57:05' and `end` < '2025-02-07 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:57:18] Production.INFO: count ==972 [2025-02-07 23:57:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:57:05 - End Time 2025-02-07 23:57:05 [2025-02-07 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425885', 'tblTempUsageDetail_20' ) start [2025-02-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425885', 'tblTempUsageDetail_20' ) end [2025-02-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425885', 'tblTempVendorCDR_20' ) start [2025-02-07 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425885', 'tblTempVendorCDR_20' ) end [2025-02-07 23:57:19] Production.INFO: ProcessCDR(1,14425885,1,1,2) [2025-02-07 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425885', 'tblTempUsageDetail_20' ) start [2025-02-07 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425885', 'tblTempUsageDetail_20' ) end [2025-02-07 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:57:22] Production.INFO: ==31588== Releasing lock... [2025-02-07 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-02-07 23:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:58:04 [end_date_ymd] => 2025-02-07 23:58:04 [RateCDR] => 1 ) [2025-02-07 23:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-07 20:58:04' and `end` < '2025-02-07 23:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-07 23:58:18] Production.INFO: count ==975 [2025-02-07 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-07 20:58:04 - End Time 2025-02-07 23:58:04 [2025-02-07 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425890', 'tblTempUsageDetail_20' ) start [2025-02-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425890', 'tblTempUsageDetail_20' ) end [2025-02-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425890', 'tblTempVendorCDR_20' ) start [2025-02-07 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425890', 'tblTempVendorCDR_20' ) end [2025-02-07 23:58:18] Production.INFO: ProcessCDR(1,14425890,1,1,2) [2025-02-07 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425890', 'tblTempUsageDetail_20' ) start [2025-02-07 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425890', 'tblTempUsageDetail_20' ) end [2025-02-07 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:58:23] Production.INFO: ==31659== Releasing lock... [2025-02-07 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:58:23] Production.INFO: 35 MB #Memory Used# [2025-02-07 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-07 20:59:06 [end_date_ymd] => 2025-02-07 23:59:06 [RateCDR] => 1 ) [2025-02-07 23: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-07 20:59:06' and `end` < '2025-02-07 23: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-07 23:59:19] Production.INFO: count ==971 [2025-02-07 23:59:19] Production.ERROR: pbx CDR StartTime 2025-02-07 20:59:06 - End Time 2025-02-07 23:59:06 [2025-02-07 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425895', 'tblTempUsageDetail_20' ) start [2025-02-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14425895', 'tblTempUsageDetail_20' ) end [2025-02-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425895', 'tblTempVendorCDR_20' ) start [2025-02-07 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14425895', 'tblTempVendorCDR_20' ) end [2025-02-07 23:59:19] Production.INFO: ProcessCDR(1,14425895,1,1,2) [2025-02-07 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14425895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14425895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-07 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14425895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14425895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-07 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425895', 'tblTempUsageDetail_20' ) start [2025-02-07 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14425895', 'tblTempUsageDetail_20' ) end [2025-02-07 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-07 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-07 23:59:22] Production.INFO: ==31731== Releasing lock... [2025-02-07 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-07 23:59:22] Production.INFO: 34.75 MB #Memory Used#